.tasks__content {
    margin-top: 3.75rem;
}

.tasks__table {
    width: 100%;
    border-collapse: collapse;
    color: #7B7E82;
    text-align: left;
    font-weight: 700;
}

.tasks__table thead th {
    font-size: var(--font-button-desktop);
    font-weight: 900;
    text-transform: uppercase;
    color: #202938;
    padding-bottom: 1.75rem;
    font-family: "Unbounded", sans-serif;
}

.tasks__table thead th:last-child {
    color: var(--color-accent);
}

.tasks__result-title {
    padding-left: 0.75rem;
}

.tasks__table tbody td {
    padding-top: 1rem;
    padding-right: 1.875rem;
    padding-left: 0.75rem;
    padding-bottom: 1rem;
    font-size: var(--font-main-desktop);
    vertical-align: top;
    line-height: 1.35;
}

.tasks__table tbody tr:nth-child(odd) {
    background-color: #FFFFFF;
}

.tasks__result {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #202938;
}

.tasks__result strong {
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--font-small-desktop);
}

.tasks__check {
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--color-accent);
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: auto;
}

@media (max-width: 768px) {
    .tasks__table,
    .tasks__table tbody,
    .tasks__table tr,
    .tasks__table td {
        display: block;
    }

    .tasks__table thead {
        display: none;
    }

    .tasks__table tr {
        margin-bottom: 1.25rem;
        padding: 1rem;
        background: #fff;
        border-radius: 0.5rem;
    }

    .tasks__table td {
        padding: 0.75rem 0;
    }

    /* Галерея на мобилках (строк > 2) */
    .tasks--gallery .tasks__tbody {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tasks--gallery .tasks__tbody::-webkit-scrollbar {
        display: none;
    }

    .tasks--gallery .tasks__row {
        flex: 0 0 100%;
        min-width: 100%;
        scroll-snap-align: start;
        margin: 0;
        box-sizing: border-box;
    }

    .tasks--gallery .tasks__pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .tasks__dot {
        cursor: pointer;
        background-color: #e0e0e0;
        height: 1rem;
        width: 1rem;
        border-radius: 100px;
        border: none;
        padding: 0;
        transition: background-color 0.3s ease, width 0.3s ease;
    }

    .tasks__dot--active {
        background-color: #ff6b01;
    }

    .tasks__dot:hover {
        background-color: #ff873d;
    }
}

@media (min-width: 769px) {
    .tasks--gallery .tasks__pagination {
        display: none;
    }
}

@media (max-width: 768px) {
    .tasks__table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.75rem;
        font-weight: 900;
        text-transform: uppercase;
        color: #202938;
        font-size: 2rem;
        font-family: "Unbounded", sans-serif;
    }

    .tasks__table tbody td {
        font-size: 2rem;
    }

    .tasks__result { gap: 1.25rem; }
    .tasks__hr { display: none; }
}

.tasks__hr {
    margin-top: 0.625rem;
    border: 1px solid #D5D1C9;
}