.alpha-block ul li:before {
    display: none;
}


.subhead span {
    background: #fff0f0;
    padding: 0.2rem 0.8rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--theme-base-color);
}

/* панель кнопок (рабочие категории / фильтры) - без скругления */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.8rem;
}

.cat-btn {
    background: #f5e6e6;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.85rem;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cat-btn:hover {
    background: #eccfcf;
    transform: translateY(-1px);
}

.cat-btn.active {
    background: var(--theme-base-color);
    color: white;
    box-shadow: 0 2px 6px rgba(236, 74, 74, 0.3);
}

/* поле поиска */
.search-section {
    margin-bottom: 2rem;
}

.search-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
    color: #000;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.6;
    pointer-events: none;
}

#searchInput {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    font-size: 1rem;
    border: 2px solid var(--theme-base-color);
    border-radius: 0;
    font-family: inherit;
    background: white;
    transition: 0.2s;
    outline: none;
    color: #000;
}

#searchInput::placeholder {
    color: #aaa;
    opacity: 1;
}

#searchInput:focus {
    border-color: var(--theme-base-color);
    box-shadow: 0 0 0 2px rgba(236, 74, 74, 0.2);
}

/* алфавитные кнопки - прижаты к левому краю, одинаковой высоты */
.alphabet-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2rem;
    background: transparent;
    padding: 0.5rem 0;
    border: none;
}

/* общий стиль для всех кнопок в панели: одинаковая высота */
.btn-all, .alpha-btn {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    border-radius: 0;
    padding: 0 1rem;
}

/* кнопка "Все" */
.btn-all {
    background: var(--theme-base-color);
    border: none;
    color: white;
    min-width: 70px;
}

.btn-all:hover {
    background: #c93a3a;
    transform: translateY(-1px);
}

.btn-all.active-all {
    background: #b32d2d;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

/* кнопки букв */
.alpha-btn {
    background: white;
    border: 1px solid #ecb6b6;
    min-width: 44px;
    font-family: monospace;
    font-weight: 700;
    color: #000;
}

.alpha-btn:hover {
    background: #ffe0e0;
    transform: scale(1.02);
    border-color: var(--theme-base-color);
}

.alpha-btn.active-letter {
    background: var(--theme-base-color);
    color: white;
    border-color: var(--theme-base-color);
}

/* контейнер для списка профессий */
.professions-container {
    margin-top: 0.5rem;
}

/* группировка по буквам */
.letter-group {
    margin-bottom: 2rem;
    scroll-margin-top: 20px;
}

.letter-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--fill_dark_light_hover);
    padding-bottom: 0.3rem;
}

/* заглавные буквы — обычный текст, не жирный, цвет #333 */
.letter-header .big-letter {
    font-size: 2rem;
    font-weight: 400;
    background: transparent;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 0;
    color: #333;
    font-family: inherit;
}

.letter-header .count-badge {
    background: var(--fill_dark_light_hover);
    padding: 0.2rem 0.7rem;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
}

/* две колонки для профессий */
.professions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.5rem;
    list-style: none;
    margin-top: 0.25rem;
}

/* стили для ссылок-профессий */
.profession-link {
    font-size: 0.95rem;
    padding: 0.4rem 0.2rem 0.4rem 0.8rem;
    border-left: 3px solid transparent;
    transition: all 0.1s ease;
    color: #000;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    word-break: break-word;
    text-decoration: none;
    cursor: pointer;
}

/* при наведении убираем фон и левый бордер */
.profession-link:hover {
    background: transparent;
    border-left-color: transparent;
}

.profession-bullet {
    font-size: 0.75rem;
    color: #e07a7a;
}

.profession-text {
    color: #000;
    transition: color 0.1s;
}

.profession-link:hover .profession-text {
    color: var(--theme-base-color);
    text-decoration: underline;
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: #fffaf5;
    border-radius: 0;
    color: #aa7a7a;
    font-size: 1.1rem;
}

/* адаптив: на узких экранах одна колонка */
@media (max-width: 700px) {
    .container {
        padding: 1.5rem;
    }
    .professions-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .alpha-btn, .btn-all {
        height: 40px;
        font-size: 0.85rem;
        padding: 0 0.8rem;
    }
    .alpha-btn {
        min-width: 40px;
    }
    .letter-header .big-letter {
        font-size: 1.8rem;
        min-width: 40px;
    }
}

/* подсветка поиска */
.highlight {
    background-color: #fff0b3;
    border-radius: 0;
    padding: 0 2px;
    font-weight: 500;
    color: #b33a2e;
}

footer {
    margin-top: 2rem;
    font-size: 0.75rem;
    text-align: center;
    color: #b48383;
    border-top: 1px solid #ffdfdf;
    padding-top: 1.5rem;
}