/* OTDELKA78 V1.15.9 — screenshot review polish
   Copy clarity, Russian UI labels, mobile navigation closure, readable secondary copy. */

/* Dark-page secondary copy: slightly stronger contrast without changing hierarchy. */
.service-newbuild-v110 .nb-hero-lead,
.service-newbuild-v110 .nb-state .section-lead,
.service-newbuild-v110 .nb-diagnostic .section-lead,
.service-newbuild-v110 .nb-cost .section-lead,
.service-newbuild-v110 .nb-faq .section-lead,
.service-capital-v190 .capital-hero-lead,
.service-capital-v190 .capital-process-head .section-lead,
.service-capital-v190 .capital-diagnosis-intro p,
.service-house-v111 .house-lead,
.service-house-v111 .house-condition > .shell > .section-lead,
.service-house-v111 .house-connections-intro .section-lead,
.service-page .service-formats .section-lead,
.service-page .service-cases .section-lead {
  color: #b9b2a7;
}

.service-newbuild-v110 .nb-hero-note,
.service-capital-v190 .capital-hero-note,
.service-house-v111 .house-boundary {
  color: #9e988f;
}

/* Prevent accidental ugly word fragmentation in the main mobile hero titles. */
.nb-title-main,
.capital-title-main,
.house-title-main {
  display: block;
}

@media (max-width: 760px) {
  .service-newbuild-v110 .nb-hero h1,
  .service-capital-v190 .capital-hero-copy h1,
  .service-house-v111 .house-hero h1 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
  }

  .service-newbuild-v110 .nb-title-main { font-size: .92em; }
  .service-capital-v190 .capital-title-main { font-size: .95em; }
  .service-house-v111 .house-title-main { font-size: .96em; }

  /* Screenshot review: mobile section indices must not end with a clipped label. */
  .service-newbuild-v110 .nb-index-row,
  .service-capital-v190 .capital-index-row,
  .service-house-v111 .house-index-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    width: 100%;
  }

  .service-newbuild-v110 .nb-index-row a,
  .service-capital-v190 .capital-index-row a,
  .service-house-v111 .house-index-row a {
    min-width: 0;
    min-height: 56px;
    padding: 10px 10px;
    justify-content: flex-start;
    gap: 8px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }

  .service-newbuild-v110 .nb-index-row a:nth-child(3n),
  .service-capital-v190 .capital-index-row a:nth-child(3n),
  .service-house-v111 .house-index-row a:nth-child(3n) {
    border-right: 0;
  }

  .service-newbuild-v110 .nb-index-row a span,
  .service-house-v111 .house-index-row a span {
    flex: 0 0 auto;
    font-size: 9px;
  }

  .service-capital-v190 .capital-index-row a::before {
    flex: 0 0 auto;
    font-size: 9px;
  }

  /* Last incomplete grid row: retain a visual bottom border for the whole band. */
  .service-newbuild-v110 .nb-index-row a:nth-last-child(-n+2),
  .service-capital-v190 .capital-index-row a:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .service-house-v111 .house-index-row a:nth-last-child(-n+3) {
    border-bottom: 0;
  }
}

@media (max-width: 390px) {
  .service-newbuild-v110 .nb-hero h1 { font-size: clamp(43px, 13.6vw, 54px); }
  .service-capital-v190 .capital-hero-copy h1 { font-size: clamp(44px, 13.7vw, 55px); }
  .service-house-v111 .house-hero h1 { font-size: clamp(43px, 13.6vw, 55px); }

  .service-newbuild-v110 .nb-index-row a,
  .service-capital-v190 .capital-index-row a,
  .service-house-v111 .house-index-row a {
    font-size: 10.5px;
    padding-inline: 8px;
  }
}
