.masters-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px 64px;
}

.masters-heading {
    margin-bottom: 30px;
}

.masters-heading span {
    display: block;
    margin-bottom: 8px;
    color: #a17d3d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.masters-heading h1 {
    margin: 0;
    color: #27231d;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
}

.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: clamp(18px, 2.5vw, 30px);
    align-items: start;
}

.master-card {
    display: block;
    padding: 0;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font: inherit;
    text-align: left;
    background: #fff;
    border: 1px solid rgba(201, 169, 110, .25);
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(40, 32, 22, .09);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.master-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 46px rgba(40, 32, 22, .14);
}

.master-card:focus-visible {
    outline: 3px solid rgba(161, 125, 61, .55);
    outline-offset: 4px;
}

.master-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(145deg, #f4ede2, #e8dcc8);
}

.master-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.master-card:hover .master-card-image img {
    transform: scale(1.035);
}

.master-card-image .master-card-placeholder {
    padding: 24%;
    object-fit: contain;
}

.master-card h2 {
    margin: 0;
    padding: 18px 20px 20px;
    color: #2d2821;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.3;
    text-align: center;
}

.masters-empty {
    grid-column: 1 / -1;
    padding: 42px 24px;
    color: #766f65;
    text-align: center;
    background: #fff;
    border: 1px dashed #cfbea0;
    border-radius: 20px;
}

@media (max-width: 600px) {
    .masters-page {
        padding: 32px 16px 48px;
    }

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

    .master-card {
        border-radius: 16px;
    }

    .master-card h2 {
        padding: 14px 10px 16px;
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .masters-grid {
        grid-template-columns: 1fr;
    }
}
