.mc-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 42px;
    color: #24272c;
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
}

.mc-section-title::before,
.mc-section-title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--mc-color-border);
}

.mc-categories {
    max-width: var(--mc-content-width) !important;
    margin: 0 auto;
    padding: 52px var(--mc-page-gutter) 42px;
    background: #ffffff;
}

.mc-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mc-category-card {
    margin: 0;
    overflow: hidden;
    background: #eef0f2;
}

.mc-category-card__link {
    position: relative;
    display: block;
    min-height: 288px;
    overflow: hidden;
    color: #ffffff;
}

.mc-category-card__image {
    position: absolute;
    inset: 0;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, #e9edf1 0%, #f6f7f8 50%, #dfe4e8 100%);
    transform: scale(1);
    transition: transform 220ms ease;
}

.mc-category-card--caps .mc-category-card__image {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, #e6ebef 0%, #f7f8f9 52%, #d7dde2 100%);
}

.mc-category-card--hats .mc-category-card__image {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, #eef1f3 0%, #f8f8f7 50%, #dfe3e6 100%);
}

.mc-category-card--beanies .mc-category-card__image {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, #f2f4f5 0%, #e4e8eb 50%, #cfd6dc 100%);
}

.mc-category-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.18);
}

.mc-category-card__title,
.mc-category-card__button {
    position: absolute;
    left: 50%;
    z-index: 1;
    text-align: center;
    transform: translateX(-50%);
}

.mc-category-card__title {
    top: 42%;
    color: #1f6aa5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 4vw, 58px);
    line-height: 1;
}

.mc-category-card__button {
    top: calc(42% + 54px);
    min-width: 110px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    color: #ffffff;
    font-size: 18px;
    line-height: 1.2;
}

.mc-category-card__link:hover .mc-category-card__image,
.mc-category-card__link:focus .mc-category-card__image {
    transform: scale(1.04);
}

@media (min-width: 768px) and (max-width: 1024px) {
    .mc-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mc-categories {
        padding-top: 38px;
        padding-bottom: 32px;
    }

    .mc-section-title {
        gap: 10px;
        margin-bottom: 28px;
        font-size: 28px;
    }

    .mc-categories__grid {
        grid-template-columns: 1fr;
    }

    .mc-category-card__link {
        min-height: 230px;
    }
}
