:root {
  --bb-primary: #3669fb;
  --bb-primary-hover: #285ae8;
  --bb-accent: #118aef;
  --bb-sky: #65befa;
  --bb-soft: #eff5ff;
  --bb-page: #f6f9fc;
  --bb-white: #fff;
  --bb-border: #e2eaf1;
  --bb-text: #191c2c;
  --bb-secondary: #667085;
  --bb-success: #16885c;
  --bb-radius-card: 18px;
  --bb-radius-button: 12px;
  --bb-shadow: 0 14px 38px rgba(36, 69, 122, .08);
}

html { scroll-padding-top: 104px; }
body[data-widget-code] { color: var(--bb-text); background: #fff; }
body[data-widget-code] h1,
body[data-widget-code] h2,
body[data-widget-code] h3 { letter-spacing: 0; }
body[data-widget-code] :where(h1, h2, h3, p, li, b, small, span) { overflow-wrap: anywhere; }
body[data-widget-code] main { overflow: visible; }
body[data-widget-code] .container,
body[data-widget-code] main *,
body[data-widget-code] .footer * { min-width: 0; }
body[data-widget-code] .btn { max-width: 100%; white-space: normal; text-align: center; }
body[data-widget-code] .section { padding: 88px 0; }
body[data-widget-code] .section--white { background: #fff; }
.widget-section--soft { background: var(--bb-page); }
.widget-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--bb-primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.widget-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--bb-sky); }
.widget-section-head { max-width: 760px; margin-bottom: 36px; }
.widget-section-head--center { margin-right: auto; margin-left: auto; text-align: center; }
.widget-section-head--center .widget-kicker { justify-content: center; }
.widget-section-head h2 { margin: 13px 0 13px; font-size: clamp(30px, 3vw, 43px); line-height: 1.15; }
.widget-section-head p { margin: 0; color: var(--bb-secondary); font-size: 16px; line-height: 1.7; }

