.services {
    width: 100%;
    max-height: 768px;
    min-height: 768px;
    max-width: 1260px;
    margin: 0px auto;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
}

.services__title {
    display: flex;
}

.services__title-text1 {
    color: #000;
    font-family: "Evolventa", sans-serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.services__title-text2 {
    color: #229DA4;
    font-family: "Evolventa", sans-serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.services__tabs {
    margin-top: 60px;
    margin-bottom: 50px;
    display: flex;
}

.services__tab {
    height: 65px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.30);
    cursor: pointer;
    color: #000;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.services__tab::after {
    content: attr(data-text);
    font-weight: 600;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.services__tab_selected {
    padding-top: 2px;
    cursor: default;
    border-bottom: 3px solid #229DA4;
    color: #229DA4;
    font-style: normal;
    font-weight: 600;
}

.services__tab-gap {
    min-width: 20px;
    flex-shrink: 0;
    flex-grow: 1;
    height: 65px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.30);
}

.tab {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex-grow: 1;
}

.tab__title {
    color: #229DA4;
    font-family: "Evolventa", sans-serif;
    font-size: 26px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.tab_content {
    display: flex;
    gap: 90px;
    flex-grow: 1;
}

.tab__left {
    width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tab__description {
    color: #000;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.tab__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tab__info-line {
    display: flex;
    gap: 15px;
}

.tab__info-label {
    color: #000;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.tab__info-value {
    color: #229DA4;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.tab__right {
    padding: 30px;
    height: 340px;
    border-radius: 30px;
    background: rgba(34, 157, 164, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.tab__right-top {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.tab__right-service {
    display: flex;
    justify-content: space-between;
}

.tab__right-service-name {
    color: #000;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.tab__right-service-price {
    color: #000;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    flex-shrink: 0;
}

.tab__right-bot {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tab__right-bot-title {
    color: #000;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.tab__right-bot-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tab__right-bot-points {
    display: flex;
    gap: 36px;
}

.tab__right-bot-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tab__right-bot-line {
    position: relative;
    padding-left: 14px;
    color: #000;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.tab__right-bot-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #229DA4;
}

.tab__button {
    width: 243px;
    height: 50px;
}

.services__accordion {
    display: none;
}

@media (max-width: 1279px) {
    .tab__right-bot-points {
        flex-direction: column;
        gap: 6px;
    }

    .tab__right-bot {
        gap: 10px;
    }
}

@media (max-width: 1023px) {
    .services {
        max-height: none;
        min-height: auto;
    }

    .tab_content {
        flex-direction: column;
        gap: 30px;
    }

    .tab__left {
        width: 100%;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .services {
        padding: 25px 20px;
        height: auto;
    }

    .services__title {
        flex-wrap: wrap;
    }

    .services__title-text1,
    .services__title-text2 {
        font-size: clamp(24px, 7.5vw, 30px);
    }

    .services__tabs,
    .services__tab-content {
        display: none;
    }

    .services__accordion {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 36px;
    }

    .services__accordion-item {
        background: rgba(121, 121, 121, 0.08);
        border-radius: 20px;
        padding: 20px 14px;
        transition: background 0.3s ease;
    }

    .services__accordion-item:not(.services__accordion-item_open):active {
        background: rgba(121, 121, 121, 0.15);
    }

    .services__accordion-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    .services__accordion-name {
        font-family: "Manrope", sans-serif;
        font-size: 20px;
        font-weight: 400;
        line-height: 1.4;
        color: #000;
    }

    .services__accordion-icon {
        flex-shrink: 0;
    }

    .services__accordion-icon-v {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .services__accordion-body {
        display: flex;
        flex-direction: column;
        gap: 24px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, margin-top 0.4s ease;
        margin-top: 0;
    }

    .services__accordion-item_open .services__accordion-body {
        margin-top: 24px;
    }

    .services__accordion-item_open .services__accordion-name {
        font-weight: 500;
        color: #229DA4;
    }

    .services__accordion-item_open .services__accordion-icon-v {
        transform: scaleY(0);
        opacity: 0;
    }

    .services__accordion-item_open .services__accordion-icon-h {
        stroke: #229DA4;
    }

    /* Restyle loaded tab content inside accordion */
    .services__accordion-content .tab {
        gap: 0;
    }

    .services__accordion-content .tab__title {
        display: none;
    }

    .services__accordion-content .tab_content {
        flex-direction: column;
        gap: 0;
    }

    .services__accordion-content .tab__left {
        width: 100%;
        gap: 24px;
        padding-bottom: 24px;
        border-bottom: 0.75px solid rgba(0, 0, 0, 0.15);
    }

    .services__accordion-content .tab__description,
    .services__accordion-content .tab__info-label,
    .services__accordion-content .tab__info-value {
        font-size: clamp(14px, 4.2vw, 18px);
    }

    .services__accordion-content .tab__info {
        padding-top: 24px;
        border-top: 0.75px solid rgba(0, 0, 0, 0.15);
    }

    .services__accordion-content .tab__right {
        padding: 0;
        background: none;
        height: auto;
        border-radius: 0;
        gap: 24px;
        padding-top: 24px;
    }

    .services__accordion-content .tab__right-top {
        gap: 20px;
    }

    .services__accordion-content .tab__right-service {
        flex-direction: column;
    }

    .services__accordion-content .tab__right-service-name {
        font-size: clamp(14px, 4.2vw, 18px);
    }

    .services__accordion-content .tab__right-service-price {
        font-weight: 500;
        font-size: clamp(16px, 4.8vw, 20px);
    }

    .services__accordion-content .tab__right-bot {
        display: none;
    }

    .services__accordion-content .tab__button {
        display: none;
    }

    .services__accordion-button {
        width: 100%;
        min-height: 60px;
        padding: 14px 27px;
        border: none;
        border-radius: 12px;
        background: #20C6D0;
        color: #fff;
        font-family: "Manrope", sans-serif;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.5;
        cursor: pointer;
        margin-top: 24px;
        box-sizing: border-box;
    }
}