/* v85 — final spacing, system cleanup and mobile-first QA */

/* Intro: keep the two-line title compact and fully inside the viewport. */
.intro-name{row-gap:0}
.intro-name>span+span{margin-top:-.17em}
.intro-name>span{max-width:100%}
.intro-name i{white-space:nowrap}

/* Problems: give the tab text breathing room and lower the main panel slightly. */
@media(min-width:1024px){
  .diagnostic-wave-section .section-head{margin-bottom:48px}
  .diagnostic-wave-section .diagnostic-desktop{transform:translateY(8px)}
  .diagnostic-wave-section .diagnostic-tabs{padding-left:36px;padding-right:30px}
  .diagnostic-wave-section .diagnostic-tab{padding-left:9px;padding-right:8px}
}

/* Experience: preserve the accepted design, only create a clear lower margin. */
@media(min-width:1024px){
  .experience-v84-inner{transform:translateY(-10px)}
  .experience-v84{padding-bottom:64px}
}
@media(min-width:1024px) and (max-height:790px){
  .experience-v84-inner{transform:translateY(-6px)}
  .experience-v84{padding-bottom:38px}
}

/* Management system: cleaner geometry, less copy in the centre, exact symmetry. */
.system-v84{background:linear-gradient(135deg,#0d0c0a 0%,#14110e 52%,#0d0c0a 100%)}
.system-v84-map{
  grid-template-columns:minmax(270px,1fr) 160px minmax(270px,1fr);
  grid-template-rows:124px 136px 124px;
  gap:18px 42px;
  align-items:stretch;
}
.system-v84-axis{background:rgba(243,238,229,.16)}
.axis-x{left:20%;right:20%}
.axis-y{top:13%;bottom:13%}
.system-node{
  min-height:0;
  padding:22px 26px;
  border-radius:16px;
  background:rgba(255,255,255,.022);
  border-color:rgba(243,238,229,.13);
  backdrop-filter:none;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.system-node h3{margin:14px 0 8px;font-size:clamp(27px,2.15vw,35px)}
.system-node p{font-size:11px;line-height:1.5}
.system-core{
  position:relative;
  width:136px;
  height:136px;
  padding:16px;
  box-shadow:none;
  background:#11100e;
}
.system-core::before{
  content:"";
  position:absolute;
  inset:-10px;
  border:1px solid rgba(189,59,48,.38);
  border-radius:50%;
}
.system-core::after{
  content:"";
  position:absolute;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--red);
  left:50%;
  top:-13px;
  transform:translateX(-50%);
}
.system-core strong{font-size:20px;line-height:1.08}
.system-v84-result{margin-top:30px}
@media(hover:hover){
  .system-node:hover{background:rgba(255,255,255,.045);border-color:rgba(243,238,229,.23)}
}

/* FAQ: centre the full composition inside its chapter. */
@media(min-width:1024px){
  .faq{
    min-height:100svh;
    box-sizing:border-box;
    align-content:center;
    align-items:start;
    padding-top:100px;
    padding-bottom:100px;
  }
}

/* Footer: contacts and authorship stay on one restrained level. */
.site-footer{padding-bottom:0}
.footer-main{min-height:118px;grid-template-columns:minmax(260px,1fr) auto}
.footer-contacts{gap:42px}
.footer-author{display:grid;gap:5px;padding-left:34px;border-left:1px solid rgba(243,238,229,.13);white-space:nowrap}
.footer-author small{font-size:8px;text-transform:uppercase;letter-spacing:.1em;color:#77716a}
.footer-author strong{font-size:11px;font-weight:500;color:#bbb4aa;transition:color .25s}
.footer-author:hover strong{color:var(--cream)}
.site-credit{display:none!important}

/* Tablet: retain hierarchy without forcing desktop geometry. */
@media(max-width:1023px) and (min-width:761px){
  .system-v84-map{grid-template-columns:1fr 132px 1fr;grid-template-rows:116px 132px 116px;gap:14px 24px}
  .system-core{width:120px;height:120px}
  .footer-main{grid-template-columns:1fr;gap:24px;padding:30px 0}
  .footer-contacts{justify-content:flex-start;flex-wrap:wrap}
}

/* Mobile: separate, deliberate composition. No desktop interactions are required to understand it. */
@media(max-width:760px){
  .intro-title{gap:10px}
  .intro-name{font-size:clamp(42px,12vw,58px);line-height:.98;letter-spacing:-.045em}
  .intro-name>span+span{margin-top:-.10em}
  .intro-name i{white-space:normal}

  /* Hero keeps the original v73 composition and its reveal, but never overflows. */
  .hero{overflow:hidden}
  .hero-copy,.hero-visual{min-width:0}
  .hero-proof{gap:0}
  .hero-proof p{padding:15px 0 14px!important}
  .hero-proof strong{font-size:20px;line-height:1.03}
  .hero-proof span{max-width:290px}

  /* Wave hand-off stays visible, shorter and easier to follow on touch screens. */
  .opening-sequence>.hero{position:sticky!important;top:0!important}
  .diagnostic-wave-section{margin-top:30svh!important;padding-bottom:72px!important}
  .diagnostic-wave{top:-38px!important;height:40px!important}
  .diagnostic-inner{padding-top:30px!important}
  .diagnostic-wave-section .section-head{margin-bottom:30px}
  .diagnostic-wave-section .section-head h2{font-size:clamp(40px,10.7vw,50px);line-height:1.03}
  .diagnostic-wave-section .section-head p{font-size:12px;line-height:1.55}
  .mobile-problem button{min-height:64px;padding-left:18px;padding-right:18px}
  .mobile-problem-body{padding-left:18px;padding-right:18px}

  /* Experience: same order as desktop, with lighter cards and staged motion intact. */
  .experience-v84{padding:74px 18px 84px}
  .experience-v84-inner{transform:none}
  .experience-v84-head{gap:22px;margin-bottom:32px}
  .experience-v84-head h2{font-size:clamp(40px,10.4vw,50px)}
  .experience-v84-head p{font-size:13px;line-height:1.55;margin-top:16px}
  .experience-v84-head>strong{max-width:none;display:flex;align-items:flex-end;gap:12px}
  .experience-v84-head>strong span{font-size:58px}
  .experience-v84-grid{gap:12px}
  .experience-v84-grid article{border-radius:20px;padding:22px}
  .experience-v84-wide{display:grid!important;grid-template-columns:48px 1fr;gap:18px}
  .experience-v84-wide .experience-v84-facts{grid-column:1/-1;padding-top:8px;margin-top:6px}
  .experience-v84-symbol{width:48px;height:48px;margin:0!important;border-radius:14px}
  .experience-v84-dark .experience-v84-symbol,.experience-v84-sand .experience-v84-symbol{margin-bottom:24px!important}
  .experience-v84-grid h3{font-size:31px;line-height:1.03;margin-bottom:10px}
  .experience-v84-grid p{font-size:12px;line-height:1.5}
  .experience-v84-facts{margin-top:24px;padding-top:0}

  /* Cases stay vertical and readable; animation remains sequential. */
  .cases-preview{padding:74px 18px 84px}
  .cases-preview-head{gap:22px;margin-bottom:32px}
  .cases-preview-head h2{font-size:clamp(44px,12vw,58px)}
  .cases-preview-head p{font-size:13px;line-height:1.55}
  .case-preview-grid-v40{gap:12px}
  .case-preview-grid-v40 .case-preview-card{min-height:0!important;padding:24px 22px 22px;border-radius:20px}
  .case-preview-card h3,.case-preview-card.featured h3{font-size:32px;line-height:1.04}
  .case-preview-card p{font-size:12px;line-height:1.5}
  .metric-pills{margin-top:30px}

  /* System becomes a clear vertical map; centre is a compact label, not another card. */
  .system-v84{padding:78px 18px 84px}
  .system-v84-head{gap:18px;margin-bottom:34px}
  .system-v84-head h2{font-size:clamp(40px,10.2vw,50px)}
  .system-v84-head p{font-size:12.5px;line-height:1.55}
  .system-v84-map{grid-template-columns:1fr;grid-template-areas:"core" "roles" "processes" "control" "decisions";grid-template-rows:auto;gap:10px}
  .system-v84-axis{display:none}
  .system-core{width:126px;height:126px;min-height:0;border-radius:50%;justify-self:center;margin-bottom:12px}
  .system-node{padding:20px;border-radius:16px;transform:translateY(16px)!important}
  .system-v84-map.is-assembled .system-node{transform:none!important}
  .system-node h3{font-size:29px;margin:11px 0 8px}
  .system-v84-result{grid-template-columns:1fr;gap:7px;margin-top:26px;padding-top:16px}

  /* Work formats remain a visible ladder even in one column. */
  .services-v84{padding:74px 18px 84px}
  .services-v84-head{gap:18px;margin-bottom:34px}
  .services-v84-head h2{font-size:clamp(40px,10.4vw,50px)}
  .service-ladder-v84{display:grid;grid-template-columns:1fr;gap:10px}
  .service-v84,.service-v84-one,.service-v84-two,.service-v84-three{min-height:220px;padding:22px;border-radius:20px}
  .service-v84-two{margin-left:10px}
  .service-v84-three{margin-left:20px}
  .service-v84 h3{font-size:31px}

  /* FAQ is naturally sized on mobile; its questions remain the only interaction. */
  .faq{min-height:0!important;padding:76px 18px 84px!important;gap:32px}
  .faq-head h2{font-size:clamp(42px,11vw,52px)}
  .faq-list summary{font-size:17px;line-height:1.35;padding:22px 42px 22px 0}
  .faq-list summary::after{top:20px}
  .faq-answer p{font-size:13px!important;line-height:1.6!important;margin-right:0!important}

  /* Contact and footer: full-width controls, no oversized black ending. */
  .contact{margin:92px 10px 32px!important;padding:32px 18px 26px!important;border-radius:22px!important}
  .site-footer{padding:0 18px}
  .footer-main{min-height:0;grid-template-columns:1fr;gap:26px;padding:30px 0}
  .footer-brand{align-items:flex-start}
  .footer-contacts{display:grid;grid-template-columns:1fr 1fr;gap:24px 20px;justify-content:stretch}
  .footer-contact{min-height:0!important}
  .footer-author{grid-column:1/-1;padding:20px 0 0;border-left:0;border-top:1px solid rgba(243,238,229,.13);white-space:normal}
  .footer-copy{align-self:end}
}

@media(max-width:430px){
  .diagnostic-wave-section{margin-top:26svh!important}
  .experience-v84-wide{grid-template-columns:44px 1fr;gap:14px}
  .service-v84-two{margin-left:6px}.service-v84-three{margin-left:12px}
}

@media(max-width:760px) and (max-height:639px){
  .opening-sequence>.hero{position:relative!important}
  .diagnostic-wave-section{margin-top:40px!important}
}

@media(prefers-reduced-motion:reduce){
  .intro-name>span+span{margin-top:-.17em}
  .system-core::before,.system-core::after{display:none}
}

/* Final QA fixes. */
.site-intro.is-leaving .intro-skip{opacity:0}
@media(min-width:761px) and (max-width:1023px){
  .hero-caption{left:12px!important;right:12px!important;width:auto!important;min-width:0!important;padding:12px 12px!important}
  .hero-caption span{font-size:8px!important}
  .hero-caption b{font-size:10px!important;line-height:1.25!important;white-space:normal!important}
}
@media(max-width:760px){
  .experience-v84,.cases-preview,.system-v84,.services-v84,.faq,.contact{box-sizing:border-box}
}

/* v86 — final structural cleanup after live review */

/* Desktop: make the management-system diagram denser and cleaner. */
@media(min-width:1024px){
  .system-v84-head{gap:clamp(56px,7vw,110px);margin-bottom:clamp(58px,6vh,86px)}
  .system-v84-map{
    grid-template-columns:minmax(300px,1fr) 190px minmax(300px,1fr);
    grid-template-rows:132px 166px 132px;
    gap:22px 24px;
  }
  .axis-x{left:18%;right:18%}
  .axis-y{top:11%;bottom:11%}
  .system-node{padding:24px 28px}
  .system-node h3{font-size:clamp(28px,2.2vw,36px)}
  .system-node p{font-size:12px;line-height:1.52;max-width:32ch}
  .system-core{width:160px;height:160px;padding:18px}
  .system-core::before{inset:-11px}
  .system-core strong{font-size:18px;line-height:1.08}
  .system-v84-result{margin-top:34px}
}

/* Desktop/tablet footer: left = brand and Olga contacts, right = author + year. */
@media(min-width:761px){
  .footer-main{grid-template-columns:minmax(280px,1fr) auto;align-items:start;gap:40px;padding:34px 0 26px}
  .footer-brand{align-items:flex-start;padding-top:2px}
  .footer-contacts{
    display:grid;
    grid-template-columns:auto auto auto;
    grid-template-rows:auto auto;
    align-items:start;
    column-gap:40px;
    row-gap:14px;
  }
  .footer-contacts .footer-contact:first-of-type{grid-column:1;grid-row:1}
  .footer-contacts .footer-telegram{grid-column:2;grid-row:1}
  .footer-contacts .footer-author{grid-column:3;grid-row:1;padding-left:0;border-left:0;white-space:normal;min-width:180px}
  .footer-contacts .footer-copy{grid-column:3;grid-row:2;font-size:10px;color:#77716a;align-self:start}
}

/* Mobile: remove the sticky hand-off from hero to problems — simpler and smoother. */
@media(max-width:760px){
  .opening-sequence>.hero{position:relative!important;top:auto!important}
  .diagnostic-wave-section{margin-top:0!important;padding-bottom:72px!important}
  .diagnostic-wave{top:-34px!important;height:36px!important}

  /* Mobile system block: smaller core, clearer rhythm, less visual heaviness. */
  .system-v84{padding:74px 18px 80px}
  .system-v84-head{gap:16px;margin-bottom:28px}
  .system-v84-map{gap:12px}
  .system-core{width:104px;height:104px;margin:4px auto 10px}
  .system-core strong{font-size:16px;line-height:1.06}
  .system-core::before{inset:-8px}
  .system-core::after{top:-11px}
  .system-node{padding:18px 18px 17px;border-radius:18px}
  .system-node span{font-size:9px;letter-spacing:.09em}
  .system-node h3{font-size:24px;line-height:1.06;margin:8px 0 8px}
  .system-node p{font-size:12px;line-height:1.48}
  .system-v84-result{margin-top:18px;padding-top:14px}
  .system-v84-result span{font-size:9px}
  .system-v84-result strong{font-size:13px;line-height:1.5}

  /* Mobile footer: keep Olga info on the left, author + year on the right. */
  .site-footer{padding:0 18px 10px}
  .footer-main{grid-template-columns:1fr;gap:22px;padding:28px 0 20px}
  .footer-contacts{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;
    gap:18px 28px;
    align-items:start;
  }
  .footer-contacts .footer-contact:first-of-type{grid-column:1;grid-row:1}
  .footer-contacts .footer-telegram{grid-column:1;grid-row:2}
  .footer-contacts .footer-author{grid-column:2;grid-row:1;padding:0;border:0;min-width:132px;justify-self:end;text-align:left}
  .footer-contacts .footer-copy{grid-column:2;grid-row:2;justify-self:end;align-self:end}
}

@media(max-width:430px){
  .system-node h3{font-size:22px}
  .footer-contacts{grid-template-columns:minmax(0,1fr) 132px;column-gap:18px}
  .footer-contacts .footer-author{min-width:132px}
}

/* v87 — footer alignment + mobile system simplification */

@media(min-width:761px){
  .footer-main{
    grid-template-columns:auto 1fr;
    align-items:center;
    gap:42px;
    padding:30px 0 22px;
  }
  .footer-brand{align-items:center;gap:16px;white-space:nowrap}
  .footer-brand p{white-space:nowrap}
  .footer-contacts{
    display:grid;
    grid-template-columns:auto auto 1fr auto auto;
    align-items:center;
    column-gap:38px;
    row-gap:0;
    width:100%;
  }
  .footer-contacts .footer-contact:first-of-type{grid-column:1;grid-row:1}
  .footer-contacts .footer-telegram{grid-column:2;grid-row:1}
  .footer-contacts .footer-author{
    grid-column:4;grid-row:1;
    display:grid;gap:4px;
    padding:0;border:0;
    min-width:0;white-space:nowrap;
  }
  .footer-contacts .footer-copy{
    grid-column:5;grid-row:1;
    font-size:11px;
    color:#77716a;
    align-self:center;
    white-space:nowrap;
  }
}

@media(max-width:760px){
  /* Remove the circle/core on mobile in the system block */
  .system-v84-map{
    grid-template-areas:"roles" "processes" "control" "decisions";
    gap:12px;
  }
  .system-core,.axis-x,.axis-y,.system-v84-axis{display:none!important}

  /* Footer: cleaner two-column mobile layout */
  .footer-main{gap:18px;padding:24px 0 18px}
  .footer-brand{align-items:flex-start;gap:14px}
  .footer-brand p{max-width:19ch;line-height:1.3}
  .footer-contacts{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "email author"
      "telegram copy";
    column-gap:22px;
    row-gap:18px;
    align-items:start;
    width:100%;
  }
  .footer-contacts .footer-contact:first-of-type{grid-area:email}
  .footer-contacts .footer-telegram{grid-area:telegram}
  .footer-contacts .footer-author{
    grid-area:author;
    padding:0;
    border:0;
    min-width:0;
    white-space:normal;
    justify-self:end;
    text-align:left;
  }
  .footer-contacts .footer-copy{
    grid-area:copy;
    justify-self:end;
    align-self:end;
    white-space:nowrap;
  }
}

@media(max-width:430px){
  .footer-contacts{column-gap:16px}
  .footer-author strong{font-size:10px}
}

/* v88 — ultra-compact single-row footer */
.site-footer .footer-brand p{display:none!important}

@media(min-width:761px){
  .site-footer .footer-main{
    min-height:0;
    grid-template-columns:auto 1fr;
    align-items:center;
    gap:28px;
    padding:22px 0;
  }
  .site-footer .footer-brand{
    align-items:center;
    padding-top:0;
    gap:0;
  }
  .site-footer .footer-contacts{
    display:grid;
    grid-template-columns:auto auto 1fr auto auto;
    align-items:center;
    column-gap:28px;
    row-gap:0;
    width:100%;
  }
  .site-footer .footer-contact:first-of-type{grid-column:1;grid-row:1}
  .site-footer .footer-telegram{grid-column:2;grid-row:1}
  .site-footer .footer-author{
    grid-column:4;grid-row:1;
    padding:0;
    border:0;
    min-width:0;
    white-space:nowrap;
    justify-self:end;
    display:grid;
    gap:4px;
  }
  .site-footer .footer-copy{
    grid-column:5;grid-row:1;
    justify-self:end;
    align-self:center;
    white-space:nowrap;
    font-size:11px;
    color:#77716a;
  }
}

@media(max-width:760px){
  .site-footer .footer-main{
    min-height:0;
    grid-template-columns:auto 1fr;
    align-items:start;
    gap:16px;
    padding:18px 0;
  }
  .site-footer .footer-brand{
    align-items:flex-start;
    padding-top:2px;
    gap:0;
  }
  .site-footer .footer-contacts{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "email author"
      "telegram copy";
    column-gap:18px;
    row-gap:14px;
    align-items:start;
    width:100%;
  }
  .site-footer .footer-contact:first-of-type{grid-area:email}
  .site-footer .footer-telegram{grid-area:telegram}
  .site-footer .footer-author{
    grid-area:author;
    justify-self:end;
    text-align:left;
    padding:0;
    border:0;
    min-width:0;
    white-space:normal;
    display:grid;
    gap:4px;
  }
  .site-footer .footer-copy{
    grid-area:copy;
    justify-self:end;
    align-self:end;
    white-space:nowrap;
    font-size:11px;
  }
}

@media(max-width:430px){
  .site-footer .footer-main{gap:14px;padding:16px 0}
  .site-footer .footer-contacts{column-gap:14px;row-gap:12px}
  .site-footer .footer-author strong{font-size:10px}
}

/* v89 — management-system block: cards closer to the core + connectors point to cards */
@media(min-width:1024px){
  .system-v84-head{margin-bottom:clamp(66px,6.8vh,94px)}

  .system-v84-map{
    grid-template-columns:minmax(260px,1fr) 210px minmax(260px,1fr);
    grid-template-rows:150px 188px 150px;
    gap:18px 8px;
  }

  .system-node{
    position:relative;
    width:min(100%, 620px);
    padding:24px 28px;
  }
  .node-roles,.node-control{justify-self:end}
  .node-processes,.node-decisions{justify-self:start}

  .system-core{
    width:176px;
    height:176px;
    padding:22px;
  }
  .system-core::before{inset:-13px}
  .system-core strong{font-size:17px;line-height:1.06}

  /* remove generic cross, replace with clearer directional connectors */
  .axis-x,.axis-y{display:none}

  .system-node::after{
    content:"";
    position:absolute;
    height:1px;
    background:rgba(243,238,229,.16);
    transform-origin:left center;
    pointer-events:none;
  }
  .node-roles::after{
    width:104px;
    right:-86px;
    top:calc(100% - 20px);
    transform:rotate(28deg);
  }
  .node-processes::after{
    width:104px;
    left:-86px;
    top:calc(100% - 20px);
    transform:rotate(-28deg);
  }
  .node-control::after{
    width:104px;
    right:-86px;
    top:20px;
    transform:rotate(-28deg);
  }
  .node-decisions::after{
    width:104px;
    left:-86px;
    top:20px;
    transform:rotate(28deg);
  }

  .system-v84-result{margin-top:28px}
}

/* v89 — management system as one connected cross */
@media(min-width:1024px){
  .system-v84-map{
    width:min(100%,998px);
    max-width:998px;
    margin-inline:auto;
    grid-template-columns:minmax(300px,380px) 170px minmax(300px,380px);
    grid-template-rows:clamp(108px,14vh,130px) clamp(138px,17vh,160px) clamp(108px,14vh,130px);
    grid-template-areas:none;
    gap:24px 34px;
    justify-content:center;
    align-items:stretch;
  }
  .system-v84-map .node-processes{
    grid-area:auto;
    grid-column:1 / -1;
    grid-row:1;
    width:380px;
    max-width:100%;
    justify-self:center;
    transform:translateY(18px);
  }
  .system-v84-map .node-roles{
    grid-area:auto;
    grid-column:1;
    grid-row:2;
    transform:translateX(18px);
  }
  .system-v84-map .system-core{
    grid-area:auto;
    grid-column:2;
    grid-row:2;
    align-self:center;
    justify-self:center;
  }
  .system-v84-map .node-decisions{
    grid-area:auto;
    grid-column:3;
    grid-row:2;
    transform:translateX(-18px);
  }
  .system-v84-map .node-control{
    grid-area:auto;
    grid-column:1 / -1;
    grid-row:3;
    width:380px;
    max-width:100%;
    justify-self:center;
    transform:translateY(-18px);
  }
  .system-v84-map.is-assembled .system-node{transform:none}
  .system-v84-map .axis-x{
    left:38%;
    right:38%;
    top:50%;
  }
  .system-v84-map .axis-y{
    top:27.5%;
    bottom:27.5%;
    left:50%;
  }
  .system-v84-map .system-node{
    width:100%;
    height:100%;
  }
}

/* v89 — management system: tighter composition with real connectors */
@media(min-width:1024px){
  .system-v84-map{
    --system-branch:108px;
    width:min(100%,1180px);
    margin-inline:auto;
    grid-template-columns:minmax(360px,1fr) 176px minmax(360px,1fr);
    grid-template-rows:132px 164px 132px;
    gap:22px 20px;
  }

  /* One central spine + four branches that physically reach the cards. */
  .system-v84-map .axis-x{display:none}
  .system-v84-map .axis-y{
    display:block;
    left:50%;
    top:66px;
    bottom:66px;
    width:1px;
    z-index:0;
    background:rgba(243,238,229,.22);
  }

  .system-node{
    position:relative;
    z-index:2;
    overflow:visible;
  }
  .system-node::after{
    content:"";
    position:absolute;
    top:50%;
    width:var(--system-branch);
    height:1px;
    background:rgba(243,238,229,.22);
    pointer-events:none;
  }
  .node-roles::after,.node-control::after{right:calc(var(--system-branch) * -1)}
  .node-processes::after,.node-decisions::after{left:calc(var(--system-branch) * -1)}

  .system-core{z-index:3;width:164px;height:164px}
  .system-core strong{font-size:18px;line-height:1.06}
}

/* v89 — pull the management modules into one system and connect them precisely */
.system-v89-connectors{display:none}

@media(min-width:1024px){
  .system-v84-map{
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;
    grid-template-columns:minmax(0,1fr) 170px minmax(0,1fr);
    grid-template-rows:132px 166px 132px;
    column-gap:24px;
    row-gap:22px;
  }
  .system-v84-axis{display:none!important}
  .system-v89-connectors{
    display:block;
    position:absolute;
    inset:0;
    z-index:0;
    width:100%;
    height:100%;
    overflow:visible;
    pointer-events:none;
  }
  .system-v89-path{
    fill:none;
    stroke:rgba(243,238,229,.24);
    stroke-width:1;
    vector-effect:non-scaling-stroke;
    stroke-linecap:round;
    stroke-dasharray:1;
    stroke-dashoffset:1;
    transition:stroke-dashoffset .9s var(--v84-ease);
  }
  .system-v84-map.is-assembled .system-v89-path{stroke-dashoffset:0}
  .system-v84-map.is-assembled .path-roles{transition-delay:.12s}
  .system-v84-map.is-assembled .path-processes{transition-delay:.22s}
  .system-v84-map.is-assembled .path-control{transition-delay:.32s}
  .system-v84-map.is-assembled .path-decisions{transition-delay:.42s}

  .system-node{z-index:1}
  .system-core{z-index:2}
}

/* v90 — final clean management-system section */
.system-v90{
  background:linear-gradient(135deg,#0d0c0a 0%,#14110e 54%,#0d0c0a 100%);
  color:var(--cream);
}
.system-v90-inner{width:var(--container);margin:0 auto}
.system-v90-board{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(243,238,229,.16);
  border-radius:28px;
  background:rgba(255,255,255,.018);
  opacity:0;
  transform:translateY(24px);
  transition:opacity .65s ease,transform .8s var(--v84-ease),border-color .45s ease;
}
.system-v90-board.is-assembled{opacity:1;transform:none}
.system-v90-title{
  min-height:70px;
  display:grid;
  grid-template-columns:8px auto 1fr;
  align-items:center;
  gap:16px;
  padding:0 30px;
  border-bottom:1px solid rgba(243,238,229,.13);
}
.system-v90-title>span{
  width:8px;height:8px;border-radius:50%;background:var(--red);
  box-shadow:0 0 0 7px rgba(189,59,48,.09);
}
.system-v90-title strong{
  font-size:13px;font-weight:600;letter-spacing:.01em;color:var(--cream);
}
.system-v90-title small{
  justify-self:end;
  font-size:10px;
  line-height:1.45;
  letter-spacing:.035em;
  color:#8f8880;
}
.system-v90-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.system-v90-module{
  min-width:0;
  min-height:270px;
  padding:34px 30px 32px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  border-right:1px solid rgba(243,238,229,.13);
  opacity:0;
  transform:translateY(18px);
  transition:opacity .55s ease,transform .72s var(--v84-ease),background .35s ease;
}
.system-v90-module:last-child{border-right:0}
.system-v90-board.is-assembled .system-v90-module{opacity:1;transform:none}
.system-v90-board.is-assembled .system-v90-module:nth-child(1){transition-delay:.10s}
.system-v90-board.is-assembled .system-v90-module:nth-child(2){transition-delay:.18s}
.system-v90-board.is-assembled .system-v90-module:nth-child(3){transition-delay:.26s}
.system-v90-board.is-assembled .system-v90-module:nth-child(4){transition-delay:.34s}
.system-v90-module>span{
  margin-bottom:auto;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.11em;
  color:#7f7971;
}
.system-v90-module h3{
  margin:0 0 16px;
  font-family:var(--serif);
  font-size:clamp(30px,2.35vw,42px);
  line-height:1.02;
  letter-spacing:-.035em;
  font-weight:400;
  color:var(--cream);
}
.system-v90-module p{
  margin:0;
  max-width:30ch;
  font-size:12px;
  line-height:1.58;
  color:#aaa39b;
}
.system-v90-result{
  min-height:74px;
  margin:0;
  padding:0 30px;
  border-top:1px solid rgba(243,238,229,.13);
  display:grid;
  grid-template-columns:150px 1fr;
  gap:26px;
  align-items:center;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .5s ease .42s,transform .65s var(--v84-ease) .42s;
}
.system-v90-board.is-assembled .system-v90-result{opacity:1;transform:none}
.system-v90-result span{
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.11em;
  color:#7f7971;
}
.system-v90-result strong{
  font-size:14px;
  line-height:1.5;
  font-weight:600;
  color:#e8e1d7;
}
@media(hover:hover){
  .system-v90-module:hover{background:rgba(255,255,255,.028)}
  .system-v90-board:hover{border-color:rgba(243,238,229,.23)}
}

@media(min-width:1024px){
  .system-v90{min-height:100svh;padding-top:clamp(100px,10vh,132px);padding-bottom:clamp(82px,8vh,110px)}
  .system-v90-head{margin-bottom:clamp(52px,5.5vh,72px)}
}

@media(max-width:1023px) and (min-width:761px){
  .system-v90{padding:88px 0}
  .system-v90-title{grid-template-columns:8px auto 1fr;padding:0 24px}
  .system-v90-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .system-v90-module{min-height:220px;padding:28px 24px;border-bottom:1px solid rgba(243,238,229,.13)}
  .system-v90-module:nth-child(2){border-right:0}
  .system-v90-module:nth-child(3),.system-v90-module:nth-child(4){border-bottom:0}
  .system-v90-module h3{font-size:34px}
}

@media(max-width:760px){
  .system-v90{padding:76px 18px 82px}
  .system-v90-inner{width:100%}
  .system-v90-head{margin-bottom:30px}
  .system-v90-board{border-radius:22px}
  .system-v90-title{
    min-height:0;
    grid-template-columns:8px 1fr;
    gap:12px;
    padding:20px;
  }
  .system-v90-title strong{font-size:12px}
  .system-v90-title small{
    grid-column:1/-1;
    justify-self:start;
    padding-left:20px;
    font-size:9px;
    max-width:34ch;
  }
  .system-v90-grid{grid-template-columns:1fr}
  .system-v90-module{
    min-height:0;
    padding:24px 20px 22px;
    border-right:0;
    border-bottom:1px solid rgba(243,238,229,.13);
    justify-content:flex-start;
  }
  .system-v90-module>span{margin:0 0 16px}
  .system-v90-module h3{font-size:30px;margin-bottom:11px}
  .system-v90-module p{font-size:12px;line-height:1.52;max-width:36ch}
  .system-v90-result{
    min-height:0;
    grid-template-columns:1fr;
    gap:8px;
    padding:20px;
  }
  .system-v90-result strong{font-size:13px;line-height:1.5}
}

@media(prefers-reduced-motion:reduce){
  .system-v90-board,.system-v90-module,.system-v90-result{opacity:1!important;transform:none!important;transition:none!important}
}

/* v90 QA — keep the three-step formats inside tablet width */
@media(min-width:761px) and (max-width:1023px){
  .services-v84{overflow:hidden}
  .services-v84-inner{width:calc(100% - 40px)}
  .service-ladder-v84{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .service-v84{min-width:0;padding:22px}
  .service-v84 h3{font-size:clamp(27px,3.7vw,34px)}
}


/* v91 — final footer cleanup: remove duplicated OA mark */
.site-footer .footer-main{display:block!important}
.site-footer .footer-contacts{width:100%!important}


/* v92 — intro viewport + refined footer */

/* Intro must fully cover the mobile viewport with no cream strip below. */
.js .site-intro{
  top:0;
  left:0;
  right:0;
  bottom:0;
  width:100vw;
  height:100dvh;
  min-height:100svh;
  padding-bottom:env(safe-area-inset-bottom);
  background:var(--black);
}
@supports (height: 100svh){
  .js .site-intro{height:100svh}
}
@supports (height: 100dvh){
  .js .site-intro{height:100dvh}
}

/* Compact footer with restrained author credit and aligned grid. */
.site-footer{
  padding:0 18px;
}
.site-footer .footer-main{
  display:block!important;
  padding:18px 0 20px;
}
.site-footer .footer-contacts{
  width:100%!important;
}
.site-footer .footer-contact,
.site-footer .footer-author{
  display:grid;
  gap:6px;
  min-height:0!important;
}
.site-footer .footer-contact small,
.site-footer .footer-author small{
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:.11em;
  color:#77716a!important;
}
.site-footer .footer-contact strong,
.site-footer .footer-author strong{
  font-size:11px;
  font-weight:500;
  color:rgba(243,238,229,.88)!important;
}
.site-footer .footer-author strong{
  position:relative;
  padding-right:14px;
}
.site-footer .footer-author strong::after{
  content:"↗";
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-52%);
  font-size:10px;
  color:#9b948b;
}
.site-footer .footer-copy{
  font-size:11px;
  color:#77716a;
  white-space:nowrap;
}
.site-footer .footer-author:hover strong{color:var(--cream)!important}

@media(min-width:761px){
  .site-footer{padding:0 max(24px,calc((100vw - 1540px)/2))}
  .site-footer .footer-main{padding:22px 0}
  .site-footer .footer-contacts{
    display:grid!important;
    grid-template-columns:auto auto 1fr auto auto;
    align-items:center;
    column-gap:28px;
    row-gap:0;
  }
  .site-footer .footer-contact:first-of-type{grid-column:1;grid-row:1}
  .site-footer .footer-telegram{grid-column:2;grid-row:1}
  .site-footer .footer-author{
    grid-column:4;grid-row:1;
    justify-self:end;
    align-items:start;
    text-align:left;
  }
  .site-footer .footer-copy{
    grid-column:5;grid-row:1;
    justify-self:end;
    align-self:center;
  }
}

@media(max-width:760px){
  .site-footer{padding:0 18px}
  .site-footer .footer-main{padding:16px 0 18px}
  .site-footer .footer-contacts{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "email author"
      "telegram copy";
    column-gap:20px;
    row-gap:14px;
    align-items:start;
  }
  .site-footer .footer-contact:first-of-type{grid-area:email}
  .site-footer .footer-telegram{grid-area:telegram}
  .site-footer .footer-author{
    grid-area:author;
    justify-self:end;
    text-align:left;
    max-width:142px;
  }
  .site-footer .footer-copy{
    grid-area:copy;
    justify-self:end;
    align-self:end;
  }
}

@media(max-width:430px){
  .site-footer .footer-contact strong,
  .site-footer .footer-author strong{font-size:10px}
  .site-footer .footer-author{max-width:132px}
}


/* v93 — footer rebuilt on a strict grid, isolated from legacy footer rules */
.footer-v93{
  background:var(--black);
  color:var(--cream);
  padding:0 max(24px,calc((100vw - 1540px)/2));
}
.footer-v93__inner{
  width:100%;
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  padding:16px 0;
}
.footer-v93__contacts,
.footer-v93__meta{
  display:flex;
  align-items:center;
}
.footer-v93__contacts{gap:30px}
.footer-v93__meta{gap:18px}
.footer-v93__link{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  white-space:nowrap;
}
.footer-v93__link span{
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:.11em;
  color:#77716a;
}
.footer-v93__link strong{
  font-size:11px;
  line-height:1;
  font-weight:500;
  color:rgba(243,238,229,.9);
}
.footer-v93__author{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:10px;
  line-height:1.2;
  color:#8f8880;
  white-space:nowrap;
  transition:color .25s ease;
}
.footer-v93__author svg{
  width:11px;
  height:11px;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.footer-v93__author:hover{color:#c8c0b7}
.footer-v93__year{
  font-size:10px;
  color:#77716a;
  white-space:nowrap;
}

@media(max-width:760px){
  .footer-v93{padding:0 18px}
  .footer-v93__inner{
    min-height:0;
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    padding:14px 0 16px;
  }
  .footer-v93__contacts{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
  }
  .footer-v93__link{
    min-width:0;
    min-height:38px;
    gap:0;
  }
  .footer-v93__link span{display:none}
  .footer-v93__link strong{
    font-size:12px;
    line-height:1.25;
  }
  .footer-v93__email strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .footer-v93__meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding-top:10px;
    border-top:1px solid rgba(243,238,229,.11);
  }
  .footer-v93__author{
    min-height:36px;
    font-size:9.5px;
    color:#7f7971;
    white-space:normal;
  }
  .footer-v93__author span{max-width:24ch}
  .footer-v93__year{font-size:9.5px}
}

@media(max-width:390px){
  .footer-v93{padding:0 16px}
  .footer-v93__contacts{gap:10px}
  .footer-v93__link strong{font-size:11px}
  .footer-v93__author{font-size:9px}
}
