/**
 * Vacancy points block.
 *
 * A section of a vacancy's page in the site's own terms: a 40 px bold
 * heading, as the headings of the course pages, 36 px over the points —
 * 18 px text at 28 px, as the vacancy text on bebestschool.com/offer.
 * "Ticks": two columns, a 32 px #1cb65a tick before each point. "Numbers":
 * two columns, a 44 px bold #f66746 number before each, a rule between the
 * rows. "Cards": white cards rounded 20 px, three to a row, on the section's
 * grey. Phones: one column.
 */

.bbs-vpoints {
    padding: 64px 0;
    background: #ffffff;
    color: #000000;
    font-family: var(--bbs-font, 'ApercuPro', Arial, sans-serif);
}

.bbs-vpoints--cards {
    background: #f0f0f0;
}

.bbs-vpoints__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bbs-vpoints__title {
    margin: 0;
    color: inherit;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
}

.bbs-vpoints__text {
    max-width: 780px;
    margin: 14px 0 0;
    font-size: 20px;
    line-height: 31px;
}

.bbs-vpoints__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 60px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.bbs-vpoints__title + .bbs-vpoints__list,
.bbs-vpoints__text + .bbs-vpoints__list {
    margin-top: 36px;
}

.bbs-vpoints__list:first-child {
    margin-top: 0;
}

.bbs-vpoints__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
    font-size: 18px;
    line-height: 28px;
}

.bbs-vpoints__point {
    min-width: 0;
    padding-top: 2px;
}

