.cabinet {
    font-family: var(--font-family);
    color: var(--chernyy);
}

.cabinet__wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cabinet__data {
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.07);
    background: var(--belyy);
    padding: 15px;
}

.cabinet__data-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cabinet__subtitle {
    font-weight: 700;
    font-size: clamp(16px, 12.8px + 1vw, 30px);
    line-height: 150%;
    margin-bottom: 10px;
}

.cabinet__data-edit {
    width: 20px;
    height: 20px;
}

.cabinet__data-wr {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cabinet__data-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cabinet__data-label {
    display: flex;
    flex: 1;
    font-weight: 500;
    font-size: clamp(15px, 13.929px + 0.335vw, 18px);
    line-height: 140%;
    color: var(--seryy);
}

.cabinet__data-label::after {
    content: "";
    border-bottom: 1px solid var(--seryy);
    flex: 1;
    margin-inline: 5px;
}

.cabinet__data-value {
    font-weight: 500;
    font-size: clamp(15px, 13.929px + 0.335vw, 18px);
    line-height: 140%;
}

.cabinet__bonus {
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.07);
    background: var(--belyy);
    padding: 15px;
}

.cabinet__bonus-scoreboard {
    background: var(--svetlo-seryy);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 15px;
}

.cabinet__bonus-value {
    font-weight: 600;
    font-size: clamp(20px, 17.143px + 0.893vw, 30px);
    line-height: 120%;
    text-transform: uppercase;
    color: var(--firmennyy);
}

.cabinet__bonus-warning {
    color: var(--seryy);
    font-weight: 500;
    font-size: 15px;
    line-height: 140%;
}

.cabinet__bonus-owner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cabinet__owner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cabinet__owner-label {
    display: flex;
    flex: 1;
    font-weight: 500;
    font-size: clamp(15px, 13.929px + 0.335vw, 18px);
    line-height: 140%;
    color: var(--seryy);
}

.cabinet__owner-label::after {
    content: "";
    border-bottom: 1px solid var(--seryy);
    flex: 1;
    margin-inline: 5px;
}

.cabinet__owner-value {
    font-weight: 500;
    font-size: clamp(15px, 13.929px + 0.335vw, 18px);
    line-height: 140%;
}

.cabinet__bonus-history {
    display: block;
    padding: 15px;
    font-weight: 500;
    font-size: clamp(15px, 13.929px + 0.335vw, 18px);
    line-height: 140%;
    color: var(--chernyy);
    background: var(--svetlo-seryy);
    font-family: var(--font-family);
    margin: 15px 0;
}

.cabinet__bonus-conditions {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: clamp(15px, 13.929px + 0.335vw, 18px);
    line-height: 140%;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: var(--chernyy);
}

.cabinet__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cabinet__link-item {
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.07);
    background: var(--belyy);
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 3px;
}

.cabinet__certificate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.cabinet__item-label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cabinet__title-logo {
    width: 20px;
    height: 20px;
}

.cabinet__item-title {
    font-weight: 500;
    font-size: clamp(16px, 12.8px + 1vw, 30px);
    line-height: 150%;
    color: var(--chernyy);
}

.cabinet__item-sumary {
    font-weight: 500;
    font-size: clamp(15px, 13.929px + 0.335vw, 18px);
    line-height: 140%;
    color: var(--seryy);
}

.cabinet__item-btn {
    background: var(--svetlo-seryy);
    font-weight: 500;
    font-size: clamp(15px, 13.929px + 0.335vw, 18px);
    color: var(--chernyy);
    font-family: var(--font-family);
    line-height: 140%;
    text-align: center;
    padding: 15px 0;
    grid-area: 1/2/3/3;
}

.cabinet__item-arow {
    width: 8px;
    height: 14px;
}

@media (min-width: 768px) {
    .cabinet__wrapper {
        gap: 20px;
    }
    .cabinet__data {
        padding: 20px;
    }

    .cabinet__bonus {
        padding: 20px;
    }
    .cabinet__item-label {
        gap: 10px;
    }

    .cabinet__link-item {
        padding: 20px;
    }

    .cabinet__subtitle {
        font-weight: 500;
        line-height: 140%;
    }

    .cabinet__data-wr {
        gap: 20px;
    }

    .cabinet__bonus-owner {
        gap: 20px;
    }

    .cabinet__bonus-value {
        font-weight: 500;
        line-height: 117%;
    }
    .cabinet__bonus-warning {
        font-size: 16px;
        line-height: 131%;
    }

    .cabinet__bonus-conditions {
        justify-self: end;
        width: max-content;
    }

    .cabinet__item-title {
        line-height: 117%;
    }

    .cabinet__item-btn {
        max-width: 140px;
        justify-self: end;
        padding: 17px 30px;
    }
}
@media (min-width: 1200px) {
    .cabinet__wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }

    .cabinet__links {
        grid-area: 2/1/3/3;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 20px;
    }

    .cabinet__bonus {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .cabinet__bonus-history {
        padding: 0;
        margin: 0;
        background: none;
    }

    .cabinet__bonus-scoreboard {
        margin: 0;
    }
    .cabinet__title-logo {
        width: 25px;
        height: 25 px;
    }
}

@media (min-width: 1900px) {
    .cabinet__bonus {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
        column-gap: 20px;
        row-gap: 25px;
    }
    .cabinet__bonus-title {
        grid-area: 1/1/2/3;
    }

    .cabinet__bonus-title.cabinet__subtitle {
        margin: 0;
    }

    .cabinet__link-item {
        gap: 0;
    }
}

/* Figma "М. Бонусы": page title is #1d1b1b (other mobile titles are #333333) */
@media (max-width: 767px) {
	.points__title {
		color: var(--chernyy);
	}
}
