.cp-section-elements__dropdown {
    position: absolute;
    right: 0;
    top: 0;
    font-weight: 400;
    font-size: 42px;
    line-height: 63px;
    letter-spacing: 0%;
    text-align: center;
}

.cp-section-elements--title {
    font-weight: 700;
    font-size: 42px;
    line-height: 63px;
    margin-bottom: 30px;
}
li.cp-section-elements__card:hover {
    border: 1px solid rgba(170, 24, 44, 1);
}
li.cp-section-elements__card {
    width: 115px;
    height: 115px;
    border-radius: 65px;
    border: 1px solid transparent;
}
li.cp-section-elements__card.select {
    border: 1px solid rgba(170, 24, 44, 1);
}

.cp-section-elements {
    width: 100%;
    margin-bottom: 70px;
    margin-top: 30px;
}

.cp-section-elements__empty {
    margin: 0;
    padding: 24px 0;
    color: #64748b;
    font-size: 15px;
}

.cp-section-elements__tabs {
    width: 100%;
}

.cp-section-elements__dropdown {
    width: 100%;
    margin: 0 0 22px;
    position: relative;
}

.cp-section-elements__select {
    width: auto;
    appearance: none;
    border: 0;

    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    outline: none;
    font-weight: 400;
    cursor: pointer;
    font-size: 42px;
    line-height: 63px;
    letter-spacing: 0%;
    text-align: center;

}

.cp-section-elements__select:focus {

}
.cp-section-elements__dropdown {
    position: absolute;
    width: auto;
    right: 30px;
}
.cp-section-elements__tablist {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 22px;
}

.cp-section-elements__tab {
    appearance: none;
    border: 1px solid rgba(170, 24, 44, 1);
    background: #fff;
    color: rgba(170, 24, 44, 1);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cp-section-elements__tab:hover {
    background: rgba(170, 24, 44, 0.06);
}

.cp-section-elements__tab.is-active {
    background: rgba(170, 24, 44, 1);
    color: #fff;
}

.cp-section-elements__panels {
    width: 100%;
}

.cp-section-elements__panel {
    display: none;
}

.cp-section-elements__panel.is-active {
    display: block;
}

.cp-section-elements__grid {
    display: flex;
    gap: 46px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.cp-section-elements__card {
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cp-section-elements__card:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.cp-section-elements__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.cp-section-elements__media {

}

.cp-section-elements__img {
    width: 115px;
    height: 115px;
    object-fit: cover;
    display: block;
    background-size: 100%;
}

.cp-section-elements__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.cp-section-elements__body {
    padding: 20px 20px 22px;
}

.cp-section-elements__title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    color: #0f172a;
}

.cp-section-elements__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

/* Красивый селект для выбора подраздела */
.cp-section-elements__dropdown::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 10px;
    height: 10px;

    pointer-events: none;
}

.cp-section-elements__tomselect-ready .cp-section-elements__dropdown::after {
    display: none;
}

/* Кастомная стрелочка для Tom Select */
.cp-section-elements__tomselect-ready .ts-dropdown-indicator {
    display: none !important;
}

.cp-section-elements__dropdown-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.cp-section-elements__dropdown-arrow svg {
    transition: transform 0.2s ease;
}

.cp-section-elements__tabs-open .cp-section-elements__dropdown-arrow svg {
    transform: rotate(180deg);
}

.cp-section-elements__select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;


    color: rgba(170, 24, 44, 1);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    outline: none;
    transition: box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.cp-section-elements__select:hover {
    background: rgba(170, 24, 44, 0.04);
}

.cp-section-elements__select:focus {
    box-shadow: 0 0 0 4px rgba(170, 24, 44, 0.12);
}

.cp-section-elements__dropdown .item:hover {
    color: #aa182c;
}
.cp-section-elements__dropdown .item {
    padding-right: 50px;
    font-weight: 400;
    font-size: 42px;
    line-height: 63px;
    text-align: center;
    text-decoration: none!important;
    text-decoration-style: solid;
    text-decoration-thickness: 3%;
    cursor: pointer;
}
.cp-section-elements__dropdown .ts-dropdown {
    border: 0;
}
.cp-section-elements__dropdown .ts-control  input[type="text"] {
    display: none!important;}
.cp-section-elements__dropdown .ts-dropdown .active {
    background-color: #f5fafd;
    color: #aa182c;
    background: none;
}
.cp-section-elements__dropdown .ts-dropdown  {

    font-weight: 400;
    font-size: 36px;
    line-height: normal;
    text-align: left;}
.cp-section-elements__dropdown .ts-dropdown-content {
    overflow: hidden auto;
    max-height: initial;
    scroll-behavior: smooth;
}
.cp-section-elements__dropdown .ts-control {
    border: 0;
    padding: 0px;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    box-shadow: none;
    border-radius: 0px;
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cp-section-elements__dropdown {
        position: relative;
        width: auto;
        right: auto;
    }
}