/* Alternate composition on /crm/bitrix24/bento/ */
.b24-bento {
  --bb-ice: #cae4ed;
  --bb-ink: #142e36;
  --bb-soft: #b6dcd3;
  --bb-gold: #f4e4b9;
  --bb-panel: #202a30;
  --bb-panel-text: #f2f6f7;
  --bb-lilac: #dcd9ec;
  --bb-radius: clamp(18px, 2vw, 31px);
  --bb-pad: clamp(22px, 2.4vw, 38px);
  --bb-gap: clamp(10px, 1.3vw, 20px);
}
html[data-theme=light] .b24-bento { --bb-panel: #eaf0f3; --bb-panel-text: #20363d; }
.b24-bento .b24-proof { border-bottom: 0; }
.b24-bento .b24-proof {
  --proof-size:clamp(30px,4vw,58px);
  grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.4fr);
  gap:clamp(22px,3vw,48px);
  padding-block:clamp(32px,4vw,56px);
}
.b24-bento .b24-proof > :is(div,a) { display:grid; grid-template-rows:calc(var(--proof-size)*1.3) auto; align-content:start; gap:12px; min-width:0; }
#main .b24-bento .b24-proof strong { color:#8df0dd; font-size:var(--proof-size); font-weight:550; line-height:1.3; letter-spacing:-.045em; font-variant-numeric:lining-nums tabular-nums; }
html[data-theme=light] #main .b24-bento .b24-proof strong { color:var(--accent); }
#main .b24-bento .b24-proof > a strong { align-self:center; font-size:clamp(24px,2.25vw,34px); line-height:1.2; }
.b24-bento .b24-proof > :is(div,a) > span { margin:0; font-size:clamp(16px,1.5vw,21px); line-height:1.4; color:var(--text); }
@media (max-width:1000px) {
  .b24-bento .b24-proof { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
  .b24-bento .b24-proof { --proof-size:clamp(27px,7vw,36px); gap:28px 20px; }
  .b24-bento .b24-proof > :is(div,a) { grid-template-rows:auto auto; }
  #main .b24-bento .b24-proof > a strong { font-size:24px; }
}
.b24-bento .b24-paths { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--bb-gap); border: 0; }
.b24-bento .b24-paths article { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: var(--bb-pad); background: var(--bb-panel); color: var(--bb-panel-text); border: 0; border-radius: var(--bb-radius); }
.b24-bento .b24-paths article .text-link { margin-top: auto; align-self: flex-start; }
.b24-bento .b24-paths .b24-path-index { color: var(--bb-panel-text); }
.b24-bento .b24-featured-case, .b24-bento .b24-packages article, .b24-bento .b24-app-shot, .b24-bento .b24-next { border-radius: var(--bb-radius); }

