/* Баннер «Чёрная пятница» — стили (вынесены из main.css, подключаются после него). */

/* ---------- Тарифы: Чёрная пятница ---------- */
.section-tariffs__bf-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
}

.section-tariffs__label_bf {
    display: inline-block;
    height: 32px;
    width: auto;
}

.section-tariffs--bf .section-tariffs__item {
    overflow: hidden;
    border-radius: 34px;
    padding: 22px 22px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.section-tariffs--bf .section-tariffs__list-item {
    background: transparent;
    margin-bottom: 0px;
    border-bottom: 1px solid #00000014;
    border-radius: 0;
}

.section-tariffs--bf .section-tariffs__header,
.section-tariffs--bf .section-tariffs__subtitle {
    display: none;
}

.section-tariffs--bf .section-tariffs__title {
    font-family: "TTHoves", "Inter", sans-serif;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 600;
    color: #2C2C2C;
    padding-right: 110px;
    max-width: 70%;
    margin-bottom: 40px;
    margin-top: 6px;
    min-height: 63px;
}

.section-tariffs__bf-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 262px;
    height: auto;
    pointer-events: none;
    z-index: 15;
}

.section-tariffs--bf .section-tariffs__list-item:has(.section-tariffs__checkbox:checked) {
    background: #FFF6ED;
    box-shadow: none;
    margin-bottom: 0;
    border-radius: 20px;
    border-bottom-color: transparent;
}

.section-tariffs--bf .section-tariffs__prices {
    width: auto;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.section-tariffs--bf .section-tariffs__checkbox-label {
    gap: 12px;
}

.section-tariffs--bf .section-tariffs__checkbox-label span.section-tariffs__gift {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    padding-left: 10px;
    border-radius: 20px;
    background: #FFEDDB;
    color: #2C2C2C;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.section-tariffs--bf .section-tariffs__btn.btn:after {
    background: #2C2C2C;
}

.section-tariffs--bf .section-tariffs__btn span {
    color: #FFFFFF;
}

/* ============================================================
   Баннер «Чёрная пятница» — главная страница
   ============================================================ */
.bf-banner-section {
    padding: 32px 0 48px;
}

/* Когда включён баннер, у первого экрана остаётся нижняя часть
   (преподаватели + цифры слева, две плашки справа), а верх скрывается. */
.first-screen-section--bf-active {
    padding-top: 0;
}

.first-screen-section--bf-active .first-screen-section__head_content,
.first-screen-section--bf-active .first-screen-section__head_image {
    display: none;
}

.first-screen-section--bf-active .first-screen-section__bottom {
    margin-top: 0;
}

.bf-banner__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 604px;
    align-items: start;
}

.bf-banner__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 40px;
    gap: 24px;
}

.bf-banner__eyebrow {
    margin: 0;
    max-width: 396px;
    color: rgba(44, 44, 44, 0.6);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.18px;
}

.bf-banner__title {
    display: block;
    margin: 0;
    max-width: 535px;
    font-family: "TTHoves", "Inter", sans-serif;
    font-size: 58px;
    font-weight: 600;
    line-height: 59px;
    letter-spacing: -1.218px;
    color: #2C2C2C;
}

.bf-banner__title > span {
    display: block;
}

.bf-banner__title-hl {
    display: inline-block;
    margin: -0.138em 0 -0.138em -0.24em;
    padding: 0.138em 0.34em 0.138em 0.24em;
    border-radius: 0.345em;
    background: #F4F4F4;
}

.bf-banner__desc {
    margin: 0;
    max-width: 396px;
    color: rgba(44, 44, 44, 0.8);
    font-size: 20px;
    font-weight: 400;
    line-height: 23.56px;
    letter-spacing: 0.18px;
}

.bf-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 59px;
    padding: 0 26px;
    border: 0;
    border-radius: 24px;
    background: #2C2C2C;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.bf-banner__btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.bf-banner__btn:active {
    transform: translateY(0);
}

