.portfolio {
    padding: 0 40px;
    margin-bottom: 120px;
}

.portfolio-tabs {
    display: flex;
    gap: 20px;
    background-color: #000;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.portfolio-tab {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.portfolio-tab__active {
    font-weight: 600;
    color: var(--cyan-color);
}

.portfolio-tab__active:hover {
    color: var(--cyan-color) !important;
    text-decoration: none !important;
}

.portfolio-tab:hover {
    text-decoration: underline;
    color: var(--goluboy-color);
}


/* БЛОКИ */
.portfolio__blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-block {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-block.show {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-block.hidden-completely {
    display: none;
}


.portfolio-block-img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background-color: transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.portfolio-block-img:hover {
    transform: scale(1.02);
}

.portfolio-text-block {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.portfolio-go {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #787878;
    margin-bottom: 4px;
}

.portfolio-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1;
    color: var(--black-color);
    text-decoration: none;
    margin-bottom: 17px;
    transition: all 0.4s;
    cursor: pointer;
}

.portfolio-name:hover {
    color: var(--blue-color);
}

.portfolio-desc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 17px;
    color: #787878;
}