/* Regression fix: the original site.css sets #gd-course to #fff.
 * The promo tariff banner is a new direct child of #allrecords, so
 * that underlying white layer became visible between black records.
 * Keep the underlying course canvas black without touching the cards,
 * the white signup panel, the Bitrix page shell, or external forms. */
#gd-course,
#gd-course > #allrecords { background-color: #000 !important; }

/* KNX24 gadgets / Black Friday 50%.
 * All selectors are namespaced. No changes to existing forms or Tilda geometry.
 */
#gd-course .knx24-bf50-topline,
#gd-course .knx24-bf50-tariff-heading,
#gd-course .knx24-bf50-hero-banner,
#gd-course .knx24-bf50-card-ribbon,
#gd-course .knx24-bf50-price { box-sizing:border-box!important; font-family:Manrope,Arial,sans-serif!important; }
#gd-course .knx24-bf50-topline { background:#091221; border-bottom:1px solid #215ed5; padding:12px 20px; color:#fff; }
#gd-course .knx24-bf50-topline-inner { width:min(1150px,100%); margin:0 auto; display:flex; align-items:center; flex-wrap:wrap; gap:10px 20px; }
#gd-course .knx24-bf50-topline-tag { flex:none; display:inline-flex; align-items:center; min-height:28px; padding:5px 9px; border:1px solid #4d87ff; border-radius:6px; color:#fff; font:800 11px/1.2 Manrope,Arial,sans-serif; letter-spacing:.07em; }
#gd-course .knx24-bf50-topline-message { min-width:0; flex:1 1 260px; font:750 clamp(13px,1.15vw,17px)/1.35 Manrope,Arial,sans-serif; overflow-wrap:anywhere; }
#gd-course .knx24-bf50-topline-deadline { flex:none; font:600 13px/1.35 Manrope,Arial,sans-serif; color:#d6e3ff; }
#gd-course .knx24-bf50-topline-cta { flex:none; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:36px; padding:8px 16px; background:#1364ff; border-radius:7px; color:#fff!important; font:700 13px/1.2 Manrope,Arial,sans-serif!important; text-decoration:none!important; }
#gd-course .knx24-bf50-topline-cta:focus-visible { outline:3px solid #60ff96!important; outline-offset:2px; }
#gd-course #rec3970354001 .knx24-bf50-hero-banner { width:100%; min-width:0; max-width:100%; margin:18px 0 0!important; border-radius:10px; overflow:hidden; aspect-ratio:1200/376; background:#081224; box-shadow:0 6px 22px #0b22401f; }
#gd-course #rec3970354001 .knx24-bf50-hero-banner picture { display:block!important; width:100%; height:100%; }
#gd-course #rec3970354001 .knx24-bf50-hero-banner img { display:block!important; width:100%!important; height:100%!important; object-fit:cover!important; border:0!important; margin:0!important; }
#gd-course .knx24-bf50-tariff-heading { width:min(1200px,calc(100% - 24px)); margin:10px auto 0; min-height:76px; padding:18px clamp(16px,3vw,30px); display:flex; gap:12px 22px; flex-wrap:wrap; align-items:center; justify-content:space-between; background:linear-gradient(110deg,#0b1629 0%,#122d6d 56%,#0a1120 100%); border:1px solid #2463d7; border-radius:14px; color:#fff; }
#gd-course .knx24-bf50-tariff-heading-mark { font:700 11px/1.4 Manrope,Arial,sans-serif; letter-spacing:.10em; color:#bfd3ff; }
#gd-course .knx24-bf50-tariff-heading-offer { font:800 clamp(19px,2.1vw,27px)/1.2 Manrope,Arial,sans-serif; color:#fff; }
#gd-course .knx24-bf50-tariff-heading-term { font:600 12px/1.3 Manrope,Arial,sans-serif; color:#dce8ff; }
#gd-course #rec4383034201 .gd-tariff-card.knx24-bf50-card { border-color:#2772ff!important; }
#gd-course #rec4383034201 .knx24-bf50-card-ribbon { order:-1; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px 12px; width:100%; min-height:36px; margin:0 0 16px; border-radius:8px; background:#0d1d3a; padding:8px 10px; color:#fff; font:700 12px/1.2 Manrope,Arial,sans-serif; }
#gd-course #rec4383034201 .knx24-bf50-card-ribbon strong { color:#fff!important; font:900 15px/1.2 Manrope,Arial,sans-serif!important; }
#gd-course #rec4383034201 .gd-tariff-price.knx24-bf50-price { display:flex!important; flex-direction:column!important; align-items:center!important; justify-content:flex-start!important; gap:3px!important; width:100%!important; min-width:0!important; max-width:100%!important; height:auto!important; min-height:0!important; white-space:normal!important; line-height:1.2!important; }
#gd-course #rec4383034201 .knx24-bf50-old-price { color:#d9203a!important; font:600 clamp(16px,1.6vw,19px)/1.25 Manrope,Arial,sans-serif!important; text-decoration:line-through!important; text-decoration-thickness:2px!important; text-decoration-color:#d9203a!important; white-space:nowrap!important; }
#gd-course #rec4383034201 .knx24-bf50-new-price { color:#d9203a!important; font:850 clamp(28px,2.9vw,37px)/1.15 Manrope,Arial,sans-serif!important; letter-spacing:-.025em; white-space:nowrap!important; max-width:100%; }
#gd-course #rec4383034201 .knx24-bf50-price-note { color:#565f6a!important; font:500 12px/1.3 Manrope,Arial,sans-serif!important; white-space:normal!important; text-align:center!important; margin-top:5px; }
#gd-course #rec4383034201 .gd-tariff-bottom { gap:15px!important; padding-top:18px!important; }
/* Discount in checkout modal: keep the exact prices and existing external checkout CTA. */
body > .gd-native-dialog .gd-checkout-old { text-decoration-color:#d9203a!important; }
body > .gd-native-dialog .gd-checkout-sale { color:#d9203a!important; }
body > .gd-native-dialog .gd-checkout-badge { background:#1364ff!important; }
.knx24-bf50-reminder { position:fixed; right:20px; bottom:18px; z-index:998; display:flex; align-items:center; gap:10px; max-width:calc(100vw - 40px); padding:11px 42px 11px 13px; border:1px solid #3981ff; border-radius:12px; background:#0c1831; box-shadow:0 9px 35px #0006; color:#fff; box-sizing:border-box; font-family:Manrope,Arial,sans-serif; }
.knx24-bf50-reminder-value { flex:none; color:#fff; font-weight:850; font-size:25px; line-height:1.15; }
.knx24-bf50-reminder-copy { display:flex; flex-direction:column; gap:2px; font-size:12px; line-height:1.2; white-space:nowrap; }
.knx24-bf50-reminder-copy strong { font-weight:800; }
.knx24-bf50-reminder-copy small { color:#bdd2ff; font-size:11px; }
.knx24-bf50-reminder-link { margin-left:5px; padding:9px 12px; background:#1364ff; border-radius:7px; color:#fff!important; text-decoration:none!important; font-weight:700; font-size:12px; white-space:nowrap; }
.knx24-bf50-reminder-close { position:absolute; top:3px; right:4px; display:grid; place-items:center; width:30px; height:30px; padding:0; margin:0; border:0; background:transparent; color:#e2ecff; font-size:25px; line-height:1; cursor:pointer; }
.knx24-bf50-reminder-close:focus-visible, .knx24-bf50-reminder-link:focus-visible { outline:2px solid #60ff96; outline-offset:3px; }
@media(max-width:840px) {
 #gd-course #rec3970354001 .gd-hero-copy > .gd-hero-label { order:0; }
 #gd-course #rec3970354001 .gd-hero-copy > .knx24-bf50-hero-banner { order:1; margin:0 0 18px!important; }
 #gd-course #rec3970354001 .gd-hero-copy > .gd-hero-title { order:2; }
 #gd-course #rec3970354001 .gd-hero-copy > .gd-hero-description { order:3; }
 #gd-course #rec3970354001 .gd-hero-copy > .gd-hero-action { order:4; }
 #gd-course #rec3970354001 .gd-hero-copy > .gd-hero-consult { order:5; }
 #gd-course .knx24-bf50-topline { padding:11px 14px; }
 #gd-course .knx24-bf50-topline-deadline { margin-left:auto; }
 #gd-course .knx24-bf50-tariff-heading { justify-content:flex-start; }
 .knx24-bf50-reminder { display:none!important; }
}
@media(max-width:560px) {
 #gd-course .knx24-bf50-topline-inner { gap:9px 10px; }
 #gd-course .knx24-bf50-topline-message { flex-basis:calc(100% - 120px); font-size:13px; }
 #gd-course .knx24-bf50-topline-deadline { margin-left:0; }
 #gd-course .knx24-bf50-topline-cta { min-height:32px; }
 #gd-course .knx24-bf50-tariff-heading { display:flex; flex-direction:column; align-items:flex-start; gap:5px; padding:16px; margin-top:8px; }
 #gd-course #rec3970354001 .knx24-bf50-hero-banner { border-radius:8px; aspect-ratio:840/460; }
 #gd-course #rec4383034201 .knx24-bf50-new-price { font-size:clamp(28px,8.3vw,36px)!important; }
}
@media(prefers-reduced-motion:reduce){.knx24-bf50-reminder { transition:none!important; }}


/* Native responsive hero: intrinsic tracks, no absolute promotional composition. */
@media(min-width:640px) and (max-width:1199px){
 #gd-course #rec3970354001 .gd-hero-card{
   display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
   gap:clamp(18px,3vw,44px)!important;align-items:center!important;height:auto!important;
   min-width:0!important;width:100%!important;max-width:100%!important;
 }
 #gd-course #rec3970354001 .gd-hero-copy,
 #gd-course #rec3970354001 .gd-hero-visual {min-width:0!important;max-width:100%!important;width:100%!important;}
 #gd-course #rec3970354001 .gd-hero-title{font-size:clamp(24px,2.9vw,38px)!important;line-height:1.19!important;overflow-wrap:break-word!important}
 #gd-course #rec3970354001 .knx24-bf50-hero-banner{width:100%!important;height:auto!important;max-width:100%!important;min-width:0!important;align-self:start!important}
 #gd-course #rec3970354001 .gd-hero-visual img{max-width:100%!important;height:auto!important;object-fit:contain!important}
}
@media(min-width:640px) and (max-width:839px){
 #gd-course #rec3970354001 .gd-hero-card{grid-template-columns:minmax(0,1fr)!important}
 #gd-course #rec3970354001 .gd-hero-copy,
 #gd-course #rec3970354001 .gd-hero-visual{grid-column:1}
}
#gd-course #rec4383034201 .gd-tariff-card,
#gd-course #rec4383034201 .gd-tariff-price {min-width:0!important;max-width:100%!important}
#gd-course #rec4383034201 .knx24-bf50-card-ribbon {position:relative!important;inset:auto!important;transform:none!important}