.bf-banner__media {
    position: relative;
    width: 129.31%;
    margin-left: -29.31%;
    margin-top: 32px;
}

.bf-banner__image {
    display: block;
    width: 100%;
    height: auto;
}

.bf-banner__arrow {
    position: absolute;
    left: -18.3%;
    top: 44%;
    width: 36.62%;
    height: auto;
    pointer-events: none;
}

@media (max-width: 1360px) {
    .bf-banner__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    }
    .bf-banner__media {
        width: 100%;
        margin-left: 0;
    }
    .bf-banner__arrow {
        display: none;
    }
    .bf-banner__title {
        font-size: 50px;
        line-height: 52px;
    }
}

@media (max-width: 1024px) {
    .bf-banner-section {
        padding: 24px 0 32px;
    }
    .bf-banner__inner {
        grid-template-columns: 1fr;
        row-gap: 28px;
    }
    .bf-banner__content {
        order: 1;
        padding-top: 0;
    }
    .bf-banner__media {
        order: 2;
        margin-top: 0;
    }
    .bf-banner__title {
        font-size: 36px;
        line-height: 38px;
        letter-spacing: -0.7px;
    }
    .bf-banner__desc {
        font-size: 17px;
    }
    .bf-banner__btn {
        height: 52px;
        width: 100%;
    }
}

/* ---------- Баннер ЧП на страницах услуг (Индивидуальные уроки и т.п.) ---------- */
.bf-banner--service .bf-banner__content {
    gap: 28px;
    padding-top: 64px;
}

/* Перекрываем стили .first-screen-section h1 (flex, прозрачность, подложка) */
.first-screen-section .bf-banner--service .bf-banner__title {
    display: block;
    position: static;
    margin: 0;
    max-width: 560px;
    font-family: "TTHoves", "Inter", sans-serif;
    font-size: 58px;
    font-weight: 500;
    line-height: 59px;
    letter-spacing: -1.218px;
    color: #2C2C2C;
}

