/* Б'АНК — unified bank sale typography, benchmark: shared checkout v2. */
/* Only the three B'АНК price surfaces. Other courses and checkout are untouched. */
:root { --bank-price-old:24px; --bank-price-new:34px; --bank-price-gap:14px; --bank-price-sale-color:#FF303C; }

/* The normal price row layout is aligned to checkout; scoped to B'АНК. */
html body .cards .bankCourse .bottom .price > .schoolPriceRow,
html body #bankSeoPage .bankSeoHero .price > .schoolPriceRow,
html body #bankModal .bankPurchasePrice strong > .schoolPriceRow {
  display:inline-flex!important; align-items:baseline!important; flex-wrap:nowrap!important;
  gap:var(--bank-price-gap)!important; white-space:nowrap!important;
  line-height:1.05!important; letter-spacing:0!important; margin:0!important;
}

/* Old price — matches the single shared checkout style. */
html body .cards .bankCourse .bottom .price .schoolPriceRow > .schoolPriceOld,
html body #bankSeoPage .bankSeoHero .price .schoolPriceRow > .schoolPriceOld,
html body #bankModal .bankPurchasePrice strong > .schoolPriceRow > .schoolPriceOld {
  display:inline!important; box-sizing:border-box!important; padding:0!important; margin:0!important;
  font-family:Inter,"Segoe UI",Arial,sans-serif!important;
  font-size:var(--bank-price-old)!important; font-weight:800!important;
  line-height:1.12!important; letter-spacing:0!important; color:#69747a!important;
  text-decoration:line-through!important; text-decoration-thickness:1.5px!important;
  white-space:nowrap!important;
}

/* Promotional/current price — matches checkout. */
html body .cards .bankCourse .bottom .price .schoolPriceRow > .schoolPriceNow,
html body #bankSeoPage .bankSeoHero .price .schoolPriceRow > .schoolPriceNow,
html body #bankModal .bankPurchasePrice strong > .schoolPriceRow > .schoolPriceNow {
  display:inline!important; box-sizing:border-box!important; padding:0!important; margin:0!important;
  font-family:Inter,"Segoe UI",Arial,sans-serif!important;
  font-size:var(--bank-price-new)!important; font-weight:900!important;
  line-height:1.05!important; letter-spacing:0!important; color:#fff!important;
  text-decoration:none!important; white-space:nowrap!important;
}

/* Sale deadline: match checkout red / font / weight, no inherited negative offsets. */
html body .cards .bankCourse .bottom .price > .schoolPromoLabel,
html body #bankSeoPage .bankSeoHero .price > .schoolPromoLabel,
html body #bankModal .bankPurchasePrice strong > .schoolPromoLabel {
  display:block!important; position:static!important; top:auto!important; bottom:auto!important;
  font-family:Inter,"Segoe UI",Arial,sans-serif!important;
  font-size:11px!important; font-weight:600!important; font-style:normal!important;
  line-height:1.3!important; letter-spacing:0!important; color:var(--bank-price-sale-color)!important;
  text-transform:none!important; white-space:normal!important;
  margin:4px 0 0!important; padding:0!important;
}

/* The markup has an existing text-only regular-price path: don't modify it. */
@media (max-width:900px) {
  :root { --bank-price-old:clamp(23px,5.9vw,28px); --bank-price-new:clamp(28px,7.2vw,34px); }
}


/* bank-home-price-vertical-alignment-v1
   Коррекция положения стоимости относительно кнопок.
   Только главная карточка Б'АНК, только десктоп.
*/
@media (min-width: 901px) {
    
}


/* bank-home-layout-unified-v1
   Адаптивность Б'АНК на главной.
   Другие карточки и страница курса не затрагиваются.
*/

@media (min-width:701px) {

  html body .cards .course.bankCourse .bankStats {
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:9px !important;
  }

  html body .cards .course.bankCourse .bottom {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) max-content !important;
    align-items:end !important;
    column-gap:12px !important;
    row-gap:0 !important;
  }

  html body .cards .course.bankCourse
  .bottom > .mainPriceBlock {
    grid-column:1 !important;
    align-self:end !important;
    min-width:0 !important;
    margin:0 !important;
    transform:none !important;
  }

  html body .cards .course.bankCourse
  .bottom > .bankActions {
    grid-column:2 !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:flex-end !important;
    align-items:end !important;
    align-self:end !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
    gap:12px !important;
  }
}

/* На промежуточных ширинах кнопки компактнее,
   но сохраняют утвержденную высоту. */

@media (min-width:701px) and (max-width:900px) {

  html body .cards .course.bankCourse
  .bottom > .bankActions .btn {
    box-sizing:border-box !important;
    flex:0 0 138px !important;
    width:138px !important;
    min-width:0 !important;
    max-width:138px !important;
    padding-left:10px !important;
    padding-right:10px !important;
  }
}

/* Настоящий мобильный режим. */

@media (max-width:700px) {

  html body .cards .course.bankCourse .bankStats {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  html body .cards .course.bankCourse .bottom {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    align-items:stretch !important;
    gap:13px !important;
  }

  html body .cards .course.bankCourse
  .bottom > .mainPriceBlock {
    grid-column:1 !important;
    transform:none !important;
    margin:0 !important;
  }

  html body .cards .course.bankCourse
  .bottom > .bankActions {
    grid-column:1 !important;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    width:100% !important;
    margin:0 !important;
    gap:10px !important;
  }
}
