.fsg {
    background: #fff;
    color: #0a0a0b;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.fsg__in {
    max-width: 1280px;
    margin: 0 auto;
    padding: 112px 24px 120px;
}

.fsg__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.fsg__intro {
    max-width: 640px;
}

.fsg__title {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.1;
    text-wrap: balance;
}

.fsg__desc {
    margin: 14px 0 0;
    color: #52525b;
    font-size: 17px;
    line-height: 1.6;
}

.fsg__all {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px 0 20px;
    border: 1px solid rgba(10, 10, 11, .12);
    border-radius: 999px;
    color: #0a0a0b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.fsg__all:hover {
    border-color: #0a0a0b;
    background: #fafafa;
}

.fsg__all svg,
.fsg__more svg {
    width: 15px;
    height: 15px;
    transition: transform .2s ease;
}

.fsg__all:hover svg,
.fsg__card:hover .fsg__more svg {
    transform: translateX(3px);
}

.fsg__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.fsg__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.fsg__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(10, 10, 11, .06);
    border-radius: 24px;
    background: #f4f4f5;
}

.fsg__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.22, .8, .22, 1);
}

.fsg__card:hover .fsg__media img {
    transform: scale(1.04);
}

.fsg__media--1 {
    background: radial-gradient(70% 60% at 30% 20%, #ede9fe, transparent 70%), #f7f6fb;
}

.fsg__media--2 {
    background: radial-gradient(70% 60% at 70% 20%, #dcfce7, transparent 70%), #f6faf7;
}

.fsg__media--3 {
    background: radial-gradient(70% 60% at 50% 10%, #e0f2fe, transparent 70%), #f5f8fb;
}

.fsg__media.has-image {
    background: #f4f4f5;
}

.fsg__mock {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.fsg__mock-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(10, 10, 11, .06);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 36px -22px rgba(16, 24, 40, .35);
    transition: transform .5s cubic-bezier(.22, .8, .22, 1);
}

.fsg__media--1 .fsg__mock-icon {
    color: #6d28d9;
}

.fsg__media--2 .fsg__mock-icon {
    color: #15803d;
}

.fsg__media--3 .fsg__mock-icon {
    color: #0369a1;
}

.fsg__card:hover .fsg__mock-icon {
    transform: translateY(-6px) rotate(-4deg);
}

.fsg__svg {
    width: 30px;
    height: 30px;
}

.fsg__mock-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: 46%;
}

.fsg__mock-lines i {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: rgba(10, 10, 11, .07);
}

.fsg__mock-lines i:nth-child(2) {
    width: 78%;
}

.fsg__mock-lines i:nth-child(3) {
    width: 54%;
}

.fsg__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 11px;
    border: 1px solid rgba(10, 10, 11, .06);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #3f3f46;
    font-size: 12px;
    font-weight: 600;
}

.fsg__name {
    margin-top: 22px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.25;
    text-wrap: balance;
}

.fsg__text {
    margin-top: 8px;
    color: #71717a;
    font-size: 15px;
    line-height: 1.55;
}

.fsg__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: #6d28d9;
    font-size: 14px;
    font-weight: 600;
}

.fsg__card:focus-visible,
.fsg__all:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 4px;
    border-radius: 24px;
}

@media (max-width: 1023px) {
    .fsg__list {
        display: flex;
        gap: 16px;
        margin-right: -24px;
        margin-left: -24px;
        padding: 0 24px 4px;
        overflow-x: auto;
        scroll-padding-left: 24px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .fsg__list::-webkit-scrollbar {
        display: none;
    }

    .fsg__card {
        flex: none;
        width: min(78vw, 360px);
        scroll-snap-align: start;
    }
}

@media (max-width: 640px) {
    .fsg__in {
        padding: 80px 16px 88px;
    }

    .fsg__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .fsg__list {
        margin-right: -16px;
        margin-left: -16px;
        padding: 0 16px 4px;
        scroll-padding-left: 16px;
    }

    .fsg__name {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fsg__media img,
    .fsg__mock-icon {
        transition: none;
    }
}
