.tech-data {
    background-color: var(--black);
}

.tech-data__label {
    color: var(--primary);
}

.tech-data__title,
.tech-data__text{
    color: var(--white);
}

.tech-data__text {
    font-size: var(--text-size);
    max-width: 665px;
    line-height: 1.5em;
}

.tech-data__wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 40px;
    min-height: calc(100% + var(--card-open-height));
    transition: padding 0.5s ease, align-items 0.8s ease;
}

.tech-data__wrapper.has-active .tech-data__card:not(.active):not(.opening) {
    transform: translateY(50%);
    transition-delay: 0.1s;
}

.tech-data__card.opening {
    transform: translateY(0);
}

.tech-data__card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(20% - 20px);
    min-width: 200px;
    padding: 20px;
    border: 1px solid #FFFFFF33;
    border-radius: 20px;
    background-color: #FFFFFF1A;
    transform-origin: center;
    transition: transform 0.4s ease, height .6s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.tech-data__card-img {
    position: relative;
    height: 105px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-data__card-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #16354D80;
}

.tech-data__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-data__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-weight: 700;
    color: var(--gray-300);
    font-size: var(--text-size-20);
    line-height: 1.3em;
}

.tech-data__btn span {
    font-weight: 400;
    font-size: var(--text-size-36);
    line-height: 1.15em;
    letter-spacing: 0.02em;
    color: var(--primary);
}

.tech-data__btn svg {
    transform: rotate(45deg);
    transition: transform .6s ease-in-out;
}

.tech-data__btn:hover svg {
    transform: rotate(-135deg);
}

.tech-data-list {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    gap: 4px;
    transition: grid-template-rows .6s ease, opacity .6s ease;
}

.tech-data-list__inner {
    overflow: hidden;
}

.tech-data__card.active {
    height: var(--card-open-height);
    transition-delay: 0s;
}

.tech-data__card.active .tech-data-list {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 20px;
}

.tech-data__card.active .tech-data__btn svg {
    transform: rotate(-135deg);
}

.tech-data-list a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 24px;
    color: var(--gray-100);
    line-height: 1.5em;
    transition: all .6s ease-in-out;
}

.tech-data-list a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    opacity: 0;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background-color: var(--primary);
    -webkit-mask-image: url("../../img/svg/arrow-right.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-image: url("../../img/svg/arrow-right.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.tech-data-list a:hover::after  {
    opacity: 1;
}

@media (max-width: 1199px) {
    .tech-data__wrapper {
        margin-top: 20px;
    }

    .tech-data__wrapper.has-active .tech-data__card:not(.active):not(.opening) {
        transform: translateY(0);
    }

    .tech-data__card {
        flex: 1 1 calc(50% - 20px);
    }

    .tech-data__label {
        margin-bottom: 20px;
    }

    .tech-data__title {
        font-size: var(--text-size-24);
    }

    .tech-data__text {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .tech-data__wrapper {
        grid-template-columns: repeat(1, 1fr);
    }

    .tech-data__card {
        flex: 1 1 100%;
    }

    .tech-data__wrapper.has-active .tech-data__card.active {
        min-height: min-content;
    }

    .tech-data__wrapper.has-active .tech-data__card:not(.active):not(.opening) {
        transform: translateY(0);
    }
}