/* Netsense — Bitrix24 complex implementation.
   Only Bitrix24-specific layout lives here.
   Shared trust, commercial, editorial, related services, contact form and
   base service primitives are reused from the accepted Netsense components. */

.service-bitrix24-page{
  --b24-accent:var(--green);
  --ai-accent:var(--green);
  background:var(--bg);
  color:var(--text);
}
.service-bitrix24-page h1,
.service-bitrix24-page h2,
.service-bitrix24-page h3,
.service-bitrix24-page p{margin-top:0}
.service-bitrix24-page svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.b24-section{padding:48px 0;border-bottom:1px solid var(--line)}
.b24-section>.container>h2,
.b24-result>.container>h2{margin:0 0 28px;font-size:34px;line-height:1.08;letter-spacing:-.025em}
.b24-section-lead{max-width:850px;margin:-12px 0 36px;color:var(--muted);font-size:15px;line-height:1.55}

/* Hero: base STANDARD hero + accepted AI-style kicker. */
.b24-hero{padding-top:0;background:#020d11}
.b24-hero .b24-hero__grid{grid-template-columns:minmax(0,.98fr) minmax(560px,1.02fr);gap:70px;align-items:center;padding:14px 0 54px}
.b24-hero .ss-kicker{display:inline-flex;align-items:center;gap:12px;margin-bottom:13px;color:var(--text);font-size:13px;line-height:1.2;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.b24-hero .ss-kicker::before{content:"";width:28px;height:2px;background:var(--b24-accent)}
.b24-hero .ss-hero__copy h1{max-width:700px;font-size:48px}
.b24-hero .ss-hero__copy>p{max-width:590px;font-size:17px;line-height:1.55}
.b24-hero .ss-price{margin:30px 0 24px}
.b24-hero .ss-price span{font-size:20px;color:var(--text)}
.b24-hero .ss-price strong{font-size:32px;font-weight:400}
.b24-hero .ss-hero__actions .button{min-width:230px}

/* Hero process diagram. The Bitrix24 card is centred exactly above the Site node. */
.b24-hero-diagram{align-self:center}
.b24-hero-diagram h2{margin:0 0 32px;font-size:21px;line-height:1.1;letter-spacing:0}
.b24-hero-diagram__top{position:relative;height:140px;max-width:none;margin:0 0 48px}
.b24-hero-diagram__top::before{content:"";position:absolute;left:130px;width:60px;top:50%;height:1px;background:var(--b24-accent)}
.b24-hero-diagram__audience{position:absolute;left:0;top:50%;display:grid;grid-template-columns:32px auto;gap:10px;align-items:center;width:165px;font-size:13px;line-height:1.25;transform:translateY(-50%)}
.b24-hero-diagram__audience svg{width:28px;height:28px}
.b24-system-card{position:absolute;left:62.5%;top:50%;width:410px;max-width:52%;padding:30px 38px;border:1px solid var(--line);background:rgba(6,22,27,.58);transform:translate(-50%,-50%)}
.b24-system-card::after{content:"";position:absolute;left:50%;top:100%;width:1px;height:48px;background:var(--line);transform:translateX(-.5px)}
.b24-system-card strong{display:block;margin-bottom:7px;color:var(--b24-accent);font-size:25px;line-height:1}
.b24-system-card span{font-size:12px;color:var(--text)}
.b24-hero-diagram__systems{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.b24-hero-diagram__systems::before{content:"";position:absolute;left:7%;right:7%;top:0;height:1px;background:var(--line)}
.b24-hero-diagram__systems>div{position:relative;display:grid;grid-template-columns:26px auto;gap:10px;align-items:center;justify-content:center;padding-top:28px;font-size:13px;white-space:nowrap}
.b24-hero-diagram__systems .b24-dot{position:absolute;top:-4px;left:50%;width:8px;height:8px;border-radius:50%;background:var(--b24-accent);transform:translateX(-50%)}
.b24-hero-diagram__systems svg{width:24px;height:24px}

/* Service-specific summary. No numbering: the cross-service facts strip is separate. */
.b24-summary{padding-top:42px;padding-bottom:42px;background:#06161b}
.b24-summary__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.b24-summary__grid article{display:grid;grid-template-columns:34px 1fr;gap:14px;align-items:start;padding:8px 20px;border-left:1px solid var(--line)}
.b24-summary__grid article:first-child{border-left:0;padding-left:0}
.b24-summary__grid article:last-child{padding-right:0}
.b24-summary__grid svg{width:30px;height:30px;color:var(--b24-accent)}
.b24-summary__grid h3{margin:0 0 7px;font-size:17px}
.b24-summary__grid p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}

/* Process types: no card frames, only internal dividers. */
.b24-process-types{background:transparent}
.b24-feature-grid{display:grid}
.b24-feature-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.b24-feature-grid article{display:grid;grid-template-columns:38px 1fr;gap:16px;align-items:start;padding:26px 30px;border-top:1px solid var(--line);border-left:1px solid var(--line)}
.b24-feature-grid--3 article:nth-child(-n+3){border-top:0;padding-top:12px}
.b24-feature-grid--3 article:nth-child(3n+1){border-left:0;padding-left:0}
.b24-feature-grid--3 article:nth-child(3n){padding-right:0}
.b24-feature-grid svg{width:30px;height:30px;color:var(--b24-accent)}
.b24-feature-grid h3{margin:0 0 8px;font-size:16px}
.b24-feature-grid p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}

/* CRM start vs complex implementation. Bottom conclusions share one baseline. */
.b24-comparison{background:rgba(6,22,27,.38)}
.b24-comparison__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.b24-comparison__grid article{display:flex;min-height:100%;flex-direction:column;padding:0 30px 0 0}
.b24-comparison__grid article+article{padding:0 0 0 32px;border-left:1px solid var(--line)}
.b24-comparison__grid h3{margin:0 0 6px;font-size:24px}
.b24-comparison__grid article.is-primary h3{color:var(--b24-accent)}
.b24-comparison__lead{margin:0 0 28px;color:var(--muted);font-size:14px}
.b24-comparison__grid ul{list-style:none;margin:0 0 26px;padding:0}
.b24-comparison__grid li{display:grid;grid-template-columns:21px 1fr;gap:10px;align-items:start;padding:8px 0;font-size:14px}
.b24-comparison__grid li svg{width:19px;height:19px;color:var(--b24-accent)}
.b24-comparison__result{display:grid;grid-template-columns:32px 1fr;gap:15px;align-items:center;margin-top:auto;padding:16px;border:1px solid var(--line);background:rgba(5,209,94,.02)}
.b24-comparison__result svg{width:28px;height:28px;color:var(--b24-accent)}
.b24-comparison__result strong{font-size:13px;line-height:1.4}

/* Scope 3x2, exactly six, without decorative numbering. */
.b24-scope{background:transparent}
.b24-scope__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.b24-scope__grid article{display:grid;grid-template-columns:32px 1fr;gap:13px;align-items:start;padding:24px 28px;border-left:1px solid var(--line);border-top:1px solid var(--line)}
.b24-scope__grid article:nth-child(-n+3){border-top:0;padding-top:10px}
.b24-scope__grid article:nth-child(3n+1){border-left:0;padding-left:0}
.b24-scope__grid article:nth-child(3n){padding-right:0}
.b24-scope__grid svg{width:26px;height:26px;color:var(--b24-accent)}
.b24-scope__grid h3{margin:0 0 6px;font-size:15px}
.b24-scope__grid p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}

/* Integration diagram. A single continuous line prevents gaps around the centre card. */
.b24-integrations{background:rgba(6,22,27,.36)}
.b24-integrations__flow{position:relative;display:grid;grid-template-columns:1fr 1fr minmax(260px,1.35fr) 1fr 1.2fr;align-items:start;margin:62px 0 56px}
.b24-integrations__flow::before{content:"";position:absolute;left:7%;right:7%;top:52px;height:1px;background:var(--line);z-index:0}
.b24-integrations__node{position:relative;z-index:1;display:grid;justify-items:center;gap:14px;padding-top:30px;text-align:center;color:var(--text);font-size:16px;font-weight:500;line-height:1.3}
.b24-integrations__node svg{width:44px;height:44px;padding:6px;background:var(--bg);color:var(--b24-accent)}
.b24-integrations__center{position:relative;z-index:2;display:grid;place-items:center;min-height:104px;padding:24px;border:1px solid var(--line);background:#06161b}
.b24-integrations__center strong{color:var(--b24-accent);font-size:28px}
.b24-integrations__note{padding-top:26px;border-top:1px solid var(--line)}
.b24-integrations__note strong,.b24-integrations__note span{display:block}
.b24-integrations__note strong{margin-bottom:8px;font-size:14px}
.b24-integrations__note span{color:var(--muted);font-size:12px}

/* Result: accepted borderless AI result component, with Bitrix24 copy only. */
.b24-result{padding:48px 0;border-bottom:1px solid var(--line);background:transparent}
.b24-result .b24-result__card{display:block;padding:0 42px 0 0}
.b24-result .b24-result__card h3{max-width:610px;margin-bottom:18px;font-size:23px;line-height:1.25}
.b24-result .b24-result__card p{font-size:14px;line-height:1.55}
.b24-result .ai-result__list{padding-top:0;padding-bottom:0}
.b24-result .ai-result__list li{padding:12px 0;font-size:14px}

/* Project process: 3x2 desktop. Number circles are the common visual marker. */
.b24-project-process{background:rgba(6,22,27,.38)}
.b24-project-process__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.b24-project-process__grid article{display:grid;grid-template-columns:48px 1fr;gap:15px;align-items:start;padding:24px 28px;border-left:1px solid var(--line);border-top:1px solid var(--line)}
.b24-project-process__grid article:nth-child(-n+3){border-top:0;padding-top:8px}
.b24-project-process__grid article:nth-child(3n+1){border-left:0;padding-left:0}
.b24-project-process__grid article:nth-child(3n){padding-right:0}
.b24-project-process__marker{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--b24-accent);border-radius:50%;color:var(--b24-accent)}
.b24-project-process__marker span{font-size:13px;font-weight:700;line-height:1}
.b24-project-process__grid h3{margin:7px 0 7px;font-size:15px}
.b24-project-process__grid p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}

