/* =================================================
   CATEGORY — Ana kategori vitrini (pill kartlar)
   ================================================= */

.sfr-cats {
    --sc-blue: #1a4f96;
    --sc-blue-dark: #14356b;
    --sc-pill: #ffffff;
    --sc-text: #5a6c7d;
    --sc-name: #1e2a3a;
    background: #f4f7fb;
    padding: 80px 0 90px;
}

.sfr-cats__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
}

.sfr-cats__header {
    text-align: left;
    max-width: 720px;
    margin: 0 0 52px;
}

.sfr-cats__title {
    margin: 0 0 16px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--sc-blue);
    letter-spacing: 0.01em;
}

.sfr-cats__desc {
    margin: 0;
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--sc-text);
}

.sfr-cats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 32px;
    justify-items: center;
}

.sfr-cats__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 240px;
    text-decoration: none;
    color: inherit;
}

.sfr-cats__pill {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4.1;
    border-radius: 48px;
    background: var(--sc-pill);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(26, 79, 150, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.sfr-cats__card:hover .sfr-cats__pill,
.sfr-cats__card:focus-visible .sfr-cats__pill {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(26, 79, 150, 0.14);
}

.sfr-cats__card:focus-visible {
    outline: none;
}

.sfr-cats__card:focus-visible .sfr-cats__pill {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sc-blue);
}

.sfr-cats__pill img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.sfr-cats__name {
    display: block;
    margin-top: 16px;
    font-size: 14.5px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    color: var(--sc-blue);
}

@media (max-width: 1100px) {
    .sfr-cats__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px 28px;
    }
}

@media (max-width: 768px) {
    .sfr-cats {
        padding: 64px 0 72px;
    }
    .sfr-cats__title {
        font-size: 32px;
    }
    .sfr-cats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
    }
    .sfr-cats__card {
        max-width: 200px;
    }
}

@media (max-width: 420px) {
    .sfr-cats__inner {
        padding: 0 20px;
    }
    .sfr-cats__title {
        font-size: 26px;
    }
    .sfr-cats__desc {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sfr-cats__pill {
        transition: none;
    }
    .sfr-cats__card:hover .sfr-cats__pill,
    .sfr-cats__card:focus-visible .sfr-cats__pill {
        transform: none;
    }
}
