/* Mechanics listing page */
.mech-index-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #eef4fa 0%, #ffffff 40%, #f8fafc 100%);
}

.mech-index-wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 36px 16px 56px;
}

.mech-index-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 32px 28px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #14212b 0%, #1e3a5f 50%, #2b7ac4 100%);
    box-shadow: 0 16px 48px rgba(20, 33, 43, 0.16);
}

.mech-index-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(124, 179, 66, 0.14);
}

.mech-index-hero__inner {
    position: relative;
    z-index: 1;
}

.mech-index-hero,
.mech-index-hero h1,
.mech-index-hero p {
    color: #fff !important;
}

.mech-index-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.88;
    margin: 0 0 10px;
}

.mech-index-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 10px;
}

.mech-index-hero__subtitle {
    font-size: 0.95rem;
    opacity: 0.92;
    margin: 0;
    max-width: 640px;
    line-height: 1.55;
}

.mech-index-hero__subtitle strong {
    color: #7cb342 !important;
}

.mech-index-cta {
    border-radius: 16px;
    border: 1px solid #dce8f5;
    background: #fff;
    padding: 22px 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(20, 33, 43, 0.05);
}

.mech-index-cta__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.mech-index-cta__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(43, 122, 196, 0.12), rgba(124, 179, 66, 0.12));
    color: #2b7ac4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.mech-index-cta__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #14212b;
    margin: 0 0 6px;
}

.mech-index-cta__text {
    font-size: 0.9rem;
    color: #6b7b93;
    margin: 0;
    line-height: 1.55;
    max-width: 720px;
}

.mech-index-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mech-index-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.mech-index-btn:hover {
    transform: translateY(-1px);
}

.mech-index-btn--primary {
    background: linear-gradient(135deg, #2b7ac4, #7cb342);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(43, 122, 196, 0.22);
}

.mech-index-btn--outline {
    background: #fff;
    color: #2b7ac4 !important;
    border-color: #2b7ac4;
}

.mech-index-btn--outline:hover {
    background: #f0f7ff;
}

.mech-index-btn--ghost {
    background: #f8fafc;
    color: #14212b !important;
    border-color: #dce8f5;
}

.mech-index-section {
    margin-bottom: 36px;
}

.mech-index-section:last-child {
    margin-bottom: 0;
}

.mech-index-section__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mech-index-section__bar {
    width: 4px;
    height: 28px;
    border-radius: 4px;
    flex-shrink: 0;
}

.mech-index-section__bar--local {
    background: linear-gradient(180deg, #2b7ac4, #7cb342);
}

.mech-index-section__bar--other {
    background: #cbd5e1;
}

.mech-index-section__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #14212b;
    margin: 0;
}

.mech-index-section__count {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7b93;
    background: #f0f4f8;
    padding: 4px 10px;
    border-radius: 20px;
}

.mech-index-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 640px) {
    .mech-index-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .mech-index-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .mech-index-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mech-index-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    border: 1px solid #e4f2ff;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(20, 33, 43, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mech-index-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(20, 33, 43, 0.1);
    border-color: #2b7ac4;
}

.mech-index-card__top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 12px;
}

.mech-index-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2b7ac4, #7cb342);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mech-index-card__info {
    flex: 1;
    min-width: 0;
}

.mech-index-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #14212b;
    margin: 0 0 6px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.mech-index-card:hover .mech-index-card__name {
    color: #2b7ac4;
}

.mech-index-card__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.8rem;
    color: #6b7b93;
}

.mech-index-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mech-index-card__meta i {
    width: 12px;
    color: #2b7ac4;
    text-align: center;
}

.mech-index-card__body {
    padding: 0 18px 14px;
    flex: 1;
}

.mech-index-card__about {
    font-size: 0.85rem;
    color: #6b7b93;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mech-index-card__stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid #f0f4f8;
    font-size: 0.8rem;
}

.mech-index-card__rating {
    font-weight: 700;
    color: #f59e0b;
}

.mech-index-card__rating--empty {
    color: #9ca3af;
    font-weight: 500;
}

.mech-index-card__services {
    color: #6b7b93;
    font-weight: 500;
}

.mech-index-card__footer {
    padding: 0 18px 18px;
}

.mech-index-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, #2b7ac4, #7cb342);
    transition: opacity 0.2s ease;
}

.mech-index-card:hover .mech-index-card__btn {
    opacity: 0.95;
}

.mech-index-empty {
    border-radius: 18px;
    border: 1px solid #e4f2ff;
    background: #fff;
    padding: 48px 24px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(20, 33, 43, 0.04);
}

.mech-index-empty i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.mech-index-empty p {
    color: #6b7b93;
    margin: 0 0 18px;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .mech-index-wrap {
        padding-top: 24px;
    }

    .mech-index-hero {
        padding: 24px 20px;
    }

    .mech-index-cta {
        padding: 18px 16px;
    }
}