.first-screen-section .bf-banner--service .bf-banner__title-hl {
    display: inline;
    margin: 0;
    padding: 0.06em 0.22em;
    border-radius: 0.28em;
    background: #F4F4F4;
    color: inherit;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.bf-gift {
    position: relative;
    padding-top: 29px;
    width: 580px;
    max-width: 100%;
}

.bf-gift__badge {
    position: absolute;
    top: 0;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 24px;
    background: linear-gradient(271deg, #FFB241 0.61%, #FF7D41 99.55%);
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    transform: rotate(-3deg);
    transform-origin: left center;
}

.bf-gift__card {
    position: relative;
    padding: 28px 15px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
}

.bf-gift__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bf-gift__card > .bf-gift__chips,
.bf-gift__card > .bf-banner__btn {
    position: relative;
    z-index: 1;
}

@media (max-width: 1130px) {
    .bf-gift__card {
        background: #F2F2F2;
        border-radius: 20px;
    }
    .bf-gift__bg {
        display: none;
    }
}

.bf-gift__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bf-gift__chip {
    width: 130px;
    min-height: 80px;
    padding: 14px 12px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #EFEFEF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bf-gift__chip b {
    color: #FE8D1E;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.bf-gift__chip span {
    color: #2C2C2C;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

.bf-banner--service .bf-banner__media {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
}

@media (max-width: 1360px) {
    .bf-banner--service .bf-banner__media {
        margin-top: 0;
    }
}

@media (max-width: 1024px) {
    .bf-banner--service .bf-banner__content {
        padding-top: 0;
    }
    .bf-gift {
        width: 100%;
    }
    .bf-gift__chip {
        width: calc(50% - 5px);
    }
}

/* ---------- ЧП: страница мини-групп ---------- */
.first-screen-section .bf-banner--service .bf-banner__title-line,
.first-screen-section .bf-banner--service .bf-banner__title-line:first-child,
.first-screen-section .bf-banner--service .bf-banner__title-line:last-child {
    display: block;
    position: static;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #2C2C2C;
    box-decoration-break: initial;
    -webkit-box-decoration-break: initial;
}

.first-screen-section .bf-banner--service .bf-banner__title-line--gray {
    color: #757575;
}

.bf-discount {
    position: relative;
    width: 580px;
    max-width: 100%;
}

.bf-discount__head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 18px 2px;
}

.bf-discount__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(271deg, #FFB241 0.61%, #FF7D41 99.55%);
}

.bf-discount__text {
    font-family: "TTHoves", "Inter", sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1;
    color: #2C2C2C;
}

.bf-discount__text b {
    color: #FE8D1E;
    font-weight: 700;
}

.bf-discount__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding: 24px 20px 26px;
}

.bf-discount__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bf-discount__chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.bf-discount__chip {
    position: relative;
    flex: 1 1 0;
    min-width: 112px;
    padding: 22px 18px 20px;
    border-radius: 14px;
    background: #FFFFFF;
}

.bf-discount__chip b {
    display: block;
    color: #FE8D1E;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
}

.bf-discount__chip span {
    display: block;
    margin-top: 6px;
    color: rgba(44, 44, 44, 0.7);
    font-size: 14px;
    line-height: 1.1;
    white-space: nowrap;
}

.bf-discount__badge {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 18px 5px 10px;
    background: linear-gradient(271deg, #FFB241 0.61%, #FF7D41 99.55%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%);
}

.bf-discount__card > .bf-banner__btn {
    position: relative;
    z-index: 1;
}

.bf-banner--service .bf-banner__promo {
    position: absolute;
    left: -8.6%;
    top: 6.8%;
    width: 40.4%;
    height: auto;
    pointer-events: none;
    z-index: 3;
}

.section-tariffs__bf-bull {
    position: absolute;
    top: -59px;
    right: -4px;
    width: 265px;
    height: auto;
    pointer-events: none;
    z-index: 25;
}

.section-tariffs--page .section-tariffs__bf-ribbon {
    display: none;
}

@media (max-width: 1360px) {
    .bf-discount {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .bf-discount__chips {
        gap: 6px;
    }
    .bf-discount__chip {
        min-width: calc(50% - 3px);
    }
    .section-tariffs__totals {
        min-width: 96px;
    }
    .section-tariffs__bf-bull {
        display: none;
    }
}

/* ---------- ЧП: страница видеокурсов ---------- */
.bf-levels {
    position: relative;
    width: 420px;
    max-width: 100%;
}

.bf-levels__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px 2px;
}

.bf-levels__head .bf-discount__icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
}

.bf-levels__text {
    font-family: "TTHoves", "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: #2C2C2C;
}

.bf-levels__text b {
    color: #FE8D1E;
    font-weight: 700;
}

.bf-levels__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bf-levels__top {
    width: 100%;
    padding: 10px;
    border-radius: 28px 28px 28px 0;
    background: #F2F2F2;
}

.bf-levels__bottom {
    width: 67%;
    padding: 6px 10px 26px;
    border-radius: 0 0 28px 28px;
    background: #F2F2F2;
}

.bf-levels__chips {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.bf-levels__chip {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px 12px;
    border-radius: 12px;
    background: #FFFFFF;
}

.bf-levels__chip-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "TTHoves", "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: #2C2C2C;
}

.bf-levels__icon {
    flex: 0 0 auto;
    display: block;
}

.bf-levels__desc {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(44, 44, 44, 0.7);
}

.bf-levels .bf-banner__btn.bf-levels__btn {
    position: relative;
    z-index: 1;
    margin-top: 0;
    height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 15px;
}

@media (max-width: 1360px) {
    .bf-levels {
        width: 100%;
    }
}

.bf-banner--levels .bf-banner__promo {
    left: -17%;
    top: 19%;
    width: 35%;
}

/* ---------- ЧП: видеокурсы, уровни (аккордеон) ---------- */
.bf-acc-section {
    padding: 60px 0 20px;
}

.bf-acc-section__title {
    margin: 0 0 24px;
    font-family: "TTHoves", "Inter", sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.6px;
    color: #2C2C2C;
}

.bf-acc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #F2F2F2;
    border-radius: 16px;
}

