/* NODA — spacing corrections for the two revised Russian service pages.
   Load after the existing styles. Hero backgrounds and demo logic are intact. */

/* The base export adds 104px on html; use the measured anchor margin once. */
html.noda-service-root { scroll-padding-top: 0; }

.noda-service-page {
  --service-header-height: 130px;
  --service-section-space: 64px;
  --service-column-gap: 48px;
}

/* One content grid from the header through the footer. */
.noda-service-page .hero-inner {
  width: 100%;
  max-width: var(--maxw);
}
.noda-service-page .hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--service-header-height) + 48px);
  padding-bottom: 64px;
}
.noda-service-page .hero .h1 {
  max-width: 1100px;
  font-size: clamp(32px, 5.4vw, 72px);
  hyphens: none;
  overflow-wrap: normal;
}
.noda-service-page .hero .lead {
  max-width: 620px;
  font-size: clamp(16px, 1.5vw, 19px);
}
/* The mobile integration layout already shows the regular note. */
.noda-service-page .nx-fr-note--m { display: none; }

/* Anchors include both rows of the fixed header, including legacy links. */
.noda-service-page :is(#approach, #solutions, #process, #practice, #control, #pilot, #blog-home, #contact, #zayavka, #calc) {
  scroll-margin-top: calc(var(--service-header-height) + 16px);
}
.noda-service-page :is(.wd-anchor, .ai-anchor) { top: 0; }

/* A shared vertical rhythm. Selector specificity restores margins that
   were unintentionally reset by the section-level h2/h3/p rules. */
.noda-service-page :is(.wd-sec, .noda-ai-sections, .nj-sec) {
  padding-block: var(--service-section-space);
}
.noda-service-page :is(.wd-head, .ai-head, .nj-head) {
  margin-bottom: 32px;
}
.noda-service-page :is(.wd-eyebrow, .ai-eyebrow, .nj-kicker) {
  margin-bottom: 16px;
  line-height: 1.4;
}
.noda-service-page :is(.wd-h2, .ai-h2, .nj-h2) {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.16;
}
.noda-service-page :is(.wd-h2, .ai-h2) { margin-bottom: 16px; }
.noda-service-page .nj-desc { margin-top: 16px; }
.noda-service-page :is(.wd-sub, .ai-sub, .nj-desc) { line-height: 1.6; }
.noda-service-page .ai-ct-left .ai-h2 {
  font-size: clamp(32px, 3.6vw, 48px);
}

/* Equal working-area insets; avoid shrinking text to fit a narrow column. */
.noda-service-page :is(.ndp-topbar, .adp-topbar) {
  min-height: 56px;
  padding: 10px 24px;
}
.noda-service-page :is(.ndp-main, .adp-main) { padding: 24px; }
.noda-service-page .adp-h { margin-bottom: 18px; }
.noda-service-page :is(.ndp-h, .adp-h) { font-size: 23px; }
.noda-service-page .ai-b1-note { margin-top: 16px; }
.noda-service-page .wd-approach-foot { margin-top: 16px; }

/* Match column spacing across process, control, pilot and contact blocks. */
.noda-service-page .wd-proc {
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: var(--service-column-gap);
}
.noda-service-page :is(.ai-ctrl, .ai-pilot, .wd-ct, .ai-ct) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--service-column-gap);
}
.noda-service-page :is(.wd-proc, .ai-ctrl, .ai-pilot, .wd-ct, .ai-ct) > * {
  min-width: 0;
}
.noda-service-page :is(.wd-terms, .ai-terms) { margin-top: 40px; }
.noda-service-page :is(.wd-faq, .ai-faq) {
  margin-top: 48px;
  padding-top: 40px;
  gap: var(--service-column-gap);
}

/* The nested article grid inherited section padding and a second border.
   Keep padding on the section only; give the card text its own spacing. */
.noda-service-page .nj-grid {
  padding: 0;
  border-top: 0;
  overflow: visible;
  gap: 20px;
}
.noda-service-page .nj-body { padding: 24px; }
.noda-service-page .nj-title { font-size: 23px; }
.noda-service-page .nj-anons {
  margin: 12px 0 20px;
  font-size: 15px;
  line-height: 1.6;
}
.noda-service-page .nj-foot { gap: 10px 16px; }
.noda-service-page .nj-more { min-height: 48px; padding: 12px 22px; }

@media (max-width: 1100px) {
  .noda-service-page {
    --service-section-space: 56px;
    --service-column-gap: 32px;
  }
  .noda-service-page .wd-proc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  }
  .noda-service-page .nj-body { padding: 22px; }
  .noda-service-page .nj-title { font-size: 22px; }
}

