/* ==========================================
   ПСИХОЛОГІЧНА ПІДТРИМКА
========================================== */

.psychology-base{
    background:#f7f9fc;
    color:#24324a;
    font-family:'Segoe UI',sans-serif;
}

/* ================= КОНТЕЙНЕР ================= */

.kb-container{
    width:min(1200px,92%);
    margin:0 auto;
}

/* ================= HERO ================= */

.kb-hero{
        margin-top:80px;   /* равно высоте шапки */
    background:linear-gradient(135deg,#2a4f78,#5a9bb8);
    color:#fff;
    text-align:center;
    padding:45px 0;
}

.kb-hero h1{
    font-size:42px;
    margin:18px 0 15px;
    font-weight:700;
}

.kb-hero p{
    color:#fff;
    max-width:720px;
    margin:auto;
    font-size:17px;
    line-height:1.6;
    opacity:.95;
}



/* ================= КНОПКИ ================= */

.kb-back-btn,
.kb-btn{

    display:inline-block;
    text-decoration:none;

    padding:12px 26px;
    margin-top:22px;

    background:#fff;
    color:#2f5d8c;

    border-radius:30px;

    font-weight:600;

    transition:.3s;

    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

.kb-back-btn{
    margin-top:0;
}

.kb-back-btn:hover,
.kb-btn:hover{

    transform:translateY(-3px);

    background:#eef6fb;
}

.back-link{
    display:inline-block;
    margin-bottom:35px;

    color:#08a58b;
    text-decoration:none;
    font-size:18px;
    font-weight:600;

    transition:color .2s ease, transform .2s ease;
}

.back-link:hover{
    color:#2662d1;
    transform:translateX(-3px);
    text-decoration:underline;
    text-underline-offset:4px;
}

/* ================= СЕКЦИИ ================= */

.kb-section{
    padding:45px 0;
}

.kb-section-light{
    background:#eef4f8;
}

/* ================= ЗАГОЛОВКИ ================= */

.kb-section-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

    flex-wrap:wrap;

    gap:15px;
}

.kb-section-header h2{

    font-size:30px;

    color:#23456a;

    margin:0;
}

.kb-back-top{

    color:#2f5d8c;

    text-decoration:none;

    font-weight:600;
}

/* ================= КАТЕГОРИИ ================= */

.kb-categories{
    padding:35px 0;
}

.kb-category-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

    gap:18px;
}

.kb-category-card{

    background:#fff;

    border-radius:16px;

    padding:22px;

    text-align:center;

    text-decoration:none;

    color:inherit;

    transition:.3s;

    box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.kb-category-card:hover{

    transform:translateY(-5px);

    box-shadow:0 12px 24px rgba(0,0,0,.12);
}

.kb-category-card span{

    font-size:34px;
}

.kb-category-card h3{

    margin:12px 0 6px;

    color:#23456a;

    font-size:20px;
}

.kb-category-card p{

    margin:0;

    color:#66758b;

    line-height:1.5;

    font-size:15px;
}

/* ================= СЕТКА ================= */

.kb-materials-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:20px;
}

/* ================= КАРТОЧКИ ================= */

.kb-material-card{

    background:#fff;

    border-radius:16px;

    padding:22px;

    display:flex;

    flex-direction:column;

    transition:.3s;

    box-shadow:0 6px 18px rgba(0,0,0,.08);

    cursor:pointer;
}


.kb-open{
    display:inline-block;
    margin-top:16px;
    color:#2f5d8c;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.kb-open:hover{
    color:#1f3d63;
    text-decoration:underline;
}

.kb-material-card:hover{

    transform:translateY(-5px);

    box-shadow:0 12px 24px rgba(0,0,0,.12);
}

.kb-material-card h3{

    margin:12px 0 10px;

    font-size:21px;

    color:#23456a;
}

.kb-material-card p{

    flex:1;

    color:#5d6b7f;

    line-height:1.55;

    margin:0;
}

.kb-material-card a{

    margin-top:16px;

    color:#2f5d8c;

    text-decoration:none;

    font-weight:700;
}

/* ================= БЕЙДЖ ================= */

.kb-badge{

    display:inline-block;

    padding:5px 12px;

    border-radius:30px;

    font-size:12px;

    font-weight:700;
}

.kb-badge.article{

    background:#d9eef9;

    color:#246a92;
}

/* ================= ЭКРАН ТЕСТА ================= */

#test-screen{
    padding:45px 0;
}

#test-box {

    margin-top:20px;

    padding:25px;

    background:#fff;

    border-radius:16px;

    box-shadow:0 6px 18px rgba(0,0,0,.08);
}

#result{

    margin-top:35px;

    padding:30px;

    background:#fff;

    border-radius:18px;

    border-left:6px solid #7fcf8f;

    box-shadow:0 6px 20px rgba(0,0,0,.08);

}

#result h2{

    margin-bottom:15px;

    color:#173b69;

}

#result ul{

    margin-top:15px;

    padding-left:20px;

}

#result li{

    margin-bottom:10px;

}







/* ================= КОНСУЛЬТАЦИЯ ================= */

.kb-consultation{

    background:linear-gradient(135deg,#2f5d8c,#5ea4b7);

    color:#fff;

    text-align:center;

    padding:55px 0;
}

.kb-consultation h2{

    font-size:32px;

    margin-bottom:12px;
}

.kb-consultation p{

    max-width:720px;

    margin:0 auto 24px;

    line-height:1.6;

    font-size:17px;
}

.kb-consultation .kb-btn{

    color:#2f5d8c;

    background:#fff;
}

/* ================= АДАПТИВ ================= */

@media(max-width:992px){

    .kb-hero h1{
        font-size:36px;
    }

    .kb-section-header h2{
        font-size:28px;
    }

}

@media(max-width:768px){

    .kb-hero{
        padding:35px 0;
    }

    .kb-hero h1{
        font-size:30px;
    }

    .kb-hero p{
        font-size:16px;
    }

    .kb-section,
    .kb-section-light{
        padding:35px 0;
    }

    .kb-section-header{

        flex-direction:column;

        align-items:flex-start;
    }

    .kb-materials-grid,
    .kb-category-grid{

        grid-template-columns:1fr;
    }

    .kb-material-card,
    .kb-category-card{

        padding:18px;
    }

    .kb-consultation{

        padding:40px 0;
    }

    .kb-consultation h2{

        font-size:26px;
    }   
}



/* Вопрос */

.question{

    background:#fff;

    border-radius:16px;

    padding:20px;

    margin-bottom:20px;

    border:1px solid #e7edf4;

    box-shadow:0 3px 10px rgba(0,0,0,.05);

}

.question h4{

    margin:0 0 18px;

    font-size:18px;

    color:#18345f;

    line-height:1.5;

}

/* Варианты */

.answers{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:12px;

}

.answer{

    display:flex;

    align-items:center;

    gap:10px;

    padding:12px 15px;

    border:1px solid #dfe7ef;

    border-radius:12px;

    cursor:pointer;

    transition:.25s;

    background:#fafcff;

}

.answer:hover{

    background:#edf5ff;

    border-color:#2f5d8c;

}

.answer input{

    accent-color:#2f5d8c;

    transform:scale(1.2);

}

.answer span{

    font-size:15px;

    color:#24324a;

}

/* Кнопка результата */

#test-box button{

    margin-top:15px;

    padding:14px 30px;

    border:none;

    border-radius:12px;

    background:#2f5d8c;

    color:#fff;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

#test-box button:hover{

    background:#24476b;

}