.bf-acc {
    border-radius: 16px;
    background: transparent;
}

.bf-acc__head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 22px;
    border: 0;
    border-radius: 16px;
    background: #FFF6ED;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.bf-acc__chip {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 8px;
    background: linear-gradient(271deg, #FFB241 0.61%, #FF7D41 99.55%);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}

.bf-acc__title {
    font-family: "TTHoves", "Inter", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    color: #2C2C2C;
}

.bf-acc__label {
    flex: 0 0 auto;
    color: #8E8E8E;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.bf-acc__chev {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.bf-acc.is-open .bf-acc__chev {
    transform: rotate(180deg);
}

.bf-acc__body {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 24px 48px;
    padding: 0 22px 24px;
}

.bf-acc.is-open .bf-acc__body {
    display: grid;
}

.bf-acc__block-title {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2C2C2C;
}

.bf-acc__list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bf-acc__list li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 16px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(44, 44, 44, 0.75);
}

.bf-acc__list li:before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #F0862F;
}

/* ---------- ЧП: видеокурсы, тарифы ---------- */
.bf-vtariffs {
    padding: 40px 0 60px;
}

.bf-vtariffs__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.bf-vtariffs__title {
    margin: 0;
    font-family: "TTHoves", "Inter", sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.6px;
    color: #2C2C2C;
}

.bf-vtariffs__labels {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bf-vtariffs__label {
    padding: 8px 16px;
    border-radius: 20px;
    background: #FFF3E9;
    color: #B4550B;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

.bf-vtariffs__discount {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    background: linear-gradient(271deg, #FFB241 0.61%, #FF7D41 99.55%);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.bf-vtariffs__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.bf-vtariffs__card {
    display: flex;
    flex-direction: column;
    padding: 18px 18px 14px;
    border: 1px solid #F1F1F1;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.bf-vtariffs__card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.bf-vtariffs__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(271deg, #FFB241 0.61%, #FF7D41 99.55%);
}

.bf-vtariffs__card-name {
    font-family: "TTHoves", "Inter", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    color: #2C2C2C;
}

.bf-vtariffs__list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.bf-vtariffs__list li {
    position: relative;
    margin: 0 0 7px;
    padding-left: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(44, 44, 44, 0.75);
}

.bf-vtariffs__list li:before {
    content: '';
    position: absolute;
    left: 1px;
    top: 0.6em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #F0862F;
}

.bf-vtariffs__list li.is-off {
    color: rgba(44, 44, 44, 0.4);
}

.bf-vtariffs__list li.is-off:before {
    background: rgba(44, 44, 44, 0.25);
}

.bf-vtariffs__bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 8px 8px 8px 16px;
    border-radius: 12px;
    background: #FFF5EC;
}

.bf-vtariffs__price {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #2C2C2C;
    white-space: nowrap;
}

.bf-vtariffs__old {
    font-size: 13px;
    color: #B8AFA6;
    text-decoration: line-through;
    white-space: nowrap;
}

.bf-vtariffs__badge {
    padding: 4px 8px;
    border-radius: 6px;
    background: linear-gradient(271deg, #FFB241 0.61%, #FF7D41 99.55%);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.bf-vtariffs__btn.btn {
    margin-left: auto;
    height: 40px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 13px;
}

.bf-vtariffs__btn.btn:after {
    border-radius: 10px;
    background: #2C2C2C;
}

.bf-vtariffs__btn.btn span {
    font-size: 13px;
    color: #FFFFFF;
}

@media (max-width: 1024px) {
    .bf-acc__body {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .bf-vtariffs__grid {
        grid-template-columns: 1fr;
    }
    .bf-acc-section__title,
    .bf-vtariffs__title {
        font-size: 28px;
    }
}