/* Existing related-services component: spacing only. */
.b24-related{border-top:0}

@media (max-width:1180px){
  .b24-hero .b24-hero__grid{grid-template-columns:1fr;gap:40px}
  .b24-hero-diagram{max-width:760px}
  .b24-integrations__flow{grid-template-columns:1fr 1fr minmax(220px,1.2fr) 1fr 1fr}
}

@media (max-width:900px){
  .b24-summary__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .b24-summary__grid article:nth-child(3){border-left:0}
  .b24-summary__grid article:nth-child(n+3){margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}
  .b24-feature-grid--3,.b24-scope__grid,.b24-project-process__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .b24-feature-grid--3 article:nth-child(3n+1),.b24-scope__grid article:nth-child(3n+1),.b24-project-process__grid article:nth-child(3n+1){border-left:1px solid var(--line);padding-left:28px}
  .b24-feature-grid--3 article:nth-child(2n+1),.b24-scope__grid article:nth-child(2n+1),.b24-project-process__grid article:nth-child(2n+1){border-left:0;padding-left:0}
  .b24-feature-grid--3 article:nth-child(-n+3),.b24-scope__grid article:nth-child(-n+3),.b24-project-process__grid article:nth-child(-n+3){border-top:1px solid var(--line)}
  .b24-feature-grid--3 article:nth-child(-n+2),.b24-scope__grid article:nth-child(-n+2),.b24-project-process__grid article:nth-child(-n+2){border-top:0}
  .b24-integrations__flow{grid-template-columns:repeat(2,1fr);gap:14px;margin:36px 0}
  .b24-integrations__flow::before{display:none}
  .b24-integrations__center{grid-column:1/-1;grid-row:1}
}

