/* Аккордеон для политики конфиденциальности - стили из cookie аккордеона */
.text-content {
    display: grid;
    grid-gap: 8px;
}

/* Создаем визуальную обертку для каждого блока h2 + div */
.text-content > h2 {
    position: relative;
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background-color: var(--gray-1);
    cursor: pointer;
    transition: .4s;
    padding: 20px;
    margin: 0;
    border-radius: 12px;
    user-select: none;
}

/* Когда следующий div активен, убираем нижний border-radius у h2 */
.text-content > h2.active {
    border-radius: 12px 12px 0 0;
}

@media only screen and (min-width: 1024px) {
    .text-content > h2 {
        font-size: 24px;
        line-height: 30px;
        border-radius: 20px;
        padding: 30px 40px;
    }

    .text-content > h2.active {
        border-radius: 20px 20px 0 0;
    }
}

/* Иконка стрелки */
.text-content > h2::after {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.99996 12.5602C7.7132 12.5602 7.42649 12.4507 7.20787 12.2322L0.328226 5.3525C-0.109409 4.91487 -0.109409 4.20532 0.328226 3.76786C0.765684 3.3304 1.47509 3.3304 1.91276 3.76786L7.99996 9.85541L14.0872 3.76807C14.5248 3.33061 15.2342 3.33061 15.6716 3.76807C16.1094 4.20553 16.1094 4.91508 15.6716 5.35271L8.79205 12.2324C8.57332 12.451 8.2866 12.5602 7.99996 12.5602Z' fill='%23313131'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform .2s ease-in-out;
    flex-shrink: 0;
}

.text-content > h2.active::after {
    transform: rotate(180deg);
}

/* Контент аккордеона */
.text-content > h2 + div {
    display: none;
    padding: 0 20px;
    background-color: var(--gray-1);
    border-radius: 0 0 12px 12px;
    margin-top: -8px;
}

@media only screen and (min-width: 1024px) {
    .text-content > h2 + div {
        border-radius: 0 0 20px 20px;
        padding: 0 40px;
    }
}

.text-content > h2 + div.active {
    display: block;
    padding-bottom: 30px;
}
