/* Shared NODA typography. Both variable families are served with the site. */
@font-face {
  font-family: Unbounded;
  src: url("/fonts/unbounded-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
}
@font-face {
  font-family: Unbounded;
  src: url("/fonts/unbounded-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02DC, U+0300-0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
:root {
  --noda-font-display: Manrope, Inter, system-ui, sans-serif;
  --noda-font-body: Manrope, Inter, system-ui, sans-serif;
  --noda-title-weight: 800;
  --noda-section-weight: 800;
  --noda-hero-size: clamp(48px, 4.1vw, 64px);
  --noda-section-size: clamp(32px, 2.9vw, 42px);
  --noda-card-weight: 780;
}
body,
body :is(main, section, article, nav, form, footer, dialog) {
  font-family: var(--noda-font-body);
}
/* Older page bundles set a complete font shorthand on many of these elements. */
body :is(p, li, label, input, textarea, select, button, summary),
body :is(nav, footer) a {
  font-family: var(--noda-font-body) !important;
}
body :is(h1, h2) {
  font-family: var(--noda-font-display) !important;
  letter-spacing: -.035em;
  overflow-wrap: normal;
}
body h1 {
  font-weight: var(--noda-title-weight) !important;
}
body h2 {
  font-weight: var(--noda-section-weight) !important;
}
body :is(h3, h4, h5, h6) {
  font-family: var(--noda-font-body) !important;
  font-weight: var(--noda-card-weight) !important;
  overflow-wrap: normal;
}
body h1 {
  font-size: var(--noda-hero-size) !important;
  line-height: 1.09;
}
body main h2:not(:where(article *, form *, dialog *, [role="dialog"] *, .art-body *)),
.nj-head h2 {
  font-size: var(--noda-section-size) !important;
  line-height: 1.14;
}
.home-concept main h3 {
  font-size: clamp(20px, 1.9vw, 27px) !important;
}
.art-body h2 {
  font-size: clamp(24px, 1.8vw, 29px) !important;
}
@media (max-width: 767px) {
  :root {
    --noda-hero-size: clamp(32px, 8vw, 39px);
    --noda-section-size: clamp(25px, 6.4vw, 30px);
  }
}

/* Keep case presentational so names, URLs and editable form values retain their spelling. */
body :is(h1, h2, h3, h4, h5, h6, button, summary, [role="heading"], [role="button"], [role="tab"]),
input:is([type="submit"], [type="reset"], [type="button"]),
.n14-portfolio :is(.n15-away-copy, .n14-mono-copy) h3,
a:is([class*="btn"], [class*="button"], .cta, .nex-primary, .n8-request, .n8-home, .n8-service,
  .msgr, .cell-go, .nj-more, .nm-text-link, .nex-proof-link, .crm-text-link, .nm-scroll,
  .wd-card-cta, .n6-card-more, .wd-link-arr, .ai-link-arr, .n19-maintenance__home,
  .n4s-analytics, .n7f-link, .n423-social__link, .noda-project__link, .legal-back, .back),
:is(.paths, .top-links, .dock, .n4s-formats, .usl-formats, .ask-msg, .hero-offer, .also) > a,
.work-card > div > a, .ucard .go, .n4s-action-label, .n4-choice-action, .nm-article-more, .nj-read,
label:is(.opt, .chip), .tz-pick, .ndp-site-btn {
  text-transform: uppercase !important;
}

/* Some project views and service cards have their own title markup. */
.nw-qualities strong, .wd-step-t :is(b, strong), .ai-step > :is(b, strong),
.hero-offer strong, :is(.wd-tg, .ai-tg) > :is(b, strong),
.ncc-top > b, .ndp-add-head > b, .ndp-listttl, .ndp-site-ttl,
.nex-mini-hero > :is(b, strong), .nx-side-title, .aw-board-head > b, .n8-menu-kicker,
.n6-output strong, .n6-card-label, .nx-fr-txt :is(b, strong), .n19-maintenance__destination strong,
.n4p-step > strong, .shot-meta > b, .ndp-card-head b, .chat-id > b, .q-step legend {
  text-transform: uppercase;
}

.crm-copy h1 span {
  font-size: min(1em, 10.7cqw);
}

.n19-maintenance__copy:lang(ru) {
  container-type: inline-size;
}
.n19-maintenance__copy:lang(ru) h1 span {
  font-size: min(1em, 7.3cqw);
}

/* Hero actions can wrap as a group while each target fits its label. */
@media (max-width: 767px) {
  .hero :is(.nm-actions, .cta-row), .crm-intro .crm-actions,
  [data-noda-hero-social] .n423-social__links {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 8px 10px;
  }
  [data-noda-hero-social] .n423-social__links {
    width: fit-content;
    gap: 7px;
  }
  .hero .nm-actions > .nm-button,
  .hero .cta-row > .btn,
  [data-noda-hero-social] .n423-social__link,
  .crm-intro .crm-actions > a,
  .hero .hero-form :is(.q-next, .tz-btn, .submit) {
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    flex: 0 1 auto;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .noda-service-web .hero .nw-socials a {
    min-width: 44px;
    min-height: 44px;
  }
  .hero .nm-actions > .nm-button, .hero .cta-row > .btn {
    padding-inline: 14px;
  }
}

@media (max-width: 480px) {
  .noda-service-tg .hero h1 .tg-word,
  .hero-copy h1 .nw {
    white-space: normal;
  }
}

@media (max-width: 414px) {
  .nex-choices {
    grid-template-columns: minmax(0, 1fr);
  }
  .nex-choices .nex-choice {
    min-height: 48px;
  }
  .contact-modes {
    grid-template-columns: auto auto 1fr;
  }
  .crm-tabs {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content;
  }
}

/* Keep the emphasis on the question. Article FAQs use the same weight as
   the accordion questions, without changing nearby editorial subheadings. */
body :is(.wd-q, .ai-q, .faq details) > summary,
body .art-questions > h3 { font-weight: 470 !important; }
body :is(.wd-a, .ai-a, .faq details, .art-questions) p { font-weight: 380 !important; }
body :is(.nw-faq-section, .wd-faq-left, .ai-faq-left, #voprosy) :is(h2, h3),
body .art-body h2:has(+ .art-questions) {
  font-weight: 650 !important;
}

@media (max-width: 760px) {
  /* Headings and ordinary prose wrap at word boundaries. Addresses and URLs
     keep their own wrapping rules so long technical strings remain readable. */
  html body :is(h1, h2, h3, h4, h5, h6, summary, p, li, dt, dd, label, legend) {
    -webkit-hyphens: none;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
  }
  :is(.nw-address, .wd-foot-mail, .ai-foot-mail),
  :is(main, article, footer) a:where([class*="email-address"], [href^="http"][class*="url"]) {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  .legal-wrap { container-type: inline-size; }
  body .legal-wrap h1 { --noda-hero-size: min(2.45rem, 7.4cqi); }
}

@media (max-width: 420px) {
  .art-hero { container-type: inline-size; }
  body .art-hero h1 { --noda-hero-size: min(2rem, 9cqi); }
  body .art-body h2 { font-size: clamp(19px, 5.9vw, 24px) !important; }
  body .n6-card-copy h3 { font-size: clamp(22px, 6.65vw, 27px) !important; }
  body .nj-grid .nj-title { font-size: clamp(16px, 4.6vw, 19px); }
  .nj-grid .nj-body { padding-inline: clamp(10px, 3vw, 16px); }
}
