/* Fonts */
@font-face {
    font-family: 'Flow';
    src: url('font/Flow.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Flow';
    src: url('font/Flow_B.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('font/Raleway-v4020-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('font/Raleway-v4020-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('font/Raleway-v4020-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('font/Raleway-v4020-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --dark-bg: #0a0e27;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
}

.particle:nth-child(3n) {
    background: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 15px rgba(102, 126, 234, 1);
}

.particle:nth-child(3n+1) {
    background: rgba(245, 87, 108, 0.6);
    box-shadow: 0 0 15px rgba(245, 87, 108, 1);
}

.particle:nth-child(3n+2) {
    background: rgba(79, 172, 254, 0.6);
    box-shadow: 0 0 15px rgba(79, 172, 254, 1);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) scale(0);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

/* Quiz Container */
.quiz-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
    overflow-y: auto;
}

.quiz-step {
    display: none;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    /* Анимация убрана для мгновенного появления */
    /* animation: fadeInScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); */
}

.quiz-step.active {
    display: block;
    position: relative;
    z-index: 2;
}

#result {
    display: none !important;
}

#result.active {
    display: block !important;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Intro Step */
.step-content {
    text-align: center;
    padding: 10px 20px;
}

.logo-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.5s both;
}

.logo-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 40px 60px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.logo-glass::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: left 0.6s ease;
}

.logo-glass:hover::before {
    left: 100%;
}

.logo-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.logo-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.company-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
    animation: logoFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.logo-glass:hover .company-logo {
    transform: scale(1.03);
    filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.3));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    25% {
        transform: translateY(-10px) rotateY(5deg);
    }
    50% {
        transform: translateY(-5px) rotateY(0deg);
    }
    75% {
        transform: translateY(-10px) rotateY(-5deg);
    }
}


.title-animated {
    font-family: 'Flow', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
    padding-bottom: 10px;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.subtitle-animated {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s both;
}

/* UTP Container */
.utp-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
    animation: fadeInUp 1s ease 0.4s both;
}

.utp-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.utp-item:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.utp-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.utp-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
}

/* Trust Container */
.trust-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    animation: fadeInUp 1s ease 0.5s both;
}

.trust-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Start Button */
.btn-start {
    position: relative;
    padding: 20px 60px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
}

.btn-start:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
}

.btn-start:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 10px 60px rgba(102, 126, 234, 0.8);
    }
}

/* Fixed Question Header */
.question-header-fixed {
    position: sticky;
    top: 0;
    z-index: 100;
    /* background: rgba(15, 15, 25, 0.95); */
    backdrop-filter: blur(10px);
    padding: 20px 0 15px 0;
    margin: -20px 0 20px 0;
    /* border-bottom: 1px solid rgba(102, 126, 234, 0.2); */
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.step-number {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeIn 0.5s ease;
}

/* Question */
.question-title {
    font-family: 'Flow', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 0;
    margin-top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 0.6s ease;
    padding-bottom:5px;
}

.question-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-primary);
    margin-bottom: 50px;
    line-height: 1.6;
    animation: slideInLeft 0.6s ease 0.2s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Answers */
.answers-container {
    display: grid;
    gap: 18px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.answer-card {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 18px 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    animation: slideInUp 0.6s ease both;
}

.answer-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.answer-card:hover::after {
    width: 300px;
    height: 300px;
}

.answer-card:nth-child(1) { animation-delay: 0.1s; }
.answer-card:nth-child(2) { animation-delay: 0.2s; }
.answer-card:nth-child(3) { animation-delay: 0.3s; }
.answer-card:nth-child(4) { animation-delay: 0.4s; }
.answer-card:nth-child(5) { animation-delay: 0.5s; }

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

.answer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.answer-card:hover::before {
    left: 100%;
}

.answer-card:hover {
    transform: translateX(10px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.answer-card.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: #667eea;
    transform: translateX(15px) scale(1.05);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
}

.answer-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: bounce 2s infinite;
}

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

.answer-card.selected .answer-icon {
    animation: spin 0.5s ease;
}

@keyframes spin {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg) scale(1.2);
    }
}

.answer-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-primary);
}


