/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-yellow: #FFD633;
    --primary-pink: #E91E63;
    --dark-bg: #1a1a1a;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --gray-bg: #f5f5f5;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Roboto', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2a2a 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    padding: 60px 0;
}

.hero-video-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.video-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.sound-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.sound-icon:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.sound-icon svg {
    width: 24px;
    height: 24px;
}

.sound-icon.muted .sound-off {
    display: block;
}

.sound-icon:not(.muted) .sound-off {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo {
    margin-bottom: 40px;
}

.yandex-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 32px;
    font-weight: 700;
}

.logo-text {
    color: var(--white);
}

.logo-eda {
    color: var(--primary-yellow);
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 4px 12px;
    border-radius: 8px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    box-shadow: 0 4px 20px rgba(255, 214, 51, 0.3);
}

.btn-primary:hover {
    background: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 214, 51, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    border-color: var(--text-dark);
    background: rgba(0, 0, 0, 0.05);
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-dark);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: var(--gray-bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.benefit-item {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.benefit-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.benefit-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Quiz Modal */
.quiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.quiz-modal.active {
    display: flex;
}

.quiz-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

@supports (backdrop-filter: blur(5px)) {
    .quiz-overlay {
        background: rgba(0, 0, 0, 0.7);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }
}

.quiz-container {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.quiz-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.quiz-close:hover {
    background: var(--gray-bg);
    color: var(--text-dark);
}

/* Progress Bar */
.quiz-progress {
    margin-bottom: 32px;
}

.progress-text {
    text-align: center;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: var(--gray-bg);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-yellow);
    width: 33.33%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* Quiz Content */
.quiz-content {
    min-height: 300px;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.quiz-step.active {
    display: block;
}

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

.quiz-question {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
    line-height: 1.3;
}

.quiz-hint {
    background: #fff8e1;
    border-left: 4px solid var(--primary-yellow);
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-option {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 24px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-yellow);
    transition: width 0.3s ease;
    opacity: 0.1;
    z-index: 0;
}

.quiz-option:hover::before {
    width: 100%;
}

.quiz-option:hover {
    border-color: var(--primary-yellow);
    transform: translateX(5px);
}

.quiz-option.selected {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--dark-bg);
}

.option-text {
    position: relative;
    z-index: 1;
}

.option-flag {
    margin-right: 12px;
    flex-shrink: 0;
    width: 32px;
    height: 24px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.option-flag.flag-globe {
    width: auto;
    height: auto;
    font-size: 28px;
    box-shadow: none;
    border-radius: 0;
}

.disqualify-flag {
    display: inline-block;
    width: 24px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    margin-right: 8px;
    vertical-align: middle;
}

.disqualification-reasons ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    display: inline-block;
    margin: 0 auto;
}

.disqualification-reasons li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
}

/* Result Screens */
#stepSuccess,
#stepFail {
    text-align: center;
}

#stepSuccess .btn,
#stepFail .btn {
    display: inline-block;
    margin: 0 auto;
}

.result-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.result-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 32px;
    text-align: center;
}

.disqualification-reasons {
    background: var(--gray-bg);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.disqualification-reasons p {
    margin-bottom: 12px;
    font-weight: 600;
}

.disqualification-reasons ul {
    list-style: none;
    padding: 0;
}

.disqualification-reasons li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.disqualification-reasons li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--text-light);
}

/* Navigation */
.quiz-navigation {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-bg);
}

.quiz-navigation .btn {
    flex: 1;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 32px 0;
    text-align: center;
}

.footer-partner {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px 0;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Responsive Design - Mobile First */
@media (max-width: 968px) {
    body {
        background: var(--dark-bg);
    }
    
    .hero {
        min-height: 100vh;
        padding: 20px 0 40px 0;
        align-items: flex-start;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }

    .hero-video-container {
        order: 1;
    }

    .hero-content {
        order: 2;
        padding-top: 0;
        margin-top: 20px;
    }
    
    .logo {
        margin-bottom: 16px;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 20px 0 40px 0;
        align-items: flex-start;
    }
    
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-wrapper {
        padding: 0;
        gap: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quiz-container {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .quiz-question {
        font-size: 22px;
    }

    .quiz-option {
        font-size: 16px;
        padding: 16px 20px;
    }

    .btn {
        padding: 16px 28px;
        font-size: 16px;
    }

    .video-section,
    .benefits {
        padding: 60px 0;
    }

    .yandex-logo {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100vh;
        padding: 20px 0 40px 0;
        align-items: flex-start;
    }
    
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-wrapper {
        padding: 0;
        gap: 20px;
    }

    .quiz-container {
        width: 95%;
        padding: 24px 16px;
    }

    .quiz-question {
        font-size: 20px;
    }

    .benefit-item {
        padding: 28px 20px;
    }

    .hero-content {
        padding: 0;
        margin-top: 20px;
    }
    
    .logo {
        margin-top: 0;
        margin-bottom: 16px;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

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

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Accessibility */
.btn:focus,
.quiz-option:focus,
.quiz-close:focus {
    outline: 3px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .quiz-modal,
    .footer {
        display: none;
    }
}