@media (max-width: 950px) {
  .noda-service-page :is(.wd-proc, .ai-ctrl, .ai-pilot, .wd-ct, .ai-ct, .wd-faq, .ai-faq) {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .noda-service-page :is(.wd-docwrap, .ai-docwrap) { max-width: 540px; }
  .noda-service-page .nj-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 880px) {
  .noda-service-page { --service-header-height: 82px; }
  .noda-service-page .hero {
    padding-top: calc(var(--service-header-height) + 40px);
    padding-bottom: 56px;
  }
}

@media (max-width: 700px) {
  .noda-service-page { --service-section-space: 44px; }
  .noda-service-page :is(.wd-head, .ai-head, .nj-head) { margin-bottom: 24px; }
  .noda-service-page :is(.wd-eyebrow, .ai-eyebrow, .nj-kicker) { margin-bottom: 12px; }
  .noda-service-page :is(.wd-h2, .ai-h2) { margin-bottom: 12px; }
  .noda-service-page .nj-desc { margin-top: 12px; }
  .noda-service-page :is(.wd-sub, .ai-sub) { font-size: 16px; }
  .noda-service-page :is(.wd-terms, .ai-terms) { margin-top: 32px; }
  .noda-service-page :is(.wd-faq, .ai-faq) {
    margin-top: 36px;
    padding-top: 32px;
    gap: 20px;
  }
  .noda-service-page :is(.wd-form, .ai-form) { padding: 22px; }
  .noda-service-page :is(.wd-docwrap, .ai-docwrap) { max-width: none; }
  .noda-service-page .nj-grid { gap: 16px; }
}

@media (max-width: 600px) {
  .noda-service-page :is(.wrap, .nav-in, .nav-sub-in) { padding-inline: 20px; }
  .noda-service-page .hero {
    padding-top: calc(var(--service-header-height) + 32px);
    padding-bottom: 44px;
  }
  .noda-service-page .hero .h1 { font-size: clamp(30px, 8vw, 42px); }
  .noda-service-page .hero .trust { gap: 10px 18px; }
  .noda-service-page :is(.wd-h2, .ai-h2, .nj-h2, .ai-ct-left .ai-h2) {
    font-size: clamp(28px, 7.5vw, 36px);
  }
  .noda-service-page .nj-body { padding: 20px 18px; }
  .noda-service-page .nj-title { font-size: 21px; }
  .noda-service-page .nj-cover { flex-basis: 24%; }
  .noda-service-page .nj-more { margin-top: 20px; }
  .noda-service-page :is(.wd-link-arr, .ai-link-arr) { white-space: normal; }
  .noda-service-page .nx-fr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .noda-service-page .nx-fr-card { min-width: 0; }
  .noda-service-page .nx-fab { width: 56px; height: 56px; }
}

@media (max-width: 380px) {
  .noda-service-page :is(.wrap, .nav-in, .nav-sub-in) { padding-inline: 16px; }
  .noda-service-page :is(.wd-form, .ai-form) { padding: 18px 16px; }
  .noda-service-page .nj-title { font-size: 20px; }
  .noda-service-page .nj-cover { flex-basis: 20%; }
  .noda-service-page .nj-body { padding: 18px 16px; }
  .noda-service-page .nx-fr-card { padding: 10px; gap: 8px; }
  .noda-service-page .nx-fr-logo { width: 28px; height: 28px; flex-basis: 28px; }
  .noda-service-page .nx-fr-logo img { width: 20px; height: 20px; }
  .noda-service-page .nx-fr-txt b { font-size: 12px; }
  .noda-service-page .nav-in { column-gap: 8px; }
  .noda-service-page .nav .brand { font-size: 16px; gap: 8px; }
  .noda-service-page .nav .brand .mark { width: 26px; height: 26px; }
  .noda-service-page .nav-right { gap: 8px; margin-right: 0; }
}

@container ndp (max-width: 600px) {
  .noda-service-page .ndp-topbar { padding-inline: 16px; }
  .noda-service-page .ndp-main { padding: 18px 16px; }
  .noda-service-page .ndp-h { font-size: 21px; }
}
@container adp (max-width: 600px) {
  .noda-service-page .adp-topbar { padding-inline: 16px; }
  .noda-service-page .adp-main { padding: 18px 16px; }
  .noda-service-page .adp-h { font-size: 21px; margin-bottom: 16px; }
  .noda-service-page :is(.adp-q, .adp-btn-acc, .adp-btn-sec, .adp-back, .adp-day) { font-size: 13px; }
}
@container adp (max-width: 520px) {
  .noda-service-page .adp-nav-btn { font-size: 12px; }
}
@container ndp (max-width: 360px) {
  .noda-service-page .ndp-topbar { padding-inline: 12px; }
  .noda-service-page .ndp-main { padding-inline: 12px; }
}
@container adp (max-width: 360px) {
  .noda-service-page .adp-topbar { padding-inline: 12px; }
  .noda-service-page .adp-main { padding-inline: 12px; }
}

/* AI control / pilot: one balanced composition per section, with a
   consistent supporting column instead of two oversized floating cards. */
.noda-service-ai .ai-feature {
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: var(--service-column-gap);
  align-items: center;
}
.noda-service-ai .ai-feature-copy { min-width: 0; }
.noda-service-ai .ai-feature-copy .ai-head { margin-bottom: 24px; }
.noda-service-ai .ai-feature-copy .ai-h2 {
  max-width: none;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.18;
}
.noda-service-ai .ai-feature-copy .ai-sub { max-width: 50ch; }
.noda-service-ai .ai-feature .ai-rules { margin-top: 0; }
.noda-service-ai .ai-feature .ai-rule { padding: 14px 0; }
.noda-service-ai .ai-feature .ai-rule:first-child { padding-top: 0; }
.noda-service-ai .ai-feature .ai-rule:last-child { padding-bottom: 0; }
.noda-service-ai .ai-feature .ai-step { padding: 14px 16px; }

/* Both supporting panels use the same outer dimensions and insets. */
.noda-service-ai .ai-feature :is(.ai-scheme, .ai-docwrap) {
  width: 100%;
  max-width: 460px;
  justify-self: end;
}
.noda-service-ai .ai-feature .ai-docwrap { padding: 0; }
.noda-service-ai .ai-feature :is(.ai-scheme, .ai-doc) {
  padding: 24px;
  border-radius: 18px;
  gap: 0;
}

/* A compact flow: remove excess space between its stages, while keeping
   the arrows and both possible outcomes legible. */
.noda-service-ai .ai-scheme-top { margin-bottom: 10px; line-height: 1.4; }
.noda-service-ai .ai-scheme h3 {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.35;
}
.noda-service-ai .ai-scheme .ai-node {
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--ai-line);
  border-radius: 0;
  background: transparent;
}
.noda-service-ai .ai-scheme .ai-conn { height: 12px; align-items: center; }
.noda-service-ai .ai-scheme .ai-conn svg { width: 12px; height: 12px; }
.noda-service-ai .ai-scheme .ai-branches { margin-top: 12px; }
.noda-service-ai .ai-scheme .ai-branch { padding: 12px; }
.noda-service-ai .ai-scheme .ai-scheme-note { margin-top: 14px; line-height: 1.5; }
.noda-service-ai .ai-ctrl-foot { margin-top: 24px; }