/* Results */
#result {
    position: relative;
    z-index: 3;
    width: 100%;
}

.result-container {
    text-align: center;
    padding: 40px 20px 80px;
    animation: fadeInScale 0.8s ease;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    width: 100%;
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    animation: celebrate 1s ease infinite;
    display: inline-block;
}

@keyframes celebrate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    75% {
        transform: scale(1.2) rotate(10deg);
    }
}

.result-title {
    font-family: 'Flow', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.result-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.result-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    animation: slideInUp 0.6s ease both;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.result-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.result-score {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.result-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.result-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 1s ease;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.recommendations {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: left;
    animation: slideInUp 0.6s ease 0.3s both;
}

.recommendations h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recommendation-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease both;
}

.recommendation-item:last-child {
    border-bottom: none;
}

.recommendation-item::before {
    content: '→';
    color: #667eea;
    font-size: 1.5rem;
    margin-right: 15px;
    display: inline-block;
    animation: slideRight 1s ease infinite;
}

@keyframes slideRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

.btn-restart {
    padding: 18px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--secondary-gradient);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(245, 87, 108, 0.4);
    animation: fadeIn 0.5s ease 0.5s both;
}

.btn-restart:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(245, 87, 108, 0.6);
}

/* Urgency Slider */
.urgency-slider-container {
    margin: 60px 0;
    padding: 60px 40px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    position: relative;
}

.urgency-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 80px 0 100px;
    cursor: pointer;
}

.urgency-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.urgency-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    cursor: grab;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.urgency-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