/* ── Ticks ── */
.bbs-vpoints__tick {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    background: #1cb65a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9.5 16.5l4.5 4.5 8.5-9.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* On the green band the tick turns white, on the yellow one it stays green. */
.bbs-vpoints.bbs-bg--green {
    color: #ffffff;
}

.bbs-vpoints.bbs-bg--green .bbs-vpoints__tick {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9.5 16.5l4.5 4.5 8.5-9.5' fill='none' stroke='%231cb65a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── Numbers ── */
.bbs-vpoints--numbers .bbs-vpoints__list {
    gap: 0 60px;
}

.bbs-vpoints--numbers .bbs-vpoints__item {
    align-items: center;
    gap: 22px;
    padding: 22px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.bbs-vpoints--numbers .bbs-vpoints__point {
    padding-top: 0;
}

.bbs-vpoints__num {
    flex: 0 0 62px;
    color: #f66746;
    font-size: 44px;
    line-height: 1;
    font-weight: 700;
}

/* ── Cards ── */
.bbs-vpoints--cards .bbs-vpoints__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.bbs-vpoints--cards .bbs-vpoints__item {
    flex-direction: column;
    gap: 18px;
    padding: 28px 28px 30px;
    border-radius: 20px;
    background: #ffffff;
    color: #000000;
    font-weight: 600;
}

.bbs-vpoints--cards .bbs-vpoints__point {
    padding-top: 0;
}

.bbs-vpoints--cards .bbs-vpoints__tick {
    flex: none;
    width: 44px;
    height: 44px;
}

.bbs-vpoints--cards.bbs-bg--green .bbs-vpoints__tick {
    background-color: #1cb65a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9.5 16.5l4.5 4.5 8.5-9.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── 1199 and below: the 960 px grid ── */
@media (max-width: 1199px) {
    .bbs-vpoints {
        padding: 52px 0;
    }

    .bbs-vpoints__inner {
        padding: 0 40px;
    }

    .bbs-vpoints__title {
        font-size: 34px;
    }

    .bbs-vpoints__list {
        column-gap: 40px;
    }

    .bbs-vpoints--cards .bbs-vpoints__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* ── 767 and below: one column ── */
@media (max-width: 767px) {
    .bbs-vpoints {
        padding: 44px 0;
    }

    .bbs-vpoints__inner {
        max-width: 640px;
        padding: 0 20px;
    }

    .bbs-vpoints__title {
        font-size: 28px;
    }

    .bbs-vpoints__text {
        font-size: 18px;
        line-height: 28px;
    }

    .bbs-vpoints__list,
    .bbs-vpoints--cards .bbs-vpoints__list {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 28px;
    }

    .bbs-vpoints__list {
        row-gap: 18px;
    }

    .bbs-vpoints--numbers .bbs-vpoints__item:last-child {
        border-bottom: 1px solid rgba(0, 0, 0, 0.14);
    }

    .bbs-vpoints--cards .bbs-vpoints__list {
        gap: 14px;
    }

    .bbs-vpoints--cards .bbs-vpoints__item {
        flex-direction: row;
        align-items: center;
        padding: 20px;
    }

    .bbs-vpoints__num {
        flex-basis: 52px;
        font-size: 36px;
    }
}

/* On a computer the last row of numbers closes with a rule, too. */
@media (min-width: 768px) {
    .bbs-vpoints--numbers .bbs-vpoints__list {
        border-bottom: 1px solid rgba(0, 0, 0, 0.14);
    }
}

/*
 * Three looks from bebestschool.com/german/speaking-club:
 * "dots" (rec895367527) — on #1cb65a, a 45 / 54 px bold white heading on the
 * left, 514 px wide; on the right the points in 26 / 31 px white, each after
 * a 25 px yellow dot, 50 px apart.
 * "boxes" (rec895367530) — a 45 / 70 px bold heading centred; the points in
 * #ffd72e boxes rounded 15 px, two to a row 8 px apart, 18 / 22 px centred.
 * "steps" (rec895367533) — on #3bad5c, a 45 px bold white heading centred;
 * three points to a row, each a 62 px "1." and 20 / 26 px white text beside it.
 */
.bbs-vpoints.bbs-vpoints--dots,
.bbs-vpoints.bbs-vpoints--steps {
    color: #ffffff;
}

.bbs-vpoints.bbs-vpoints--dots {
    padding: 85px 0 90px;
    background: #1cb65a;
}

.bbs-vpoints--dots .bbs-vpoints__inner {
    display: grid;
    grid-template-columns: minmax(0, 514px) minmax(0, 1fr);
    column-gap: 130px;
    align-items: start;
}

.bbs-vpoints--dots .bbs-vpoints__title,
.bbs-vpoints--steps .bbs-vpoints__title {
    margin: 0;
    color: #ffffff;
    font-size: 45px;
    line-height: 54px;
    font-weight: 700;
}

.bbs-vpoints--dots .bbs-vpoints__title {
    padding-left: 20px;
    text-align: left;
}

.bbs-vpoints--dots .bbs-vpoints__list {
    display: flex;
    flex-direction: column;
    gap: 19px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.bbs-vpoints--dots .bbs-vpoints__item {
    display: flex;
    align-items: flex-start;
    gap: 19px;
    margin: 0;
    font-size: 26px;
    line-height: 31px;
}

.bbs-vpoints--dots .bbs-vpoints__tick {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin-top: 3px;
    border: 0;
    border-radius: 50%;
    background: #ffd72e;
}

.bbs-vpoints--dots .bbs-vpoints__tick::before,
.bbs-vpoints--dots .bbs-vpoints__tick::after {
    content: none;
}

/* Boxes */
.bbs-vpoints.bbs-vpoints--boxes {
    padding: 21px 0 85px;
    background: #ffffff;
    color: #000000;
}

.bbs-vpoints--boxes .bbs-vpoints__title {
    margin: 0;
    font-size: 45px;
    line-height: 70px;
    font-weight: 700;
    text-align: center;
}

.bbs-vpoints--boxes .bbs-vpoints__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 8px;
    margin: 31px 0 0;
    padding: 0;
    list-style: none;
}

.bbs-vpoints--boxes .bbs-vpoints__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 128px;
    margin: 0;
    padding: 20px 60px;
    border-radius: 15px;
    background: #ffd72e;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    box-sizing: border-box;
}

/* Steps */
.bbs-vpoints.bbs-vpoints--steps {
    padding: 50px 0 54px;
    background: #3bad5c;
}

.bbs-vpoints--steps .bbs-vpoints__title {
    line-height: 45px;
    text-align: center;
}

.bbs-vpoints--steps .bbs-vpoints__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
    margin: 60px 0 0;
    padding: 0;
    list-style: none;
}

.bbs-vpoints--steps .bbs-vpoints__item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin: 0;
    padding-right: 60px;
    font-size: 20px;
    line-height: 26px;
}

.bbs-vpoints--steps .bbs-vpoints__num {
    flex: 0 0 auto;
    margin-top: -5px;
    color: inherit;
    font-size: 62px;
    line-height: 62px;
    font-weight: 400;
}

@media (max-width: 959px) {
    .bbs-vpoints--dots .bbs-vpoints__inner {
        display: block;
    }

    .bbs-vpoints--dots .bbs-vpoints__title {
        padding-left: 0;
    }

    .bbs-vpoints--dots .bbs-vpoints__list {
        margin-top: 30px;
    }

    .bbs-vpoints--dots .bbs-vpoints__item {
        font-size: 22px;
    }

    .bbs-vpoints--boxes .bbs-vpoints__list,
    .bbs-vpoints--steps .bbs-vpoints__list {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 16px;
    }

    .bbs-vpoints--steps .bbs-vpoints__list {
        row-gap: 30px;
        margin-top: 40px;
    }

    .bbs-vpoints--steps .bbs-vpoints__item {
        padding-right: 0;
    }

    .bbs-vpoints--boxes .bbs-vpoints__item {
        padding: 20px 30px;
    }
}

@media (max-width: 639px) {
    .bbs-vpoints.bbs-vpoints--dots,
    .bbs-vpoints.bbs-vpoints--boxes,
    .bbs-vpoints.bbs-vpoints--steps {
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .bbs-vpoints--dots .bbs-vpoints__title,
    .bbs-vpoints--boxes .bbs-vpoints__title,
    .bbs-vpoints--steps .bbs-vpoints__title {
        font-size: 30px;
        line-height: 1.25;
    }

    .bbs-vpoints--dots .bbs-vpoints__item {
        font-size: 20px;
        line-height: 1.3;
    }
}
