.masters {
    padding: 80px 0;
    padding-bottom: 0;
}

.masters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.master-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.master-card:hover {
    transform: translateY(-4px);
}

.master-image {
    width: 100%;
    height: 358px;
    overflow: hidden;
}

.master-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-info {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(240, 233, 223, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0 30px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.master-name {
    font-family: "Poiret One", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.17;
    color: rgba(38, 38, 38, 1);
    text-stroke: 0.3px #262626;
    margin-bottom: 4px;
    white-space: nowrap;
}

.master-profession {
    font-family: "Poiret One", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.17;
    color: #262626;
}

.view-all-link {
    display: flex;
    justify-content: center;
    max-width: fit-content;
    margin: 0 auto;
    margin-top: 40px;
}

.masters .swiper {
    display: none;
}

@media (max-width: 1024px) {
    .masters {
        padding: 60px 0;
        padding-bottom: 0;
    }

    .masters-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .masters {
        padding: 40px 0;
        padding-bottom: 0;
    }

    .masters .swiper {
        display: block;
    }

    .masters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        display: none;
    }

    .master-image {
        height: 280px;
    }

    .master-info {
        padding: 0 20px;
        height: 50px;
    }

    .master-name,
    .master-profession {
        font-size: 16px;
    }

    .view-all-link {
        font-size: 16px;
    }
}

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

    .master-image {
        height: 300px;
    }
}
