.our-when{
    width: 100%;
    margin-top: 80px;
    display: flex;
    justify-content: center;
}

.our-when-width{
    width: 1280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.our-when-width-head{
    font-weight: 700;
    font-size: 35px;
    text-align: center;
    color: #333333;
}

.our-when-width-text{
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    color: #333333;
}

.tabs {
    position: relative;
    width: 100%;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
}

.tab-buttons {
    display: flex;
    justify-content: space-between;
    position: relative;
    border-bottom: 1px solid #D8DBDE;
    width: 850px;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    color: #333333;
    transition: color 0.3s;
    z-index: 1;
}

.tab-button.active {
    color: #747B8F;
    font-weight: 600;
}

/* Подвижная линия */
.tab-underline {
    position: absolute;
    bottom: -1px;
    height: 3px;
    background-color: #747B8F;
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease;
    z-index: 0;
}

/* Контент вкладки с анимацией */
.tab-content {
    display: none;
    background-color: #ffffff;
    border-radius: 20px;
    border-top: 5px solid #747B8F;
    padding: 50px 110px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0s, transform 0.3s ease 0s;
    width: 100%;
    box-sizing: border-box;
}

.tab-content.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
    flex-direction: column;
    gap: 40px;
}

.tab-content h3 {
    font-weight: 700;
    font-size: 30px;
    text-align: center;
    color: #333333;
}

.tab-content p {
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    color: #333333;
}

.our-when-link-block{
    display: flex;
    justify-content: flex-end;
}

.our-when-link{
  background: #ffdd2d;
  border-radius: 10px;
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  color: #333333;
  transition: all 0.3s;
  text-decoration: none;
  padding: 20px 55px;
}

.our-when-link:hover{
  background: #ffffff;
  color: #333333;
}




@media (max-width: 1280px){

    .our-when-width {
        width: 90%;
    }

    .our-when {
        margin-top: 50px;
    }

    .our-when-width-head{
        font-weight: 600;
        font-size: 25px;
    }

    .our-when-width-text{
        font-weight: 400;
        font-size: 12px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .tabs {
        width: 100%;
        margin-top: 0;
        gap: 33px;
    }

    .tab-buttons {
        width: 100%;
    }

    .tab-button{
        font-weight: 400;
        font-size: 12px;
        padding: 0px 0px 15px 0px;
    }

    .tab-content{
        border-top: 3px solid #747B8F;
        padding: 40px 16px;
    }

    .tab-content h3 {
        font-weight: 700;
        font-size: 18px;
    }

    .tab-content p {
        font-weight: 400;
        font-size: 14px;
    }

    .tab-content.active {
        gap: 30px;
    }

    .our-when-link {
        width: 100%;
        padding: 20px 0;
        font-weight: 400;
        font-size: 14px;
    }

}