html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
}

    body.no-scroll {
        overflow: hidden;
    }

.quiz-container {
    height: 80vh;
}

#answers button {
    margin: 10px;
    min-width: 200px;
}





.hero {
    position: fixed;
    inset: 0;
    background: url('/images/kitchen.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* мягкое затемнение */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(0px);
    transition: all 0.4s ease;
}

.hero.blurred .hero-overlay {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.55);
}

/* контент */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 590px;
    text-align: center;
    color: #fff;
    padding: 20px;
}

/* заголовок */
.hero h1 {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
}

/* текст */
.hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
}

/* кнопка */
.btn-main {
    background: #ffffff;
    color: #111;
    border: none;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

    /* hover — аккуратный */
    .btn-main:hover {
        background: #f2f2f2;
    }

/* лёгкая анимация появления */
.hero-content {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* скрыт изначально */
.quiz {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

    /* когда активен */
    .quiz.active {
        opacity: 1;
        pointer-events: all;
    }

/* карточка */
.quiz-card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: pop 0.25s ease;
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* блюр фона */
.hero.blurred {
    backdrop-filter: blur(8px);
}

    .hero.blurred .hero-content {
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

/* кнопки ответов */
.answer-btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 16px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 10px;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .answer-btn:hover {
        background: #f7f7f7;
        border-color: #d0d0d0;
    }

    .answer-btn.selected {
        background: #4D71F0;
        color: white;
        border-color: #4D71F0;
    }