/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== ПОДКЛЮЧЕНИЕ ШРИФТОВ A1 ===== */
@font-face {
    font-family: 'A1 Serif';
    src: local('A1 Serif Bold'), local('A1Serif-Bold'),
         url('/static/fonts/A1Serif-Bold.woff2') format('woff2'),
         url('/static/fonts/A1Serif-Bold.woff') format('woff'),
         url('/static/fonts/A1Serif-Bold.ttf') format('truetype');
    font-weight: 700; /* bold */
    font-style: normal;
    font-display: swap; /* Улучшает восприятие загрузки */
}

@font-face {
    font-family: 'A1 Sans';
    src: local('A1 Sans Bold'), local('A1Sans-Bold'),
         url('/static/fonts/A1Sans-Bold.woff2') format('woff2'),
         url('/static/fonts/A1Sans-Bold.woff') format('woff'),
         url('/static/fonts/A1Sans-Bold.ttf') format('truetype');
    font-weight: 700; /* bold */
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'A1 Serif', 'Playfair Display', serif;
    background: #FFFFFF;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.quiz-container {
    position: relative;
    width: 100%;
    
    height: 100vh;
    
    margin: 0 auto;
    background: #FFFFFF;
    overflow: hidden;
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ СЛАЙДОВ ===== */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: #FFFFFF;
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
}

/* ===== ФОНОВОЕ ИЗОБРАЖЕНИЕ (БЕЗ BLUR) ===== */
.slide::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: url('/static/images/image-12.png') center/cover no-repeat;
    opacity: 1;
    z-index: 1;
}

/* Запасной фон если картинка не загрузилась */
.slide {
    background: linear-gradient(135deg, #0a0a2e, #1a1a4e);
}

.slide-content {
    position: relative;
    z-index: 2;
}

/* ===== ЛОГОТИПЫ (ОРИГИНАЛЬНЫЕ РАЗМЕРЫ) ===== */
.logo-left {
    position: absolute;
    width: 130px;
    height: 155px;
    left: 84px;
    top: 80px;
    background: url('/static/images/image-15.png') center/contain no-repeat;
    z-index: 3;
}

.logo-right {
    position: absolute;
    width: 138px;
    height: 143px;
    right: 84px;
    top: 76px;
    background: url('/static/images/image-16.png') center/contain no-repeat;
    z-index: 3;
}

.logo-left-small {
    width: 80px;
    height: 95px;
    background: url('/static/images/image-15.png') center/contain no-repeat;
}

.logo-right-small {
    width: 80px;
    height: 83px;
    background: url('/static/images/image-16.png') center/contain no-repeat;
}

/* ===== ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ ===== */
.decor-8 {
    position: absolute;
    right: 84px;
    bottom: 200px;
    width: 148px;
    height: 195px;
    background: url('/static/images/image-8.png') center/contain no-repeat;
    transform: rotate(21.69deg);
    z-index: 3;
}

.decor-10 {
    position: absolute;
    left: 107px;
    bottom: 80px;
    width: 114px;
    height: 139px;
    background: url('/static/images/image-10.png') center/contain no-repeat;
    transform: rotate(-4.32deg);
    z-index: 3;
}

.decor-11 {
    position: absolute;
    right: 84px;
    top: 40%;
    width: 93px;
    height: 173px;
    background: url('/static/images/image-11.png') center/contain no-repeat;
    transform: rotate(19.52deg);
    z-index: 3;
}

.decor-5 {
    position: absolute;
    left: 106px;
    bottom: 45%;
    width: 928px;
    height: 460px;
    background: url('/static/images/image-5.png') center/contain no-repeat;
    z-index: 3;
}

.decor-9 {
    position: absolute;
    right: 84px;
    top: 35%;
    width: 95px;
    height: 169px;
    background: url('/static/images/image-9.png') center/contain no-repeat;
    transform: rotate(-13.68deg);
    z-index: 3;
}

.rules-decor-11 {
    position: absolute;
    left: 175px;
    top: 253px;
    width: 62px;
    height: 115px;
    background: url('/static/images/image-11.png') center/contain no-repeat;
    transform: rotate(19.52deg);
    z-index: 3;
}

.result-image {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translateX(-50%);
    width: 659px;
    height: 659px;
    background: url('/static/images/image-28.png') center/contain no-repeat;
    z-index: 3;
}

/* ===== СЛАЙД 1: ЗАСТАВКА ===== */
.start-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
}

