section.services {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 28px;
}
section.services:has(.open) {
    margin-bottom: 46px;
}

section.services:has(.on-search-mode) {
    min-height: 600px;
}

section.services.empty-state::after {
    content: "No results found";
    font-size: 12px;
    line-height: 19px;
    margin-top: 5px;
}

section.services > * {
    border-bottom: 1px solid var(--color-black);
}

section.services .service-group-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
    color: var(--color-black);
}

section.services .service-group-container .service-group {
    font-family: Obviously Wide Medium;
    font-size: 24px;
    line-height: 38px;
}

section.services:has(.on-search-mode) .service-group-container {
    cursor: auto;
    pointer-events: none;
}

section.services .accordion-icon {
    position: relative;
    right: 3px;
    bottom: -3px;
    width: 26px;
    height: 13px;
}

section.services .items-list {
    display: none;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 27px;
}

section.services li {
    font-family: Obviously Light;
    font-size: 14px;
    line-height: 180%;
}

section.services li.has-children {
    display: flex;
    flex-direction: column;
}

section.services li.has-children.open .row-container {
    color: var(--color-red);
}

section.services li.has-children .row-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

section.services li.has-children .secondary-icon img {
    position: relative;
    width: 15px;
    height: 8px;
    bottom: -1px;
    cursor: pointer;
}

section.services li ul.child-items {
    margin: 20px 0;
    display: none;
    flex-direction: column;
    gap: 20px;
}

section.services li.has-children.open ul.child-items {
    display: flex;
}

section.services li.has-children.open button img {
    content: url("../../assets/img/secondary-menu-icon-opened.svg");
}

section.services .column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

section.services .inner-list-item a {
    display: flex;
    gap: 9px;
}

section.services > *.open .service-group {
    color: var(--color-red);
}

section.services > *.open .items-list {
    display: grid;
}

section.services > *.open .service-group-container {
    margin-bottom: 27px;
}

section.services:has(.on-search-mode) {
    gap: 45px;
    margin-bottom: 95px;
}

section.services > *.on-search-mode {
    border-bottom: unset;
}

section.services > *.on-search-mode .service-group-container {
    margin-bottom: unset;
}

section.services > *.on-search-mode .items-list {
    display: grid;
    margin-top: 24px;
    margin-bottom: unset;
}

section.services > *.on-search-mode .accordion-icon {
    display: none;
}
section.services > *.no-result {
    display: none;
}

@media (min-width: 768px) {
    section.services {
        gap: 75px;
        margin-top: 60px;
        margin-bottom: 260px;
    }

    section.services .service-group-container .service-group {
        font-size: 72px;
        line-height: 93px;
    }

    section.services .accordion-icon {
        width: 82px;
        height: 41px;
        right: unset;
    }

    section.services .service-group-container {
        margin-bottom: 22px;
    }

    section.services .accordion-icon {
        bottom: -7px;
    }

    section.services .items-list {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    section.services li {
        font-size: 20px;
        line-height: 31.9px;
    }

    section.services li.has-children .secondary-icon img {
        width: 20px;
        height: 12px;
        bottom: -2px;
    }

    section.services .column {
        gap: 30px;
    }

    section.services .column .list-item {
        min-height: 60px;
    }

    section.services .list-item:hover {
        color: var(--color-red);
    }

    section.services li ul.child-items {
        margin: 30px 0 30px;
        gap: 30px;
    }

    section.services .inner-list-item a {
        gap: 12px;
    }

    section.services .inner-list-item:hover {
        color: var(--color-red);
    }

    section.services li.has-children .row-container {
        align-items: start;
        gap: 20px;
    }

    section.services li.has-children .row-container .secondary-icon img {
        position: relative;
        top: 12px;
    }

    section.services li:hover .row-container {
        color: var(--color-red);
    }

    section.services > *.open .service-group-container {
        margin-bottom: 32px;
    }

    section.services > *.open .accordion-icon {
        bottom: -14px;
    }

    section.services .items-list {
        margin-bottom: 7px;
    }

    section.services:has(.open) {
        margin-bottom: 60px;
    }

    section.services .service-group-container:hover .service-group {
        color: var(--color-red);
    }

    section.services:has(.on-search-mode) .service-group-container:hover .service-group {
        color: var(--color-black);
    }

    section.services:has(.on-search-mode) {
        gap: 50px;
        margin-bottom: unset;
        margin-top: unset;
        padding-top: 60px;
        padding-bottom: 130px;
        min-height: 625px;
    }

    section.services > *.on-search-mode .items-list {
        margin-top: 20px;
    }

    section.services > *.on-search-mode .service-group-container .service-group {
        font-size: 2rem;
        line-height: 2.5625rem;
    }

    section.services.empty-state::after {
        font-size: 20px;
        line-height: 32px;
    }
}

@media (min-width: 1194px) {
    section.services .service-group-container {
        margin-bottom: 22px;
    }

    section.services .accordion-icon {
        right: -5px;
    }
}

@media (min-width: 1500px) {
    section.services .items-list {
        grid-template-columns: repeat(3, 1fr);
        margin-bottom: 109px;
    }

    section.services:has(.open) {
        margin-bottom: 100px;
    }

    section.services .inner-list-item a {
        gap: 13px;
    }

    section.services li.has-children .row-container {
        gap: 35px;
    }
}
