.mt-providers-page {
    background: #efefef;
    padding: 56px 0 72px;
}

.mt-providers-wrap {
    max-width: 1160px;
    padding: 0 12px;
}

.mt-providers-title {
    margin: 0 0 28px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    color: #121212;
}

.mt-providers-toolbar-sentinel {
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.mt-providers-toolbar {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.mt-providers-search {
    position: relative;
    margin-bottom: 18px;
}

.mt-providers-search__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #8a8a8a;
    pointer-events: none;
}

.mt-providers-search__input {
    width: 100%;
    border: 2px solid #6f4ef6;
    border-radius: 999px;
    padding: 14px 20px 14px 50px;
    font-size: 16px;
    line-height: 1.2;
    color: #121212;
    background: #fff;
    outline: none;
    transition: box-shadow .15s ease;
}

.mt-providers-search__input:focus {
    box-shadow: 0 0 0 3px rgba(111, 78, 246, 0.18);
}

.mt-providers-alpha {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    align-items: center;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 999px;
    padding: 8px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.mt-providers-alpha::-webkit-scrollbar {
    display: none;
}

.mt-providers-alpha__btn {
    border: 0;
    background: transparent;
    flex: 0 0 auto;
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    cursor: pointer;
    line-height: 1;
    border-radius: 999px;
    white-space: nowrap;
}

.mt-providers-alpha__btn:hover,
.mt-providers-alpha__btn.is-active {
    color: #6f4ef6;
    background: rgba(111, 78, 246, 0.08);
}

.mt-providers-alpha__btn.is-disabled {
    color: #c8c8c8;
    cursor: default;
    pointer-events: none;
}

.mt-providers-list {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px 32px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.mt-letter-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f0f0f0;
}

.mt-letter-group[hidden],
.mt-provider-item[hidden] {
    display: none !important;
}

.mt-letter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.mt-letter-heading {
    margin: 0;
    line-height: 1;
}

.mt-letter-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f1f1;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.mt-letter-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    width: 100%;
}

.mt-provider-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid #e4e4e4;
    border-radius: 14px;
    background: #fff;
    color: #121212;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.35;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.mt-provider-item:hover {
    border-color: #cfcfcf;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.mt-provider-item__name {
    min-width: 0;
}

.mt-provider-item__arrow {
    flex-shrink: 0;
    color: #222;
    font-size: 18px;
    line-height: 1;
}

.mt-empty-state {
    margin: 0;
    padding: 24px 0;
    text-align: center;
    color: #666;
    font-size: 15px;
}

@media (max-width: 768px) {
    .mt-providers-page {
        padding: 32px 0 48px;
    }

    .mt-providers-wrap {
        padding: 0 10px;
    }

    .mt-providers-title {
        margin-bottom: 18px;
    }

    .mt-providers-toolbar {
        position: sticky;
        top: 0;
        z-index: 40;
        border-radius: 16px;
        padding: 12px;
        margin: 0 -10px 14px;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
        transition: box-shadow .2s ease, border-radius .2s ease;
    }

    .mt-providers-toolbar.is-stuck {
        border-radius: 0 0 16px 16px;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    }

    .mt-providers-search {
        margin-bottom: 14px;
    }

    .mt-providers-search__input {
        padding: 12px 16px 12px 44px;
        font-size: 16px;
    }

    .mt-providers-search__icon {
        left: 14px;
        width: 18px;
        height: 18px;
    }

    .mt-providers-alpha {
        border-radius: 14px;
        padding: 6px 8px;
        margin: 0 -4px;
    }

    .mt-providers-alpha__btn {
        min-width: 34px;
        min-height: 34px;
        padding: 0 8px;
        font-size: 14px;
    }

    .mt-providers-list {
        border-radius: 16px;
        padding: 18px 14px 22px;
    }

    .mt-letter-group {
        gap: 12px;
        margin-bottom: 22px;
        padding-bottom: 22px;
        scroll-margin-top: calc(var(--mt-toolbar-height, 118px) + 10px);
    }

    .mt-letter-items {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mt-provider-item {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 12px;
    }

    .mt-letter-badge {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