@media (max-width:768px){
  .b24-section>.container>h2,.b24-result>.container>h2{margin-bottom:18px;font-size:25px}
  .b24-section,.b24-result{padding:30px 0}
  .b24-section-lead{margin:-6px 0 24px;font-size:13px}

  .b24-hero{padding-top:12px}
  .b24-hero .b24-hero__grid{gap:30px;padding:22px 0 30px}
  .b24-hero .ss-kicker{font-size:12px}
  .b24-hero .ss-hero__copy h1{font-size:34px;line-height:1.03}
  .b24-hero .ss-hero__copy>p{font-size:14px;line-height:1.5}
  .b24-hero .ss-price{margin:18px 0}
  .b24-hero .ss-price span{font-size:15px}
  .b24-hero .ss-price strong{font-size:24px}
  .b24-hero .ss-hero__actions{display:block}
  .b24-hero .ss-hero__actions .button{width:100%;min-width:0;justify-content:space-between}
  .b24-hero-diagram h2{margin-bottom:16px;font-size:15px}
  .b24-hero-diagram__top{display:block;height:auto;margin:0 0 10px}
  .b24-hero-diagram__top::before{display:none}
  .b24-hero-diagram__audience{display:none}
  .b24-system-card{position:relative;left:auto;top:auto;width:100%;max-width:none;padding:18px 16px;transform:none}
  .b24-system-card::after{display:none}
  .b24-system-card strong{font-size:18px}
  .b24-system-card span{font-size:10px}
  .b24-hero-diagram__systems{grid-template-columns:1fr}
  .b24-hero-diagram__systems::before{display:none}
  .b24-hero-diagram__systems>div{grid-template-columns:28px 1fr;justify-content:start;padding:12px 8px;border-top:1px solid var(--line);font-size:11px}
  .b24-hero-diagram__systems .b24-dot{display:none}

  .b24-summary{padding-top:28px;padding-bottom:28px}
  .b24-summary__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .b24-summary__grid article{grid-template-columns:24px 1fr;gap:8px;padding:12px 10px}
  .b24-summary__grid article:first-child,.b24-summary__grid article:nth-child(3){padding-left:0}
  .b24-summary__grid article:nth-child(odd){border-left:0}
  .b24-summary__grid article:nth-child(n+3){margin-top:0;padding-top:16px;border-top:1px solid var(--line)}
  .b24-summary__grid svg{width:22px;height:22px}
  .b24-summary__grid h3{font-size:12px}
  .b24-summary__grid p{font-size:10px}

  .b24-feature-grid--3,.b24-scope__grid,.b24-project-process__grid{grid-template-columns:1fr}
  .b24-feature-grid article,
  .b24-feature-grid--3 article:nth-child(-n+3),
  .b24-feature-grid--3 article:nth-child(3n+1),
  .b24-feature-grid--3 article:nth-child(2n+1){padding:15px 0;border-left:0;border-top:1px solid var(--line)}
  .b24-feature-grid article:first-child{border-top:0}
  .b24-feature-grid svg{width:24px;height:24px}
  .b24-feature-grid h3{font-size:13px}
  .b24-feature-grid p{font-size:10px}

  .b24-comparison__grid{grid-template-columns:1fr}
  .b24-comparison__grid article,.b24-comparison__grid article+article{padding:0;border-left:0}
  .b24-comparison__grid article+article{position:relative;margin-top:42px;padding-top:36px;border-top:1px solid var(--line)}
  .b24-comparison__grid article+article::before{content:"↓";position:absolute;top:-26px;left:50%;color:var(--b24-accent);font-size:22px;transform:translateX(-50%)}
  .b24-comparison__grid h3{font-size:18px}
  .b24-comparison__lead{margin-bottom:14px;font-size:11px}
  .b24-comparison__grid li{padding:5px 0;font-size:11px}
  .b24-comparison__result{padding:12px}
  .b24-comparison__result strong{font-size:10px}

  .b24-scope__grid article,
  .b24-scope__grid article:nth-child(-n+3),
  .b24-scope__grid article:nth-child(3n+1),
  .b24-scope__grid article:nth-child(2n+1){grid-template-columns:24px 1fr;padding:14px 0;border-left:0;border-top:1px solid var(--line)}
  .b24-scope__grid article:first-child{border-top:0}
  .b24-scope__grid h3{font-size:12px}
  .b24-scope__grid p{font-size:10px}
  .b24-scope__grid svg{width:22px;height:22px}

  .b24-integrations__flow{grid-template-columns:1fr;gap:0;margin:24px 0}
  .b24-integrations__center{grid-column:auto;grid-row:1;min-height:0;padding:20px 14px}
  .b24-integrations__center strong{font-size:20px}
  .b24-integrations__node{grid-template-columns:34px 1fr;justify-items:start;align-items:center;gap:12px;padding:14px 8px;border-top:1px solid var(--line);text-align:left;font-size:13px}
  .b24-integrations__node svg{width:32px;height:32px;padding:3px}
  .b24-integrations__note{padding-top:18px}
  .b24-integrations__note strong{font-size:11px}
  .b24-integrations__note span{font-size:10px}

  .b24-result .b24-result__card{padding:0 0 18px}
  .b24-result .b24-result__card h3{font-size:17px}
  .b24-result .b24-result__card p{font-size:11px}
  .b24-result .ai-result__list li{padding:7px 0;font-size:11px}

  .b24-project-process__grid article,
  .b24-project-process__grid article:nth-child(-n+3),
  .b24-project-process__grid article:nth-child(3n+1),
  .b24-project-process__grid article:nth-child(2n+1){position:relative;grid-template-columns:40px 1fr;gap:11px;padding:0 0 18px;border:0}
  .b24-project-process__grid article::after{content:"";position:absolute;left:17px;top:34px;bottom:0;width:1px;background:var(--b24-accent)}
  .b24-project-process__grid article:last-child::after{display:none}
  .b24-project-process__marker{width:36px;height:36px;background:var(--bg)}
  .b24-project-process__marker span{font-size:11px}
  .b24-project-process__grid h3{margin-top:6px;font-size:12px}
  .b24-project-process__grid p{font-size:10px}
}

