/* Capabilities (Tabs) Section */
.capabilities {
    background-color: var(--color-white);
}

.tabs {
    display: flex;
    gap: 60px;
    margin-top: 60px;
}

.tabs__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tabs__item {
    padding: 16px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--radius-icon);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    color: #999;
}

.tabs__item:hover {
    color: var(--color-text-main);
    background-color: #FAFAFA;
    border-color: var(--card-border);
}

.tabs__item--active {
    color: var(--color-text-main);
    background: var(--icon-box-gradient);
    border-color: rgba(242, 101, 34, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tabs__item--active:hover {
    background: var(--icon-box-gradient);
    border-color: rgba(242, 101, 34, 0.35);
}

.tabs__item--active .tabs__name {
    font-weight: 700;
    color: var(--color-text-main);
}

.tabs__item--active .tabs__num {
    color: var(--color-primary);
    font-weight: 700;
}

.tabs__num {
    font-size: 12px;
    font-weight: 500;
}

.tabs__name {
    font-size: 16px;
    font-weight: 400;
}

.tabs__content-wrapper {
    /* Відступ під фіксовану шапку при scrollIntoView */
    scroll-margin-top: 110px;
    flex: 1;
    background: var(--card-gradient);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 60px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 100px;
}

.tabs__content {
    max-width: 650px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tabs__content--active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tabs__icon-box {
    width: 56px;
    height: 56px;
    border: 1px solid var(--icon-box-border);
    border-radius: 14px;
    background: var(--icon-box-gradient);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    flex-shrink: 0;
}

.tabs__icon-box img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(43%) sepia(88%) saturate(722%) hue-rotate(357deg) brightness(101%) contrast(91%);
}

.tabs__title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text-main);
}

.tabs__text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-main);
    margin-bottom: 30px;
}

.tabs__line {
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1100px) {
    .tabs {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .tabs__content-wrapper {
        padding: 35px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .tabs {
        gap: 30px;
        margin-top: 30px;
    }

    .tabs__content-wrapper {
        padding: 24px;
    }
}
