.types-head {
        display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 56px;
}

.types-head h2 {
        margin: 0;
    max-width: 18ch;
}

.types-head p {
        margin: 0;
    font-size: var(--fs-body-l);
    color: var(--ink-soft);
    max-width: 52ch;
}

.types-grid {
        display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(280px, 28vw, 440px);
    gap: 28px 24px;
}

.type-card {
        position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #0a0c12;
    color: #fff;
}

.type-card:nth-child(1) {
    grid-column: span 7;
}

.type-card:nth-child(2) {
    grid-column: span 5;
}

.type-card:nth-child(3),
.type-card:nth-child(4),
.type-card:nth-child(5) {
    grid-column: span 4;
}

.type-card img {
        position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.type-card:hover img {
    transform: scale(1.04);
}

.type-card::after {
        content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 12, 18, 0) 30%, rgba(10, 12, 18, 0.82) 100%);
}

.tc-meta {
        position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.tc-num {
        font-family: var(--font-mono);
    font-size: var(--fs-label-m);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.tc-meta h3 {
        margin: 0;
    color: #fff;
    font-size: var(--fs-card-title);
    line-height: 1.12;
}

.tc-desc {
        font-size: var(--fs-body-s);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    max-width: 32ch;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    transform: translateY(6px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        max-height 0.35s ease,
        margin 0.35s ease;
}

.type-card:hover .tc-desc {
        max-height: 90px;
    opacity: 1;
    transform: none;
    margin-top: 8px;
}

.type-card:nth-child(1) .tc-desc,
.type-card:nth-child(2) .tc-desc {
        max-height: 90px;
    opacity: 1;
    transform: none;
    margin-top: 8px;
}

.tc-arr {
        font-family: var(--font-mono);
    font-size: var(--fs-action);
    opacity: 0.8;
    white-space: nowrap;
    padding-bottom: 4px;
    transition: opacity 0.25s;
}

.type-card:hover .tc-arr {
    opacity: 1;
}

.tc-ph {
        position: absolute;
    left: 14px;
    top: 14px;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: var(--fs-label-s);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: #fff;
    background: rgba(10, 12, 18, 0.55);
    backdrop-filter: blur(6px);
    padding: 6px 10px;
    border-radius: 4px;
    pointer-events: none;
}

.types-index {
    margin-top: clamp(44px, 5vw, 68px);
}

.ti-head {
        display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.ti-count {
        font-family: var(--font-mono);
    font-size: var(--fs-label-m);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--ink-mute);
}

.ti-list {
        list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.ti-row {
        display: grid;
    grid-template-columns: 64px minmax(240px, 0.9fr) 1.3fr auto;
    gap: 8px 28px;
    align-items: baseline;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.ti-num {
        font-family: var(--font-mono);
    font-size: var(--fs-label-m);
    letter-spacing: var(--ls-label);
    color: var(--accent-deep);
}

.ti-row h3 {
        margin: 0;
    font-size: var(--fs-card-title);
    line-height: 1.12;
    letter-spacing: -0.02em;
    transition: color 0.25s;
}

.ti-desc {
        margin: 0;
    font-size: var(--fs-body-s);
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 52ch;
}

.ti-arr {
        font-family: var(--font-mono);
    font-size: var(--fs-action);
    color: var(--accent-deep);
    opacity: 0;
    transform: translateX(-8px);
    transition:
        opacity 0.25s,
        transform 0.25s;
}

.ti-row:hover h3 {
    color: var(--accent-deep);
}

.ti-row:hover .ti-arr {
        opacity: 1;
    transform: none;
}

.sw-head {
        display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: clamp(32px, 3.5vw, 56px);
}

.sw-hint {
        font-family: var(--font-mono);
    font-weight: 500;
    font-size: var(--fs-label-m);
    line-height: 1;
    letter-spacing: var(--ls-label);
    color: var(--ink-mute);
    text-transform: uppercase;
}

.sw-nav {
        display: flex;
    gap: 10px;
    align-items: center;
}

.sw-nav .sw-toggle {
    margin-right: 14px;
}

.sw-toggle {
        background: none;
    border: 0;
    cursor: pointer;
}

.sw-btn {
        width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-size: 17px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition:
        background 0.25s,
        border-color 0.25s,
        color 0.25s,
        opacity 0.25s;
}

.sw-btn:hover {
        background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.sw-rail {
        display: flex;
    gap: clamp(12px, 1.4vw, 20px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-top: 20px;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sw-rail::-webkit-scrollbar {
    display: none;
}

.sw-rail.is-open {
        display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    overflow: visible;
    scroll-snap-type: none;
}

.sw-rail.is-open .sw-card {
        flex-basis: auto;
    width: auto;
}

.sw-head.is-open .sw-btn {
        opacity: 0.35;
    pointer-events: none;
}

.sw-card {
        position: relative;
    flex: 0 0 clamp(240px, 22vw, 310px);
    aspect-ratio: 3/4.3;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #0a0c12;
    color: #fff;
    text-decoration: none;
    display: block;
}

.sw-card img {
        position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.sw-card:hover img {
    transform: scale(1.05);
}

.sw-card::after {
        content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 12, 18, 0) 42%, rgba(10, 12, 18, 0.78) 100%);
}

.sw-cap {
        position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: clamp(16px, 1.6vw, 22px);
}

.sw-num {
        display: block;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: var(--fs-label-s);
    line-height: 1;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 10px;
}

.sw-cap h3 {
        font-size: var(--fs-card-title-s);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.005em;
    margin: 0;
    color: #fff;
}

.sw-desc {
        font-family: var(--font-sans);
    font-size: var(--fs-body-s);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    max-width: 32ch;
    max-height: 0;
    opacity: 0;
    transform: translateY(6px);
    overflow: hidden;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        max-height 0.35s ease,
        margin 0.35s ease;
}

.sw-card:hover .sw-desc {
        max-height: 110px;
    opacity: 1;
    transform: none;
    margin-top: 8px;
}

.sw-arr {
        display: inline-block;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: var(--fs-action);
    line-height: 1;
    letter-spacing: var(--ls-action);
    color: var(--accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: 0.3s;
}

.sw-card:hover .sw-arr {
        opacity: 1;
    transform: none;
}

@media (max-width: 1100px) {
    .type-card:nth-child(n) {
        grid-column: span 6;
    }

    .types-grid {
        grid-auto-rows: clamp(220px, 28vw, 300px);
    }

    .ti-row {
        grid-template-columns: 48px 1fr auto;
    }

    .ti-num {
            grid-column: 1;
        grid-row: 1;
    }

    .ti-row h3 {
            grid-column: 2;
        grid-row: 1;
    }

    .ti-desc {
            grid-column: 2;
        grid-row: 2;
    }

    .ti-arr {
            grid-column: 3;
        grid-row: 1;
    }
}

@media (max-width: 960px) {
    .types-head {
            grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 40px;
    }
}

@media (max-width: 640px) {
    .sw-head {
            flex-wrap: wrap;
        gap: 12px 20px;
    }

    .sw-rail {
            margin-left: calc(var(--gutter) * -1);
        margin-right: calc(var(--gutter) * -1);
        padding-left: var(--gutter);
        padding-right: var(--gutter);
        scroll-padding: 0 var(--gutter);
    }

    .sw-rail.is-open {
            margin: 20px 0 0;
        padding: 0;
    }

    .sw-card {
        flex-basis: 74vw;
    }

    .sw-btn {
        display: none;
    }

    .sw-nav .sw-toggle {
        margin-right: 0;
    }

    .sw-rail.is-open .sw-card {
        flex-basis: auto;
    }

    .sw-card .sw-desc {
            max-height: none;
        opacity: 1;
        transform: none;
        margin-top: 8px;
    }

    .sw-card .sw-arr {
            opacity: 1;
        transform: none;
    }

    .types-grid {
            display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .type-card {
        height: 240px;
    }

    .tc-meta {
            left: 18px;
        right: 18px;
        bottom: 16px;
    }

    .types-index {
        margin-top: 36px;
    }

    .ti-row {
            padding: 18px 0;
        grid-template-columns: 40px 1fr;
        gap: 6px 14px;
    }

    .ti-arr {
        display: none;
    }
}
