/* ============================================
   Глоссарий — стиль в духе Binance Academy
   ============================================ */
.glossary {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}

.glossary__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.glossary__subtitle {
    color: #666;
    font-size: 1.0625rem;
    margin: 0 0 28px;
}

/* Поиск */
.glossary__search {
    position: relative;
    margin-bottom: 20px;
}

.glossary__search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px 14px 44px;
    font-size: 1rem;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    outline: none;
    transition: border-color .15s ease;
}

.glossary__search-input:focus {
    border-color: #3a5a7c;
}

.glossary__search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0a6;
}

/* Алфавит */
.glossary__alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.glossary__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border-radius: 8px;
    background: #f4f5f7;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background .15s ease, color .15s ease;
}

.glossary__letter:hover { background: #e7eaf0; }
.glossary__letter.is-active { background: #3a5a7c; color: #fff; }
.glossary__letter.is-disabled { opacity: .35; pointer-events: none; }

/* Список терминов — без рамок (.glossary-item border убран) */
.glossary__list {
    display: flex;
    flex-direction: column;
}

.glossary__item {
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.glossary__item-term {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.glossary__item-term a {
    color: #1a1a1a;
    text-decoration: none;
}

.glossary__item-term a:hover { color: #3a5a7c; }

.glossary__item-def {
    margin: 0;
    color: #5f6368;
    line-height: 1.6;
    font-size: 0.95rem;
}

.glossary__empty {
    padding: 40px 0;
    color: #888;
    text-align: center;
}

/* Детальная страница термина */
.glossary-term {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 64px;
}

.glossary-term__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.glossary-term__lead {
    font-size: 1.1875rem;
    line-height: 1.6;
    color: #333;
    margin: 0 0 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.glossary-term__content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #2a2a2a;
}

.glossary-term__content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin: 32px 0 12px;
}

.glossary-term__content p { margin: 0 0 16px; }
.glossary-term__content a { color: #3a5a7c; }

.glossary-term__related {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid #eee;
}

.glossary-term__related-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 14px;
}

.glossary-term__related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.glossary-term__related-list a {
    display: inline-block;
    padding: 8px 14px;
    background: #f4f5f7;
    border-radius: 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
}

.glossary-term__related-list a:hover { background: #e7eaf0; color: #3a5a7c; }

@media (max-width: 768px) {
    .glossary__title, .glossary-term__title { font-size: 1.75rem; }
}
