/* Тест «Підбір занять» (widgets/CourseQuiz): цвета сайта - синий #0047FF, текст #353339, фон блоков #EDEFF7 */
.course-quiz{
    padding: 40px 0;
}
.course-quiz .cq-box{
    background: #EDEFF7;
    border-radius: 24px;
    padding: 32px 36px;
    display: grid;
    gap: 20px;
    color: #353339;
}
.course-quiz .cq-head{
    display: grid;
    gap: 10px;
}
.course-quiz .cq-eyebrow{
    margin: 0;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #0047FF;
    font-weight: 500;
}
.course-quiz .cq-title{
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}
.course-quiz .cq-progress{
    height: 4px;
    background: #DFE2F3;
    border-radius: 2px;
    overflow: hidden;
}
.course-quiz .cq-progress span{
    display: block;
    height: 100%;
    width: 0;
    background: #0047FF;
    transition: width .3s;
}
.course-quiz .cq-step{
    display: grid;
    gap: 12px;
}
.course-quiz .cq-step[hidden]{
    display: none;
}
.course-quiz .cq-q{
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}
.course-quiz .cq-hint{
    margin: -6px 0 0;
    font-size: 14px;
    color: #6b6a72;
}
.course-quiz .cq-group{
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #6b6a72;
}
.course-quiz .cq-options{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.course-quiz .cq-option{
    font: inherit;
    font-size: 15px;
    text-align: left;
    color: #353339;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.course-quiz .cq-option:hover{
    border-color: #b9c8ff;
}
.course-quiz .cq-option.selected{
    border-color: #0047FF;
    background: #E6ECFF;
    font-weight: 500;
    position: relative;
    padding-right: 36px;
}
.course-quiz .cq-option.selected::after{
    content: '✓';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #0047FF;
    font-weight: 700;
}
.course-quiz .cq-option:focus-visible,
.course-quiz .cq-link:focus-visible{
    outline: 2px solid #0047FF;
    outline-offset: 2px;
}
.course-quiz .cq-nav,
.course-quiz .cq-actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}
.course-quiz .cq-nav .cq-next{
    margin-left: auto;
}
.course-quiz .cq-nav .cq-next:disabled{
    opacity: .45;
    cursor: default;
}
.course-quiz .cq-link{
    font: inherit;
    font-size: 15px;
    color: #0047FF;
    background: none;
    border: 0;
    padding: 6px 0;
    cursor: pointer;
}
.course-quiz .cq-cards{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.course-quiz .cq-card{
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    display: grid;
    gap: 6px;
    align-content: start;
}
.course-quiz .cq-card p{
    margin: 0;
}
.course-quiz .cq-card-title{
    font-size: 17px;
    font-weight: 600;
}
.course-quiz .cq-card-meta,
.course-quiz .cq-card-text{
    font-size: 14px;
    color: #6b6a72;
}
.course-quiz .cq-card-link{
    font-size: 14px;
    color: #0047FF;
    text-decoration: none;
    margin-top: 4px;
}
.course-quiz .cq-card-link:hover{
    text-decoration: underline;
}
.course-quiz .cq-note,
.course-quiz .cq-free{
    margin: 0;
    font-size: 14px;
    color: #6b6a72;
}
.course-quiz .cq-note[hidden]{
    display: none;
}
@media (max-width: 767px){
    .course-quiz{
        padding: 24px 0;
    }
    .course-quiz .cq-box{
        padding: 22px 16px;
        border-radius: 18px;
    }
    .course-quiz .cq-title{
        font-size: 22px;
    }
    .course-quiz .cq-q{
        font-size: 18px;
    }
    .course-quiz .cq-options{
        grid-template-columns: 1fr 1fr;
    }
    .course-quiz .cq-option{
        padding: 12px;
        font-size: 14px;
    }
}
@media (prefers-reduced-motion: reduce){
    .course-quiz .cq-progress span{
        transition: none;
    }
}

/* Переход по ссылке #pidbir-kursu: не прятать начало под шапкой и мягко подсветить тест */
.course-quiz{
    scroll-margin-top: 90px;
}
.course-quiz.cq-arrived .cq-box{
    animation: cq-arrived 1.6s ease-out 1;
}
@keyframes cq-arrived{
    0%{ box-shadow: 0 0 0 0 rgba(0, 71, 255, .45); }
    100%{ box-shadow: 0 0 0 18px rgba(0, 71, 255, 0); }
}

/* Приглашение к тесту: страницы курсов и статьи блога (CourseQuizTeaser) */
.cq-teaser{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px 28px;
    margin: 32px 0;
    padding: 24px 28px;
    border-radius: 20px;
    background: #EDEFF7;
    color: #353339;
}
.cq-teaser p{
    margin: 0;
}
.cq-teaser-text{
    display: grid;
    gap: 6px;
    min-width: 0;
}
.cq-teaser-eyebrow{
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #0047FF;
    font-weight: 500;
}
.cq-teaser-title{
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
}
.cq-teaser-sub{
    font-size: 15px;
    color: #6b6a72;
    max-width: 52ch;
}
.cq-teaser-chips{
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cq-teaser-chips span{
    display: block;
    font-size: 13px;
    white-space: nowrap;
    background: #fff;
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 6px 12px;
}
.cq-teaser-chips span.on{
    border-color: #0047FF;
    background: #E6ECFF;
    font-weight: 500;
}
.cq-teaser-chips span.on::after{
    content: ' ✓';
    color: #0047FF;
    font-weight: 700;
}
.cq-teaser .cq-teaser-button{
    white-space: nowrap;
}
/* В статье блога колонка уже - без «ответов» сбоку */
.cq-teaser-blog{
    grid-template-columns: minmax(0, 1fr) auto;
}
.cq-teaser-blog .cq-teaser-chips{
    display: none;
}
@media (max-width: 991px){
    .cq-teaser{
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .cq-teaser-chips{
        display: none;
    }
}
@media (max-width: 575px){
    .cq-teaser,
    .cq-teaser-blog{
        grid-template-columns: 1fr;
        padding: 20px 18px;
        margin: 24px 0;
    }
    .cq-teaser-title{
        font-size: 19px;
    }
    .cq-teaser .cq-teaser-button{
        justify-self: start;
    }
}
@media (prefers-reduced-motion: reduce){
    .course-quiz.cq-arrived .cq-box{
        animation: none;
    }
}

/* Методики для возраста: карточка - название и что развивает */
.course-quiz .cq-option-card{
    display: grid;
    gap: 4px;
    align-content: start;
}
.course-quiz .cq-option-title{
    font-weight: 600;
}
.course-quiz .cq-option-desc{
    font-size: 13px;
    color: #6b6a72;
    font-weight: 400;
}
/* Ссылка для тех, кто хочет заниматься в центре */
.course-quiz .cq-offline{
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #DFE2F3;
    font-size: 14px;
    color: #6b6a72;
}
.course-quiz .cq-offline a{
    color: #0047FF;
}
@media (max-width: 767px){
    .course-quiz .cq-options.cq-options-cards{
        grid-template-columns: 1fr;
    }
}