@media (max-width:420px){
  .b24-hero .ss-hero__copy h1{font-size:32px}
}

/* Step 60 — accepted mobile corrections only.
   Cascade cleanup is intentionally deferred to a separate pass. */
.b24-hero-diagram__systems-label,
.b24-integrations__mobile-label{display:none}

@media (max-width:767px){
  /* Hero diagram: show the missing input context and make the flow explicit. */
  .b24-hero-diagram__top{display:grid;height:auto;gap:22px;margin:0 0 14px}
  .b24-hero-diagram__audience{
    position:relative;left:auto;top:auto;display:grid;width:100%;
    grid-template-columns:32px minmax(0,1fr);gap:12px;align-items:center;
    padding:14px 16px;border:1px solid var(--line);background:rgba(6,22,27,.42);
    font-size:12px;line-height:1.35;transform:none
  }
  .b24-hero-diagram__audience::after{
    content:"↓";position:absolute;left:50%;bottom:-21px;color:var(--b24-accent);
    font-size:15px;line-height:1;transform:translateX(-50%)
  }
  .b24-hero-diagram__audience svg{width:27px;height:27px;color:var(--b24-accent)}
  .b24-hero-diagram__audience-text{display:flex;flex-wrap:wrap;gap:2px 10px;font-weight:600}
  .b24-hero-diagram__audience-text span:not(:last-child)::after{content:" ·";color:var(--muted)}
  .b24-system-card{padding:18px 16px}
  .b24-system-card strong{font-size:20px}
  .b24-system-card span{font-size:12px;line-height:1.4}
  .b24-hero-diagram__systems-label{display:block;margin:16px 0 8px;color:var(--muted);font-size:11px;font-weight:600}
  .b24-hero-diagram__systems{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    border-top:1px solid var(--line);border-bottom:1px solid var(--line)
  }
  .b24-hero-diagram__systems>div{
    min-height:66px;grid-template-columns:27px minmax(0,1fr);gap:10px;justify-content:start;
    padding:12px 10px;border-top:0;font-size:12px;white-space:normal
  }
  .b24-hero-diagram__systems>div:nth-child(odd){border-right:1px solid var(--line)}
  .b24-hero-diagram__systems>div:nth-child(n+3){border-top:1px solid var(--line)}
  .b24-hero-diagram__systems svg{width:25px;height:25px;color:var(--b24-accent)}

  /* The second comparison column used min-height:100% plus a top margin,
     which made it overflow the grid and cross the section boundary. */
  .b24-comparison__grid article,
  .b24-comparison__grid article+article{min-height:0}
  .b24-comparison__grid article+article{margin-bottom:0}
  .b24-comparison{padding-bottom:36px}

  /* Integration section: on mobile this is a 2×2 integration matrix,
     not another copy of the hero's vertical list. */
  .b24-integrations__flow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;margin:22px 0 24px}
  .b24-integrations__mobile-label{display:block;grid-column:1/-1;order:-3;margin-bottom:9px;color:var(--muted);font-size:11px;font-weight:600}
  .b24-integrations__center{grid-column:1/-1;grid-row:auto;order:-2;min-height:0;margin-bottom:14px;padding:20px 16px}
  .b24-integrations__center strong{font-size:22px}
  .b24-integrations__node{
    min-width:0;grid-template-columns:34px minmax(0,1fr);justify-items:start;align-items:center;
    gap:10px;min-height:68px;padding:14px 4px;border-top:1px solid var(--line);
    text-align:left;font-size:13px;line-height:1.3
  }
  .b24-integrations__node svg{width:32px;height:32px;padding:2px;color:var(--b24-accent)}
  .b24-integrations__note{margin-top:2px}

  /* Temporary scoped typography correction for the accepted commercial component.
     This intentionally wins over the current service-standard.css mobile rules;
     the underlying stylesheet loading/cascade is audited in the next pass. */
  .service-bitrix24-page .ss-section--commercial{padding:34px 0}
  .service-bitrix24-page .ss-section--commercial h2{margin-bottom:22px;font-size:29px;line-height:1.08}
  .service-bitrix24-page .ss-commercial article{padding:18px 0}
  .service-bitrix24-page .ss-commercial article:first-child{padding-top:0}
  .service-bitrix24-page .ss-commercial header{gap:13px;margin-bottom:12px}
  .service-bitrix24-page .ss-commercial header svg{width:27px;height:27px}
  .service-bitrix24-page .ss-commercial h3{font-size:18px;line-height:1.3}
  .service-bitrix24-page .ss-check-list--compact li{margin:10px 0;font-size:16px;line-height:1.45}
  .service-bitrix24-page .ss-check-list--compact li svg{width:19px;height:19px;flex:0 0 19px}
}

/* STEP216B — remove artificial dark squares; the icon sits directly on the parent composite panel. */
.service-bitrix24-page .b24-integrations__node > svg {background:transparent;}
.service-bitrix24-page .b24-integrations__center {display:flex;align-items:center;justify-content:center;gap:14px;}
.service-bitrix24-page .b24-integrations__center img {width:32px;height:32px;display:block;object-fit:contain;flex:0 0 auto;}
