/* Base styles */
:root {
    /* Colors */
    --primary-color: #FF3E6C;
    --primary-light: #FF6B8B;
    --primary-dark: #E9214C;
    --secondary-color: #6C63FF;
    --secondary-light: #8A84FF;
    --secondary-dark: #5A52D9;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #BBBBBB;
    --border-color: #E7E7E9;
    --bg-light: #F7F8FB;
    --background-color: #F3F5F9;
    --container-bg: #FFFFFF;
    --success: #10B981;
    --warning: #F59E0B;
    --info: #3B82F6;
    --danger: #EF4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    --gradient-light: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    --gradient-shadow: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    --gradient-white: linear-gradient(to right bottom, white, rgba(255, 250, 250, 0.95));
    --gradient-bg-light: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 242, 242, 0.9));
    --gradient-btn: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);

    /* Layout */
    --container-width: 1200px;
    --container-padding: 20px;
    --section-spacing: 60px;
    --radius: 12px;
    --radius-sm: 8px;

    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;

    /* Shadows */
    --shadow-sm: 0px 4px 6px rgba(0, 0, 0, 0.05), 0px 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0px 10px 15px rgba(0, 0, 0, 0.07), 0px 5px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0px 20px 25px rgba(0, 0, 0, 0.1), 0px 10px 10px rgba(0, 0, 0, 0.04);

    /* Animation */
    --transition: all 0.3s ease
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

button, .btn-primary, .btn-secondary {
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: var(--radius);
    padding: 12px 28px;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 16px rgba(255, 62, 108, 0.25);
}

/* Базовые стили кнопок, включая эффекты наведения */
.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px); /* Общий эффект поднятия при наведении */
}

/* Специфичные эффекты для основной кнопки */
.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 12px 20px rgba(255, 62, 108, 0.35);
}

/* Анимация свечения для основной кнопки */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    z-index: -1;
    transition: 0.8s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Стили вторичной кнопки */
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 62, 108, 0.08);
}

.btn-secondary i {
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: var(--primary-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 16px;
}

/* Header */
header {
    padding: 20px 0;
    background-color: var(--container-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

/* Неиспользуемые стили .logo-heart и анимация heartbeat удалены */

/* Main content */
main {
    flex: 1;
    padding: 30px 0;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Screen */
/* Неиспользуемые стили для приветственной секции (welcome) удалены */

/* Неиспользуемые стили .welcome-description, .stage-tags, .stage-tag и другие связанные с ними удалены */

/* Неиспользуемые классы .action-row и .button-container удалены */

/* Все стили для #start-btn удалены, так как они заданы в атрибуте style в HTML */

/* Неиспользуемые стили pulse-hover и анимация pulse-gold удалены */

.hearts-animation {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: block;
    transform: translateY(-50%);
}

/* Анимация сердечек */
.heart {
    position: absolute;
    animation: flyHeart 8s ease-in-out infinite;
    z-index: 1;
    opacity: 0.7;
    color: var(--primary-color);
}

@keyframes flyHeart {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;   
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Стили для эффекта фейерверка из сердечек */
.heart.firework {
    position: absolute;
    animation: fireworkHeart 2s forwards;
    opacity: 0;
    transform-origin: center;
}

@keyframes fireworkHeart {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    10% {
        opacity: 1;
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.8);
    }
}

.badges-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.time-badge, .confidence-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: var(--shadow-sm);
}

.time-badge:hover, .confidence-badge:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.9);
}

.time-badge i, .confidence-badge i {
    color: var(--primary-color);
}

.welcome-image {
    flex: 1;
    min-width: 300px;
}

.image-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    transition: var(--transition);
}

.image-container img {
    width: 100%;
    height: auto;
    vertical-align: middle;
    transition: transform 0.6s ease;
    filter: brightness(0.95);
}

.image-container:hover {
    transform: translateY(-10px);
}

.image-container:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.overlay-text span {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-light);
    display: block;
    margin-bottom: 5px;
}

