.tech-stack {
    padding: 88px 0 72px;
    color: #fff;
    background:
        radial-gradient(ellipse at 0 0, rgba(239, 122, 46, 0.06), transparent 48%),
        radial-gradient(ellipse at 100% 100%, rgba(46, 193, 239, 0.05), transparent 48%),
        #161b24;
    scroll-margin-top: 90px;
}

.tech-stack__header {
    margin-bottom: 40px;
    text-align: center;
}

.tech-stack__title {
    margin: 0 0 14px;
    font-size: clamp(30px, 3.5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.tech-stack__title span {
    color: #fa9538;
}

.tech-stack__intro {
    color: #b3bbc7;
    font-size: 17px;
    line-height: 1.5;
}

.tech-stack__groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tech-stack__group {
    min-width: 0;
    padding: 28px;
    border: 1px solid #343c48;
    border-radius: 12px;
    background: #1e2530;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.tech-stack__group-title {
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.tech-stack__description {
    min-height: 44px;
    max-width: 290px;
    color: #b3bbc7;
    font-size: 14px;
    line-height: 22px;
}

.tech-stack__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #343c48;
    list-style: none;
}

.tech-stack__item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.tech-stack__icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
}

.tech-stack__icon img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.tech-stack__icon--light {
    border-radius: 9px;
    background: #e4e8ed;
}

.tech-stack__icon--light img {
    width: 30px;
    height: 30px;
}

.tech-stack__monogram {
    display: grid;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(250, 149, 56, 0.45);
    border-radius: 8px;
    place-items: center;
    color: #faad65;
    background: rgba(239, 122, 46, 0.1);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.tech-stack__name {
    color: #e8edf4;
    font-size: 13px;
    line-height: 1.4;
}

.tech-stack__workflow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #343c48;
}

.tech-stack__workflow-title {
    color: #b3bbc7;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.tech-stack__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.tech-stack__tools li {
    padding: 8px 13px;
    border: 1px solid #343c48;
    border-radius: 6px;
    color: #c9d0da;
    background: rgba(255, 255, 255, 0.025);
    font-size: 13px;
    line-height: 1.3;
}

@media (hover: hover) {
    .tech-stack__group:hover {
        border-color: #7c5b40;
        background: #222933;
    }
}

@media (max-width: 1100px) {
    .tech-stack__groups {
        gap: 16px;
    }

    .tech-stack__group {
        padding: 24px 20px;
    }

    .tech-stack__list {
        gap: 20px 10px;
    }

    .tech-stack__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 700px) {
    .tech-stack {
        padding: 56px 0 48px;
    }

    .tech-stack__header {
        margin-bottom: 28px;
    }

    .tech-stack__intro {
        font-size: 16px;
    }

    .tech-stack__groups {
        grid-template-columns: minmax(0, 1fr);
    }

    .tech-stack__group {
        padding: 24px;
    }

    .tech-stack__description {
        min-height: 0;
        max-width: none;
    }

    .tech-stack__list {
        margin-top: 20px;
        padding-top: 20px;
        gap: 20px 14px;
    }

    .tech-stack__item {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .tech-stack__workflow {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-top: 24px;
        padding-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tech-stack__group {
        transition: none;
    }
}