.widget-hero { padding: 72px 0 68px; background: #f7faff; }
.widget-hero__layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr); gap: 54px; align-items: center; }
.widget-hero .breadcrumbs { margin-bottom: 22px; color: #78879c; }
.widget-hero .breadcrumbs a { color: #5e6e84; }
.widget-hero__tag { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 8px 13px; border: 1px solid #dbe8ff; border-radius: 999px; background: var(--bb-soft); color: #315fca; font-size: 12px; font-weight: 800; }
.widget-hero__tag i { width: 7px; height: 7px; border-radius: 50%; background: #20a773; box-shadow: 0 0 0 4px #d8f2e8; }
.widget-hero h1 { margin: 0 0 22px; font-size: clamp(42px, 4.1vw, 64px); line-height: 1.05; }
.widget-hero h1 em { color: var(--bb-primary); font-style: normal; }
.widget-hero__lead { max-width: 600px; margin: 0; color: #66758d; font-size: 18px; line-height: 1.7; }
.widget-hero__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.widget-hero__actions .btn { min-height: 50px; }
.widget-hero__proof { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 25px; }
.widget-hero__proof span { color: #607089; font-size: 12px; font-weight: 750; }
.widget-hero__proof span::before { content: "✓"; margin-right: 7px; color: #18a66c; font-weight: 900; }
.widget-hero__visual { position: relative; min-width: 0; }
.widget-hero__window { overflow: hidden; border: 1px solid #dce7f7; border-radius: 18px; background: #fff; box-shadow: 0 26px 70px rgba(43, 90, 178, .17); }
.widget-hero__browser { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 15px; border-bottom: 1px solid #e7eef8; background: #f7faff; }
.widget-hero__browser i { width: 7px; height: 7px; border-radius: 50%; background: #d7e1ef; }
.widget-hero__browser span { margin-left: auto; color: #74849b; font-size: 12px; }
.widget-hero__window img { display: block; width: 100%; height: auto; object-fit: contain; object-position: top center; }
.widget-media { position: relative; }
.widget-media-expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 9px 12px;
  border: 1px solid #d7e5fb;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  color: #244fbd;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 8px 24px rgba(35, 73, 145, .14);
  cursor: pointer;
}
.widget-media-expand:hover { border-color: #8cb1ff; background: #f5f8ff; }
.widget-media-expand:focus-visible { outline: 3px solid rgba(54, 105, 251, .28); outline-offset: 3px; }
.widget-hero__badge { position: static; width: 100%; max-width: none; margin-top: 12px; padding: 16px 18px; border: 1px solid #dfe9f7; border-radius: 13px; background: #fff; box-shadow: 0 15px 40px rgba(41, 82, 154, .12); }
.widget-hero__badge b,
.widget-hero__badge span { display: block; }
.widget-hero__badge b { font-size: 14px; }
.widget-hero__badge span { margin-top: 5px; color: #66758d; font-size: 13px; line-height: 1.5; }

.widget-summary { border-bottom: 1px solid var(--bb-border); background: #fff; }
.widget-summary__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.widget-summary article { min-width: 0; padding: 24px 22px; border-right: 1px solid var(--bb-border); }
.widget-summary article:first-child { border-left: 1px solid var(--bb-border); }
.widget-summary b,
.widget-summary span { display: block; }
.widget-summary b { margin-bottom: 5px; font-size: 16px; }
.widget-summary span { color: var(--bb-secondary); font-size: 13px; line-height: 1.45; }

.widget-demo { overflow: hidden; border: 1px solid #dce7f6; border-radius: 22px; background: #fff; box-shadow: 0 25px 70px rgba(43, 90, 178, .11); }
.widget-demo__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 24px; border-bottom: 1px solid #e5edf7; }
.widget-demo__toolbar > b { font-size: 15px; }
.widget-demo__toolbar > b small { margin-left: 8px; color: #718097; font-size: 12px; font-weight: 700; }
.widget-demo__tabs { display: flex; gap: 5px; padding: 4px; border-radius: 11px; background: #f1f5fa; }
.widget-demo__tabs button { min-height: 42px; padding: 9px 14px; border: 0; border-radius: 8px; background: transparent; color: #66758d; font-size: 13px; line-height: 1.35; font-weight: 800; white-space: normal; }
.widget-demo__tabs button.active { background: #fff; color: var(--bb-primary); box-shadow: 0 2px 8px rgba(57, 79, 107, .09); }
.widget-demo__status { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 24px 16px; }
.widget-demo__status span { padding: 7px 11px; border-radius: 999px; background: #f1f5fa; color: #697a91; font-size: 12px; font-weight: 750; }
.widget-demo__status span:first-child { background: #eaf8f1; color: var(--bb-success); }
.widget-demo__note { margin: 0; padding: 0 24px 22px; color: #74849a; font-size: 12px; line-height: 1.55; }

.widget-record-grid { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 12px; padding: 0 24px 22px; }
.widget-record { overflow: hidden; border: 1px solid #e0e9f4; border-radius: 15px; background: #fff; }
.widget-record--main { border-color: #cbeadb; background: #fbfffd; }
.widget-record--result { border-color: #c9d9ff; background: #f7faff; }
.widget-record__head,
.widget-record label,
.widget-record__field { display: block; min-height: 68px; padding: 14px 16px; border-bottom: 1px solid #e7eef6; }
.widget-record > :last-child { border-bottom: 0; }
.widget-record small,
.widget-record b { display: block; }
.widget-record small { margin-bottom: 5px; color: #8493a8; font-size: 10px; }
.widget-record b,
.widget-record i { overflow-wrap: anywhere; color: var(--bb-text); font-size: 12px; font-style: normal; font-weight: 750; }
.widget-record__head b { font-size: 14px; line-height: 1.4; }
.widget-record label > span { display: flex; align-items: flex-start; gap: 8px; }
.widget-record input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--bb-primary); }

.distribution-demo__body { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); gap: 14px; padding: 0 24px 22px; }
.distribution-demo__controls,
.distribution-demo__result { border: 1px solid #e0e9f4; border-radius: 16px; padding: 20px; }
.distribution-demo__controls h3,
.distribution-demo__result h3 { margin: 0 0 7px; font-size: 17px; }
.distribution-demo__controls > p,
.distribution-demo__result > p { margin: 0 0 17px; color: var(--bb-secondary); font-size: 12px; line-height: 1.55; }
.distribution-demo__algorithms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.distribution-demo__algorithms button { min-height: 58px; padding: 10px 8px; border: 1px solid var(--bb-border); border-radius: 10px; background: #fafcff; color: #60708a; font-size: 12px; line-height: 1.35; font-weight: 800; white-space: normal; }
.distribution-demo__algorithms button.active { border-color: #6b97ff; background: var(--bb-soft); color: #295cdb; box-shadow: inset 0 0 0 1px #6b97ff; }
.distribution-demo__description { margin: 9px 0 16px; padding: 13px 14px; border: 1px solid #ecf1f8; border-radius: 9px; background: #f7fafe; color: #66758d; font-size: 12px; line-height: 1.55; }
.widget-manager-list { display: grid; gap: 7px; }
.widget-manager { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--bb-border); border-radius: 11px; }
.widget-manager.off { background: #fafbfd; opacity: .67; }
.widget-manager__avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--bb-soft); color: var(--bb-primary); font-size: 11px; font-weight: 900; }
.widget-manager b,
.widget-manager small { display: block; }
.widget-manager b { font-size: 12px; }
.widget-manager small { margin-top: 3px; color: #74849b; font-size: 12px; line-height: 1.4; }
.widget-toggle { width: 38px; height: 22px; display: flex; align-items: center; padding: 3px; border: 0; border-radius: 30px; background: #ccd6e4; }
.widget-toggle::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(72, 84, 103, .24); transition: transform .18s; }
.widget-toggle[aria-checked="true"] { background: var(--bb-primary); }
.widget-toggle[aria-checked="true"]::after { transform: translateX(16px); }
.distribution-demo__result { display: flex; flex-direction: column; background: #f8fbff; }
.distribution-demo__flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; margin: 8px 0 20px; }
.distribution-demo__flow span { padding: 13px 9px; border: 1px solid #dce8f8; border-radius: 11px; background: #fff; font-size: 12px; font-weight: 800; text-align: center; }
.distribution-demo__flow i { color: #7da6f4; font-style: normal; }
.widget-assignment { display: grid; place-items: center; flex: 1; min-height: 175px; padding: 22px; border: 1px dashed #bbcef0; border-radius: 14px; background: #fff; text-align: center; }
.widget-assignment__person { display: none; }
.widget-assignment.ready .widget-assignment__placeholder { display: none; }
.widget-assignment.ready .widget-assignment__person { display: block; }
.widget-assignment__avatar { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 16px; background: var(--bb-soft); color: var(--bb-primary); font-weight: 900; }
.widget-assignment b,
.widget-assignment small { display: block; }
.widget-assignment small { margin-top: 5px; color: #7d8da4; }
.distribution-demo__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 14px; }
.distribution-demo__run { width: 100%; }
.distribution-demo__reset { min-height: 46px; padding-inline: 18px; }

.widget-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.widget-feature { min-height: 220px; padding: 25px; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-card); background: #fff; box-shadow: 0 8px 28px rgba(32, 73, 131, .04); }
.widget-feature:nth-child(2),
.widget-feature:nth-child(5) { border-color: #d7e7ff; background: #f7faff; }
.widget-feature__number { display: block; margin-bottom: 25px; color: var(--bb-primary); font-size: 12px; font-weight: 900; }
.widget-feature h3 { margin: 0 0 9px; font-size: 20px; }
.widget-feature p { margin: 0; color: var(--bb-secondary); font-size: 14px; line-height: 1.65; }

.widget-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.widget-step { position: relative; min-height: 220px; padding: 24px; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-card); background: #fff; }
.widget-step > span { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 11px; background: var(--bb-soft); color: var(--bb-primary); font-size: 12px; font-weight: 900; }
.widget-step h3 { margin: 0 0 9px; font-size: 16px; }
.widget-step p { margin: 0; color: var(--bb-secondary); font-size: 13px; line-height: 1.65; }

.widget-gallery { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 22px; }
.widget-gallery__stage { position: relative; overflow: hidden; border: 1px solid #dce8f8; border-radius: var(--bb-radius-card); background: #fff; box-shadow: var(--bb-shadow); }
.widget-gallery__stage img { display: block; width: 100%; height: auto; object-fit: contain; object-position: top center; background: #f7faff; }
.widget-gallery__stage figcaption { min-height: 54px; padding: 15px 76px 15px 18px; color: #66758d; font-size: 13px; line-height: 1.5; }
.widget-gallery__stage .widget-media-expand { bottom: 7px; }
.widget-gallery__nav { display: grid; gap: 9px; align-content: start; }
.widget-gallery__nav button { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 16px; border: 1px solid var(--bb-border); border-radius: 14px; background: #fff; color: var(--bb-text); text-align: left; }
.widget-gallery__nav button > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #f0f5ff; color: var(--bb-primary); font-size: 11px; font-weight: 900; }
.widget-gallery__nav button b,
.widget-gallery__nav button small { display: block; }
.widget-gallery__nav button b { font-size: 13px; }
.widget-gallery__nav button small { margin-top: 4px; color: #6d7d94; font-size: 12px; line-height: 1.45; }
.widget-gallery__nav button.active { border-color: #7ca5ff; background: var(--bb-soft); box-shadow: inset 0 0 0 1px #7ca5ff; }

.widget-specific-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.widget-specific-card { padding: 27px; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-card); background: #fff; }
.widget-specific-card--wide { grid-column: 1 / -1; }
.widget-specific-card > span { color: var(--bb-primary); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.widget-specific-card h3 { margin: 8px 0 10px; font-size: 22px; }
.widget-specific-card p { margin: 0; color: var(--bb-secondary); line-height: 1.65; }
.widget-specific-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.widget-specific-card li { padding: 7px 10px; border: 1px solid #dfe9fa; border-radius: 999px; background: #f4f8ff; color: #4b6fba; font-size: 11px; font-weight: 750; }

.widget-install { display: grid; grid-template-columns: .75fr 1.25fr; gap: 52px; align-items: start; }
.widget-install__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.widget-install__step { min-height: 178px; padding: 22px; border: 1px solid var(--bb-border); border-radius: 16px; background: #fff; }
.widget-install__step > span { display: block; margin-bottom: 22px; color: var(--bb-primary); font-size: 12px; font-weight: 900; }
.widget-install__step b { display: block; font-size: 15px; }
.widget-install__step p { margin: 7px 0 0; color: var(--bb-secondary); font-size: 12px; line-height: 1.6; }

.widget-pricing-section { scroll-margin-top: 100px; background: #eff5ff; }
.widget-pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 510px); gap: 52px; align-items: center; }
.widget-pricing__copy h2 { margin: 14px 0; font-size: clamp(31px, 3vw, 43px); line-height: 1.18; }
.widget-pricing__copy h2 em { color: var(--bb-primary); font-style: normal; }
.widget-pricing__copy > p { max-width: 520px; margin: 0 0 22px; color: #72829b; line-height: 1.7; }
.widget-pricing__benefit { display: flex; gap: 13px; max-width: 480px; padding: 17px; border: 1px solid #ddebfb; border-radius: 15px; background: #fff; box-shadow: 0 8px 28px rgba(35, 71, 132, .04); }
.widget-pricing__benefit > span { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; background: #eaf8f1; color: #1a9f74; font-weight: 900; }
.widget-pricing__benefit strong,
.widget-pricing__benefit small { display: block; }
.widget-pricing__benefit strong { font-size: 14px; }
.widget-pricing__benefit small { margin-top: 4px; color: #7d8da5; font-size: 12px; line-height: 1.5; }
.widget-pricing__copy ul { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; color: #5d6e86; font-size: 13px; font-weight: 650; }
.widget-pricing__copy li::first-letter { color: var(--bb-success); }
.widget-pricing__card { width: 100%; padding: 27px; border: 1px solid #d7e5fb; border-radius: 20px; background: #fff; box-shadow: 0 22px 62px rgba(51, 101, 177, .12); }
.widget-pricing__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.widget-pricing__head small { display: block; margin-bottom: 6px; color: var(--bb-primary); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.widget-pricing__head h3 { margin: 0; font-size: 19px; }
.widget-pricing__head > span { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #eaf8f1; color: var(--bb-success); font-size: 12px; font-weight: 800; }
.widget-pricing__base { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 16px; padding: 14px 15px; border: 1px solid #dceafe; border-radius: 13px; background: var(--bb-soft); }
.widget-pricing__base strong { color: #1d3f9e; font-size: 25px; white-space: nowrap; }
.widget-pricing__base strong small { color: #6c85af; font-size: 12px; font-weight: 600; }
.widget-pricing__base > span { max-width: 150px; color: #667b9b; font-size: 12px; line-height: 1.4; text-align: right; }
.widget-term-list { display: grid; gap: 8px; margin-bottom: 15px; }
.widget-term { position: relative; display: block; cursor: pointer; }
.widget-term input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.widget-term__content { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 69px; padding: 12px 13px; border: 1px solid #dfe8f4; border-radius: 12px; background: #fff; transition: border-color .16s, background .16s, box-shadow .16s; }
.widget-term:hover .widget-term__content { border-color: #9fc2ff; background: #fafcff; }
.widget-term input:checked + .widget-term__content { border-color: #6697ff; background: var(--bb-soft); box-shadow: inset 0 0 0 1px #6697ff; }
.widget-term input:focus-visible + .widget-term__content { outline: 3px solid rgba(54, 105, 251, .27); outline-offset: 3px; }
.widget-term__left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.widget-term__left strong,
.widget-term__left small { display: block; }
.widget-term__left strong { color: #273953; font-size: 13px; }
.widget-term__left small { margin-top: 3px; color: #73839a; font-size: 12px; line-height: 1.35; }
.widget-term__dot { width: 18px; height: 18px; flex: 0 0 auto; border: 1.5px solid #b6c5d9; border-radius: 50%; background: #fff; }
.widget-term input:checked + .widget-term__content .widget-term__dot { border-color: var(--bb-primary); background: var(--bb-primary); box-shadow: inset 0 0 0 4px #fff; }
.widget-term__discount { display: inline-block; margin-left: 5px; padding: 2px 6px; border: 1px solid #d3efdf; border-radius: 999px; background: #e7f6ee; color: #118558; font-size: 10px; }
.widget-term__best { display: inline-block; margin-top: 5px; color: #355fc9; font-size: 12px; font-weight: 800; }
.widget-term__right { flex: 0 0 auto; text-align: right; }
.widget-term__right strong,
.widget-term__right small { display: block; }
.widget-term__right strong { color: #1e3151; font-size: 16px; }
.widget-term__right small { margin-top: 3px; color: #6d82a1; font-size: 12px; }
.widget-pricing__summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 15px; padding: 15px; border: 1px solid #e3ebf6; border-radius: 12px; background: #f7f9fd; }
.widget-pricing__summary strong,
.widget-pricing__summary small { display: block; }
.widget-pricing__summary strong { color: #384f6d; font-size: 12px; }
.widget-pricing__summary small { margin-top: 4px; color: #71849f; font-size: 12px; line-height: 1.4; }
.widget-pricing__summary > b { color: #1e3e98; font-size: 24px; white-space: nowrap; }
.widget-pricing__submit { width: 100%; min-height: 49px; }
.widget-pricing__note { margin: 12px 0 0; color: #718198; font-size: 12px; line-height: 1.55; text-align: center; }
.widget-pricing__fallback { padding: 32px; border: 1px solid #d7e5fb; border-radius: 20px; background: #fff; }
.widget-pricing__fallback h2 { margin: 0 0 8px; }

.widget-faq { max-width: 900px; margin: 0 auto; }
.widget-faq details { border-bottom: 1px solid var(--bb-border); background: #fff; }
.widget-faq details:first-of-type { border-top: 1px solid var(--bb-border); }
.widget-faq summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 5px; color: var(--bb-text); font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.widget-faq summary::after { content: "+"; color: var(--bb-primary); font-size: 22px; }
.widget-faq details[open] summary::after { content: "−"; }
.widget-faq details p { max-width: 760px; margin: 0; padding: 0 5px 20px; color: var(--bb-secondary); line-height: 1.65; }

.widget-selected-plan { margin: -5px 0 12px; color: #5d70a0; font-size: 12px; font-weight: 800; }
.widget-page-footer .footer__grid > div:last-child a[href*="partner"] { display: none; }

.widget-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(12, 23, 42, .76);
}
.widget-lightbox.is-open { display: grid; }
.widget-lightbox__dialog {
  position: relative;
  width: min(1420px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 58px 16px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}
.widget-lightbox__dialog img {
  display: block;
  width: auto;
  min-width: 100%;
  max-width: none;
  height: auto;
  margin: 0 auto;
}
.widget-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e3f2;
  border-radius: 10px;
  background: #fff;
  color: #16233a;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}
body.widget-lightbox-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto; transition: none; animation: none; }
}

@media (max-width: 1100px) {
  .widget-hero__layout { grid-template-columns: 1fr 1fr; gap: 30px; }
  .widget-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .widget-pricing { grid-template-columns: minmax(0, 1fr) minmax(420px, 480px); gap: 26px; }
}

@media (max-width: 880px) {
  body[data-widget-code] .section { padding: 72px 0; }
  .widget-hero { padding: 52px 0 60px; }
  .widget-hero__layout,
  .widget-pricing,
  .widget-gallery,
  .widget-install,
  .distribution-demo__body { grid-template-columns: 1fr; }
  .widget-hero__visual { width: min(100%, 690px); margin: 4px auto 0; }
  .widget-summary__grid { grid-template-columns: 1fr 1fr; }
  .widget-summary article:nth-child(2) { border-right: 0; }
  .widget-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--bb-border); }
  .widget-record-grid { grid-template-columns: 1fr 1fr; }
  .widget-record--result { grid-column: 1 / -1; }
  .widget-steps { grid-template-columns: 1fr 1fr; }
  .widget-pricing__card { max-width: 650px; }
}

@media (max-width: 580px) {
  body[data-widget-code] .section { padding: 62px 0; }
  .widget-hero { padding: 34px 0 48px; }
  .widget-hero h1 { font-size: 38px; }
  .widget-hero__lead { font-size: 16px; }
  .widget-hero__actions { display: grid; }
  .widget-hero__actions .btn { width: 100%; }
  .widget-hero__proof { display: grid; }
  .widget-hero__badge { position: static; max-width: none; margin-top: 10px; }
  .widget-summary__grid { grid-template-columns: 1fr; }
  .widget-summary article,
  .widget-summary article:first-child { padding: 18px 0; border-right: 0; border-left: 0; border-bottom: 1px solid var(--bb-border); }
  .widget-demo__toolbar { align-items: stretch; flex-direction: column; padding: 18px; }
  .widget-demo__toolbar > b small { display: block; margin: 4px 0 0; }
  .widget-demo__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .widget-demo__tabs button { padding: 8px 4px; }
  .widget-demo__status { padding: 18px 18px 14px; }
  .widget-record-grid { grid-template-columns: 1fr; padding: 0 18px 18px; }
  .widget-record--result { grid-column: auto; }
  .widget-demo__note { padding: 0 18px 18px; }
  .distribution-demo__body { padding: 0 18px 18px; }
  .distribution-demo__controls,
  .distribution-demo__result { padding: 16px; }
  .distribution-demo__algorithms { grid-template-columns: 1fr; }
  .distribution-demo__flow { grid-template-columns: 1fr; }
  .distribution-demo__flow i { transform: rotate(90deg); text-align: center; }
  .distribution-demo__actions { grid-template-columns: 1fr; }
  .distribution-demo__reset { width: 100%; }
  .widget-feature-grid,
  .widget-steps,
  .widget-specific-grid,
  .widget-install__steps { grid-template-columns: 1fr; }
  .widget-feature,
  .widget-step,
  .widget-install__step { min-height: 0; }
  .widget-specific-card--wide { grid-column: auto; }
  .widget-gallery__nav button { padding: 13px; }
  .widget-pricing__card { padding: 19px 15px; }
  .widget-pricing__head { flex-wrap: wrap; }
  .widget-pricing__base { align-items: flex-start; }
  .widget-term__content { gap: 7px; padding: 12px 10px; }
  .widget-term__left { gap: 8px; }
  .widget-term__left strong { font-size: 12px; }
  .widget-term__right strong { font-size: 14px; }
  .widget-pricing__summary > b { font-size: 21px; }
  .widget-lightbox { padding: 8px; }
  .widget-lightbox__dialog { max-height: calc(100vh - 16px); padding: 56px 10px 10px; border-radius: 12px; }
}

@media (max-width: 360px) {
  .widget-hero h1 { font-size: 34px; }
  .widget-pricing__base,
  .widget-pricing__summary { align-items: flex-start; flex-direction: column; }
  .widget-pricing__base > span,
  .widget-pricing__summary > b { max-width: none; text-align: left; white-space: normal; }
  .widget-term__content { align-items: flex-start; flex-direction: column; }
  .widget-term__right { width: 100%; padding-left: 28px; text-align: left; }
}