.test-features {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.test-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    flex: 1;
    padding: 20px 15px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.test-feature:hover {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    transform: translateY(-5px);
}

.feature-circle {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    margin-bottom: 10px;
    transition: transform 0.4s;
    box-shadow: 0 8px 15px rgba(255, 62, 108, 0.2);
}

.feature-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.test-feature:hover .feature-circle {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 10px 20px rgba(255, 62, 108, 0.3);
}

/* Testimonials Section */
.testimonials-section {
    margin-bottom: 50px;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 15px;
    font-size: 2.2rem;
}

.testimonials-section h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* Стили testimonials-container перенесены в enhanced_styles.css */

/* Базовые стили для testimonial-card */
.testimonial-card {
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    min-width: 300px;
    display: flex;
    gap: 20px;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* Hover-эффекты для testimonial перенесены в enhanced_styles.css */

.testimonial-content {
    flex: 1;
}

.testimonial-name {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 1rem;
}

/* Неиспользуемые стили для секции методологии удалены */

/* Все оставшиеся стили для методологии удалены как неиспользуемые */

/* Stage Selection Screen */
.test-intro {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.test-intro::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,62,108,0.05) 0%, rgba(255,62,108,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.test-intro::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108,99,255,0.05) 0%, rgba(108,99,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.test-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.test-intro h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.test-intro .description {
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* --- СТИЛИ ДЛЯ ВЫБОРА ЭТАПА И КУЛЬТУРНОГО КОДА --- */
.stage-options, .culture-options {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 24px;
    margin: 32px 0 24px 0;
}

.stage-option, .culture-option {
    min-width: 210px;
    max-width: 240px;
    flex: 1 1 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px 12px 18px 12px;
    margin: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 900px) {
    .stage-options, .culture-options {
        gap: 12px;
    }
    .stage-option, .culture-option {
        min-width: 160px;
        max-width: 1fr;
        padding: 16px 6px 12px 6px;
    }
}

@media (max-width: 700px) {
    .stage-options, .culture-options {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 16px;
        align-items: stretch;
    }
    .stage-option, .culture-option {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
}
/* --- КОНЕЦ СТИЛЕЙ ДЛЯ ВЫБОРА ЭТАПА И КУЛЬТУРНОГО КОДА --- */

.stage-option::before, .culture-option::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: rotate(45deg);
    transition: all 0.8s;
    z-index: -1;
}

.stage-option:hover, .culture-option:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stage-option:hover::before, .culture-option:hover::before {
    top: 100%;
    left: 100%;
}

.stage-option.selected, .culture-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom right, rgba(255, 62, 108, 0.05), rgba(255, 255, 255, 0.9), rgba(255, 62, 108, 0.05));
    box-shadow: 0 10px 25px rgba(255, 62, 108, 0.15);
}

.stage-icon, .culture-icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    transition: all 0.4s;
    box-shadow: 0 10px 20px rgba(255, 62, 108, 0.2);
}

.stage-option:hover .stage-icon, 
.culture-option:hover .culture-icon,
.stage-option.selected .stage-icon,
.culture-option.selected .culture-icon {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 15px 30px rgba(255, 62, 108, 0.3);
}

.stage-option h3, .culture-option h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    transition: var(--transition);
}

.stage-option p, .culture-option p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Test Screen */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 10px;
    background-color: rgba(229, 231, 235, 0.5);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 5px;
}

.progress-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: right;
    font-weight: 500;
}

/* Test Instructions Styling */
.test-instructions {
    max-width: 800px;
    margin: 0 auto 20px;
}

.instruction-panel {
    background-color: #f8f3ff;
    border: 1px solid #e2d5f7;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.instruction-panel h3 {
    color: #6a3093;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.instruction-panel h3 i {
    margin-right: 8px;
    color: #9c55d4;
}

.intro-text {
    margin: 5px 0 10px;
    font-size: 14px;
    text-align: left;
    color: #333;
    display: block !important;
    visibility: visible !important;
    max-width: 100% !important;
    overflow: visible !important;
    line-height: 1.3;
}

/* Двухколоночная сетка для инструкций */
.instruction-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.instruction-column {
    flex: 1;
    min-width: 200px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 5px;
}

.instruction-column p {
    margin-top: 0;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 14px;
    text-align: left;
}

.compact-list {
    margin: 4px 0;
    padding-left: 15px;
}

.compact-list li {
    margin-bottom: 3px;
    line-height: 1.25;
    font-size: 13px;
    text-align: left;
}

.instruction-panel strong {
    color: #6a3093;
}

.instruction-note {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 8px 10px;
    border-radius: 6px;
    margin: 10px 0 0;
    color: #444;
    font-size: 14px;
    text-align: center;
    border-left: 3px solid #9c55d4;
}

