.bf26 {
  --bf-ink: var(--color-ink);
  --bf-muted: var(--color-ink-secondary);
  --bf-line: #e0e2e7;
  width: 100%;
  max-width: 1160px;
  margin: 40px auto 0;
  scroll-margin-top: 82px;
  overflow: hidden;
  color: var(--bf-ink);
  background: white;
  border: 1px solid var(--bf-line);
  border-radius: 24px;
}
.bf26 { position: relative; display: flex; flex-direction: column; }
.bf-head { display: flex; align-items: center; gap: 20px; padding: 18px 26px; }
.bf-faces { display: flex; flex-shrink: 0; padding-left: 6px; }
.bf-faces img { width: 54px; height: 54px; border: 2px solid white; border-radius: 50%; object-fit: cover; margin-left: -6px; }
.bf-date { max-width: 100%; white-space: normal; }
.bf-duration, .date-calendar { color: var(--color-plaque); font: 600 13px/1.3 var(--font-sans); }
.calendar-photos { display:flex; align-items:center; gap:14px; }
@media(min-width:741px){
  .bf-head:has(.calendar-photos) { padding-left:18px; }
}
.date-calendar { display:grid; flex:none; }
.date-calendar .calendar-page { text-align:center; min-width:76px; color:var(--color-plaque); border:1px solid var(--color-surface-blue-3); border-radius:7px; overflow:hidden; background:white; }
.calendar-page strong { display:block; font-size:24px; padding:2px 6px; line-height:1.15; }
.calendar-page small { display:block; font-size:12px; background:var(--color-surface-blue); padding:1px 4px; }
.calendar-page strong { font-weight: 700; }
@media (max-width: 549px) {
  .bf-duration, .date-calendar { font-size: 12px; }
  .calendar-photos { gap:8px; }
  .date-calendar .calendar-page { min-width:47px; }
  .calendar-page strong { font-size:15px; padding:1px 3px; }
  .calendar-page small { font-size:10px; }
}
.bf-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.2;
}
.bf-offer { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bf-discount { color: white; background: var(--color-coral); border-radius: 8px; padding: 6px 10px; font-weight: 600; }
.bf-price { display: grid; line-height: 1.25; white-space: nowrap; }
.bf-price b { font-size: clamp(22px, 2.4vw, 26px); line-height: 1.15; font-weight: 650; }
.bf-price-caption { display: flex; gap: 4px; color: var(--bf-muted); }

.bf-ribbons { order: -1; height: 32px; overflow: hidden; position: relative; pointer-events: none; }
.bf-tape, .bf-sash { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }
.bf-tape {
  display: flex; align-items: center; justify-content: space-around; gap: 28px;
  width: max(100%, 1400px); height: 100%; white-space: nowrap; padding-inline: 16px;
  font-size: 12px; letter-spacing: .045em;
}
.bf-blue {
  color: white;
  background-color: var(--color-accent);
  background-image: var(--gradient-primary);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%);
}
.bf26[data-variant="top"] .bf-blue {
  width: 100%;
  padding: 0;
  gap: 0;
  justify-content: flex-start;
}
.bf26[data-variant="top"] .bf-blue > span {
  flex: none;
  padding-inline: 14px;
  animation: bf-tape-scroll 5s linear infinite;
}
/* One repeat travels exactly the width of its neighbour, including spacing. */
@keyframes bf-tape-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .bf26[data-variant="top"] .bf-blue {
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: flex-start;
  }
  .bf26[data-variant="top"] .bf-blue > span {
    display: grid;
    place-items: center;
    height: 100%;
    animation: none;
  }
}
.bf-ivory, .bf-sash { display: none; }
.bf26[data-variant="corner"] .bf-head { padding-right: 155px; }
.bf26[data-variant="corner"] .bf-ribbons { position: absolute; z-index: 1; top: 0; right: 0; width: 142px; height: 142px; }
.bf26[data-variant="corner"] .bf-tape { display: none; }
.bf26[data-variant="corner"] .bf-sash {
  display: grid; place-content: center; text-align: center; position: absolute; top: 26px; right: -46px; width: 190px; height: 45px;
  transform: rotate(42deg); color: white; font-size: 12px; line-height: 1.05; letter-spacing: .04em;
  background: linear-gradient(110deg,#282c32,#51565d 46%,#25282d 90%);
  border-bottom: 3px solid var(--color-accent); box-shadow: 0 2px 3px #30394235;
}
.bf26[data-variant="cross"] .bf-ribbons { order: 0; height: clamp(48px,5vw,66px); }
.bf26[data-variant="cross"] .bf-tape { position: absolute; top: 50%; left: 50%; height: 23px; font-size: 11px; }
.bf26[data-variant="cross"] .bf-blue { transform: translate(-50%,-50%) rotate(1.9deg); }
.bf26[data-variant="cross"] .bf-ivory {
  display: flex; transform: translate(-50%,-50%) rotate(-1.9deg);
  background: repeating-linear-gradient(118deg,#ebe0ce,#faf5ea 110px,#e0d5c3 240px);
  color: #514c46; box-shadow: inset 0 1px 0 #fffc, 0 2px 4px #41454c38;
}
.bf26[data-variant="cross"] .bf-body { border-top: 0; }
.bf-review { max-width: 1160px; margin: 40px auto 0; scroll-margin-top: 82px; }
.bf-review > h2 { margin: 24px 0 8px; color: var(--color-ink); font: 600 16px/1.4 var(--font-display); }
.bf-review .bf26 { margin: 0; }
.bf26 .bf-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; font-weight: 700; line-height: 1.2; }
.bf26 .bf-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
  border-top: 1px solid var(--bf-line);
  margin: 0 26px;
  padding: 26px 0;
}
.bf26 h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 16px; }
.bf26 ul { list-style: none; padding: 0; margin: 0; }
.bf26 .bf-courses { display: grid; gap: 8px; line-height: 1.45; }
.bf26 .bf-courses li { position: relative; padding-inline-start: 20px; }
.bf26 .bf-courses li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .3em;
  width: 6px;
  height: 10px;
  border: solid var(--color-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.bf-plus { color: var(--color-accent); font-weight: 700; }
.bf26 .bf-packs { display: grid; gap: 8px; }
.bf26 .bf-packs li {
  display: flex; align-items: center; gap: 19px; padding: 7px 12px 7px 7px;
  border: 1px solid var(--bf-line); border-radius: 14px;
  font-weight: 600; line-height: 1.3;
}
.bf26 .bf-pair { display: flex; align-items: center; flex-shrink: 0; }
.bf26 .bf-pair img { width: 44px; height: 44px; border: 2px solid white; border-radius: 50%; }
.bf26 .bf-pair img + img { margin-inline-start: -10px; }
.bf26 .bf-bundles h3 { margin-bottom: 4px; }
.bf26 .bf-note { margin: 0 0 12px; color: var(--bf-muted); }
.bf-bundle-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; margin-bottom: 12px; }
.bf-bundle-head .bf-note { margin-bottom: 0; }
.bf-bundle-price { display: flex; align-items: center; gap: 10px; text-align: right; }
.bf-bundle-price .bf-price { order: initial; }
.bf-bundle-caption { color: var(--bf-muted); }
.bf26 .bf-cta { margin-top: 16px; min-width: 180px; }
@media (min-width: 901px) {
  .bf26 .bf-singles { display: flex; flex-direction: column; align-items: flex-start; }
  .bf26 .bf-singles ul { margin-bottom: 16px; }
  .bf26 .bf-cta { margin-top: auto; }
}
@media (max-width: 900px) {
  .bf26 .bf-body { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 740px) {
  .bf26 .bf-cta { width: 100%; min-width: 0; }
  .bf26 { margin-top: 20px; border-radius: 20px; }
  .bf-head { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; padding: 16px; }
  .bf-faces img { width: 34px; height: 34px; }
  .bf-offer { grid-column: 1/-1; margin: 0; }
  .bf-price { order: -1; }
  .bf-ribbons { height: 27px; }
  .bf26[data-variant="corner"] .bf-head { padding-right: 70px; }
  .bf26[data-variant="corner"] .bf-ribbons { width: 86px; height: 86px; }
  .bf26[data-variant="corner"] .bf-sash { top: 15px; right: -40px; width: 145px; height: 32px; font-size: 9px; }
  .bf26[data-variant="cross"] .bf-blue { transform: translate(-50%,-50%) rotate(3deg); }
  .bf26[data-variant="cross"] .bf-ivory { transform: translate(-50%,-50%) rotate(-3deg); }
  .bf26 .bf-body { margin: 0 16px; padding: 20px 0; }
  .bf26 .bf-courses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .bf26 .bf-courses li {
    padding: 17px 0 0;
    text-align: center;
    font-size: clamp(12px, 3.25vw, 14px);
    line-height: 1.35;
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  .bf26 .bf-courses li::before { top: 0; left: calc(50% - 3px); }
  .bf26 .bf-singles h3 { margin-bottom: 14px; }
  .bf26 .bf-packs li { padding: 8px; gap: 10px; }
  .bf26 .bf-pair img { width: 32px; height: 32px; }
}
@media (min-width: 550px) and (max-width: 740px) {
  .bf26[data-variant="top"] .bf-head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .bf26[data-variant="top"] .bf-offer { grid-column: 3; }
}
@media (max-width: 549px) {
  .bf26[data-variant="top"] .bf-head { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .bf26[data-variant="top"] .bf-copy { grid-column: 1; }
  .bf26[data-variant="top"] .bf-offer {
    grid-column: 2; grid-row: 1 / 3; align-self: start;
    flex-direction: column; align-items: flex-end; gap: 5px; text-align: right;
  }
  .bf26[data-variant="top"] .bf-price-caption { justify-content: flex-end; }
}
#courses { margin-bottom: 40px; }
.bf-header-actions { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.bf-header-actions .bf-cta { margin: 0; }
.bf-countdown { color: var(--bf-muted); text-align: center; }
.bf-clock { display: flex; gap: 12px; margin-top: 3px; color: var(--color-plaque); }
.bf-clock > span { position: relative; display: grid; justify-items: center; min-width: 3ch; }
.bf-clock b { font: 700 clamp(20px, 2vw, 27px)/1.1 var(--font-sans); font-variant-numeric: tabular-nums; }
.bf-clock small { font: 400 11px/1.3 var(--font-sans); }
.bf-clock > span + span::before { content: ":"; position: absolute; left: -8px; top: 0; font-size: 18px; }
.bf-sale .bf-singles { display: block; }
.bf-sale .bf-bundle-head h3 { margin-bottom: 4px; }
.bf-sale .bf-singles ul { margin-bottom: 0; }
.bf-sale .bf-courses li { display: flex; align-items: center; gap: 8px; padding: 0; }
.bf-sale .bf-courses li::before { content: none; }
.bf-sale .bf-courses img { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
@media (max-width: 740px) {
  .bf26.bf-sale .bf-head { grid-template-columns: 1fr; }
  .bf-sale { --mobile-price-size: 20px; }
  .bf-sale .bf-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .bf-sale .bf-title { margin: 0; order: -1; }
  .bf-header-actions { width: 100%; margin-left: 0; }
  .bf-header-actions .bf-cta { flex: 1; min-width: 0; padding-inline: 8px; }
  .bf-clock { gap: 8px; }
  .bf-clock > span + span::before { left: -6px; }
  .bf-sale .bf-courses li { flex-direction: column; }
  .bf-sale .bf-singles .bf-note { display: none; }
  .bf-sale .bf-bundle-head { align-items: center; gap: 8px; }
  .bf-sale .bf-bundle-head:has(.bf-note) > div:first-child { min-width: 0; }
  .bf-sale .bf-bundles .bf-bundle-head > div:first-child { display: contents; }
  .bf-sale .bf-bundles .bf-note { grid-column: 1 / -1; grid-row: 2; }
  .bf-sale .bf-bundle-price { display: grid; grid-template-columns: auto auto; gap: 3px 5px; align-items: center; justify-items: end; }
  .bf-sale .bf-bundle-price .bf-price { display: contents; }
  .bf-sale .bf-discount { grid-row: 1; grid-column: 1; padding: 2px 4px; border-radius: 4px; font-size: 11px; line-height: 1.15; }
  .bf-sale .bf-bundle-caption { grid-column: 2; grid-row: 1; }
  .bf-sale .bf-price b { grid-column: 1 / -1; grid-row: 2; }
  .bf-sale .bf-price b, .bf-sale .bf-clock b { font-size: var(--mobile-price-size); }
  .bf-sale[data-mobile="timer"] .bf-head { grid-template-columns: minmax(0, 1fr) auto; }
  .bf-sale[data-mobile="timer"] .bf-copy { display: block; }
  .bf-sale[data-mobile="timer"] .bf-header-actions { display: contents; }
  .bf-sale[data-mobile="timer"] .bf-cta { grid-column: 1 / -1; }
  .bf-sale[data-mobile="list"] .bf-copy { flex-direction: column; align-items: center; gap: 2px; }
  .bf-sale[data-mobile="list"] .bf-title { order: initial; }
  .bf-sale[data-mobile="list"] .bf-courses { grid-template-columns: 1fr; }
  .bf-sale[data-mobile="list"] .bf-courses li { flex-direction: row; text-align: left; }
  .bf-sale[data-mobile="list"] .bf-courses img { width: 28px; height: 28px; }
  .bf-sale[data-design="list"]:not([data-mobile]) {
    .bf-courses { grid-template-columns: 1fr; gap: 8px; }
    .bf-courses li { flex-direction: row; gap: 10px; text-align: left; font-size: 14px; }
    .bf-courses img { width: 30px; height: 30px; }
    .bf-singles .bf-note { display: block; }
    .bf-discount { padding: 3px 6px; font-size: 13px; }
  }
  .bf-sale:not([data-mobile]) .bf-head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .bf-sale:not([data-mobile]) .bf-copy { display: grid; gap: 4px; }
  .bf-sale:not([data-mobile]) .bf-title { order: initial; }
  .bf-sale:not([data-mobile]) :is(.bf-duration, .bf-countdown > .text-small) { display: block; font-size: 12px; line-height: 16px; }
  .bf-sale:not([data-mobile]) .bf-body { padding-block: 16px; row-gap: 16px; }
  .bf-sale:not([data-mobile]) .bf-body > .bf-cta { margin: 0; }
  .bf-sale .bf-singles + .bf-bundles { border-top: 1px solid var(--bf-line); padding-top: 16px; }
  .bf-sale:not([data-mobile]) .bf-bundle-head:has(.bf-bundle-price) {
    gap: 4px 12px; margin-bottom: 12px;

    > div:first-child, .bf-bundle-price { display: contents; }
    .bf-discount { grid-area: 1 / 1; justify-self: start; }
    .bf-bundle-caption { grid-area: 1 / 2; justify-self: end; }
    h3 { grid-area: 2 / 1; margin: 0; }
    .bf-price b { grid-area: 2 / 2; justify-self: end; }
    .bf-note { grid-area: 3 / 1 / auto / -1; }
  }
}
.bf-prices-bottom .bf-bundle-head { display: block; margin: 0; }
.bf-prices-bottom .bf-body > :is(.bf-singles, .bf-bundles) {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start;
}
.bf-prices-bottom .bf-bundle-price { justify-self: end; align-self: end; }
@media (min-width: 1100px) {
  .bf-prices-bottom .bf-body > :is(.bf-singles, .bf-bundles) {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-content: stretch;
  }
  .bf-prices-bottom .bf-bundle-head { grid-column: 1 / -1; }
  .bf-prices-bottom .bf-body ul { align-self: start; }
}
.bf-catalog-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.bf-catalog-tag { background-color: var(--color-coral); color: #fff; }
.bf-catalog-price { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: start; gap: 0 8px; }
.bf-catalog-price strong { grid-column: 1; }
.bf-catalog-price .bf-catalog-tag { grid-column: 2; grid-row: 1 / 3; }
.bf-catalog-price > * { white-space: nowrap; }

/* Compact desktop layout for laptop-width windows. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .hero-header nav { display: flex; }
  .hero-motion { height: 660px; margin-top: 12px; border-radius: 20px; }
  .hero-motion .hero-bg-photo { object-position: center bottom; scale: 1; }
  .hero-content {
    position: absolute;
    inset: 100px auto 52px clamp(32px, 4.5vw, 64px);
    width: min(53%, 592px);
    justify-content: space-between;
    padding: 0;
  }
  .hero-intro { align-items: flex-start; gap: 20px; text-align: left; }
  .hero-topics { justify-content: flex-start; }
  .hero-intro h1 { font-size: clamp(32px, 3.15vw, 40px); white-space: normal; letter-spacing: normal; }
  .hero-intro p { max-width: 100%; margin: 0; font-size: 16px; }
  .hero-actions-mobile { display: none; }
  .hero-actions-desktop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hero-actions-desktop > * { width: 100%; }
  .hero-actions-desktop a > span[data-figma-node] { width: 100%; }
  .hero-actions-desktop .btn-primary { padding-inline: 16px; }
}

.catalog-sale-panel:has(> .sale-tab) { --row-gap:18px; row-gap:var(--row-gap); }
.sale-tab {
  align-self:flex-end;
  margin:-30px 12px calc(-1 * var(--row-gap)) 0;
  padding:12px 14px 13px;
  border-radius:7px 7px 0 0;
  background:var(--color-coral);
  color:white;
  font:600 13px/1.35 var(--font-display);
}
@media (max-width: 600px) {
  .sale-tab { margin-top: -24px; }
}
.catalog-sale-panel .course-card:has(.catalog-purchase) { container-type: inline-size; }
.catalog-purchase { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; }
.catalog-buy { display: grid; place-items: center; min-height: 44px; min-width: 104px; padding: 8px 10px; font: 600 .75rem/1.25 var(--font-display); }
.catalog-details { color: var(--color-plaque); background: var(--color-surface-blue); }
.catalog-details { display: inline-flex; gap: 6px; align-items: center; background-image: var(--gradient-soft); }
.catalog-details:hover { text-decoration: underline; }
.catalog-package-title { display: grid; gap: 4px; }
@container (max-width: 265px) {
  .catalog-purchase { grid-template-columns: 1fr; }
}
.catalog-packages { display: grid; gap: 6px; width: 100%; margin-top: auto; }
#courses .catalog-purchase:has(+ .catalog-packages) { margin-top: auto; }
#courses .catalog-purchase + .catalog-packages { position: relative; margin-top: 0; }
#courses .catalog-purchase + .catalog-packages::before {
  content: "";
  position: absolute;
  inset: -0.625rem 0 auto;
  border-top: 1px solid var(--color-line);
}
.catalog-packages > .catalog-purchase { margin-top: 14px; }
.catalog-package {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px;
  border: 1px solid var(--bf-line, var(--color-line)); border-radius: 12px;
  background: white; color: var(--color-ink); font-size: .875rem; line-height: 1.3;
}
.catalog-package .bf-pair { display: flex; flex: none; }
.catalog-package img { width: 32px; height: 32px; border: 2px solid white; border-radius: 50%; object-fit: cover; }
.catalog-package img + img { margin-left: -8px; }
#courses .btn-on-dark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .75rem;
  line-height: 1.25;
  min-height: 44px;
  padding-block: 10px;
  border-radius: 12px;
}
#courses .btn-on-dark { color: var(--color-plaque); }
.bf-packs li[id] { scroll-margin-top: 96px; }
#courses { scroll-margin-top: 80px; }

.bf-mobile-buy{display:none!important}@media(max-width:740px){.bf-header-actions>.bf-cta{display:none!important}.bf-body>.bf-mobile-buy{display:grid!important}}
