.alphabet-search__title {
    color: #707070;
    font-family: "PT Sans Pro-Narrow Extra Bold";
    font-size: 34px;
    letter-spacing: .72px;
}

.alphabet-search__field {
    flex-grow: 1;
}

.alphabet-search__form input {
    z-index: 1;
    box-sizing: border-box;
    border: 1px solid #328A27;
    border-radius: 20px;
    padding: 7px 120px 7px 17px;
    width: 100%;
    height: 40px;
    outline: 0;
    opacity: 1;
    text-transform: lowercase;
    background: none;
    cursor: text;
}

.alphabet-search__form {
    position: relative;
    display: flex;
    width: 100%;
    margin-bottom: 20px;
}

.alphabet-search__form button {
    position: absolute;
    right: 0;
    z-index: 1;
    width: 120px;
    height: 40px;
    background-color: #328A27;
    border: 1px solid #328A27;
    border-radius: 20px;
    font-weight: 300;
    font-size: 20px;
    line-height: 23px;
    color: #FFFFFF;
    min-width: auto;
}

.alphabet-search__container {
    display: flex;
    flex-direction: column;
}

/* Основные стили для контейнера табов */
.alphabet-search__tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.alphabet-search__title {
    margin: 20px 0 30px 12px;
}

/* Стили для кнопок-табов */
.alphabet-search__tab {
    text-align: center;
    background: var(--white);
    height: 40px;
    font-weight: 500;
    font-size: 18px !important;
    font-family: sans-serif;
    color: #328a27;
    cursor: pointer;
    padding: 0 40px;
    opacity: 1;
    border: 1px solid #328a27;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Активный таб */
.alphabet-search__tab.alphabet-search__tab--active {
    background: #328a27;
    color: var(--white);
}

.alphabet-search__letters-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 30px;
}

.alphabet-search__letters {
    display: flex;
    column-gap: 13px;
    row-gap: 13px;
    width: 100%;
    flex-wrap: wrap;
}

.alphabet-search__link {
    color: #328a27;
    font-family: 'PT Sans Pro-Regular';
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    padding: 5px 4px;
}

.alphabet-search__link--disabled {
    color: #707070;
    pointer-events: none
}

.alphabet-search__link--active {
    color: white;
    background-color: #328A27;
    pointer-events: none
}

.alphabet-search__link:hover {
    background-color: #d8e9d6;
}



/* Адаптивные стили */
@media (max-width: 767px) {
    .alphabet-search__title {
        font-size: 24px;
        text-align: left;
        display: flex;
        justify-content: flex-start;
        margin-left: 0;
    }

    .alphabet-search__tabs {
        display: flex;
        width: 100%;
        gap: 10px;
        /* Для индикатора прокрутки */
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* Для плавного скролла на iOS */
        scrollbar-width: none;
        /* Скрываем стандартный скроллбар */
    }

    .alphabet-search__tabs::-webkit-scrollbar {
        display: none;
        /* Скрываем скроллбар в WebKit */
    }

    button.alphabet-search__tab {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        scroll-snap-align: start;
        box-sizing: border-box;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
}

.alphabet-content__group {
    margin-bottom: 15px;
}

.alphabet-content__items {
    column-count: 4;
    column-gap: 20px;
}

.alphabet-content__letter {
    font-weight: 400;
    font-size: 40px;
    line-height: 47px;
    color: #328A27;
    margin: 0 0 10px 0;
    padding: 0;
}

/* Стили для текстовых элементов */
.alphabet-content__link {
    display: block;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color: #333333;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.2s ease;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.alphabet-content__link:hover {
    color: #328A27;
    text-decoration: underline;
}


/* Мобильная версия */
@media (max-width: 767px) {
    .alphabet-content__items {
        column-count: 1;
        column-gap: 0;
    }

    .alphabet-content__link {
        margin-bottom: 15px;
    }
}