
/* 21.7.23 — B’АНК action buttons are canonical for all product cards */
.productActions .btn{
  box-sizing:border-box!important;
  height:58px!important;min-height:58px!important;max-height:58px!important;
  padding:0 18px!important;margin:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  font-size:16px!important;font-weight:900!important;line-height:1!important;
  text-transform:uppercase!important;
}
@media(min-width:901px){
  .productActions .btn{width:150px!important;min-width:150px!important;max-width:150px!important;flex:0 0 150px!important;}
}
@media(max-width:900px){
  .productActions .btn{width:100%!important;min-width:0!important;}
}


/* BCD production diagnostic — isolated from existing school components */
.bcdDiagSection{padding:28px 0 0}
.bcdDiagPanel{position:relative;overflow:hidden;min-height:390px;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,.5fr);border:1px solid var(--line);border-radius:20px;background:radial-gradient(circle at 84% 46%,rgba(239,39,40,.12),transparent 33%),linear-gradient(125deg,#0c1b23,#071116 75%);box-shadow:0 18px 48px #0004}
.bcdDiagCopy{position:relative;z-index:2;padding:54px clamp(26px,5vw,72px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.bcdDiagKicker{font-size:12px;font-weight:900;letter-spacing:.14em;color:var(--red);margin-bottom:20px}
.bcdDiagCopy h2{font-family:"Arial Black","Segoe UI",Arial,sans-serif;font-size:clamp(36px,4vw,64px);letter-spacing:-.055em;line-height:1.03;margin:0 0 20px;white-space:nowrap}
.bcdDiagCopy h2 span{color:var(--red)}
.bcdDiagCopy p{font-size:clamp(16px,1.35vw,19px);line-height:1.5;color:#bdc8ce;max-width:640px;margin:0 0 25px}
.bcdDiagLaunch{border:0;border-radius:9px;padding:18px 28px;background:var(--red);color:#fff;font:900 14px Inter,"Segoe UI",Arial,sans-serif;letter-spacing:.03em;cursor:pointer;min-height:54px}
.bcdDiagLaunch:hover{background:#df171b}
.bcdDiagHint{margin-top:16px;color:#8999a1;font-size:12px}
.bcdDiagVisual{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;overflow:hidden}
.bcdDiagNumber{font:900 clamp(120px,13vw,220px)/.85 "Arial Black","Segoe UI",Arial,sans-serif;letter-spacing:-.1em;color:rgba(239,39,40,.23)}
.bcdDiagVisualLabel{font-weight:900;font-size:14px;line-height:1.35;letter-spacing:.13em;text-align:center;color:#b5c2c8}
.bcdDiagLines{display:flex;gap:7px;margin-top:10px}.bcdDiagLines i{width:36px;height:4px;background:#ef2728;border-radius:5px}.bcdDiagLines i:not(:first-child){background:#354750}
.bcdDiagOverlay{position:fixed;inset:0;z-index:25000;display:none;align-items:center;justify-content:center}
.bcdDiagOverlay.open{display:flex}
.bcdDiagBackdrop{position:absolute;inset:0;background:rgba(1,8,12,.60);-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}
#bcdDiagFrame{position:relative;display:block;width:100%;height:100%;border:0;background:transparent;z-index:1}
body.bcdDiagLocked{overflow:hidden}
@media(max-width:1100px){.bcdDiagPanel{grid-template-columns:minmax(0,1fr) 220px}.bcdDiagCopy h2{font-size:clamp(34px,4.4vw,54px)}}
@media(max-width:900px){.bcdDiagSection{padding:28px 0 0}.bcdDiagPanel{grid-template-columns:1fr;min-height:0}.bcdDiagCopy{padding:44px 28px 38px}.bcdDiagCopy h2{white-space:normal;font-size:clamp(34px,6.3vw,54px)}.bcdDiagCopy h2 span{display:block}.bcdDiagVisual{display:none}}
@media(max-width:560px){.bcdDiagCopy{padding:36px 22px}.bcdDiagKicker{font-size:10px;letter-spacing:.1em}.bcdDiagCopy h2{font-size:clamp(34px,9vw,48px)}.bcdDiagCopy p{font-size:16px}.bcdDiagLaunch{width:100%}}


/* Only the new section and its immediate spacing; other school components unchanged */
#students.studentBox{margin-top:28px!important;margin-bottom:28px!important}
#products.cards{padding-top:0!important;margin-top:0!important}
#financial-diagnostic.bcdDiagSection{padding:0!important;margin:28px auto 0!important}
#financial-diagnostic .bcdDiagPanel{min-height:390px;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.75fr);border:1px solid #30414a;border-radius:20px;background:linear-gradient(90deg,#09171e 0%,#0b171ed9 48%,#0b171e20 100%),url("https://school.burchikov.ru/assets/diagnostic-direction-v8.webp") right center/cover no-repeat,#071116;box-shadow:0 16px 44px #0004}
#financial-diagnostic .bcdDiagCopy{padding:48px clamp(24px,4.4vw,68px);max-width:850px}
#financial-diagnostic .bcdDiagKicker{font-size:12px;letter-spacing:.12em;margin-bottom:18px;color:#ef2728}
#financial-diagnostic .bcdDiagCopy h2{font-size:clamp(36px,3.8vw,62px);white-space:normal;line-height:1.04;letter-spacing:-.055em;margin:0 0 22px}
#financial-diagnostic .bcdDiagCopy h2 span{color:#ef2728}
#financial-diagnostic .bcdDiagCopy p{font-size:clamp(16px,1.2vw,19px);line-height:1.55;max-width:680px;margin:0 0 26px;color:#d1d9dd}
#financial-diagnostic .bcdDiagLaunch{background:#ef2728;border-radius:10px;min-height:54px;padding:16px 26px}
#financial-diagnostic .bcdDiagVisual{display:block;min-height:1px}
#financial-diagnostic .bcdDiagHint{margin-top:14px}
/* iframe and body both remain transparent, revealing the blurred school below */
#bcdDiagFrame{background:transparent!important;color-scheme:dark}
@media(max-width:900px){
 #financial-diagnostic .bcdDiagPanel{grid-template-columns:1fr;min-height:350px;background:linear-gradient(90deg,rgba(7,16,22,.96),rgba(7,16,22,.75)),url("https://school.burchikov.ru/assets/diagnostic-direction-v8.webp") center/cover no-repeat,#071116}
 #financial-diagnostic .bcdDiagCopy{padding:40px 28px}
 #financial-diagnostic .bcdDiagCopy h2{font-size:clamp(35px,6vw,54px)}
 #financial-diagnostic .bcdDiagCopy h2 span{display:block}
 #financial-diagnostic .bcdDiagVisual{display:none}
}
@media(max-width:560px){
 #financial-diagnostic .bcdDiagCopy{padding:34px 22px}
 #financial-diagnostic .bcdDiagCopy h2{font-size:clamp(34px,9vw,48px)}
 #financial-diagnostic .bcdDiagCopy p{font-size:15px}
 #financial-diagnostic .bcdDiagLaunch{width:100%}
}


/* Clear photographic right side with continuous dark gradient at left; no visible hard edge */
#financial-diagnostic .bcdDiagPanel{background:linear-gradient(90deg,#09171e 0%,#09171efa 30%,#09171eea 47%,#09171e80 67%,#09171e16 100%),url("https://school.burchikov.ru/assets/diagnostic-direction-v8.webp") right center/auto 100% no-repeat,#09171e!important;overflow:hidden}

#financial-diagnostic .bcdDiagVisual{pointer-events:none}
/* Parent backdrop stays visible; iframe no longer paints a white full-screen canvas */
.bcdDiagOverlay{display:flex!important;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .26s ease,visibility 0s linear .26s}
.bcdDiagOverlay.open{visibility:visible;opacity:1;pointer-events:auto;transition:opacity .26s ease,visibility 0s}
.bcdDiagBackdrop{background:rgba(1,8,12,.66)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
#bcdDiagFrame{width:min(860px,calc(100vw - 32px))!important;height:min(760px,calc(100dvh - 32px))!important;flex:none!important;border-radius:18px!important;background:#0c171d!important;overflow:hidden;box-shadow:0 24px 85px #000a;transform:translateY(14px) scale(.985);opacity:0;transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .26s ease}
.bcdDiagOverlay.open #bcdDiagFrame{transform:translateY(0) scale(1);opacity:1}
@media(max-width:900px){#financial-diagnostic .bcdDiagPanel{background:linear-gradient(90deg,#09171efb 0%,#09171ee8 50%,#09171e88 100%),url("https://school.burchikov.ru/assets/diagnostic-direction-v8.webp") right center/auto 100% no-repeat,#09171e!important}}
@media(max-width:600px){#bcdDiagFrame{width:100vw!important;height:100dvh!important;border-radius:0!important}}
@media(prefers-reduced-motion:reduce){.bcdDiagOverlay,#bcdDiagFrame{transition:none!important;transform:none!important}}


/* Dark cinematic gradient: photo on the right, uninterrupted near-black behind the copy */
#financial-diagnostic .bcdDiagPanel{
 position:relative;isolation:isolate;overflow:hidden;
 background:#05090b!important;
}
#financial-diagnostic .bcdDiagPanel::before{
 content:"";position:absolute;z-index:0;inset:0 0 0 35%;pointer-events:none;
 background:url("https://school.burchikov.ru/assets/diagnostic-direction-v8.webp") right center/cover no-repeat;
 -webkit-mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.15) 12%,rgba(0,0,0,.8) 43%,#000 67%);
 mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.15) 12%,rgba(0,0,0,.8) 43%,#000 67%);
}
#financial-diagnostic .bcdDiagPanel::after{
 content:"";position:absolute;z-index:0;inset:0;pointer-events:none;
 background:linear-gradient(90deg,#05090b 0%,#05090b 25%,rgba(5,9,11,.92) 40%,rgba(5,9,11,.12) 75%,transparent 100%);
}
#financial-diagnostic .bcdDiagCopy{position:relative;z-index:1}
#financial-diagnostic .bcdDiagVisual{position:relative;z-index:0}
@media(max-width:900px){
 #financial-diagnostic .bcdDiagPanel::before{inset:0 0 0 12%;opacity:.5;background-position:65% center}
 #financial-diagnostic .bcdDiagPanel::after{background:linear-gradient(90deg,#05090bf7 0%,#05090be8 54%,#05090b8c 100%)}
}
@media(max-width:600px){
 #financial-diagnostic .bcdDiagPanel::before{inset:0;opacity:.3;background-position:60% center}
 #financial-diagnostic .bcdDiagPanel::after{background:linear-gradient(90deg,#05090bf5 0%,#05090be6 100%)}
}


/* School-wide canonical accent, matching the existing --red token */
:root{--red:#ef2728!important}
#financial-diagnostic .bcdDiagKicker,
#financial-diagnostic .bcdDiagCopy h2 span,
.bankCourse h2 .productAccent,
.productCourse h2 .productAccent,
.bankModal h2 .productAccent,
.productModal h2 .productAccent{color:var(--red)!important}
/* Canonical 58px product CTA height already established on the storefront */
#financial-diagnostic .bcdDiagLaunch,
.bankActions .btn,.course .actions .btn,.productActions .btn,
.studentBox .btn,.studentBox a.btn{
 box-sizing:border-box!important;height:58px!important;min-height:58px!important;max-height:58px!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 padding:0 22px!important;border-radius:10px!important;
 font-size:16px!important;font-weight:900!important;line-height:1!important;
}
#financial-diagnostic .bcdDiagLaunch{background:var(--red)!important;color:#fff!important}
#financial-diagnostic .bcdDiagLaunch:hover{background:#d91f23!important}
/* Product buy buttons only: avoid changing neutral secondary actions */
.bankActions .buy,.productActions .buy,.course .actions .buy{background:var(--red)!important;color:#fff!important}
@media(max-width:600px){#financial-diagnostic .bcdDiagLaunch{width:100%!important}}


/* Exact same solid red for purchase and diagnosis; no gradient. */
:root{--red:#ef2728}
#financial-diagnostic .bcdDiagLaunch,
.bankCourse .bankActions button.buyV88,
.productCourse .productActions button.buyV88,
.bankModal button.buyV88,.productModal button.buyV88,
.bankPurchaseAction button.buyV88,
button.btn.buyV88{
 background:#ef2728!important;background-image:none!important;
 border-color:#ef2728!important;color:#fff!important;
}
#financial-diagnostic .bcdDiagLaunch:hover,
button.btn.buyV88:hover{background:#d91f23!important;background-image:none!important;border-color:#d91f23!important}
#financial-diagnostic .bcdDiagLaunch,
.bankActions button.btn,.productActions button.btn,
.bankModal button.btn,.productModal button.btn,
.studentBox a.btn,.studentBox button.btn{
 box-sizing:border-box!important;height:58px!important;min-height:58px!important;
 border-radius:10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
}


/* BCD_BUTTON_HEIGHT_UNIFY_V1 */
/* Match product action buttons (58px); preserve widths and visual styling. */
.heroBtns .cta.red,
.mobileBtns .cta.red,
#students .cta.red.studentLoginBtn {
  box-sizing: border-box !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}


/* BCD_HERO_CTA_FONT_POLISH_V1 */
/* Font size only; existing height, widths, colors and radii remain unchanged. */
.heroBtns .cta.red, .mobileBtns .cta.red {font-size:16px!important;}


/* BCD_FINAL_HERO_BUTTON_HEIGHT */
.heroBtns .cta,
.mobileBtns .cta {
  box-sizing: border-box !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}


/* BCD_HERO_CTA_RENDERED_HEIGHT_FIX_V2 */
/* Desktop hero copy is scaled: 58 CSS px renders as ~53 physical px.
   64 CSS px compensates only the desktop hero button; mobile remains 58. */
@media (min-width: 901px) {
  .heroInner .heroCopy .heroBtns > a.cta.red {
    box-sizing: border-box !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}


/* BCD_NAV_SCROLL_MARGIN_PATCH_V1 */
#about,#money,#psychology,#investments,#decisions,#financial-diagnostic { scroll-margin-top:28px!important; }


/* Desktop storefront only: keep old/new prices inline and give CTA breathing room. */
@media (min-width:901px) {
  .cards .course .bottom .price .schoolPriceRow {
    gap:9px!important;
  }
  .cards .course .bottom .price .schoolPriceRow>.schoolPriceOld {
    font-size:24px!important;
  }
}


/* Desktop only: B'ANK card buttons match the other product cards. */
@media (min-width:901px) {
  .cards .bankCourse .bankActions .btn {
    box-sizing:border-box!important;
    width:150px!important;
    min-width:150px!important;
    max-width:150px!important;
    flex:0 0 150px!important;
  }
}


@media(min-width:901px){#decisions .tebePublicStart{transform:translateY(-18px)}}
#gameModal .tebePublicStartModal{margin:20px 0 12px;transform:none}


/* Move the stream line down by 10px relative to v2, without affecting prices/buttons. */
@media(min-width:901px){#decisions .tebePublicStart{transform:translateY(-8px)}}
/* The separator now sits ABOVE the stream date, not between date and price. */
#gameModal .tebePublicStartModal{
  border-top:1px solid rgba(255,255,255,.16);
  padding-top:22px;
  margin:28px 0 0;
  transform:none;
}
#gameModal .canonicalPurchaseFooter{
  border-top:none;
  padding-top:0;
  margin-top:18px;
}
@media(max-width:650px){
  #gameModal .tebePublicStartModal{padding-top:18px;margin-top:22px}
  #gameModal .canonicalPurchaseFooter{margin-top:14px}
}


/* Only the public #ТебеРешать card. Leave the Подробнее and checkout modals untouched. */
#decisions .productStats{margin-bottom:0!important}
#decisions .tebePublicStart{
  transform:none!important;
  margin:23px 0!important;
}
@media(max-width:900px){
  #decisions .tebePublicStart{margin:21.5px 0!important}
}


/* Uniform interaction on actionable CTAs, including course details and diagnostic launch. */
:is(a.cta,button.cta,button.btn,a.btn,.bcdDiagLaunch,.schoolCheckoutPay,.canonicalPurchaseAction button):not(:disabled){
 cursor:pointer!important;
 transition:background .2s ease,box-shadow .2s ease,transform .2s ease,filter .2s ease!important;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
 :is(a.cta,button.cta,button.btn,a.btn,.bcdDiagLaunch,.schoolCheckoutPay,.canonicalPurchaseAction button):not(:disabled):hover{
  background:linear-gradient(135deg,#ff4849,#ed1d24)!important;
  box-shadow:0 16px 34px #ed202e70!important;
  transform:translateY(-2px)!important;
 }
}
:is(a.cta,button.cta,button.btn,a.btn,.bcdDiagLaunch,.schoolCheckoutPay,.canonicalPurchaseAction button):active:not(:disabled){transform:translateY(0)!important}
:is(a.cta,button.cta,button.btn,a.btn,.bcdDiagLaunch,.schoolCheckoutPay,.canonicalPurchaseAction button):focus-visible{outline:2px solid #fff!important;outline-offset:3px!important}
#personal-consultation .consultInviteIcon svg{
 width:32px!important;height:32px!important;fill:#f5f0e7!important;stroke:none!important;
}
@media(prefers-reduced-motion:reduce){
 :is(a.cta,button.cta,button.btn,a.btn,.bcdDiagLaunch,.schoolCheckoutPay,.canonicalPurchaseAction button){transition:none!important}
 :is(a.cta,button.cta,button.btn,a.btn,.bcdDiagLaunch,.schoolCheckoutPay,.canonicalPurchaseAction button):hover{transform:none!important}
}


/* The outlined Details button keeps its transparent surface. */
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .productActions .btn.detail:not(:disabled):hover,
 .bankActions .btn.detail:not(:disabled):hover,
 button.btn.detail:not(:disabled):hover{
   background:transparent!important;
   background-image:none!important;
   border-color:#f26b71!important;
   box-shadow:0 12px 28px rgba(239,39,40,.28),0 0 0 1px rgba(255,255,255,.15) inset!important;
   color:#fff!important;
 }
}
#personal-consultation .consultInviteIcon svg{width:31px!important;height:31px!important;fill:#f5f0e7!important}
.schoolCheckoutForm label{font-size:13px!important;font-weight:750!important;text-transform:none!important}
.schoolCheckoutForm input::placeholder{text-transform:none!important}