.instruction-note i {
    color: #9c55d4;
    margin-right: 5px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .test-instructions {
        margin-bottom: 10px;
    }
    
    .instruction-panel {
        padding: 8px 10px;
        margin-bottom: 10px;
    }
    
    .instruction-panel h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .intro-text {
        font-size: 13px;
        margin: 4px 0 6px;
    }
    
    .instruction-grid {
        gap: 6px;
    }
    
    .instruction-column {
        min-width: 100%;
        padding: 6px;
        margin-bottom: 3px;
    }
    
    .instruction-column p {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .compact-list {
        margin: 3px 0;
        padding-left: 12px;
    }
    
    .compact-list li {
        font-size: 12px;
        margin-bottom: 2px;
        line-height: 1.2;
    }
    
    .instruction-note {
        font-size: 12px;
        padding: 6px 8px;
        margin-top: 6px;
    }
}

.test-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 35px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.test-container::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 62, 108, 0.03) 0%, rgba(255, 62, 108, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.test-container::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.03) 0%, rgba(108, 99, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.category-label {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 62, 108, 0.1);
    color: var(--primary-dark);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.question-container {
    margin-bottom: 40px;
}

.question {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.6;
    color: var(--text-color);
}

.rating-slider-container {
    margin-bottom: 40px;
}

/* Очищено от дублирующихся стилей */

/* Стили для колоночной структуры рейтинга */
.rating-columns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding-bottom: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    height: 120px; /* Фиксированная высота для правильного позиционирования */
}

/* Линия соединяющая кнопки */
.rating-columns::before {
    content: '';
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, rgba(255, 62, 108, 0.3), rgba(108, 99, 255, 0.3));
    top: 85px; /* Точно позиционируем линию по центру кнопок */
    left: 10px;
    right: 10px;
    z-index: 0;
}

/* Стили для колонок */
.rating-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    position: relative;
}

/* Стиль для подписей */
.scale-label {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.2;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 10px;
}

/* Стили для круглых кнопок */
.scale-point {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    transition: var(--transition);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
    margin: 0 auto;
    margin-top: 15px;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

/* Hover-эффект для кнопок - только для десктопа */
@media (min-width: 769px) {
    .scale-point:hover {
        transform: scale(1.1);
        border-color: var(--primary-light);
        color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(255, 62, 108, 0.1);
    }
    
    /* Активное состояние кнопки - только для десктопа */
    .scale-point.active {
        transform: scale(1.1);
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(255, 62, 108, 0.2);
    }
}

/* Активное состояние кнопки - общее для всех устройств */
.scale-point.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 62, 108, 0.2);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .rating-column:nth-child(2) .scale-label,
    .rating-column:nth-child(4) .scale-label {
        display: none;
    }
    
    /* Фиксируем позицию всех кнопок на одной линии */
    .rating-column .scale-point {
        width: 45px;
        height: 45px;
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        /* Отключаем все анимации в мобильной версии */
        transition: none;
    }
    
    /* Убеждаемся, что все колонки имеют одинаковую высоту */
    .rating-column {
        position: relative;
        height: 100%;
    }
    
    /* Для мобильной версии достаточно одного правила */
    .scale-point,
    .scale-point:hover,
    .scale-point:active,
    .scale-point.active {
        transform: translateX(-50%) !important;
    }
}

/* Устаревшие стили удалены */

/* Устаревшие стили и анимации удалены */

.importance-container {
    margin-top: 30px;
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.4s;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.importance-container.highlight {
    border-color: var(--primary-color);
    background-color: rgba(255, 62, 108, 0.03);
    box-shadow: 0 0 0 3px rgba(255, 62, 108, 0.1);
    animation: pulse-bg 1.5s infinite;
}

@keyframes pulse-bg {
    0% {
        background-color: rgba(255, 62, 108, 0.03);
        box-shadow: 0 0 0 3px rgba(255, 62, 108, 0.1);
    }
    50% {
        background-color: rgba(255, 62, 108, 0.08);
        box-shadow: 0 0 0 3px rgba(255, 62, 108, 0.2);
    }
    100% {
        background-color: rgba(255, 62, 108, 0.03);
        box-shadow: 0 0 0 3px rgba(255, 62, 108, 0.1);
    }
}

.importance-label {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.importance-scale {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.importance-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 100px;
    padding: 15px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid transparent;
    text-align: center;
    flex-wrap: wrap;
}

.importance-option.active {
    border: 2px solid var(--primary-color);
    background: #fff;
    box-shadow: 0 2px 8px rgba(255,62,108,0.08);
}

/* Неиспользуемые стили для звездного рейтинга удалены */

/* Неиспользуемый класс .importance-label-text удален */

.importance-option:hover {
    background-color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(255, 62, 108, 0.1);
}

.importance-option.active {
    background-color: white;
    font-weight: 600;
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    border-color: rgba(255, 62, 108, 0.2);
    transform: translateY(-5px);
}

.importance-option i {
    color: gold;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    margin-right: 4px;
}

.importance-option:hover i {
    transform: scale(1.2);
}

.importance-option.active i {
    transform: scale(1.2);
}

.importance-option span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: inline-block;
    margin-left: 4px;
}

/* Removed conflicting styles for second-star and third-star */
.importance-option i + i {
    margin-left: 2px;
    margin-right: 0;
}

/* Неиспользуемый класс .importance-stars удален - новый дизайн использует другой подход */

.importance-option span:last-child {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

.buttons-container {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.buttons-container button {
    margin-right: 10px;
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

/* Results Screen */
.results-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.results-container h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 15px;
}

.results-container h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.results-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    justify-content: space-between;
}

.results-score {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-circle {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 15px rgba(255, 62, 108, 0.3));
}

.score-circle svg {
    position: relative;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.05);
    stroke-width: 10;
}

.score-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 10;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.8s ease-in-out;
    stroke-linecap: round;
}