.handle-glow {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.urgency-labels {
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.urgency-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
    transform: scale(0.9);
}

.urgency-label.active {
    opacity: 1;
    transform: scale(1.1);
}

.urgency-label.active .label-icon {
    animation: bounce 0.5s ease;
}

.label-icon {
    font-size: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.label-text {
    font-size: 0.85rem;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
}

.urgency-value-display {
    text-align: center;
    margin-top: 40px;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    min-height: 30px;
}

.urgency-range {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.btn-continue {
    margin: 30px auto 0;
    padding: 18px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    display: block;
}

.btn-continue:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
}

/* Contacts Form */
.contacts-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-input {
    width: 100%;
    padding: 18px 25px;
    font-size: 1rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-input.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    animation: shake 0.5s ease;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.checkbox-group.error {
    animation: shake 0.5s ease;
}

.checkbox-group.error .checkbox-label {
    color: #ff4444;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
}

/* New Result Screen */
.results-section {
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    font-family: 'Flow', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.main-problem {
    /* background: var(--card-bg); */
    backdrop-filter: blur(10px);
    /* border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0; */
    text-align: center;
}

.problem-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.problem-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 600;
}

.sphere-indicators {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(102, 126, 234, 0.3);
    text-align: left;
}

.sphere-indicators ul {
    padding-left: 20px;
    margin: 0;
    margin-block-start: 0.3em;
    margin-block-end: 0.3em;
}

.sphere-indicators li {
    margin: 0;
    line-height: 1;
    margin-block-start: 0;
    margin-block-end: 0;
}

.sphere-text-content {
    color: var(--text-primary);
    line-height: 1;
    font-size: 1rem;
    /* padding: 15px; */
    /* background: rgba(255, 255, 255, 0.05); */
    /* border-radius: 15px; */
    /* border-left: 4px solid #667eea; */
    margin-top: 15px;
}

.sphere-text-content p {
    line-height: 1.6;
    margin-block-start: 1em;
    margin-block-end: 1em;
    font-size: 1rem;
}

.sphere-text-content p strong {
    font-size: 1.3rem;
    line-height: 1.5;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5em;
}

.sphere-text-content ul,
.sphere-text-content ol {
    margin: 0;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-left: 20px;
    padding-inline-start: 1em;
}

.sphere-text-content li {
    margin: 0.5em 0;
    line-height: 1.6;
    font-size: 1rem;
    padding-left: 0.5em;
}

.sphere-text-content h2,
.sphere-text-content h3,
.sphere-text-content h4 {
    margin: 12px 0 8px 0;
    line-height: 1.4;
}

.sphere-text-content h2 {
    font-size: 1.3rem;
}

.sphere-text-content h3 {
    font-size: 1.2rem;
}

.sphere-text-content h4 {
    font-size: 1.1rem;
}

.sphere-text-content strong {
    color: #667eea;
    font-weight: 600;
}

.sphere-text-content em {
    color: var(--text-secondary);
    font-style: italic;
}

#sphereNameDynamic {
    color: #667eea;
    font-weight: bold;
    text-transform: lowercase;
}

.telegram-subscribe-block {
    margin: 40px 0;
    text-align: center;
}

.telegram-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 10px;
    margin-bottom: 10px;
}

.telegram-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.diagnostic-offer {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    text-align: left;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.diagnostic-offer h2.result-title {
    text-align: center;
    margin-bottom: 20px;
}

.diagnostic-button-wrapper {
    text-align: center;
    margin-top: 30px;
}

.offer-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.offer-list li {
    padding: 15px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-primary);
    line-height: 1.6;
}

.offer-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.price-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.places {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-cta {
    margin-top: 30px;
    padding: 20px 60px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: var(--success-gradient);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(67, 233, 123, 0.4);
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(67, 233, 123, 0.6);
}

.diagnostic-form-wrapper {
    margin-top: 30px;
}

.diagnostic-success-message {
    animation: fadeInScale 0.5s ease;
}

.diagnostic-success-message p {
    margin: 15px 0;
    line-height: 1.5;
}

.diagnostic-success-message h3 {
    font-family: 'Flow', sans-serif;
    font-weight: bold;
}

/* Result sections */
.result-offer-section {
    margin: 60px 0;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contacts-form-section {
    margin: 60px 0;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Balance Map Visualization */
#step8 {
    max-width: 100% !important;
    margin: 0 -20px !important;
    padding: 0 !important;
    width: calc(100% + 40px) !important;
}

#step8 .question-title {
    text-align: center;
    margin: 20px 0;
    padding: 0 20px;
    width: 100%;
}

#step8 .balance-visualization,
#step8 .balance-chart,
#step8 .balance-svg {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

.balance-visualization {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    height: 100%;
    /* min-height: 70vh; */
}

.balance-chart {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    min-height: 500px;
    position: relative;
    margin: 0;
    padding: 0;
}

.balance-svg {
    width: 100%;
    height: 100%;
}

.balance-percentage {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.scroll-indicator {
    text-align: center;
    margin: 30px 0;
    margin-top: 0;
    padding: 20px 0;
    padding-top: 0;
}

.scroll-arrow {
    font-size: 2.5rem;
    color: #667eea;
    animation: blinkArrow 1.5s ease-in-out infinite, bounceArrow 2s ease-in-out infinite;
    display: inline-block;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 0 0 40px rgba(102, 126, 234, 0.4);
}

@keyframes blinkArrow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

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

.balance-info {
    margin-top: 30px;
    text-align: center;
    padding: 0 20px;
}

.balance-lowest-text,
.balance-growth-text,
.balance-tools-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.balance-lowest-text {
    font-weight: 400;
    color: #fff;
}

.balance-lowest-text span{
    font-weight: 600;
    color: #ff6b6b;
}

.balance-growth-text {
    font-weight: 500;
    margin-bottom: 20px;
}

.balance-tools-text {
    margin-top: 25px;
    margin-bottom: 20px;
    font-weight: 500;
}

.balance-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.tools-list {
    margin: 40px 0;
    padding: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: left;
}

.tools-items {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.tools-items li {
    padding: 15px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-primary);
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tools-items li:last-child {
    border-bottom: none;
}

.tools-items li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.telegram-subscribe-section {
    text-align: center;
    margin-top: 40px;
}

.btn-telegram {
    display: inline-block;
    position: relative;
    padding: 20px 60px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 136, 204, 0.4);
    animation: pulse 2s infinite;
}

.btn-telegram:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 136, 204, 0.6);
}

.btn-telegram .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

.individual-offer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.btn-cta-secondary {
    margin-top: 20px;
    padding: 18px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.btn-cta-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-container {
        margin-top: 40px;
    }
    
    .logo-glass {
        padding: 30px 40px;
    }
    
    .company-logo {
        max-width: 200px;
    }
    
    .answer-card {
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .answer-icon {
        font-size: 2rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .utp-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trust-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contacts-form {
        padding: 30px 20px;
    }
    
    .balance-chart {
        width: 100%;
        height: 60vh;
        min-height: 400px;
    }
    
    .tools-list {
        padding: 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes ripple {
    from {
        width: 10px;
        height: 10px;
        opacity: 1;
    }
    to {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Additional glow effects */
.quiz-step.active .question-title {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(102, 126, 234, 0.8), 0 0 40px rgba(118, 75, 162, 0.5);
    }
}

/* Admin Navigation Panel */
.admin-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 15px;
    z-index: 10000;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
}

.admin-nav-header {
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.5);
    padding-bottom: 8px;
}

.admin-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.admin-nav-btn {
    background: rgba(102, 126, 234, 0.3);
    border: 1px solid #667eea;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    min-width: 40px;
}

.admin-nav-btn:hover {
    background: rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.admin-nav-btn.active {
    background: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
}

@media (max-width: 768px) {
    .admin-nav {
        top: 10px;
        right: 10px;
        max-width: 250px;
        padding: 10px;
    }
    
    .admin-nav-btn {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 35px;
    }
}

/* Loading Screen */
.loading-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
    overflow: hidden;
}

/* Мерцающий фон */
.loading-bg-shimmer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.15) 0%,
        rgba(118, 75, 162, 0.15) 25%,
        rgba(67, 233, 123, 0.1) 50%,
        rgba(102, 126, 234, 0.15) 75%,
        rgba(118, 75, 162, 0.15) 100%
    );
    background-size: 400% 400%;
    animation: shimmerBg 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes shimmerBg {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.8;
    }
    50% {
        background-position: 100% 50%;
        opacity: 1;
    }
}

/* Летающие круги */
.loading-circle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
    filter: blur(1px);
    margin: 0;
    padding: 0;
}

