:root {
    --ink: #1b2436;
    --ink-soft: #5b6478;
    --violet: #8b5cf6;
    --violet-soft: #f2edff;
    --violet-line: #ddccff;
    --green: #1fae6b;
    --card-bg: #ffffff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #faf8ff;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 20px 80px;
}

/* ===================== */
/* HEADER */
/* ===================== */
.topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

.topbar a {
    color: var(--violet);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.topbar a:hover { text-decoration: underline; }

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.eyebrow {
    display: inline-block;
    background: var(--violet-soft);
    color: var(--violet);
    font-size: 13px;
    font-weight: bold;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.page-header h1 {
    font-family: "Fredoka", Arial, sans-serif;
    font-size: 36px;
    margin: 0 0 10px;
}

.page-header p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
}

/* ===================== */
/* HUB LIST */
/* ===================== */
.hub-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.topic-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--violet-soft);
    border: 2px solid var(--violet-line);
    border-radius: 20px;
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 22px rgba(20, 30, 60, .06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.topic-card:hover,
.topic-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(139, 92, 246, .2);
    border-color: var(--violet);
    outline: none;
}

.topic-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--violet);
    color: white;
    font-family: "Fredoka", Arial, sans-serif;
    font-weight: 700;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topic-text { flex: 1; min-width: 0; }

.topic-tag {
    display: block;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 3px;
}

.topic-text h2 {
    font-family: "Fredoka", Arial, sans-serif;
    font-size: 21px;
    margin: 0 0 4px;
}

.topic-text p {
    margin: 0;
    font-size: 13px;
    color: var(--ink-soft);
}

.topic-go {
    font-size: 24px;
    color: var(--violet);
    flex-shrink: 0;
}

/* тема, которой пока нет */
.topic-card.soon {
    background: #f4f5f9;
    border-color: #e3e6ef;
    border-style: dashed;
    box-shadow: none;
    color: #98a0b3;
    cursor: default;
}

.topic-card.soon .topic-icon { background: #c3c9d8; }
.topic-card.soon .topic-tag,
.topic-card.soon .topic-go { color: #98a0b3; }

@media (max-width: 560px) {
    .page-header h1 { font-size: 28px; }
}