.score-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#score-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-dark), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.score-max {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hearts-scale {
    width: 100%;
    max-width: 400px;
}

.hearts-scale-label {
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.hearts-scale-container {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.heart-icon {
    color: rgba(0, 0, 0, 0.1);
    font-size: 1.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.heart-icon.active {
    color: var(--primary-color);
    transform: scale(1.3);
    filter: drop-shadow(0 3px 5px rgba(255, 62, 108, 0.3));
    animation: heartBeat 0.5s;
}

@keyframes heartBeat {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1.3);
    }
}

.love-languages {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.love-languages h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.love-languages-chart-container {
    width: 100%;
    min-height: 260px;
    height: auto;
    position: relative;
    padding-bottom: 8px; /* компактнее */
}

#loveLanguagesChart {
    width: 100% !important;
    height: 100% !important;
}

.results-text {
    background-color: white;
    border-radius: var(--radius);
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid var(--border-color);
}

.results-text::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 80px;
    line-height: 1;
    font-family: Georgia, serif;
    color: rgba(255, 62, 108, 0.1);
}

.results-text h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.results-text p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 0;
    font-size: 1.05rem;
}

.category-scores {
    margin-bottom: 50px;
}

.category-scores h3 {
    margin-bottom: 25px;
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.category-item {
    margin-bottom: 22px;
    padding: 15px;
    background-color: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* Стили для 5 градаций категорий */
.level-1-category {
    border-left: 3px solid #ff4136; /* Критический дефицит */
}

.level-2-category {
    border-left: 3px solid #ff851b; /* Серьезные проблемы */
}

.level-3-category {
    border-left: 3px solid #ffb84d; /* Зона риска */
}

.level-4-category {
    border-left: 3px solid #98e65d; /* Приемлемый уровень */
}

.level-5-category {
    border-left: 3px solid #2ecc40; /* Отлично */
}

/* Сохраняем обратную совместимость со старыми стилями */
.critical-category {
    border-left: 3px solid #ff4136;
}

.warning-category {
    border-left: 3px solid #ffb84d;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.category-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

.category-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-right: 10px;
    flex: 1;
}

.category-value-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.category-percent {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-right: 3px;
}

.category-status {
    font-weight: 600;
    font-size: 1.1rem;
}

.category-bar {
    height: 14px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 7px;
    overflow: hidden;
}

.category-fill {
    height: 100%;
    background: var(--gradient-secondary);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 7px;
}

/* Неиспользуемые стили для секции рекомендаций удалены */

#recommendations-text {
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Неиспользуемые стили для карточек рекомендаций удалены */

/* Conversion Container */
.conversion-container {
    background: var(--gradient-bg-light);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 62, 108, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.conversion-container::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 62, 108, 0.08) 0%, rgba(255, 62, 108, 0) 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    z-index: -1;
}

.conversion-container::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, rgba(108, 99, 255, 0) 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    z-index: -1;
}

.conversion-header {
    text-align: center;
    margin-bottom: 30px;
}

.conversion-header h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.conversion-header h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.conversion-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 1.1rem;
}

.course-offer {
    max-width: 600px;
    margin: 0 auto;
}

.course-benefits {
    margin-bottom: 30px;
}

.course-benefit {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.7);
}

.course-benefit:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.course-benefit i {
    color: var(--success);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.course-benefit span {
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.5;
}

.main-course-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 18px 25px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 15px 30px rgba(255, 62, 108, 0.3);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.main-course-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    z-index: -1;
    transition: 0.8s;
}

.main-course-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 62, 108, 0.4);
    color: white;
}

.main-course-btn:hover::before {
    left: 100%;
}

