.ymal-mount {
    margin: 28px 0 0;
}

.ymal-loading,
.ymal-empty,
.ymal-error {
    background: #fff;
    border: 1px solid #e2e7ee;
    border-radius: 22px;
    padding: 22px 24px;
    color: #555;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.05);
}

.ymal-shell {
    background: #fff;
    border: 1px solid #e2e7ee;
    border-radius: 22px;
    padding: 24px 24px 26px;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.05);
}

.ymal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 18px;
}

.ymal-title {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.15;
    color: #111827;
}

.ymal-copy {
    margin: 0;
    color: #5f6b7a;
    font-size: 15px;
    line-height: 1.55;
    max-width: 740px;
}

.ymal-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.ymal-card-link {
    display: block;
    height: 100%;
    background: #ffffff;
    border: 1px solid #dbe3ed;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ymal-card-link:hover,
.ymal-card-link:focus {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
    border-color: #c9d4e0;
}

.ymal-card-image {
    height: 180px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
}

.ymal-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.ymal-card-body {
    padding: 14px 14px 16px;
    text-align: center;
}

.ymal-card-title {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.3;
    color: #111827;
}

.ymal-card-model {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f26b43;
}

.ymal-card-meta {
    margin: 0;
    color: #5f6b7a;
    font-size: 13px;
    line-height: 1.45;
}

.ymal-card-meta + .ymal-card-meta {
    margin-top: 3px;
}

.ymal-card-cta {
    display: inline-block;
    margin-top: 9px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff3ef;
    color: #f26b43;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .ymal-shell {
        padding: 18px;
        border-radius: 18px;
    }

    .ymal-header {
        display: block;
    }

    .ymal-title {
        font-size: 24px;
    }

    .ymal-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: calc(50% - 6px);
        grid-template-columns: none;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .ymal-grid::-webkit-scrollbar {
        height: 8px;
    }

    .ymal-grid::-webkit-scrollbar-thumb {
        background: #d3dbe6;
        border-radius: 999px;
    }

    .ymal-grid::-webkit-scrollbar-track {
        background: #eef2f7;
        border-radius: 999px;
    }

    .ymal-card-link {
        scroll-snap-align: start;
    }

    .ymal-card-image {
        height: 150px;
    }
}
