/* ========== Общая обертка хаба ========== */
.hsk-hub {
    max-width: 820px;
    margin: 0 auto 40px;
    color: #1C1814;
    line-height: 1.7;
}
.hsk-hub p {
    margin: 0 0 16px;
    font-size: 1.05em;
}
.hsk-hub h2 {
    margin: 40px 0 20px;
    font-size: 1.6em;
    color: #1C1814;
    border-bottom: 1px solid #E0DACF;
    padding-bottom: 8px;
}

/* ========== Плитки уровней ========== */
.hsk-hub-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin: 24px 0 0;
}
.hsk-hub-tile {
    display: block;
    padding: 18px 20px;
    border-radius: 8px;
    background: #FCF9F2;
    border: 1px solid rgba(0,0,0,0.05);
    border-left: 4px solid #C73E3A;
    text-decoration: none;
    color: #1C1814;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hsk-hub-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #1C1814;
}
.hsk-hub-tile__title {
    display: block;
    font-size: 1.25em;
    font-weight: 700;
    color: #C73E3A;
    margin-bottom: 6px;
    line-height: 1.3;
}
.hsk-hub-tile__desc {
    display: block;
    font-size: 0.9em;
    color: #5C4B3A;
    line-height: 1.45;
}

/* ========== Цвета для уровней HSK ========== */
.hsk-hub-tile--l1        { border-left-color: #4CAF50; }
.hsk-hub-tile--l1 .hsk-hub-tile__title { color: #4CAF50; }
.hsk-hub-tile--l2        { border-left-color: #2196F3; }
.hsk-hub-tile--l2 .hsk-hub-tile__title { color: #2196F3; }
.hsk-hub-tile--l3        { border-left-color: #FF9800; }
.hsk-hub-tile--l3 .hsk-hub-tile__title { color: #FF9800; }
.hsk-hub-tile--l4        { border-left-color: #9C27B0; }
.hsk-hub-tile--l4 .hsk-hub-tile__title { color: #9C27B0; }
.hsk-hub-tile--l5        { border-left-color: #F44336; }
.hsk-hub-tile--l5 .hsk-hub-tile__title { color: #F44336; }
.hsk-hub-tile--l6        { border-left-color: #607D8B; }
.hsk-hub-tile--l6 .hsk-hub-tile__title { color: #607D8B; }
.hsk-hub-tile--l7-9      { border-left-color: #3F51B5; }
.hsk-hub-tile--l7-9 .hsk-hub-tile__title { color: #3F51B5; }
.hsk-hub-tile--outside   { border-left-color: #999999; }
.hsk-hub-tile--outside .hsk-hub-tile__title { color: #999999; }

/* ========== Материалы ========== */
.hsk-hub-materials {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hsk-hub-materials li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-size: 1em;
    line-height: 1.6;
}
.hsk-hub-materials li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #C73E3A;
    font-weight: 700;
}
.hsk-hub-materials a {
    color: #C73E3A;
    text-decoration: none;
    border-bottom: 1px solid rgba(199,62,58,0.3);
    transition: border-color 0.2s, color 0.2s;
}
.hsk-hub-materials a:hover {
    color: #a32e2a;
    border-bottom-color: #a32e2a;
}

/* ========== FAQ ========== */
.hsk-hub-faq {
    margin-top: 12px;
}
.hsk-hub-faq details {
    background: #FCF9F2;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 10px;
}
.hsk-hub-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #1C1814;
    font-size: 1.05em;
    list-style: none;
    position: relative;
    padding-right: 24px;
}
.hsk-hub-faq summary::-webkit-details-marker {
    display: none;
}
.hsk-hub-faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -2px;
    font-size: 1.4em;
    color: #C73E3A;
    line-height: 1;
    transition: transform 0.2s;
}
.hsk-hub-faq details[open] summary::after {
    content: "−";
}
.hsk-hub-faq details p {
    margin: 12px 0 0;
    color: #3E3A34;
    font-size: 0.98em;
    line-height: 1.6;
}
.hsk-hub-faq details a {
    color: #C73E3A;
    text-decoration: underline;
}

/* ========== Адаптивность ========== */
@media (max-width: 600px) {
    .hsk-hub h2 {
        font-size: 1.35em;
    }
    .hsk-hub-tiles {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .hsk-hub-tile {
        padding: 14px 14px;
    }
    .hsk-hub-tile__title {
        font-size: 1.1em;
    }
    .hsk-hub-tile__desc {
        font-size: 0.82em;
    }
}