.bonus-offer {
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.9), rgba(255, 242, 242, 0.9));
    border: 2px dashed var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
}

.bonus-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.bonus-label i {
    color: #FFD700;
    font-size: 1.2rem;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.bonus-text {
    font-weight: 500;
    font-size: 1.05rem;
}

/* Share Container */
.share-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    background-color: #f8f8ff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.share-container h3 {
    margin-bottom: 25px;
    font-size: 1.6rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.share-container h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 15px 25px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transition: all 0.4s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.share-vk {
    background-color: #4C75A3;
    color: white;
}

.share-telegram {
    background-color: #0088cc;
    color: white;
}

.share-whatsapp {
    background-color: #25D366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.action-buttons button {
    min-width: 200px;
}

/* Exit Intent Popup */
.exit-intent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.exit-intent-overlay.active {
    opacity: 1;
    visibility: visible;
}

.exit-intent-popup {
    background: var(--gradient-white);
    border-radius: var(--radius);
    max-width: 550px;
    width: 90%;
    padding: 40px;
    position: relative;
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.18, 1.25, 0.4, 1), opacity 0.6s;
    box-shadow: var(--shadow-lg);
}

.exit-intent-overlay.active .exit-intent-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.close-popup-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.close-popup-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.popup-content {
    text-align: center;
}

.popup-content h3 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.popup-content h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.popup-content p {
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.popup-content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.5s;
}

.popup-content img:hover {
    transform: scale(1.02);
}

.popup-features {
    margin-bottom: 30px;
}

.popup-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.popup-feature:hover {
    background-color: white;
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.popup-feature i {
    color: var(--success);
    font-size: 1.2rem;
}

.popup-feature span {
    font-weight: 500;
    font-size: 1.05rem;
}

.popup-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 25px rgba(255, 62, 108, 0.3);
    position: relative;
    overflow: hidden;
}

.popup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.6s;
    z-index: 0;
}

.popup-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 62, 108, 0.4);
    color: white;
}

.popup-btn:hover::before {
    left: 100%;
}

