/* APIS Lab v6.27 — spacing QA, editorial split repair, navigation restore and site-check visibility */
:root{--v627-acid:#c9ff38}

/* Global layout hardening: cards and grid children may shrink instead of pushing text together. */
.v624-page :where(.v6-shell,.intl-hero-grid,.intl-route,.route-step,.route-step>div,.v624-section-head,.v624-section-head>*,.intl-two,.intl-two>*,.analytics-grid,.analytics-grid>*,.decision-wheel,.decision-wheel>*,.method-timeline,.method-timeline>*,.scenario-premium-grid,.scenario-premium-grid>*,.context-next,.context-next>*,.tool-hero-grid,.tool-hero-grid>*,.tool-prof-grid,.tool-prof-grid>*,.article-v624-layout,.article-v624-layout>*,.lab-tools-bridge,.lab-tools-bridge>*){min-width:0}
.v624-page :where(h1,h2,h3,h4,p,li,small){text-wrap:pretty}
.v624-page :where(p,li,small){overflow-wrap:break-word}
.v624-page code,.v624-page pre,.v624-page td a{overflow-wrap:anywhere}
.v6-btn{gap:8px;line-height:1.15;text-align:center}

/* International route: heading and explanation are two deliberate columns, never concatenated. */
.intl-route{padding:30px 32px}
.route-head{align-items:baseline;margin-bottom:20px}
.route-head>b{display:block;max-width:250px;text-align:right;line-height:1.35;color:#d2cec4}
.route-step{grid-template-columns:42px minmax(0,1fr);gap:18px;padding:16px 0}
.route-step>div{display:grid;grid-template-columns:minmax(150px,.72fr) minmax(0,1.28fr);gap:22px;align-items:baseline}
.route-step b{display:block;font-size:18px!important;line-height:1.2;letter-spacing:-.02em}
.route-step small{display:block;font-size:12px;line-height:1.45;color:#aaa69d}

/* Decision block belongs to the document flow instead of floating over the next section. */
.decision-wheel{align-items:stretch;margin-top:28px}
.decision-wheel article{min-width:0}
.decision-wheel article h3{font-size:21px;line-height:1.12;margin:28px 0 10px;letter-spacing:-.025em}
.decision-wheel article p{margin:0}
.wheel-core{position:static!important;inset:auto!important;transform:none!important;grid-column:1/-1;order:20;justify-self:center;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:10px auto 0;padding:14px 22px;line-height:1.2;text-align:center}
.wheel-core span,.wheel-core b{display:block;margin:0}

/* More reliable rhythm in dense analytical blocks. */
.analysis-panel,.econ-card,.decision-ledger-v625,.tool-professional-v625 article,.lab-editorial-card,.radar-pro-card,.context-next>a{min-width:0}
.panel-head>a{flex:0 0 auto;max-width:46%;text-align:right;line-height:1.35}
.article-deep-v625 :where(h2,h3){text-wrap:balance}
.article-deep-v625 p+ul,.article-deep-v625 p+ol{margin-top:16px}
.article-deep-v625 li+li{margin-top:8px}

/* Direct site-check launcher on homepage. */
.home-audit-launch{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:26px 0 12px;max-width:690px;padding:8px;border-radius:18px;background:#171a22;border:1px solid rgba(255,255,255,.12)}
.home-audit-launch input{min-width:0;height:54px;border:0;border-radius:12px;background:#fff;color:#111;padding:0 15px;font:inherit;outline:none}
.home-audit-launch button{min-height:54px;padding:0 20px;border:0;border-radius:12px;background:var(--acid,#c9ff38);color:#111;font-weight:800;cursor:pointer;white-space:nowrap}
.home-audit-launch-note{display:block;margin-top:8px;font-size:11px;line-height:1.45;color:#999da5}
.intelligence-copy>.v6-btn.audit-fallback-link{margin-top:10px}

/* Desktop quick actions restored globally. */
.desktop-action-rail{right:24px;bottom:24px;gap:9px}
.desktop-action{transition:transform .18s ease,box-shadow .18s ease}
.desktop-action:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(0,0,0,.22)}
.desktop-action[aria-label="Наверх"],.desktop-action[aria-label="Back to top"]{background:#fff;color:#111;border:1px solid rgba(17,19,24,.15)}

/* Breadcrumbs and return links remain readable on narrow screens. */
.v624-crumbs>div{min-width:0}.v624-crumbs span[aria-current="page"]{line-height:1.35}

@media(max-width:1180px){
  .route-step>div{grid-template-columns:minmax(140px,.68fr) minmax(0,1.32fr)}
}
@media(max-width:1080px){.desktop-action-rail{display:none!important}}
@media(max-width:760px){
  .intl-route{padding:22px}
  .route-head{display:grid;gap:8px}.route-head>b{text-align:left;max-width:none}
  .route-step{grid-template-columns:34px minmax(0,1fr);gap:12px;padding:15px 0}
  .route-step>div{grid-template-columns:1fr;gap:5px}.route-step b{font-size:17px!important}.route-step small{font-size:12px}
  .wheel-core{width:100%;border-radius:18px;padding:14px 16px}
  .home-audit-launch{grid-template-columns:1fr;padding:7px}.home-audit-launch button{width:100%}
  .panel-head{flex-direction:column}.panel-head>a{max-width:none;text-align:left}
}
@media(max-width:390px){
  .v624-crumbs{gap:12px}.crumb-back{white-space:normal;text-align:right}
}

/* v6.27 — editorial split repair: headings stay on the leading edge and copy gets its own readable column. */
.intl-two{
  grid-template-columns:minmax(0,1.12fr) minmax(390px,.88fr);
  gap:clamp(42px,5vw,72px);
  align-items:start;
}
.intl-two h2{
  max-width:13.5ch;
  font-size:clamp(42px,4.2vw,64px);
  line-height:1.01;
  letter-spacing:-.045em;
  text-wrap:balance;
  overflow-wrap:normal;
  word-break:normal;
}
.intl-two .prose-lg{padding-top:2px}
.intl-two .prose-lg p{max-width:760px}

/* These sections contain label + heading + copy as three direct grid children.
   Explicit placement prevents the heading from being auto-positioned in the narrow right column. */
.decision6-intro,
.home-intl-bridge-head{
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
  gap:clamp(38px,4.5vw,64px);
  align-items:end;
}
.decision6-intro>.v6-label,
.home-intl-bridge-head>.v6-label{
  grid-column:1;
  grid-row:1;
  align-self:end;
}
.decision6-intro>.v6-label+h2,
.home-intl-bridge-head>.v6-label+h2{
  grid-column:1;
  grid-row:2;
  min-width:0;
  max-width:14ch;
  text-wrap:balance;
  overflow-wrap:normal;
  word-break:normal;
}
.decision6-intro>.v6-label+h2+p,
.home-intl-bridge-head>.v6-label+h2+p{
  grid-column:2;
  grid-row:1 / span 2;
  align-self:end;
  min-width:0;
  margin-bottom:4px;
}
.decision6-intro>.v6-label+h2{font-size:clamp(48px,5.2vw,82px);line-height:.92}
.home-intl-bridge-head>.v6-label+h2{font-size:clamp(40px,4.35vw,68px);line-height:.97}

/* Same repair for analytical section heads built without the usual wrapper. */
.v624-section-head>.v6-label:first-child:nth-last-child(3){
  grid-column:1;
  grid-row:1;
  align-self:end;
}
.v624-section-head>.v6-label:first-child:nth-last-child(3)+h2{
  grid-column:1;
  grid-row:2;
  min-width:0;
  max-width:14ch;
  text-wrap:balance;
  overflow-wrap:normal;
  word-break:normal;
}
.v624-section-head>.v6-label:first-child:nth-last-child(3)+h2+p{
  grid-column:2;
  grid-row:1 / span 2;
  align-self:end;
  min-width:0;
  margin:0;
}
.v624-section-head>.v6-label:first-child:nth-last-child(2){
  grid-column:1 / -1;
  grid-row:auto;
}
.v624-section-head>.v6-label:first-child:nth-last-child(2)+h2{
  grid-column:1 / -1;
  grid-row:auto;
  max-width:1000px;
  text-wrap:balance;
  overflow-wrap:normal;
  word-break:normal;
}

/* Keep the editorial rhythm compact enough that a title never becomes a screen-sized wall of text. */
@media(min-width:901px) and (max-width:1320px){
  .intl-definition,.home-intl-bridge-v625{padding-top:76px;padding-bottom:82px}
  .intl-two h2{font-size:clamp(42px,4.05vw,58px)}
  .home-intl-bridge-head>.v6-label+h2{font-size:clamp(40px,4.05vw,58px)}
  .v624-section-head{gap:44px}
}

@media(max-width:1100px){
  .intl-two{grid-template-columns:1fr;gap:30px}
  .intl-two h2{max-width:16ch}
}
@media(max-width:1000px){
  .home-intl-bridge-head{grid-template-columns:1fr;gap:16px}
  .home-intl-bridge-head>.v6-label,
  .home-intl-bridge-head>.v6-label+h2,
  .home-intl-bridge-head>.v6-label+h2+p{grid-column:1;grid-row:auto}
  .home-intl-bridge-head>.v6-label+h2{max-width:16ch}
  .home-intl-bridge-head>.v6-label+h2+p{margin-top:6px;max-width:720px}
}
@media(max-width:980px){
  .decision6-intro{grid-template-columns:1fr;gap:16px}
  .decision6-intro>.v6-label,
  .decision6-intro>.v6-label+h2,
  .decision6-intro>.v6-label+h2+p{grid-column:1;grid-row:auto}
  .decision6-intro>.v6-label+h2{max-width:16ch}
  .decision6-intro>.v6-label+h2+p{max-width:720px;margin-top:4px}
}
@media(max-width:900px){
  .v624-section-head>.v6-label:first-child:nth-last-child(3),
  .v624-section-head>.v6-label:first-child:nth-last-child(3)+h2,
  .v624-section-head>.v6-label:first-child:nth-last-child(3)+h2+p,
  .v624-section-head>.v6-label:first-child:nth-last-child(2),
  .v624-section-head>.v6-label:first-child:nth-last-child(2)+h2{
    grid-column:1;
    grid-row:auto;
  }
  .v624-section-head>.v6-label:first-child:nth-last-child(3)+h2,
  .v624-section-head>.v6-label:first-child:nth-last-child(2)+h2{max-width:16ch}
  .v624-section-head>.v6-label:first-child:nth-last-child(3)+h2+p{max-width:720px}
}
@media(max-width:640px){
  .intl-two h2,.home-intl-bridge-head>.v6-label+h2,.decision6-intro>.v6-label+h2{max-width:none;text-wrap:pretty}
}