.start-title {
    font-family: 'A1 Serif', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 64px;
    color: #FFFFFF;
    margin-bottom: 40px;
}

.btn-start {
    padding: 30px 80px;
    background: #034DEB;
    color: #FFFFFF;
    font-family: 'A1 Sans', 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 56px;
    border: none;
    border-radius: 97px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s;
}

.btn-start:hover {
    background: #023bb5;
    transform: scale(1.05);
}

/* ===== СЛАЙД 2: ПРАВИЛА ===== */
.rules-header {
    position: absolute;
    top: 249px;
    left: 94px;
    z-index: 3;
}

.rules-question {
    font-size: 97px;
    color: #FFFFFF;
    display: block;
    line-height: 1;
}

.rules-make {
    font-size: 184px;
    color: #FFFFFF;
    display: block;
    line-height: 1;
    margin-top: -10px;
}

.rules-mark {
    font-size: 289px;
    color: #FFFFFF;
    position: absolute;
    right: -120px;
    top: -20px;
}

.rules-list {
    position: absolute;
    top: 728px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    z-index: 3;
}

.rule-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 83px;
    padding: 20px 30px;
}

.rule-number {
    min-width: 155px;
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #04002B;
    border-radius: 50%;
    font-family: 'A1 Serif', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 83px;
    color: #FFFFFF;
    margin-right: 30px;
    flex-shrink: 0;
}

.rule-text-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rule-text {
    font-family: 'A1 Sans', 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 38px;
    color: #FFFFFF;
    line-height: 1.2;
}

.rule-sub {
    font-family: 'A1 Sans', 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #FFFFFF;
    opacity: 0.8;
    line-height: 1.2;
}

.btn-rules {
    position: absolute;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    padding: 30px 60px;
    background: #034DEB;
    color: #FFFFFF;
    font-family: 'A1 Sans', 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 56px;
    border: none;
    border-radius: 97px;
    cursor: pointer;
    z-index: 3;
}

/* ===== СЛАЙД ВОПРОСА ===== */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px 20px 20px;
    position: relative;
    z-index: 3;
}

.question-number {
    font-family: 'A1 Serif', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 54px;
    color: #FFFFFF;
}

.question-text {
    font-family: 'A1 Serif', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 62px;
    color: #FFFFFF;
    text-align: right;
    margin: 30px 40px 50px 40px;
    padding-right: 20px;
    position: relative;
    z-index: 3;
    line-height: 1.2;
}

.answers-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px 20px 20px;
    position: relative;
    z-index: 3;
}

.answer-item {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 87px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    /* Обеспечиваем кликабельность */
    pointer-events: auto;
    z-index: 5;
}

.answer-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.answer-item:active {
    transform: scale(0.98);
}

.answer-letter {
    min-width: 162px;
    height: 162px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #04002B;
    border-radius: 50%;
    font-family: 'A1 Serif', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 87px;
    color: #FFFFFF;
    margin-right: 20px;
    flex-shrink: 0;
}

.answer-text {
    font-family: 'A1 Sans', 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 56px;
    color: #000000;
    flex: 1;
    line-height: 1.2;
}

/* ===== ПРОГРЕСС-КУБИКИ ===== */
.progress-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 90%;
    max-width: 898px;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
    margin: 0 auto;
}

.progress-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 29px;
    font-family: 'A1 Serif', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 31px;
    color: #04002B;
    transition: all 0.3s;
    min-height: 100px;
}

.progress-item.active {
    background: #04002B;
    color: #FFFFFF;
}

.progress-item.completed {
    background: #48FF1F;
    color: #FFFFFF;
}

