/* стили для страницы словаря */
@media screen and (max-width: 479px) {
    .container {
        padding: 0;
    }
}

.terms-main {
    display: flex;
    padding: 30px 30px;
    background-color: #fff;
}

.terms-main__section-left {
    margin: 0 30px 0 0;
}

@media screen and (max-width: 767px) {
    .terms-main__section-left {
        display: none;
    }
}

.terms-nav {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 80px;
    width: 200px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    max-height: 85vh;
    overflow: scroll;
    scrollbar-width: none;
}

@media (max-width: 991px) {
    .terms-nav {
        width: 160px;
    }
}

.terms-nav__top-elem {
    padding: 20px;
    border-top: 1px solid #eee;
}

.terms-nav__elem {
    padding: 20px;
    border-top: 1px solid #eee;
    line-height: 1;
    cursor: pointer;
    font-size: 16px;
    transition: none;
}

.terms-nav__elem:hover {
    color: #fff;
    background-color: #42aaff;
}

.terms-nav__elem.active {
    color: #fff;
    background-color: #42aaff;
}

.terms-main__section-right {
    width: 100%;
}

.terms-main__title {
    margin-bottom: 20px;
    font-size: 32px;
}

@media screen and (max-width: 479px) {
    .terms-main__title {
        font-size: 28px;
    }
}

.terms-main__search {
    position: relative;
    padding: 5px 20px;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.terms-main__search .search__input {
    padding: 0 80px 0 0;
}

@media screen and (max-width: 479px) {
    .terms-main__search .search__input {
        padding: 0 65px 0 0;
    }
}

.terms-search-reset {
    position: absolute;
    top: 25px;
    right: 20px;
    font-size: 14px;
    color: #aaa;
    cursor: pointer;
}

@media screen and (max-width: 479px) {
    .terms-search-reset {
        top: 23px;
        font-size: 12px;
    }
}

.terms__title-letter {
    width: 100%;
    padding: 0 0 0 20px;
    font-size: 28px;
    font-weight: 700;
    border-bottom: 1px solid #1975BE;
}

@media screen and (max-width: 479px) {
    .terms__title-letter {
        font-size: 24px;
    }
}

.terms-group__body {
    padding: 20px;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.terms-group__body__accordition {
    cursor: pointer;
}

.terms-group__body__name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 0;
    font-size: 22px;
}

@media screen and (max-width: 479px) {
    .terms-group__body__name {
        font-size: 18px;
    }
    .terms-group__body__desc {
        font-size: 14px;
    }
}

.terms-group__body__name img {
    transition: transform 0.4s;
}

.terms-group__body__accordition.active .terms-group__body__name img {
    transform: rotate(135deg);
}

.terms-group__body__article {
    margin: 20px 0 10px;
}

.terms-group__body__article a {
    color: #1975be;
}

.terms-group__body__category {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0 10px;
    gap: 10px 15px;
}

@media screen and (max-width: 479px) {
    .terms-group__body__category {
        font-size: 14px;
    }
}

.terms-group__body__category a {
    padding: 10px;
    color: #fff;
    background-color: #1975BE;
    border-radius: 5px;
}

.terms-group__body__category a:hover {
    background-color: #42aaff;
}

.term-hide {
    padding: 10px 50px 0 0;
    display: none;
}

.term-search-hide {
    display: none;
}