/* Footer - Компактный и стильный */
footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    padding: 20px 0;
    border-top: 1px solid rgba(108, 99, 255, 0.1);
    margin-top: 40px;
    box-shadow: 0 -2px 10px rgba(108, 99, 255, 0.05);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-contact {
    margin-bottom: 12px;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-contact a {
    color: #6C63FF;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer-contact a:hover {
    color: #FF3E6C;
    text-decoration: underline;
}

.footer-links {
    margin-bottom: 12px;
    font-size: 0.75rem;
    line-height: 1.4;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.footer-links a:hover {
    color: #6C63FF;
    text-decoration: underline;
}

.footer-separator {
    margin: 0 8px;
    color: #dee2e6;
    font-weight: 300;
}

footer p {
    color: #adb5bd;
    font-size: 0.75rem;
    margin-bottom: 0;
    font-weight: 400;
    opacity: 0.8;
}

/* Неиспользуемые стили PDF-брендинга удалены. 
   PDF-экспорт выполняется через html2canvas без использования этих классов */

/* Responsive styles */
@media (max-width: 1024px) {
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .test-intro h2 {
        font-size: 2rem;
    }
    
    .score-circle {
        width: 160px;
        height: 160px;
    }
    
    #score-value {
        font-size: 2.5rem;
    }
    
    .recommendation-cards {
        gap: 20px;
    }
    
    .importance-scale {
        gap: 10px;
    }
}

/* Стили для мобильных устройств 768px перенесены в основной медиа-запрос @media (max-width: 768px) в начале файла */

@media (max-width: 768px) {
    .results-summary {
        flex-direction: column;
        gap: 30px;
    }
    
    .results-score {
        min-width: auto;
        width: 100%;
    }
    
    .love-languages {
        min-width: auto;
        width: 100%;
        padding: 20px;
    }
    
    .love-languages-chart-container {
        height: 250px;
    }
    
    .importance-scale {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .importance-option {
        min-width: calc(33.33% - 10px);
        padding: 12px 5px;
        margin-bottom: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-buttons button {
        width: 100%;
    }
    
    .scale-point {
        width: 45px;
        height: 45px;
    }
    
    .test-container {
        padding: 25px 20px;
    }
    
    .question {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .category-label {
        font-size: 0.85rem;
    }
    
    .results-container h2 {
        font-size: 2rem;
    }
    
    .popup-content h3 {
        font-size: 1.8rem;
    }
}

/* Стили для экранов размером 576px и меньше */
@media (max-width: 576px) {
    .category-item {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .category-header {
        margin-bottom: 8px;
    }
    
    .category-name {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .category-percent {
        font-size: 0.95rem;
    }
    
    .category-status {
        font-size: 0.9rem;
    }
    
    .category-bar {
        height: 8px;
    }

    .category-name {
        font-size: 0.95rem;
    }
    
    .category-value {
        font-size: 0.95rem;
        white-space: nowrap;
    }

    /* Базовые настройки */
    :root {
        --container-padding: 10px;
    }
    
    /* Контейнер и базовые элементы */
    .container {
        width: 100%;
        padding: 0 var(--container-padding);
    }
    
    /* Заголовки */
    h1 {
        font-size: 1.9rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    /* Основной контент */
    main {
        padding: 15px 0;
    }
    
    /* Навигация теста */
    .test-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .restart-btn {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    /* Стили для графика языков любви */
    .love-languages-chart-container {
        height: 240px;
    }
    
    .love-languages-legend {
        font-size: 0.8rem;
    }
    
    .love-languages-match {
        font-size: 0.85rem;
    }
    
    .match-explain {
        font-size: 0.75rem;
    }
    
    /* Напоминание: PDF экспорт реализован через html2canvas и стилизацию в JavaScript */
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .test-intro h2 {
        font-size: 1.7rem;
    }
    
    .badges-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .feature-circle {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .test-features {
        flex-direction: column;
        gap: 15px;
    }
    
        /* Стили testimonials перенесены в enhanced_styles.css */
    
    .score-circle {
        width: 140px;
        height: 140px;
    }
    
    #score-value {
        font-size: 2rem;
    }
    
    .recommendation-cards {
        flex-direction: column;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .scale-point {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .rating-labels span {
        font-size: 0.85rem;
    }
    
    .slider-descriptions {
        font-size: 0.8rem;
    }
    
    .category-item {
        padding: 12px 10px;
    }
    
    .category-fill {
        height: 8px;
    }
    
    .question {
        font-size: 0.9rem;
    }
    
    .importance-container {
        padding: 15px;
        margin-top: 20px;
    }
    
    .importance-label {
        font-size: 1rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .importance-scale {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .importance-option {
        min-width: unset;
        width: 100%;
        padding: 12px 5px;
        margin-bottom: 0;
    }
    
    .importance-option i {
        font-size: 1.2rem;
    }
    
    .importance-option span {
        font-size: 0.8rem;
    }
    
    .question-container {
        margin-bottom: 15px;
    }
    
    .question {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .rating-slider-container {
        margin-top: 15px;
    }
    
    .rating-labels {
        margin-bottom: 5px;
    }
    
    .recommendation-card {
        padding: 18px 15px;
    }
    
    .exit-intent-popup {
        padding: 20px 15px;
        max-width: 95%;
    }
    
    .test-container {
        padding: 15px 12px;
    }
    
    .results-text {
        padding: 20px 15px;
    }
    
    .recommendations-section {
        padding: 20px 15px;
    }
    
    .conversion-container {
        padding: 25px 15px;
    }
    
    .main-course-btn {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .buttons-container {
        margin-top: 25px;
    }
    
    .course-benefits {
        gap: 12px;
    }
    
    .course-benefit {
        padding: 10px;
    }
    
    .course-benefit span {
        font-size: 0.9rem;
    }
    
    .results-container {
        padding: 15px 10px;
    }
    
    /* Оптимизированные стили для шкалы сердец на мобильных устройствах */
    .hearts-scale-container,
    .hearts-scale-container.mobile-friendly {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        padding: 0 5px;
    }
    
    /* Размер иконок сердец для мобильных устройств */
    .heart-icon {
        font-size: 1.5rem;
    }
    
    .love-languages {
        padding: 15px;
    }
    
    .love-languages-chart-container {
        min-height: 260px; /* Увеличиваем минимальную высоту */
        max-width: 100%;
        overflow: visible; /* Разрешаем контенту выходить за пределы контейнера */
        padding-bottom: 25px; /* Больший отступ снизу для мобильных устройств */
    }
    
    canvas#loveLanguagesChart {
        max-width: 100%;
    }
    
    /* Стили перенесены выше в объединенный селектор */
    
    .love-languages-chart-container.mobile-friendly {
        height: 220px;
    }
    
    .share-btn {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .conversion-container {
        padding: 24px;
    }
    
    /* Стили объединены выше в единый селектор */
    
    .share-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    /* Мобильные стили футера */
    footer {
        padding: 15px 0;
        margin-top: 30px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-contact {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .footer-links {
        font-size: 0.7rem;
        margin-bottom: 10px;
        line-height: 1.5;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 2px 0;
    }
    
    .footer-separator {
        margin: 0 6px;
    }
    
    footer p {
        font-size: 0.7rem;
    }
}

@media (max-width: 375px) {
    .scale-point {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .importance-scale {
        grid-template-columns: 1fr;
    }
    
    .rating-labels span {
        font-size: 0.8rem;
    }
    
    .slider-descriptions {
        font-size: 0.75rem;
    }
    
    .category-item {
        padding: 12px 10px;
    }
    
    .category-fill {
        height: 8px;
    }
    
    .question {
        font-size: 0.9rem;
    }
    
    .importance-option {
        padding: 10px 5px;
    }
    
    #start-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .hearts-scale-container {
        gap: 2px;
        flex-wrap: wrap;
    }
    
    .heart-icon {
        font-size: 1.3rem;
    }
}

/* Стили для кнопки Начать заново */
.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.restart-btn {
    background-color: rgba(255, 62, 108, 0.07);
    border: 1px solid rgba(255, 62, 108, 0.2);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.restart-btn:hover {
    background-color: rgba(255, 62, 108, 0.15);
    transform: translateY(-1px);
}

.restart-btn i {
    font-size: 0.8rem;
}

/* Стили для 576px объединены в главном блоке медиа-запроса */

/* Стили для очень маленьких экранов */
/* Стили для очень маленьких экранов (375px) перенесены в основной медиа-запрос @media (max-width: 375px) выше */

.love-languages {
    background-color: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(255, 62, 108, 0.08);
    margin-bottom: 24px;
}

.love-languages h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #ff3e6c;
}

.love-languages-chart-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    margin-bottom: 8px;
    padding-top: 0;
}

.love-languages-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
    font-size: 0.78rem; /* компактная легенда как в мелких подписях */
}

.love-languages-actions { font-size: 0.95rem; }
.love-languages-actions .actions-card {
    margin-top: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(108,99,255,0.06);
    padding: 10px 12px; /* компактнее */
}
.love-languages-actions .actions-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #6C63FF;
    font-size: 0.98rem;
}
.love-languages-actions .actions-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.love-languages-actions .actions-sub {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem; /* компактнее */
}
.love-languages-actions ul {
    margin: 0;
    padding-left: 14px;
}
.love-languages-actions li { margin-bottom: 3px; font-size: 0.92rem; line-height: 1.3; color: var(--text-primary); }
.love-languages-actions li strong { font-weight: 600; }

.advanced-insights-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 14px;
}
.insight-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(108,99,255,0.06);
    padding: 14px 16px;
    font-size: 0.95rem; /* общий мелкий */
    color: var(--text-primary);
}
.insight-title { font-weight: 700; margin-bottom: 6px; font-size: 1.05rem; color: var(--primary-dark); }
.insight-card .badge {
    display: inline-block;
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
}
.insight-card .value { font-weight: 700; margin-left: 6px; }
.insight-card .trend-up { color: #2ecc40; }
.insight-card .trend-flat { color: #f39c12; }
.insight-card .trend-down { color: #e74c3c; }
.insight-card .list { margin: 0; padding-left: 18px; }
.insight-card .list li { margin-bottom: 4px; font-size: 0.95rem; }
.insight-card .explain { margin-top: 6px; color: #555; font-size: 0.9rem; line-height: 1.4; }

@media (max-width: 768px) {
    .love-languages-actions .actions-columns { grid-template-columns: 1fr; }
    .advanced-insights-grid { grid-template-columns: 1fr; }
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.love-languages-match {
    margin-top: 15px;
    text-align: center;
    padding: 12px;
    background-color: #fff9fb;
    border-radius: 8px;
    font-size: 0.95rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(255, 62, 108, 0.1);
}

.match-label {
    font-weight: 500;
}

.match-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.match-desc {
    font-weight: 500;
}

.match-explain {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
    line-height: 1.3;
}

/* Нота: стили для 576px перенесены в главный блок @media (max-width: 576px) в начале файла */

.importance-option span {
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Стили для планшетов и мобильных устройств (768px и меньше) */
/* Стили для мобильных устройств 768px перенесены в основной медиа-запрос @media (max-width: 768px) выше */

/* Мобильные оптимизации для маленьких экранов */
/* Стили для очень маленьких экранов (375px) перенесены в основной медиа-запрос @media (max-width: 375px) выше */

/* Дополнительные стили для маленьких экранов перенесены в основной медиа-запрос @media (max-width: 375px) */

/* Стили для результатов теста на маленьких экранах перенесены в основной медиа-запрос @media (max-width: 375px) */

/* Стили для шкалы сердечек и заголовков разделов перенесены в основной медиа-запрос @media (max-width: 375px) */

@media (max-width: 375px) {
    /* Дополнительные стили для маленьких экранов, которые не были включены в основной медиа-запрос */
    .hearts-scale-label {
        font-size: 0.9rem;
    }
    
    /* Заголовки разделов результатов */
    .love-languages h3,
    .results-text h3,
    .category-scores h3,
    .recommendations-section h3,
    .conversion-header h3 {
        font-size: 1.3rem;
    }
    
    /* Очень компактный футер для маленьких экранов */
    footer {
        padding: 12px 0;
        margin-top: 25px;
    }
    
    .footer-contact {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .footer-links {
        font-size: 0.65rem;
        margin-bottom: 8px;
        line-height: 1.6;
    }
    
    .footer-separator {
        margin: 0 4px;
    }
    
    footer p {
        font-size: 0.65rem;
    }
}

@media (max-width: 375px) {
    .share-container h3 {
        font-size: 1.3rem;
    }
}

/* Стили для мобильно-дружественных контейнеров */
.mobile-friendly {
    box-sizing: border-box;
    max-width: 100%;
    overflow: visible;
}

/* Стили объединены выше в медиа-запросах. См. раздел @media (max-width: 768px) */
/* Напоминание: PDF-экспорт реализован через html2canvas и настройку стилей в JavaScript */

.love-languages-chart-container.mobile-friendly {
    max-width: 100%;
    margin: 0 auto;
}

.main-hero-text {
    position: relative;
}

.start-btn-wrapper {
    display: inline-block;
    position: relative;
}

.features-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 28px !important;
    max-width: 1100px !important;
    width: 100% !important;
    margin: 40px auto !important;
    justify-items: stretch !important;
    align-items: stretch !important; /* Для одинаковой высоты карточек */
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px !important;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

.feature-card {
    width: 100%;
    box-sizing: border-box;
    height: 100%; /* Чтобы карточки растягивались на всю высоту ячейки */
}

/* Стили для звезд рейтинга */
.fas.fa-star, .fas.fa-star-half-alt {
    color: #FFD700 !important;
}

.far.fa-star {
    color: #e0e0e0 !important;
}

/* Стили для диаграммы языков любви */
.love-languages-chart-container {
    height: 360px !important; /* Увеличиваем размер графика */
    margin-bottom: 25px;
    position: relative;
}

.love-languages-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    padding: 5px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

/* Стилизация иконок в диаграмме */
.chart-container canvas {
    margin-bottom: 10px;
}

@media (max-width: 576px) {
    .category-item {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .category-header {
        margin-bottom: 8px;
    }
    
    .category-name {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .category-percent {
        font-size: 0.95rem;
    }
    
    .category-status {
        font-size: 0.9rem;
    }
    
    .category-bar {
        height: 8px;
    }

    .love-languages-chart-container {
        height: 300px !important;
    }
    
    .legend-item {
        font-size: 12px;
    }
}

/* Стили для раздела с болевыми точками */
.pain-points-section {
    background: linear-gradient(to right, rgba(255, 234, 236, 0.9), rgba(255, 245, 248, 0.9));
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 6px 15px rgba(255, 26, 104, 0.07);
}

.pain-points-section h4 {
    color: #e94057;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.pain-points-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.pain-points-list li {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-left: 4px solid #e94057;
    font-size: 15px;
    line-height: 1.5;
}

.pain-points-list li strong {
    color: #e94057;
    display: block;
    margin-bottom: 5px;
}

.gap-indicator {
    display: inline-block;
    font-size: 13px;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

.pain-points-summary {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

/* Стили для 768px перенесены в основной блок @media (max-width: 768px) выше */

/* Блок ключевого дисбаланса языков любви */
.key-imbalance-section {
    margin: 30px 0;
    padding: 25px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff3e6c0a, #f1f1ff);
    border: 1px solid rgba(255, 62, 108, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.key-imbalance-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.imbalance-content {
    padding: 10px 0;
}

.imbalance-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ff3e6c;
    margin-bottom: 12px;
}

.imbalance-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.imbalance-recommendations-block h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #333;
}

.imbalance-recommendations {
    list-style: none;
    padding: 0;
    margin: 0;
}

.imbalance-recommendations li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.imbalance-recommendations li:before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #6c63ff;
    font-weight: bold;
}

/* Стили для списка рекомендаций */
/* Неиспользуемые стили для списка рекомендаций удалены */