.circle-large {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, rgba(102, 126, 234, 0.1) 70%, transparent 100%);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.circle-medium {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.4) 0%, rgba(118, 75, 162, 0.1) 70%, transparent 100%);
    box-shadow: 0 0 20px rgba(118, 75, 162, 0.5);
}

.circle-small {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(67, 233, 123, 0.4) 0%, rgba(67, 233, 123, 0.1) 70%, transparent 100%);
    box-shadow: 0 0 15px rgba(67, 233, 123, 0.5);
}

.circle-1 {
    top: 10%;
    left: 0%;
    animation: flyCircle1 12s ease-in-out infinite;
}

.circle-2 {
    top: 60%;
    left: 0%;
    animation: flyCircle2 10s ease-in-out infinite;
    animation-delay: 1s;
}

.circle-3 {
    top: 30%;
    right: 0%;
    animation: flyCircle3 14s ease-in-out infinite;
    animation-delay: 2s;
}

.circle-4 {
    bottom: 0%;
    left: 50%;
    animation: flyCircle4 11s ease-in-out infinite;
    animation-delay: 0.5s;
}

.circle-5 {
    top: 70%;
    right: 0%;
    animation: flyCircle5 13s ease-in-out infinite;
    animation-delay: 1.5s;
}

.circle-6 {
    top: 0%;
    left: 60%;
    animation: flyCircle6 9s ease-in-out infinite;
    animation-delay: 2.5s;
}

.circle-7 {
    bottom: 0%;
    right: 30%;
    animation: flyCircle7 15s ease-in-out infinite;
    animation-delay: 0.8s;
}

.circle-8 {
    top: 50%;
    left: 0%;
    animation: flyCircle8 12s ease-in-out infinite;
    animation-delay: 1.8s;
}

@keyframes flyCircle1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, -60px) scale(1.2); }
    50% { transform: translate(-40px, -100px) scale(0.8); }
    75% { transform: translate(60px, -40px) scale(1.1); }
}

@keyframes flyCircle2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-60px, 80px) scale(1.3); }
    50% { transform: translate(100px, 50px) scale(0.7); }
    75% { transform: translate(-30px, -70px) scale(1.1); }
}