/* Case results read as three distinct stories. */
.b24-case-bento {
  display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  gap:var(--bb-gap); align-items:stretch;
}
.b24-story {
  --story-bg:#1d3934; --story-text:#edf8f2; --story-accent:#a5f2d6;
  display:flex; flex-direction:column; align-items:flex-start; gap:20px;
  min-width:0; padding:clamp(24px,3vw,44px); border-radius:var(--bb-radius);
  background:var(--story-bg); color:var(--story-text);
}
.b24-story-handoff { grid-row:span 2; }
.b24-story-leads { --story-bg:#302d45; --story-text:#f3effa; --story-accent:#cfc0f2; }
.b24-story-payments { --story-bg:#3b3425; --story-text:#faf2df; --story-accent:#f6d795; }
html[data-theme=light] .b24-story-handoff { --story-bg:#cee7dd; --story-text:#173e34; --story-accent:#176650; }
html[data-theme=light] .b24-story-leads { --story-bg:#e3def0; --story-text:#373046; --story-accent:#65528d; }
html[data-theme=light] .b24-story-payments { --story-bg:#f3e5c5; --story-text:#4e3e23; --story-accent:#80602b; }
.b24-story-top { display:flex; justify-content:space-between; gap:10px 20px; flex-wrap:wrap; width:100%; font-size:15px; line-height:1.5; }
.b24-story-metric { display:flex; align-items:center; gap:20px; margin-top:4px; }
#main .b24-story-metric strong { color:var(--story-accent); font-size:clamp(44px,5.25vw,76px); line-height:1; letter-spacing:-.055em; font-weight:550; white-space:nowrap; font-variant-numeric:tabular-nums; }
.b24-story-metric > span { font-size:16px; line-height:1.4; }
#main .b24-story h3 { margin:0; font-size:clamp(27px,2.3vw,36px); font-weight:500; line-height:1.15; letter-spacing:-.04em; color:inherit; text-wrap:balance; }
#main .b24-story > p { margin:0; max-width:45ch; font-size:17px; line-height:1.55; color:inherit; }
.b24-handoff { display:grid; grid-template-columns:minmax(0,.8fr) 55px minmax(0,1fr); align-items:center; width:100%; flex:1; min-height:172px; padding-block:12px; }
.b24-handoff-source { display:flex; flex-direction:column; gap:14px; align-items:center; padding:20px 10px; background:color-mix(in srgb,currentColor 7%,transparent); border-radius:18px; }
.b24-handoff-source svg { width:44px; height:44px; stroke:currentColor; stroke-width:1.7; }
.b24-handoff-source span { font-size:15px; }
.b24-handoff-lines { width:100%; height:120px; fill:none; stroke:var(--story-accent); stroke-width:1.5; }
.b24-handoff-targets { display:grid; gap:8px; }
.b24-handoff-targets span { display:flex; justify-content:space-between; gap:8px; align-items:center; min-height:42px; padding:8px 14px; border:1px solid color-mix(in srgb,currentColor 25%,transparent); border-radius:10px; font-size:15px; line-height:1.4; }
.b24-handoff-targets i { font-style:normal; color:var(--story-accent); }
.b24-story-link { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:auto; padding-top:14px; width:100%; border-top:1px solid color-mix(in srgb,currentColor 22%,transparent); min-height:50px; color:inherit; font-size:16px; font-weight:500; line-height:1.5; text-decoration:none; }
.b24-story-link > span { display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:50%; background:var(--story-accent); color:var(--story-bg); font-size:24px; transition:transform .2s; }
.b24-story-link:hover > span { transform:translate(2px,-2px); }
.b24-story-link:focus-visible { outline:2px solid currentColor; outline-offset:4px; border-radius:4px; }
.b24-payment-path { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding-block:5px; }
.b24-payment-path span { border-radius:9px; padding:8px 12px; background:color-mix(in srgb,currentColor 9%,transparent); font-size:15px; line-height:1.35; }
.b24-payment-path i { font-style:normal; color:var(--story-accent); }
@media (max-width:1000px) {
  .b24-story-metric { flex-wrap:wrap; gap:10px 18px; }
  .b24-story-metric > span br { display:none; }
}
@media (max-width:700px) {
  .b24-case-bento { grid-template-columns:minmax(0,1fr); }
  .b24-story-handoff { grid-row:auto; }
  .b24-story-metric { flex-wrap:nowrap; }
  #main .b24-story-metric strong { font-size:clamp(40px,12vw,62px); }
  .b24-story-metric > span { font-size:15px; }
  .b24-story-handoff .b24-story-metric { flex-wrap:wrap; }
}

/* Employee support after go-live. */
.b24-care-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:var(--bb-gap); }
.b24-care-grid article { min-width:0; border-radius:var(--bb-radius); padding:var(--bb-pad); }
.b24-care-example { grid-row:span 2; background:#1d3934; color:#eff8f4; }
html[data-theme=light] .b24-care-example { background:#cee7dd; color:#173e34; }
.b24-care-topic { display:flex; flex-direction:column; justify-content:center; gap:12px; background:var(--bb-panel); color:var(--bb-panel-text); }
#main .b24-care-grid h3 { color:inherit; margin:0; font-size:clamp(23px,2vw,30px); font-weight:500; letter-spacing:-.035em; line-height:1.2; text-wrap:balance; }
#main .b24-care-grid p, .b24-care-dialogue dd { margin:0; color:inherit; font-size:clamp(16px,1.2vw,18px); line-height:1.55; }
.b24-care-dialogue { display:grid; gap:16px; margin:24px 0 0; }
.b24-care-dialogue div { width:90%; padding:16px 20px; border-radius:18px 18px 18px 4px; background:color-mix(in srgb,currentColor 9%,transparent); }
.b24-care-dialogue div:last-child { justify-self:end; border-radius:18px 18px 4px 18px; background:#c2eddd; color:#153e32; }
html[data-theme=light] .b24-care-dialogue div:last-child { background:#245344; color:#f2fbf6; }
.b24-care-dialogue dt { margin:0 0 6px; font-size:14px; font-weight:600; }
.b24-care-contact { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; margin-top:24px; }
#main .b24-care-contact p { max-width:57ch; margin:0; color:var(--muted); line-height:1.55; }
@media(max-width:760px) {
  .b24-care-grid { grid-template-columns:minmax(0,1fr); }
  .b24-care-example { grid-row:auto; }
  .b24-care-dialogue div { width:96%; padding:14px 16px; }
}

/* The photograph and screen projection are shared with /crm/. */
#main .bb-crm-hero h1 { color:#f5f7f7; line-height:1.06; letter-spacing:-.05em; text-wrap:balance; }
#main .bb-crm-hero h1 em { color:#36e7c7; font-style:normal; }
#main .bb-crm-hero .lead { color:#e0e7e8; }
/* The cup overlaps a small part of the lower-left display corner. */
.bb-crm-hero [data-screen-demo="bitrix24"] { clip-path:polygon(0 0,100% 0,100% 100%,.7% 100%,1.4% 79%,1.3% 77%,0 75.8%); }
@media (prefers-reduced-motion:reduce) {
  #main .bb-crm-hero [data-screen-demo="bitrix24"].is-ready { display:block!important; }
}
.bb-crm-hero + .b24-guide { border-top:0; }
@media (min-width:901px) and (max-width:1439px) {
  #main .bb-crm-hero .hero-inner { min-height:clamp(570px,54vw,750px); padding-block:clamp(75px,8vw,120px) 120px; }
  #main .bb-crm-hero .hero-image { inset:50% 0 auto auto; width:118%; height:auto; transform:translateY(-50%); object-position:center; }
  #main .bb-crm-hero :is(h1,.lead,.actions) { max-width:43%; }
  #main .bb-crm-hero h1 { font-size:clamp(38px,3.6vw,53px); }
}
@media (max-width:900px) {
  #main .bb-crm-hero .hero-image { width:160%; height:auto; bottom:0; }
  #main .bb-crm-hero .hero-inner { padding-bottom:calc(90vw + 15px); }
}
@media (max-width:1000px) {
  .b24-bento .b24-paths { grid-template-columns:1fr; }
  .b24-bento .b24-paths article { gap:10px; }
}

/* Bento observatory. The canvas runs continuously behind the tiles. */
.b24-bento .b24-map-section { padding:0; }
.bb-orbit { --map-edge:clamp(52px,5vw,90px); }
.bb-atlas-head { display:flex; justify-content:space-between; align-items:end; gap:32px; }
#main .bb-atlas-head h2 { font-size:clamp(31px,3.65vw,54px); line-height:1.08; margin:12px 0 0; letter-spacing:-.05em; }
#main .bb-kicker { color:var(--accent); font-size:14px; margin:0; }
.bb-atlas-head > p { max-width:35ch; color:var(--muted); line-height:1.55; }
.bb-orbit .b24-universe { --orbit-width:min(1280px,calc(100% - 80px)); }
.bb-orbit :is(.b24-universe-head,.b24-universe-toolbar,#b24-space-panel,.b24-space-note) { width:var(--orbit-width); margin-inline:auto; }
.bb-orbit .b24-universe-head { display:none; }
.bb-orbit .b24-universe-toolbar { padding:0; min-height:46px; margin:0 auto 20px; flex-flow:row wrap; align-items:center; justify-content:space-between; gap:12px; }
.bb-orbit .b24-universe-hint { display:none; }
.bb-orbit .b24-universe-tabs > button,.bb-orbit .b24-universe-controls > button { border-radius:30px; }
.bb-orbit .has-bento-tiles.is-enhanced .b24-space {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1fr);
  grid-template-areas:"channels sun money" "team sun control"; grid-template-rows:repeat(2,1fr);
  gap:var(--bb-gap); height:auto; margin:0; isolation:isolate;
}
.bb-orbit .b24-space-label { display:none; }
.bb-orbit .bb-cluster,.bb-orbit .bb-solar { position:relative; min-width:0; border-radius:var(--bb-radius); }
.bb-orbit .bb-cluster {
  display:flex; flex-direction:column; gap:3px; justify-content:flex-start;
  padding:clamp(15px,1.55vw,26px); color:#eff6fa;
}
.bb-orbit .bb-cluster::before {
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  border:1px solid color-mix(in srgb,var(--glow) 38%,transparent);
  background:linear-gradient(135deg,color-mix(in srgb,var(--glow) 14%,#101c25),#111e29ed);
}
.bb-channels { grid-area:channels; --glow:#8acfea; --paper:#cce7ef; }
.bb-money { grid-area:money; --glow:#e9c680; --paper:#f3e2bf; }
.bb-team { grid-area:team; --glow:#81ddc4; --paper:#c8e6df; }
.bb-control { grid-area:control; --glow:#bda6f0; --paper:#dfdbed; }
html[data-theme=light] .bb-orbit .bb-cluster { color:#192e35; }
html[data-theme=light] .bb-orbit .bb-cluster::before { background:var(--paper); }
.bb-cluster-head { z-index:2; display:flex; align-items:center; gap:12px; margin:0 0 8px; }
.bb-port { position:absolute; right:-8px; top:50%; transform:translateY(-50%); width:7px; height:7px; border-radius:50%; background:var(--glow); border:1px solid #405568; }
.bb-money .bb-port,.bb-control .bb-port { left:-8px; right:auto; }
.bb-cluster-head > span { font-size:14px; font-variant-numeric:tabular-nums; color:var(--glow); }
html[data-theme=light] .bb-cluster-head > span { color:#455a61; }
#main .bb-cluster h3 { font-size:clamp(20px,1.65vw,27px); line-height:1.2; margin:0; color:inherit; }
.bb-orbit .bb-cluster .b24-planet {
  --orb:30px; position:relative; inset:auto; transform:none; width:100%; height:auto; min-height:44px;
  flex-direction:row; align-items:center; justify-content:flex-start; gap:12px;
  border-radius:12px; padding:4px 8px; color:inherit; text-align:left;
}
.bb-orbit .bb-cluster .b24-orb { border:0; box-shadow:none; border-radius:8px; background:#0f202c; }
.bb-orbit .bb-cluster .b24-orb::before,.bb-orbit .bb-cluster .b24-orb::after,.bb-orbit .bb-cluster .b24-planet-sub { display:none; }
.bb-orbit .bb-cluster .b24-orb > svg { width:21px; height:21px; stroke:var(--glow); }
.bb-orbit .bb-cluster .b24-erp-mark { font-size:17px; }
#main .bb-cluster .b24-planet > strong { min-width:0; flex:1; font-size:16px; font-weight:450; line-height:1.3; margin:0; color:inherit; text-shadow:none; text-align:left; }
.bb-orbit .bb-cluster .b24-planet:is(:hover,[aria-pressed=true]) { background:color-mix(in srgb,currentColor 13%,transparent); }
.bb-orbit .bb-cluster .b24-planet:focus-visible { outline:2px solid currentColor; outline-offset:0; }
.bb-orbit .b24-universe.is-focused .bb-cluster .b24-planet:not(.is-active) { opacity:.59; }
.bb-solar {
  grid-area:sun; display:grid; place-items:center; align-self:stretch;
  border:1px solid #c2a97865; background:radial-gradient(ellipse at 50% 48%,#ffc25c20,transparent 62%);
}
.bb-core-kicker { position:absolute; top:clamp(18px,2.2vw,34px); color:#f6d99b; font-size:15px; }
.bb-orbit .bb-solar .b24-planet-core { --orb:clamp(130px,13vw,196px); left:50%; top:50%; width:auto; min-width:100%; opacity:1; }
.bb-orbit .bb-solar .b24-planet-core > strong { display:block; margin-top:20px; color:#f1ddb3; text-shadow:0 2px 8px #040910; }
.bb-orbit .bb-solar .b24-planet-core:focus-visible { outline-offset:3px; }
.bb-orbit .b24-space-legend { width:100%; padding:20px 4px; }
.bb-orbit .b24-space-detail { border-radius:var(--bb-radius); background:#172733eb; border:1px solid #4c65774f; }
.bb-orbit .b24-space-note { padding:14px 4px 0; border:0; }
@media (max-width:820px) {
  .bb-atlas-head { flex-direction:column; align-items:flex-start; gap:12px; }
  .bb-orbit .b24-universe { --orbit-width:calc(100% - 32px); }
  .bb-orbit .has-bento-tiles.is-enhanced .b24-space {
    grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto 210px auto;
    grid-template-areas:"channels money" "sun sun" "team control";
  }
  .bb-core-kicker { top:12px; font-size:14px; }
  .bb-orbit .bb-solar .b24-planet-core { --orb:108px; min-width:210px; }
  .bb-orbit .bb-solar .b24-planet-core > strong { margin-top:10px; }
}
@media (max-width:620px) {
  .bb-orbit .b24-universe-toolbar { margin-bottom:16px; }
  /* A vertical system map gives every label the full screen width. */
  .bb-orbit .has-bento-tiles.is-enhanced .b24-space {
    grid-template-columns:minmax(0,1fr); grid-template-rows:260px repeat(4,auto);
    grid-template-areas:"sun" "channels" "money" "team" "control";
    gap:28px;
  }
  .bb-orbit .b24-space-lines { display:block; z-index:5; }
  .bb-orbit .b24-space-orbits,.bb-orbit .bb-port { display:none; }
  .bb-orbit .bb-cluster { padding:22px 46px 22px 18px; gap:6px; }
  .bb-orbit .has-mobile-rail .b24-route-track { opacity:.12; }
  .bb-orbit .has-mobile-rail .b24-route-light { opacity:.25; }
  .bb-orbit .has-mobile-rail.is-focused .b24-space-route { opacity:.12; }
  .bb-orbit .has-mobile-rail.is-focused .b24-space-route.is-active { opacity:1; }
  .bb-orbit .has-mobile-rail.is-focused .b24-space-route.is-active .b24-route-light { opacity:.85; }
  .bb-orbit .bb-cluster::after {
    content:""; position:absolute; left:50%; bottom:100%; height:28px;
    border-left:2px solid var(--glow); opacity:.65;
  }
  .bb-cluster-head { gap:12px; margin-bottom:12px; }
  #main .bb-cluster h3 { font-size:23px; }
  .bb-orbit .bb-cluster .b24-planet { --orb:36px; min-height:56px; padding:8px 0; gap:14px; }
  #main .bb-cluster .b24-planet > strong { font-size:20px; line-height:1.4; overflow-wrap:normal; }
  .bb-orbit .bb-cluster .b24-orb > svg { width:25px; height:25px; }
  .bb-orbit .bb-cluster .b24-erp-mark { font-size:23px; }
  .bb-orbit .bb-solar .b24-planet-core { --orb:140px; min-width:100%; }
  .bb-core-kicker { top:18px; font-size:16px; }
  .bb-orbit .bb-solar .b24-planet-core > strong { font-size:18px; margin-top:16px; }
  .bb-orbit .b24-universe.is-focused .bb-cluster .b24-planet:not(.is-active) { opacity:.72; }
}