/* ===== ОВЕРЛЕИ ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay.active {
    display: flex;
}

.overlay-content {
    text-align: center;
    max-width: 858px;
    width: 90%;
}

.overlay-icon {
    font-size: 120px;
    margin-bottom: 20px;
}

.overlay-icon.wrong {
    color: #E90B0B;
}

.overlay-icon.correct {
    color: #48FF1F;
}

.overlay-title {
    font-family: 'A1 Serif', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 83px;
    color: #FFFFFF;
}

.overlay-result {
    font-family: 'A1 Serif', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 133px;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.overlay-result.wrong {
    color: #E90B0B;
}

.overlay-result.correct {
    color: #48FF1F;
}

.overlay-btn {
    padding: 25px 60px;
    background: #034DEB;
    color: #FFFFFF;
    font-family: 'A1 Sans', 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 56px;
    border: none;
    border-radius: 97px;
    cursor: pointer;
    transition: all 0.3s;
}

.overlay-btn:hover {
    background: #023bb5;
    transform: scale(1.05);
}

/* ===== СЛАЙД РЕЗУЛЬТАТ ===== */
.result-title {
    font-family: 'A1 Serif', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 95px;
    color: #FFFFFF;
    text-align: right;
    margin-top: 180px;
    padding-right: 40px;
    position: relative;
    z-index: 3;
}

.result-subtitle {
    font-family: 'A1 Serif', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 142px;
    color: #FFFFFF;
    text-align: right;
    margin-top: -20px;
    padding-right: 40px;
    position: relative;
    z-index: 3;
}

.result-score {
    font-family: 'A1 Serif', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 206px;
    color: #FFFFFF;
    text-align: right;
    margin-top: 40px;
    padding-right: 40px;
    position: relative;
    z-index: 3;
}

.result-footer {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
}

.result-footer span:first-child {
    font-family: 'A1 Serif', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 75px;
    color: #FFFFFF;
    display: block;
}

.result-promo {
    font-family: 'A1 Serif', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 137px;
    color: #FFFFFF;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 300px) {
    .logo-left {
        width: 50px;
        height: 60px;
        left: 20px;
        top: 20px;
    }
    
    .logo-right {
        width: 50px;
        height: 52px;
        right: 20px;
        top: 20px;
    }
    
    .logo-left-small {
        width: 40px;
        height: 48px;
    }
    
    .logo-right-small {
        width: 40px;
        height: 42px;
    }
    
    .question-number {
        font-size: 28px;
    }
    
    .question-text {
        font-size: 30px;
        margin: 15px 15px 25px 15px;
        padding-right: 10px;
        text-align: left;
    }
    
    .answer-item {
        border-radius: 40px;
        padding: 8px 12px;
    }
    
    .answer-letter {
        min-width: 60px;
        height: 60px;
        font-size: 32px;
        margin-right: 12px;
    }
    
    .answer-text {
        font-size: 22px;
    }
    
    .progress-item {
        min-height: 40px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .progress-container {
        bottom: 20px;
    }
    
    .progress-grid {
        gap: 8px;
    }
    
    .btn-start, .btn-rules {
        font-size: 28px;
        padding: 15px 40px;
    }
    
    .start-title {
        font-size: 36px;
    }
    
    .rules-header {
        top: 80px;
        left: 20px;
    }
    
    .rules-question {
        font-size: 40px;
    }
    
    .rules-make {
        font-size: 70px;
    }
    
    .rules-mark {
        font-size: 100px;
        right: -40px;
        top: 0px;
    }
    
    .rules-list {
        top: 280px;
        width: 95%;
    }
    
    .rule-item {
        padding: 12px 16px;
        border-radius: 40px;
        margin-bottom: 15px;
    }
    
    .rule-number {
        min-width: 60px;
        height: 60px;
        font-size: 32px;
        margin-right: 15px;
    }
    
    .rule-text {
        font-size: 18px;
    }
    
    .rule-sub {
        font-size: 14px;
    }
    
    .overlay-title {
        font-size: 40px;
    }
    
    .overlay-result {
        font-size: 60px;
    }
    
    .overlay-btn {
        font-size: 28px;
        padding: 15px 30px;
    }
    
    .overlay-icon {
        font-size: 60px;
    }
    
    .result-title {
        font-size: 40px;
        margin-top: 80px;
        padding-right: 20px;
    }
    
    .result-subtitle {
        font-size: 60px;
        padding-right: 20px;
    }
    
    .result-score {
        font-size: 100px;
        padding-right: 20px;
    }
    
    .result-footer span:first-child {
        font-size: 30px;
    }
    
    .result-promo {
        font-size: 50px;
    }
    
    .decor-8, .decor-10, .decor-11, .decor-5, .decor-9,
    .rules-decor-11, .result-image {
        display: none;
    }
}