@keyframes flyCircle3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(70px, 90px) scale(1.1); }
    50% { transform: translate(-90px, -50px) scale(0.9); }
    75% { transform: translate(50px, 30px) scale(1.2); }
}

@keyframes flyCircle4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-80px, -70px) scale(1.2); }
    50% { transform: translate(60px, 90px) scale(0.8); }
    75% { transform: translate(-50px, 40px) scale(1.1); }
}

@keyframes flyCircle5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(90px, -80px) scale(1.1); }
    50% { transform: translate(-70px, 60px) scale(0.9); }
    75% { transform: translate(40px, -50px) scale(1.3); }
}

@keyframes flyCircle6 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-50px, 70px) scale(1.2); }
    50% { transform: translate(80px, -60px) scale(0.8); }
    75% { transform: translate(-40px, 50px) scale(1.1); }
}

@keyframes flyCircle7 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, 80px) scale(1.1); }
    50% { transform: translate(-60px, -90px) scale(0.9); }
    75% { transform: translate(70px, -40px) scale(1.2); }
}

@keyframes flyCircle8 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-70px, -80px) scale(1.3); }
    50% { transform: translate(90px, 70px) scale(0.7); }
    75% { transform: translate(-50px, 60px) scale(1.1); }
}

.loading-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5), 0 0 40px rgba(102, 126, 234, 0.3);
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(102, 126, 234, 0.6);
    animation: spin 0.8s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-family: 'Flow', sans-serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.6), 0 0 40px rgba(102, 126, 234, 0.3);
    position: relative;
}

.loading-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    animation: shimmer 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.loading-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    animation: fadeInOut 2s ease-in-out infinite;
    margin-bottom: 20px;
}

.loading-wait {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.loading-countdown {
    font-family: 'Flow', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    margin-top: 20px;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    animation: countdownPulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

@media (max-width: 768px) {
    .loading-title {
        font-size: 1.5rem;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .main-problem-diagnostic {
        padding: 20px !important;
    }
    
    .diagnostic-offer {
        border: 0 !important;
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .pdf-form-unified-block {
        padding: 0 !important;
    }
    
    .admin-nav-btn {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 35px;
    }
}

/* Cookie уведомление */
.cookie-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-notification.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: white;
}

.cookie-link {
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.3s;
}

.cookie-link:hover {
    opacity: 0.8;
}

.cookie-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Raleway', sans-serif;
    white-space: nowrap;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Модальное окно политики конфиденциальности */
.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    overflow-y: auto;
    padding: 20px;
}

.privacy-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.privacy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.privacy-modal-title {
    font-family: 'Flow', sans-serif;
    font-size: 2rem;
    color: #667eea;
    margin: 0;
}

.privacy-modal-close {
    background: none;
    border: none;
    font-size: 40px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.privacy-modal-close:hover {
    background: #f0f0f0;
    color: #667eea;
}

.privacy-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    color: #000;
    line-height: 1.8;
}

.privacy-modal-body h3 {
    font-family: 'Flow', sans-serif;
    color: #667eea;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.privacy-modal-body h3:first-child {
    margin-top: 0;
}

.privacy-modal-body p {
    margin-bottom: 15px;
}

.privacy-modal-body ul,
.privacy-modal-body ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.privacy-modal-body li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .privacy-modal-content {
        max-height: 95vh;
        margin: 10px;
    }
    
    .privacy-modal-header {
        padding: 20px;
    }
    
    .privacy-modal-title {
        font-size: 1.5rem;
    }
    
    .privacy-modal-body {
        padding: 20px;
    }
}

/* Футер */
.site-footer {
    margin-top: 60px;
    padding: 30px 20px;
    background: rgba(102, 126, 234, 0.05);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.footer-left {
    flex: 0 0 auto;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
}

.footer-center {
    flex: 1 1 auto;
    text-align: center;
    min-width: 200px;
}

.footer-disclaimer {
    color: rgba(102, 126, 234, 0.8);
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.5;
}

.footer-right {
    flex: 0 0 auto;
}

.footer-privacy-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.footer-privacy-link:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
    }
    
    .footer-disclaimer {
        font-size: 14px;
    }
}