/* A straight document panel with an aligned value column. Reserved line
   space keeps the three stage results steady as the user switches tabs. */
.noda-service-ai .ai-feature .ai-doc {
  transform: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
.noda-service-ai .ai-doc-top { margin-bottom: 16px; line-height: 1.4; }
.noda-service-ai .ai-doc-kicker { margin: 0 0 8px; line-height: 1.4; }
.noda-service-ai .ai-doc h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }
.noda-service-ai .ai-doc > p { min-height: 42px; font-size: 14px; line-height: 1.5; }
.noda-service-ai .ai-doc-rows { margin: 16px 0 0; }
.noda-service-ai .ai-doc-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 10px 0;
  min-height: 44px;
  line-height: 1.5;
}
.noda-service-ai .ai-doc-row dd { text-align: left; overflow-wrap: anywhere; }
.noda-service-ai .ai-doc-foot { margin-top: 16px; min-height: 38px; }

@media (max-width: 1100px) and (min-width: 951px) {
  .noda-service-ai .ai-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  }
  .noda-service-ai .ai-feature-copy .ai-h2 { font-size: 36px; }
  .noda-service-ai .ai-doc-row { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 950px) {
  .noda-service-ai .ai-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .noda-service-ai .ai-feature :is(.ai-scheme, .ai-docwrap) {
    max-width: none;
    justify-self: stretch;
  }
  .noda-service-ai .ai-doc > p, .noda-service-ai .ai-doc-foot { min-height: 0; }
}

@media (max-width: 600px) {
  .noda-service-ai .ai-feature-copy .ai-h2 { font-size: clamp(28px, 7.5vw, 36px); }
  .noda-service-ai .ai-feature :is(.ai-scheme, .ai-doc) { padding: 20px; border-radius: 16px; }
  .noda-service-ai .ai-feature-copy .ai-head { margin-bottom: 20px; }
  .noda-service-ai .ai-doc-row { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 380px) {
  .noda-service-ai .ai-feature :is(.ai-scheme, .ai-doc) { padding: 18px 16px; }
  .noda-service-ai .ai-doc-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
