/* Blueprint — legacy inner pages: layout + readable text */
body.fd.fd--blueprint.fd-inner,
body.fd.fd--blueprint.homepage {
  padding-bottom: 0;
}

body.fd.fd--blueprint .fd-inner-main,
body.fd.fd--blueprint main.homepage,
body.fd.fd--blueprint main:not(.fd-inner-main) {
  color: var(--fd-text);
}

/* Parallax / page banners — dark bg, light text */
body.fd.fd--blueprint .fab-mainbanner.parallax .fab-mainbanner__item,
body.fd.fd--blueprint .fab-mainbanner__item {
  background-color: #0c2340 !important;
}

body.fd.fd--blueprint .fab-mainbanner__content h1,
body.fd.fd--blueprint .fab-mainbanner__content .fab-title h1,
body.fd.fd--blueprint .fab-mainbanner__content .text,
body.fd.fd--blueprint .fab-mainbanner .fab-title h1,
body.fd.fd--blueprint .fab-mainbanner .fab-text-lg,
body.fd.fd--blueprint .fab-mainbanner .fab-text-md,
body.fd.fd--blueprint main .fab-mainbanner h1,
body.fd.fd--blueprint main .fab-mainbanner .fab-mainbanner__content .text {
  color: #f8fafc !important;
}

body.fd.fd--blueprint .fab-mainbanner .fab-btn-light {
  background: #2563eb;
  color: #fff;
  border: none;
  box-shadow: 4px 4px 0 #1e40af;
}

body.fd.fd--blueprint .fab-mainbanner .fab-btn-light-border {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

/* Light sections */
body.fd.fd--blueprint .uk-section:not(.uk-section-muted) {
  background: #fff;
}

body.fd.fd--blueprint .uk-section-muted,
body.fd.fd--blueprint .fab-section-muted {
  background: #f1f5f9 !important;
}

body.fd.fd--blueprint .fab-title h1,
body.fd.fd--blueprint .fab-title h2,
body.fd.fd--blueprint .fab-title h3,
body.fd.fd--blueprint .fab-title h4,
body.fd.fd--blueprint main h1,
body.fd.fd--blueprint main h2 {
  color: #0c2340;
}

body.fd.fd--blueprint .fab-text-gray,
body.fd.fd--blueprint .fab-text-md,
body.fd.fd--blueprint .text,
body.fd.fd--blueprint p {
  color: #334155;
}

body.fd.fd--blueprint .fab-text-dark,
body.fd.fd--blueprint .fab-text-button.fab-text-dark {
  color: #0c2340 !important;
}

/* Dark panels — keep light text */
/* Dark panels — keep light text */
body.fd.fd--blueprint .fab-panel-primary,
body.fd.fd--blueprint .fab-feature-primary {
  background: #0c2340 !important;
}

body.fd.fd--blueprint .fab-panel-primary .fab-title *,
body.fd.fd--blueprint .fab-panel-primary .fab-panel__text,
body.fd.fd--blueprint .fab-feature-primary .fab-title *,
body.fd.fd--blueprint .fab-feature-primary .text {
  color: #f8fafc !important;
}

body.fd.fd--blueprint .fab-panel-primary .text,
body.fd.fd--blueprint .fab-panel-primary .fab-text-base-small,
body.fd.fd--blueprint .fab-panel-primary .ann-props .text,
body.fd.fd--blueprint .fab-feature-primary .fab-text-base-small {
  color: #cbd5e1 !important;
}

body.fd.fd--blueprint .fab-panel-secondary {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

body.fd.fd--blueprint .fab-panel-secondary .fab-title *,
body.fd.fd--blueprint .fab-panel-secondary .fab-panel__text {
  color: #0c2340;
}

/* Dark CMS blocks (--bg-muted / fab-feature-secondary) */
body.fd.fd--blueprint .fab-feature-secondary,
body.fd.fd--blueprint .fab-feature.fab-feature-secondary {
  background: #0c2340 !important;
  border: 1px solid #334155;
}

body.fd.fd--blueprint .fab-feature-secondary .fab-title h4,
body.fd.fd--blueprint .fab-feature-secondary .fab-title *,
body.fd.fd--blueprint .fab-feature-secondary .text {
  color: #f8fafc !important;
}

body.fd.fd--blueprint .fab-work-line {
  background: #1e3a5f !important;
}

body.fd.fd--blueprint .fab-work-line .fab-title h4,
body.fd.fd--blueprint .fab-work-line .fab-title *,
body.fd.fd--blueprint .fab-work-line .text,
body.fd.fd--blueprint .fab-work-line .fab-text-white {
  color: #f8fafc !important;
}

body.fd.fd--blueprint .fab-panel-primary-light {
  background: #1e3a5f !important;
}

body.fd.fd--blueprint .fab-panel-primary-light .fab-title *,
body.fd.fd--blueprint .fab-panel-primary-light .fab-panel__text,
body.fd.fd--blueprint .fab-panel-primary-light .fab-text-white {
  color: #f8fafc !important;
}

body.fd.fd--blueprint .fab-panel-primary-light .fab-title h4 {
  color: #fff !important;
}

body.fd.fd--blueprint .fab-panel-primary-light .text,
body.fd.fd--blueprint .fab-panel-primary-light .fab-text-base-small,
body.fd.fd--blueprint .fab-panel-primary-light .ann-props .text,
body.fd.fd--blueprint .fab-panel-primary-light .fab-text-md,
body.fd.fd--blueprint .fab-panel-primary-light ul,
body.fd.fd--blueprint .fab-panel-primary-light li {
  color: #cbd5e1 !important;
}

/* Light feature blocks (post-processing, columns) */
body.fd.fd--blueprint .fab-feature:not(.fab-feature-secondary):not(.fab-feature-primary):not(.fab-feature-primary-light),
body.fd.fd--blueprint .fab-feature-column {
  background: #fff !important;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  color: #334155;
}

body.fd.fd--blueprint .fab-feature:not(.fab-feature-secondary):not(.fab-feature-primary) .fab-title h4,
body.fd.fd--blueprint .fab-feature:not(.fab-feature-secondary):not(.fab-feature-primary) .fab-title *,
body.fd.fd--blueprint .fab-feature:not(.fab-feature-secondary):not(.fab-feature-primary) .text,
body.fd.fd--blueprint .fab-feature-column .fab-title h4,
body.fd.fd--blueprint .fab-feature-column .text {
  color: #334155 !important;
}

/* Cards */
body.fd.fd--blueprint .fab-card,
body.fd.fd--blueprint .matguide-item,
body.fd.fd--blueprint .fab-work {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  box-shadow: none;
  color: #334155;
}

body.fd.fd--blueprint .fab-card-product__title a {
  color: #0c2340;
}

body.fd.fd--blueprint .fab-card-product__title a:hover {
  color: #2563eb;
}

/* Buttons */
body.fd.fd--blueprint .fab-btn-primary,
body.fd.fd--blueprint .fab-btn.fab-btn-primary,
body.fd.fd--blueprint input.fab-btn-primary[type="submit"] {
  background: #2563eb;
  color: #fff;
  border-radius: 0;
  box-shadow: 4px 4px 0 #1e40af;
}

body.fd.fd--blueprint .fab-btn-dark-border {
  color: #0c2340;
  border-color: #0c2340;
}

body.fd.fd--blueprint .fab-btn-light-border {
  color: #2563eb;
  border-color: #2563eb;
}

/* Breadcrumbs */
body.fd.fd--blueprint .uk-breadcrumb > li > a,
body.fd.fd--blueprint .uk-breadcrumb > li > span {
  color: #55617a;
}

body.fd.fd--blueprint .uk-breadcrumb > li > a:hover {
  color: #2563eb;
}

/* Rubrics / filters */
body.fd.fd--blueprint .fab-rubrics a {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 0;
}

body.fd.fd--blueprint .fab-rubrics a.active,
body.fd.fd--blueprint .fab-rubrics a:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #2563eb;
}

body.fd.fd--blueprint .fab-link-more {
  color: #2563eb;
}

/* Хабы географии: сетка городов, способы отправки */
.fab-geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: .5rem;
  margin: 1.25rem 0 0;
}

.fab-geo-card {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .7rem .85rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  text-decoration: none;
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}

.fab-geo-card:hover {
  border-color: #2563eb;
  box-shadow: 3px 3px 0 #dbeafe;
  transform: translate(-1px, -1px);
}

.fab-geo-card__name {
  font-weight: 700;
  color: #0c2340;
  font-size: .95rem;
  line-height: 1.3;
}

.fab-geo-card__km {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .7rem;
  letter-spacing: .02em;
  color: #55617a;
}

.fab-geo-lead {
  margin: .35rem 0 0;
  color: #475569;
  max-width: 62ch;
  line-height: 1.6;
}

.fab-geo-more {
  margin: 1.1rem 0 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .82rem;
}

.fab-geo-more a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.fab-geo-more a:hover {
  text-decoration: underline;
}

/* Карточки-блоки без картинок (способы доставки, оплаты, условия) */
.fab-cards,
.fab-geo-ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: #cbd5e1;
  border: 1px solid #cbd5e1;
  margin-top: 1.25rem;
}

.fab-card-plain,
.fab-geo-way {
  background: #fff;
  padding: 1.1rem 1.2rem;
}

.fab-card-plain h3,
.fab-geo-way h3 {
  margin: 0 0 .4rem;
  font-size: 1.02rem;
  color: #0c2340;
}

.fab-card-plain p,
.fab-geo-way p {
  margin: 0 0 .5rem;
  font-size: .92rem;
  color: #475569;
  line-height: 1.55;
}

.fab-card-plain p:last-child,
.fab-geo-way p:last-child {
  margin-bottom: 0;
}

.fab-card-plain__num {
  display: block;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .7rem;
  letter-spacing: .1em;
  color: #2563eb;
  margin-bottom: .35rem;
}

/* Таблицы цен */
.fab-table-wrap {
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  margin-top: 1.25rem;
}

.fab-price-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  background: #fff;
  font-size: .93rem;
}

.fab-price-table th,
.fab-price-table td {
  padding: .7rem .9rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f1;
  vertical-align: top;
}

.fab-price-table thead th {
  background: #eff6ff;
  color: #0c2340;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 700;
  white-space: nowrap;
}

.fab-price-table tbody tr:last-child td {
  border-bottom: 0;
}

.fab-price-table .price {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 700;
  color: #0c2340;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fab-price-table .price--calc {
  color: #2563eb;
  font-weight: 700;
}

.fab-price-table td small {
  display: block;
  color: #55617a;
  font-size: .82rem;
  margin-top: .15rem;
}

.fab-geo-note {
  margin: 1.1rem 0 0;
  font-size: .9rem;
  color: #475569;
}

/* График работы в подвале */
body.fd.fd--blueprint .fab-footer .fab-footer-hours {
  color: #55617a;
  line-height: 1.5;
}

/* Согласие на обработку ПД в лид-формах (np-form / uph-form / up3d-form —
   все на тёмном #0c2340). Загружается на всех страницах вместе с compat.css. */
.fab-consent {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: .35rem 0 0;
  font-size: .78rem;
  line-height: 1.45;
  color: #94a3b8;
  max-width: 34rem;
  cursor: pointer;
}

.fab-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: .12rem 0 0;
  accent-color: #2563eb;
  cursor: pointer;
}

.fab-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

/* :user-invalid — подсветка только после попытки отправки, не при загрузке */
.fab-consent input[type="checkbox"]:user-invalid {
  outline: 2px solid #f87171;
  outline-offset: 2px;
}

.fab-consent a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fab-consent a:hover {
  color: #bfdbfe;
}

/* Modals */
body.fd.fd--blueprint .modal-primary .fab-text-white,
body.fd.fd--blueprint .modal-primary .h2 {
  color: #f8fafc;
}

body.fd.fd--blueprint .modal-primary .uk-modal-body {
  background: #0c2340;
  color: #e2e8f0;
}

/* Тёмный фон модалки: подписи полей и текст согласия наследовали тёмный цвет
   темы (#0c2340) и сливались с фоном — задаём светлые явно. */
body.fd.fd--blueprint .modal-primary .fab-control-label,
body.fd.fd--blueprint .modal-primary .fab-checkbox-title,
body.fd.fd--blueprint .modal-primary .fab-control-descr,
body.fd.fd--blueprint .modal-primary .text,
body.fd.fd--blueprint .modal-primary p,
body.fd.fd--blueprint .modal-primary label {
  color: #cbd5e1;
}

body.fd.fd--blueprint .modal-primary .fab-control-label--req::after,
body.fd.fd--blueprint .modal-primary .fab-control-label--required::after {
  color: #f87171;
}

body.fd.fd--blueprint .modal-primary .fab-checkbox-title a,
body.fd.fd--blueprint .modal-primary .uk-modal-body a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.fd.fd--blueprint .modal-primary .fab-checkbox-title a:hover,
body.fd.fd--blueprint .modal-primary .uk-modal-body a:hover {
  color: #bfdbfe;
}

/* Квадрат чекбокса согласия рисуется псевдоэлементом ::before с рамкой
   var(--dark-color) (#0c2340) — на тёмном фоне модалки он сливался и был
   не виден. Даём светлую рамку и подложку, отмеченное состояние — синее. */
body.fd.fd--blueprint .modal-primary .fab-accept.fab-checkbox .fab-checkbox-title::before {
  border-color: #93c5fd;
  background-color: rgba(255, 255, 255, 0.08);
}

body.fd.fd--blueprint .modal-primary .fab-accept.fab-checkbox > input:checked + .fab-checkbox-title::before {
  background-color: #2563eb;
  border-color: #2563eb;
}

body.fd.fd--blueprint .modal-primary .fab-accept.fab-checkbox.fab-has-error .fab-checkbox-title::before {
  border-color: #f87171;
}

/* Tables */
body.fd.fd--blueprint table th {
  background: #eff6ff;
  color: #0c2340;
}

body.fd.fd--blueprint table td {
  color: #334155;
}

/* Accordion / FAQ */
body.fd.fd--blueprint .fab-acc .uk-accordion-title {
  color: #0c2340;
}

body.fd.fd--blueprint .fab-section-bp-faq {
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

body.fd.fd--blueprint .fab-bp-faq .fab-col-block__title .fab-title-left h1,
body.fd.fd--blueprint .fab-bp-faq .fab-col-block__title .fab-title-left h2 {
  border-left-color: #2563eb;
  color: #0c2340 !important;
}

body.fd.fd--blueprint .fab-bp-faq .sub-title a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.fd.fd--blueprint .fab-bp-faq .sub-title a:hover {
  color: #1d4ed8;
}

body.fd.fd--blueprint .fab-bp-faq .sub-title {
  color: #55617a !important;
}

body.fd.fd--blueprint .fab-bp-faq .fab-acc-title .title {
  color: #0c2340 !important;
}

body.fd.fd--blueprint .fab-bp-faq .fab-acc-title:hover .title {
  color: #2563eb !important;
}

body.fd.fd--blueprint .fab-bp-faq .fab-acc-cont,
body.fd.fd--blueprint .fab-bp-faq .fab-bp-faq__text {
  color: #475569 !important;
}

body.fd.fd--blueprint .fab-bp-faq .fab-acc-item {
  border-top: none;
}

body.fd.fd--blueprint .fab-bp-faq .fab-bp-faq__text a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.fd.fd--blueprint .fab-bp-faq a.fab-bp-faq__chip {
  color: #1e40af !important;
  text-decoration: none;
}

body.fd.fd--blueprint .fab-bp-faq a.fab-bp-faq__chip:hover,
body.fd.fd--blueprint .fab-bp-faq a.fab-bp-faq__chip:focus-visible {
  color: #1d4ed8 !important;
}

body.fd.fd--blueprint .fab-bp-faq .fab-bp-faq__text a:hover {
  color: #1d4ed8;
}

body.fd.fd--blueprint .fab-section-bp-b2b--alt {
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

body.fd.fd--blueprint .fab-section-bp-b2b .fab-bp-solution-card__title {
  color: #0c2340 !important;
}

/* Hide duplicate legacy header inside main */
body.fd.fd--blueprint .fd-inner-main .fab-header {
  display: none !important;
}

/* Blueprint homepage (fd blocks) coexists with shell */
body.fd.fd--blueprint.homepage .fd-hero,
body.fd.fd--blueprint.homepage .fd-section,
body.fd.fd--blueprint.homepage .fd-stats {
  position: relative;
  z-index: 1;
}

/* fd-stats on inner pages (about, etc.) */
body.fd.fd--blueprint .fd-stats--inner {
  padding: 0;
  border-block: none;
}

body.fd.fd--blueprint .fd-stat__num {
  color: #2563eb !important;
}

body.fd.fd--blueprint .fab-stat__label {
  color: #55617a !important;
}

/* About page — story + sidebar */
body.fd.fd--blueprint .fab-bp-about-story {
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top-color: #2563eb !important;
}

body.fd.fd--blueprint .fab-bp-about-story .fab-text-md a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.fd.fd--blueprint .fab-bp-about-side {
  border: 1px solid #1e3a5f;
  box-shadow: 4px 4px 0 #dbeafe;
}

body.fd.fd--blueprint .fab-bp-about-side .fab-title h4,
body.fd.fd--blueprint .fab-bp-about-side__list li {
  color: #f8fafc !important;
}

/* Homepage CTA panel — dark bg needs light text (compat overrides main h2/p) */
body.fd.fd--blueprint .fd-cta,
body.fd.fd--blueprint .fd-cta h2,
body.fd.fd--blueprint .fd-cta p {
  color: #f8fafc !important;
}

body.fd.fd--blueprint .fd-cta p {
  opacity: 0.92;
}

body.fd.fd--blueprint .fd-cta .fd-btn--primary {
  color: #fff !important;
}

/* Placeholders — blueprint grid style */
body.fd.fd--blueprint img[data-placeholder],
body.fd.fd--blueprint img[src*="placeholders/noimage"],
body.fd.fd--blueprint img[src*="placeholders/noicon"] {
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  object-fit: contain;
}

body.fd.fd--blueprint .fab-timeline__icon {
  display: block;
  margin-bottom: 0.5rem;
  border: 1px solid #cbd5e1;
}

body.fd.fd--blueprint .fab-section-bp-timeline {
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

body.fd.fd--blueprint .fab-bp-timeline .fab-title-left h2 {
  border-left-color: #2563eb;
  color: #0c2340 !important;
}

body.fd.fd--blueprint .fab-bp-timeline .fab-timeline__item {
  background: #fff;
  border: 1px solid #94a3b8;
}

body.fd.fd--blueprint .fab-bp-timeline .fab-timeline__item:hover {
  border-color: #2563eb;
  box-shadow: 4px 4px 0 #bfdbfe;
}

body.fd.fd--blueprint .fab-bp-timeline .fab-timeline__icon {
  border: none !important;
  margin-bottom: 0 !important;
}

body.fd.fd--blueprint .fab-bp-timeline .fab-timeline__head h3 {
  color: #0c2340 !important;
}

body.fd.fd--blueprint .fab-bp-timeline .fab-timeline__body > p {
  color: #475569 !important;
}

body.fd.fd--blueprint .fab-panel-illus,
body.fd.fd--blueprint .fab-panel-primary .fab-panel__inner > .uk-width-auto img,
body.fd.fd--blueprint .fab-panel-primary-light .fab-panel__inner > .uk-width-auto img {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  padding: 0.75rem;
  background: radial-gradient(
    ellipse at 40% 35%,
    rgba(37, 99, 235, 0.18) 0%,
    rgba(12, 35, 64, 0) 68%
  );
  border: 1px dashed rgba(147, 197, 253, 0.28);
  box-sizing: border-box;
}

/* Compact CTA — text left, illustration right, no image box */
body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel__inner {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1.15rem 1.35rem !important;
}

@media (min-width: 960px) {
  body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel__inner {
    flex-wrap: nowrap;
    padding: 1.25rem 1.65rem !important;
  }
}

body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel__inner > [class*="uk-width-expand"] {
  flex: 1 1 16rem;
  min-width: 0;
  width: auto !important;
  max-width: none;
}

body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel__inner > .uk-width-auto,
body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel__inner > [class*="uk-width-auto"] {
  flex: 0 0 auto;
  width: auto !important;
  margin-left: auto;
}

body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel__content {
  max-width: 34rem;
}

body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-title h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.2;
}

body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel__text {
  margin-top: 0.45rem !important;
  margin-bottom: 0.65rem !important;
  font-size: 0.9375rem;
  line-height: 1.5;
}

body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel__btn {
  margin-top: 0;
}

body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel-illus,
body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel__inner > .uk-width-auto img {
  max-width: 148px;
  padding: 0;
  border: none;
  background: none;
  filter: drop-shadow(0 0 18px rgba(96, 165, 250, 0.45));
  opacity: 0.92;
}

body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel__inner > .uk-width-auto {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
}

body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel__inner > .uk-width-auto::before {
  content: "";
  position: absolute;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(37, 99, 235, 0) 72%);
  pointer-events: none;
  z-index: 0;
}

body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel-illus {
  position: relative;
  z-index: 1;
}

@media (max-width: 639px) {
  body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel__inner > .uk-width-auto {
    margin-left: 0;
    width: 100% !important;
    justify-content: flex-end;
  }

  body.fd.fd--blueprint .fab-panel.fab-bp-cta .fab-panel-illus {
    max-width: 120px;
  }
}

/* Primary CTA panels — structure & padding */
body.fd.fd--blueprint .fab-panel.fab-panel-primary,
body.fd.fd--blueprint .fab-panel.fab-panel-primary-light {
  border-radius: 0;
  overflow: hidden;
}

body.fd.fd--blueprint .fab-panel-primary .fab-panel__inner,
body.fd.fd--blueprint .fab-panel-primary-light .fab-panel__inner {
  align-items: center;
  padding: 1.5rem 1.25rem;
}

@media (min-width: 960px) {
  body.fd.fd--blueprint .fab-panel-primary .fab-panel__inner,
  body.fd.fd--blueprint .fab-panel-primary-light .fab-panel__inner {
    padding: 2rem 2.25rem;
  }
}

body.fd.fd--blueprint .fab-panel-primary .fab-panel__inner > .uk-width-auto,
body.fd.fd--blueprint .fab-panel-primary-light .fab-panel__inner > .uk-width-auto {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.fd.fd--blueprint .fab-panel-primary .fab-panel__text,
body.fd.fd--blueprint .fab-panel-primary-light .fab-panel__text {
  color: #cbd5e1 !important;
  line-height: 1.55;
}

body.fd.fd--blueprint .fab-panel-primary .fab-panel__text p,
body.fd.fd--blueprint .fab-panel-primary-light .fab-panel__text p,
body.fd.fd--blueprint .fab-bp-cta .fab-panel__text,
body.fd.fd--blueprint .fab-bp-cta .fab-panel__text p {
  color: #cbd5e1 !important;
}

body.fd.fd--blueprint .fab-bp-cta .fab-panel__text strong {
  color: #fff !important;
}

body.fd.fd--blueprint .fab-bp-cta .fab-title h2,
body.fd.fd--blueprint .fab-bp-cta .fab-title h4 {
  color: #f8fafc !important;
}

body.fd.fd--blueprint .fab-panel-primary .fab-title h2,
body.fd.fd--blueprint .fab-panel-primary .fab-title h2 span {
  color: #f8fafc !important;
}

body.fd.fd--blueprint .prop-inner img,
body.fd.fd--blueprint .fab-prop-icon {
  display: block;
  max-width: 125px;
  height: auto;
}

/* Breadcrumbs over dark parallax hero */
body.fd.fd--blueprint .fab-bredcrumb-abs {
  pointer-events: none;
}

body.fd.fd--blueprint .fab-bredcrumb-abs a {
  pointer-events: auto;
}

body.fd.fd--blueprint .fab-bredcrumb-abs .uk-breadcrumb > * > *,
body.fd.fd--blueprint .fab-bredcrumb-abs .uk-breadcrumb > :last-child > span,
body.fd.fd--blueprint .fab-bredcrumb-abs .uk-breadcrumb > :last-child > a:not([href]) {
  color: rgba(248, 250, 252, 0.88) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

body.fd.fd--blueprint .fab-bredcrumb-abs .uk-breadcrumb > * > :hover,
body.fd.fd--blueprint .fab-bredcrumb-abs .uk-breadcrumb > * > :focus {
  color: #fff !important;
}

body.fd.fd--blueprint .fab-bredcrumb-abs .uk-breadcrumb > :nth-child(n+2):not(.uk-first-column)::before {
  color: rgba(248, 250, 252, 0.55) !important;
}

/* Unified top breadcrumbs — above fixed parallax hero (z-index 100) */
.fab-bp-breadcrumb {
  position: relative;
  z-index: 110;
  width: 100%;
  box-sizing: border-box;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

body.fd.fd--blueprint .fab-bp-breadcrumb {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Fallback link colors when blueprint body class is absent (lab previews) */
.fab-bp-breadcrumb .uk-breadcrumb > * > a,
.fab-bp-breadcrumb .uk-breadcrumb > * > span {
  color: #55617a;
  font-size: 0.8125rem;
  text-decoration: none;
}

.fab-bp-breadcrumb .uk-breadcrumb > * > a:hover,
.fab-bp-breadcrumb .uk-breadcrumb > * > a:focus {
  color: #2563eb;
}

.fab-bp-breadcrumb .uk-breadcrumb > :last-child > span {
  color: #0c2340;
  font-weight: 600;
}

.fab-bp-breadcrumb .uk-breadcrumb > :nth-child(n+2):not(.uk-first-column)::before {
  color: #94a3b8;
}

body.fd.fd--blueprint .fab-bp-breadcrumb .uk-breadcrumb > * > a,
body.fd.fd--blueprint .fab-bp-breadcrumb .uk-breadcrumb > * > span {
  color: #55617a !important;
  font-size: 0.8125rem;
  text-decoration: none;
}

body.fd.fd--blueprint .fab-bp-breadcrumb .uk-breadcrumb > * > a:hover,
body.fd.fd--blueprint .fab-bp-breadcrumb .uk-breadcrumb > * > a:focus {
  color: #2563eb !important;
}

body.fd.fd--blueprint .fab-bp-breadcrumb .uk-breadcrumb > :last-child > span {
  color: #0c2340 !important;
  font-weight: 600;
}

body.fd.fd--blueprint .fab-bp-breadcrumb .uk-breadcrumb > :nth-child(n+2):not(.uk-first-column)::before {
  color: #94a3b8 !important;
}

/* Layout blocks on catalog / service pages */
body.fd.fd--blueprint .fab-benefit-card,
body.fd.fd--blueprint .fab-usecase-item {
  background: #fff;
  border: 1px solid #cbd5e1;
}

body.fd.fd--blueprint .fab-benefit-card h4,
body.fd.fd--blueprint .fab-usecase-tag {
  color: #0c2340 !important;
}

body.fd.fd--blueprint .fab-benefit-card p,
body.fd.fd--blueprint .fab-usecase-item p {
  color: #334155 !important;
}

/* Usecase strip — blueprint cards */
body.fd.fd--blueprint .fab-layout-usecases .fab-usecase-list {
  gap: 1.15rem;
}

body.fd.fd--blueprint .fab-layout-usecases .fab-usecase-item {
  position: relative;
  border-radius: 0;
  border: 1px solid #94a3b8;
  box-shadow: 4px 4px 0 #dbeafe;
  padding: 1.35rem 1.35rem 1.4rem 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.fd.fd--blueprint .fab-layout-usecases .fab-usecase-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2563eb;
}

body.fd.fd--blueprint .fab-layout-usecases .fab-usecase-item:hover {
  border-color: #2563eb;
  box-shadow: 4px 4px 0 #bfdbfe;
  transform: translate(-1px, -1px);
}

body.fd.fd--blueprint .fab-layout-usecases .fab-usecase-tag {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb !important;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0;
  padding: 0.28rem 0.55rem;
}

body.fd.fd--blueprint .fab-layout-usecases .fab-usecase-item p {
  color: #475569 !important;
  font-size: 0.9rem;
  line-height: 1.55;
}

body.fd.fd--blueprint .fab-section-matnote {
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

body.fd.fd--blueprint .fab-section-matnote .fab-usecase-list {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 960px) {
  body.fd.fd--blueprint .fab-section-matnote .fab-usecase-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.fd.fd--blueprint .fab-map-contact__title,
body.fd.fd--blueprint .contact-info .head {
  color: #0c2340 !important;
}

body.fd.fd--blueprint .contact-info .val,
body.fd.fd--blueprint .contact-info .val.fab-text-dark {
  color: #334155 !important;
}

/* Dark / tinted sections — buttons on dark backgrounds */
body.fd.fd--blueprint .fab-mainbanner .fab-btn-light {
  background: #2563eb !important;
  color: #fff !important;
  border: none;
  box-shadow: 4px 4px 0 #1e40af;
}

body.fd.fd--blueprint .fab-mainbanner .fab-btn-light-border,
body.fd.fd--blueprint .fab-panel-primary .fab-btn-light-border,
body.fd.fd--blueprint .fab-panel-primary-light .fab-btn-light-border {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  background: transparent !important;
}

body.fd.fd--blueprint .fab-panel-primary .fab-btn-light {
  background: #fff !important;
  color: #0c2340 !important;
  border: none !important;
  box-shadow: 3px 3px 0 rgba(30, 58, 95, 0.45);
  font-weight: 600;
}

body.fd.fd--blueprint .fab-panel-primary .fab-btn-light:hover,
body.fd.fd--blueprint .fab-panel-primary .fab-btn-light:focus {
  background: #eff6ff !important;
  color: #2563eb !important;
}

body.fd.fd--blueprint .fab-section-matguide .fab-text-md,
body.fd.fd--blueprint .fab-section-matnote .fab-text-md {
  color: #334155 !important;
}

body.fd.fd--blueprint .fab-card .fab-text-sm {
  color: #55617a !important;
}

body.fd.fd--blueprint .fab-card .footer .fab-text-button.fab-text-dark {
  color: #0c2340 !important;
}

/* ── Dark technology cards (FDM / LCD и аналоги) ── */
body.fd.fd--blueprint .fab-card.dark:not(.product) {
  background: #0c2340 !important;
  border: 1px solid #334155 !important;
  box-shadow: 4px 4px 0 #1e3a5f;
}

body.fd.fd--blueprint .fab-card.dark:not(.product) .fab-card__body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

body.fd.fd--blueprint .fab-card.dark:not(.product) .fab-card-product__title,
body.fd.fd--blueprint .fab-card.dark:not(.product) .fab-card-product__title a {
  color: #f8fafc !important;
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}

body.fd.fd--blueprint .fab-card.dark:not(.product) .fab-card-product__title a:hover {
  color: #93c5fd !important;
}

body.fd.fd--blueprint .fab-card.dark:not(.product) .fab-card__content .text-white,
body.fd.fd--blueprint .fab-card.dark:not(.product) .fab-card__content > p {
  color: #cbd5e1 !important;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

/* Material tags — светлые чипы с тёмным текстом */
body.fd.fd--blueprint .fab-card.dark:not(.product) .fab-card__content ul {
  margin-bottom: 1.25rem;
  gap: 0.4rem;
}

body.fd.fd--blueprint .fab-card.dark:not(.product) .fab-card__content ul > li {
  background: #f8fafc !important;
  color: #0c2340 !important;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}

/* Цена / срок — контрастные полоски внизу карточки */
body.fd.fd--blueprint .fab-card.dark:not(.product) .fab-card__content .footer {
  gap: 0.5rem;
  margin-top: auto;
}

body.fd.fd--blueprint .fab-card.dark:not(.product) .fab-card__content .footer > .price {
  background: #eff6ff !important;
  border: 1px solid #93c5fd;
  flex: 1;
  min-width: calc(50% - 0.25rem);
}

body.fd.fd--blueprint .fab-card.dark:not(.product) .fab-card__content .footer > .time {
  background: #fff !important;
  border: 1px solid #cbd5e1;
  flex: 1;
  min-width: calc(50% - 0.25rem);
}

body.fd.fd--blueprint .fab-card.dark:not(.product) .footer .fab-text-sm {
  color: #55617a !important;
  font-size: 0.75rem;
}

body.fd.fd--blueprint .fab-card.dark:not(.product) .footer .fab-text-button,
body.fd.fd--blueprint .fab-card.dark:not(.product) .footer .fab-text-button.fab-text-dark {
  color: #0c2340 !important;
  font-weight: 600;
}

/* Material filter chips — blueprint */
body.fd.fd--blueprint .fab-mat-filter__chip {
  color: #334155;
  border-color: #cbd5e1;
  background: #fff;
}

body.fd.fd--blueprint .fab-mat-filter__chip.is-active {
  color: #fff;
  background: #2563eb;
  border-color: #1e40af;
  box-shadow: 4px 4px 0 #1e40af;
}

body.fd.fd--blueprint #productsBlock .fab-card.product .fab-card__content .footer > .price,
body.fd.fd--blueprint .fab-bp-mat-strip .fab-card.product .fab-card__content .footer > .price {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe;
}

body.fd.fd--blueprint #productsBlock .fab-card.product .fab-card__content .footer > .time,
body.fd.fd--blueprint .fab-bp-mat-strip .fab-card.product .fab-card__content .footer > .time {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0;
}

body.fd.fd--blueprint #productsBlock .fab-card.product,
body.fd.fd--blueprint .fab-bp-mat-strip .fab-card.product {
  border: 1px solid #94a3b8;
  box-shadow: 3px 3px 0 #dbeafe;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

body.fd.fd--blueprint #productsBlock .fab-card.product:hover,
body.fd.fd--blueprint .fab-bp-mat-strip .fab-card.product:hover {
  border-color: #2563eb;
  box-shadow: 4px 4px 0 #bfdbfe;
  transform: translate(-1px, -1px);
}

body.fd.fd--blueprint .fab-bp-mat-strip {
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

body.fd.fd--blueprint .fab-bp-mat-strip .fab-title-left h2 {
  border-left-color: #2563eb;
  color: #0c2340 !important;
}

body.fd.fd--blueprint .fab-bp-mat-strip .fab-card.product .fab-card-product__title a {
  color: #0c2340;
  font-weight: 700;
}

body.fd.fd--blueprint .fab-bp-mat-strip .fab-card.product .fab-card__content .text {
  color: #55617a !important;
}

body.fd.fd--blueprint .fab-bp-mat-strip .fab-card .footer .fab-text-button.fab-text-dark {
  color: #0c2340 !important;
  font-weight: 600;
}

body.fd.fd--blueprint .fab-bp-mat-strip .fab-card .fab-text-sm {
  color: #55617a !important;
}

/* Buttons on dark feature / panel blocks */
body.fd.fd--blueprint .fab-feature-secondary .fab-btn-light-border,
body.fd.fd--blueprint .fab-feature-primary .fab-btn-light-border,
body.fd.fd--blueprint .fab-panel-primary .fab-btn-light-border {
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
}

/* Blueprint feature cards section */
body.fd.fd--blueprint .fab-section-bp-features {
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

body.fd.fd--blueprint .fab-section-bp-features .fab-title-left h2 {
  border-left-color: #2563eb;
  color: #0c2340 !important;
}

body.fd.fd--blueprint .fab-section-bp-features .fab-text-md {
  color: #55617a !important;
}

body.fd.fd--blueprint .fab-bp-feature-card__num::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

body.fd.fd--blueprint .fab-bp-feature-card__num {
  position: relative;
}

body.fd.fd--blueprint .fab-bp-feature-card--cta .fab-bp-feature-card__text,
body.fd.fd--blueprint .fab-bp-feature-card--cta .fab-bp-feature-card__text p {
  color: #cbd5e1 !important;
}

body.fd.fd--blueprint .fab-bp-feature-card__text,
body.fd.fd--blueprint .fab-bp-feature-card__text p {
  color: #475569 !important;
}

/* Feature cards grid — equal 2 columns (fixes uk-width-2-3 / 1-3 stagger) */
body.fd.fd--blueprint .fab-features-block > .uk-grid-small,
body.fd.fd--blueprint .fab-features-block > [data-uk-grid] {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0 !important;
}

@media (min-width: 960px) {
  body.fd.fd--blueprint .fab-features-block > .uk-grid-small,
  body.fd.fd--blueprint .fab-features-block > [data-uk-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.fd.fd--blueprint .fab-features-block .uk-grid-small > [class*="uk-width"],
body.fd.fd--blueprint .fab-features-block [data-uk-grid] > [class*="uk-width"] {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
}

/* Post-processing: full-width row + 3 equal columns */
body.fd.fd--blueprint .fab-section-54 .uk-grid-small {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0 !important;
}

@media (min-width: 640px) {
  body.fd.fd--blueprint .fab-section-54 .uk-grid-small {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.fd.fd--blueprint .fab-section-54 .uk-grid-small > .uk-width-1-1 {
    grid-column: 1 / -1;
  }
}

body.fd.fd--blueprint .fab-section-54 .uk-grid-small > [class*="uk-width"] {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
}

/* Blueprint rows — advantages + numbered application lists */
body.fd.fd--blueprint .fab-section-bp-rows {
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

body.fd.fd--blueprint .fab-bp-panel {
  padding-top: 0.25rem;
}

body.fd.fd--blueprint .fab-bp-panel > .uk-grid,
body.fd.fd--blueprint .fab-bp-panel > [uk-grid] {
  align-items: start;
}

body.fd.fd--blueprint .fab-bp-panel > .uk-grid,
body.fd.fd--blueprint .fab-bp-panel > [uk-grid] {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  body.fd.fd--blueprint .fab-bp-panel > .uk-grid,
  body.fd.fd--blueprint .fab-bp-panel > [uk-grid] {
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: center;
  }
}

body.fd.fd--blueprint .fab-bp-panel > .uk-grid > *,
body.fd.fd--blueprint .fab-bp-panel > [uk-grid] > * {
  width: auto !important;
  max-width: 100%;
  min-width: 0;
}

body.fd.fd--blueprint .fab-bp-panel .fab-col-block__content.fab-bp-rows {
  max-width: none !important;
  margin-left: 0 !important;
  width: 100%;
}

body.fd.fd--blueprint .fab-bp-panel .fab-col-block__title {
  width: auto !important;
  max-width: 100%;
}

body.fd.fd--blueprint .fab-bp-panel .fab-col-block__title .fab-title h2 {
  hyphens: none;
  color: #0c2340 !important;
}

/* Row cards */
body.fd.fd--blueprint .fab-bp-row {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: #0c2340 !important;
  border: 1px solid #1e3a5f;
  border-radius: 0;
  box-shadow: 4px 4px 0 #dbeafe;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.fd.fd--blueprint .fab-bp-row:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #bfdbfe;
}

body.fd.fd--blueprint .fab-bp-rows .fab-bp-row + .fab-bp-row {
  margin-top: 0;
}

body.fd.fd--blueprint .fab-bp-row .fab-work-line__content {
  width: 100%;
  max-width: 100%;
}

body.fd.fd--blueprint .fab-bp-row .fab-title h4,
body.fd.fd--blueprint .fab-bp-row .fab-title *,
body.fd.fd--blueprint .fab-bp-row .text,
body.fd.fd--blueprint .fab-bp-row .fab-text-white,
body.fd.fd--blueprint .fab-bp-row--step .fab-work-line__content {
  color: #f8fafc !important;
}

body.fd.fd--blueprint .fab-bp-row .text,
body.fd.fd--blueprint .fab-bp-row .w-380-300 {
  max-width: 100% !important;
  width: 100%;
  margin-top: 0.45rem;
  line-height: 1.55;
  color: #cbd5e1 !important;
}

body.fd.fd--blueprint .fab-bp-row .fab-title h4 {
  margin-bottom: 0;
  font-weight: 600;
}

body.fd.fd--blueprint .fab-bp-row:not(.fab-bp-row--step) {
  padding-left: 1.35rem;
  position: relative;
}

body.fd.fd--blueprint .fab-bp-row:not(.fab-bp-row--step)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2563eb;
}

/* Blueprint step index — monospace 01, 02… with crosshair */
body.fd.fd--blueprint .fab-bp-row--step .number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0;
  background: #2563eb !important;
  border: 1px solid #1e40af;
  box-shadow: 2px 2px 0 #1e40af;
  font-size: 0;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.fd.fd--blueprint .fab-bp-row--step .number::before {
  counter-increment: fab-bp-step;
  content: counter(fab-bp-step, decimal-leading-zero);
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

body.fd.fd--blueprint .fab-bp-row--step .number::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

body.fd.fd--blueprint .fab-bp-row--step .fab-work-line__content.h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 639px) {
  body.fd.fd--blueprint .fab-bp-row--step .number {
    width: 2rem;
    height: 2rem;
  }

  body.fd.fd--blueprint .fab-bp-row--step .number::before {
    font-size: 0.75rem;
  }

  body.fd.fd--blueprint .fab-bp-row--step .fab-work-line__content.h4 {
    font-size: 0.9375rem;
  }
}

/* Legacy crd01 without fab-bp-* (fallback until patched) */
body.fd.fd--blueprint .fab-section-crd01:not(.fab-section-bp-rows) .fab-col-block > .uk-grid:has(.fab-work-line),
body.fd.fd--blueprint .fab-section-crd01:not(.fab-section-bp-rows) .fab-col-block > [uk-grid]:has(.fab-work-line) {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  body.fd.fd--blueprint .fab-section-crd01:not(.fab-section-bp-rows) .fab-col-block > .uk-grid:has(.fab-work-line),
  body.fd.fd--blueprint .fab-section-crd01:not(.fab-section-bp-rows) .fab-col-block > [uk-grid]:has(.fab-work-line) {
    grid-template-columns: minmax(300px, 42%) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

/* Gallery placeholders */
body.fd.fd--blueprint .gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
}

/* Inner page banners (technology / material pages) */
body.fd.fd--blueprint .fab-page-banner .fab-title h1,
body.fd.fd--blueprint .fab-page-banner .fab-text-md,
body.fd.fd--blueprint .fab-page-banner .fab-text-lg,
body.fd.fd--blueprint main .fab-page-banner h1 {
  color: #f8fafc !important;
}

body.fd.fd--blueprint .fab-bp-page-banner {
  height: auto;
  min-height: 0;
  overflow: visible;
}

body.fd.fd--blueprint .fab-bp-page-banner .fab-page-banner__inner .content {
  width: auto;
  padding: 1.75rem 0 2rem;
}

body.fd.fd--blueprint .fab-bp-page-banner .fab-page-banner__inner .content .btn {
  margin-top: 0.75rem;
}

body.fd.fd--blueprint .fab-bp-page-banner .pb-video-wrap {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  overflow: visible;
}

@media (min-width: 641px) {
  body.fd.fd--blueprint .fab-bp-page-banner .fab-page-banner__inner .content {
    width: auto;
    max-width: 36rem;
  }

  body.fd.fd--blueprint .fab-bp-page-banner .pb-video-wrap {
    top: auto;
    right: auto;
    width: auto;
    height: auto;
  }
}

body.fd.fd--blueprint .fab-bp-page-banner .fab-page-banner__inner {
  background-color: #0c2340 !important;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 3px solid #2563eb;
}

body.fd.fd--blueprint .fab-bp-page-banner .content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
  min-height: min(48vh, 400px);
}

@media (min-width: 960px) {
  body.fd.fd--blueprint .fab-bp-page-banner .content-inner {
    padding: 2.75rem 2rem;
  }
}

body.fd.fd--blueprint .fab-bp-page-banner .fab-title h1 {
  position: relative;
  padding-left: 1rem;
  line-height: 1.12;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

body.fd.fd--blueprint .fab-bp-page-banner .fab-title h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.08em;
  bottom: 0.08em;
  width: 3px;
  background: #2563eb;
}

body.fd.fd--blueprint .fab-bp-page-banner .text {
  margin-top: 0.85rem;
  line-height: 1.55;
  color: #cbd5e1 !important;
  max-width: 34rem;
}

body.fd.fd--blueprint .fab-bp-page-banner .fab-btn-light {
  background: #2563eb;
  color: #fff !important;
  border: none;
  border-radius: 0;
  box-shadow: 4px 4px 0 #1e40af;
}

body.fd.fd--blueprint .fab-bp-page-banner .fab-btn-light:hover {
  background: #1d4ed8;
}

body.fd.fd--blueprint .fab-bp-page-banner .pb-video-wrap::before {
  content: "";
  position: absolute;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(37, 99, 235, 0) 72%);
  pointer-events: none;
}

body.fd.fd--blueprint .fab-bp-page-banner .pb-hero-illus,
body.fd.fd--blueprint .fab-bp-page-banner .pb-video-wrap .pb-video {
  filter: drop-shadow(0 0 24px rgba(96, 165, 250, 0.45));
  background: none !important;
  border: none !important;
}

/* Full-bleed cover variant (scanning pages) */
body.fd.fd--blueprint .fab-bp-page-banner.bg-video .fab-page-banner__inner {
  position: relative;
  overflow: hidden;
}

body.fd.fd--blueprint .fab-bp-page-banner.bg-video .fab-bp-hero-cover {
  opacity: 0.14;
  pointer-events: none;
}

body.fd.fd--blueprint .fab-bp-page-banner.bg-video .fab-bp-hero-cover .pb-hero-illus {
  object-fit: contain;
  object-position: 85% center;
  filter: none;
}

body.fd.fd--blueprint .fab-bp-page-banner.bg-video .content-inner {
  position: relative;
  z-index: 1;
}

/* FAQ / advantages column titles on dark bands */
body.fd.fd--blueprint .fab-col-block__title .fab-title h2,
body.fd.fd--blueprint .fab-col-block__title .fab-title h2 span {
  color: #0c2340 !important;
}

body.fd.fd--blueprint .fab-section-crd01 .fab-col-block__title .fab-title h2,
body.fd.fd--blueprint .fab-section-crd01 .fab-col-block__title .sub-title {
  color: #0c2340 !important;
}

/* Footer CTA — «Не хотите ждать звонка?» (dark band) */
body.fd.fd--blueprint .fab-panel-action {
  background: #0c2340 !important;
  border: 1px solid #1e3a5f;
}

body.fd.fd--blueprint .fab-panel-action .form-text h3 {
  color: #f8fafc !important;
}

body.fd.fd--blueprint .fab-panel-action .fab-link-light {
  color: #f8fafc;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

body.fd.fd--blueprint .fab-panel-action .fab-link-light:hover,
body.fd.fd--blueprint .fab-panel-action .fab-link-light:focus {
  color: #93c5fd;
}

body.fd.fd--blueprint .fab-panel-action .action-notice {
  color: #cbd5e1 !important;
}

/* Dark CTA panel buttons on tinted bg */
body.fd.fd--blueprint .fab-panel-primary-light .fab-btn-light-border {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
}

/* Карточка контактов поверх карты: в теме она растянута между top и bottom
   и не растёт под содержимое — после добавления графика работы текст вылезал
   за пределы белой плашки. Высоту задаёт содержимое, карту делаем выше. */
@media (min-width: 961px) {
  body.fd.fd--blueprint .fab-map-contact .map-wrap {
    height: 600px;
  }
  body.fd.fd--blueprint .fab-map-contact .contact-info {
    bottom: auto;
  }
  body.fd.fd--blueprint .fab-map-contact .contact-info__inner {
    gap: 1.15rem;
  }
  body.fd.fd--blueprint .fab-map-contact__title {
    margin-bottom: 1.25rem;
  }
}

@media (min-width: 1025px) {
  body.fd.fd--blueprint .fab-map-contact .map-wrap {
    height: 660px;
  }
}

/* Единый вертикальный отступ у блоков fab-seo и fab-guar на всех типах страниц.
   Отступ секций у разных шаблонов задаётся по-разному (np-страницы — 76.8px,
   up3d — то 76.8px, то 0), из-за чего вместе с собственным padding у __inner
   получался двойной или, наоборот, нулевой отступ. Фиксируем на уровне секции
   (76.8px, как основной ритм сайта); внутренний padding обнулён ниже в __inner. */
.fab-seo,
.fab-guar {
  padding-top: clamp(3rem, 6vw, 5rem) !important;
  padding-bottom: clamp(3rem, 6vw, 5rem) !important;
}

/* Секция, идущая сразу за этими блоками, часто имела нулевой верхний отступ:
   он был рассчитан на прежнего соседа. Из-за этого следующий блок вставал
   вплотную — а на главной тёмная форма (#0c2340) прилипала к тёмному блоку
   условий и они сливались в одно пятно. Возвращаем обычный отступ секции. */
.fab-seo + section,
.fab-guar + section,
/* .uk-section в селекторе — чтобы перебить правило темы
   `@media (max-width:1240px) .uk-section.section-collapse-mobile{padding-top:0!important}`:
   на мобильном оно схлопывало отступ, и тёмная форма опять липла к блоку условий */
.fab-seo + section.uk-section,
.fab-guar + section.uk-section {
  padding-top: clamp(3rem, 6vw, 5rem) !important;
}

/* Текстовый блок на страницах услуг (fab-seo): свой текст на каждой странице,
   перелинковка на цены, материалы и галерею. Стили самодостаточны — блок
   встречается и на np-страницах, и на pechat-3d с её собственной вёрсткой. */
.fab-seo {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.fab-seo__inner {
  width: min(1200px, calc(100% - 2.5rem));
  margin-inline: auto;
  /* вертикальный отступ задаёт секция (.fab-seo), см. выше */
}

.fab-seo .fab-seo__inner h2 {
  margin: 0 0 1.25rem;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0c2340;
  text-transform: none;
  max-width: 30ch;
}

.fab-seo__text {
  display: grid;
  gap: 1rem;
  max-width: 72ch;
}

.fab-seo .fab-seo__text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #334155;
}

.fab-seo__links {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.9rem;
  color: #55617a;
}

.fab-seo__links a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fab-seo__links a:hover {
  color: #1d4ed8;
}

/* U-04: ссылка «к содержимому» для навигации с клавиатуры.
   Видна только при фокусе — на внешний вид страницы не влияет. */
body .fab-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: .7rem 1.1rem;
  background: #0c2340;
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 4px 4px 0 #2563eb;
}

body .fab-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* U-03: мелкие ссылки-действия делаем не ниже 24 px по высоте —
   попасть пальцем на телефоне. Внешний вид текста не меняется. */
.uph-svc__link,
.fab-bp-solution-card__link,
.fab-link-more,
.np-card__link,
.fab-geo-card,
.footer-link,
.uk-breadcrumb > li > a,
.fab-seo__links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.fab-geo-card {
  display: flex;
}

/* B-06: блок условий и гарантий (главная + страницы услуг) */
.fab-guar {
  background: #0c2340;
}

.fab-guar__inner {
  width: min(1200px, calc(100% - 2.5rem));
  margin-inline: auto;
  /* вертикальный отступ задаёт секция (.fab-guar), см. выше */
}

.fab-guar .fab-guar__head .eyebrow {
  font-family: ui-monospace, monospace;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: .5rem;
}

.fab-guar .fab-guar__head h2 {
  margin: 0 0 1.75rem;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f8fafc !important;
  text-transform: none;
}

.fab-guar__grid {
  display: grid;
  gap: 1px;
  background: #24405f;
  border: 1px solid #24405f;
}

@media (min-width: 640px) {
  .fab-guar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .fab-guar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fab-guar__item {
  background: #0c2340;
  padding: 1.35rem 1.4rem;
}

.fab-guar .fab-guar__item h3 {
  margin: 0 0 .5rem;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff !important;
  text-transform: none;
}

.fab-guar .fab-guar__item p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  color: #cbd5e1 !important;
}

/* ------------------------------------------------------------------
   H-01: утилиты вместо инлайн-стилей. Живут здесь, а не в banners.css,
   потому что compat.css подключён на всех страницах.
   ------------------------------------------------------------------ */
/* подписи внутри SVG-иллюстраций баннеров */
.bnr-svg-label {
  font-family: 'Oxanium', Arial, sans-serif;
  font-size: 24px;
  fill: currentColor;
}

/* ссылки на телефон/почту/Telegram внутри текста.
   Специфичность не ниже `.fd a` из base.css — иначе тема снимает подчёркивание */
.fd a.fab-link-inherit,
a.fab-link-inherit {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* секции без верхнего отступа (раньше style="padding-top:0").
   !important — заменяем инлайн-стиль, который бил правило .np section */
.pt-0 {
  padding-top: 0 !important;
}

/* Сообщение об отправке заявки (fab-form-send.js).
   Форма живёт и в тёмной модалке, и на светлых страницах, поэтому фон
   полупрозрачный — он подстраивается под то, что под ним. */
.fab-form-note {
  margin-bottom: 1rem;
  padding: .6rem .85rem;
  border-left: 3px solid currentColor;
  border-radius: 3px;
  background-color: rgba(148, 163, 184, .16);
  font-size: .9rem;
  line-height: 1.45;
}

.fab-form-note--ok {
  color: #15803d;
  background-color: rgba(34, 197, 94, .14);
}

.fab-form-note--error {
  color: #b91c1c;
  background-color: rgba(239, 68, 68, .12);
}

/* на тёмном фоне модалки тёмно-красный и тёмно-зелёный нечитаемы */
body.fd.fd--blueprint .modal-primary .fab-form-note {
  color: #cbd5e1;
}

body.fd.fd--blueprint .modal-primary .fab-form-note--ok {
  color: #86efac;
}

body.fd.fd--blueprint .modal-primary .fab-form-note--error {
  color: #fca5a5;
  background-color: rgba(239, 68, 68, .18);
}

/* кнопка на время отправки */
.fab-form .fab-btn[disabled],
.fab-form input[type="submit"][disabled] {
  opacity: .6;
  cursor: progress;
}

/* ── Мобильное меню («бутерброд») ──────────────────────────────
   Панель меню объявлена как position:fixed с inset:76px 0 0, то есть должна
   занимать весь экран ниже шапки. Но на .fab-header стоит backdrop-filter
   (fabrica-theme.css) — а элемент с backdrop-filter становится точкой отсчёта
   для position:fixed внутри себя. Панель отмерялась от шапки высотой 76px,
   схлопывалась до 40px, и её 34 ссылки вываливались поверх страницы.

   Убираем размытие только на мобильных: фон шапки там и так непрозрачно белый,
   визуально ничего не теряем, а панель снова считается от окна браузера. */
@media (max-width: 1024px) {
  .fab-header,
  body.fd.fd--blueprint .fab-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* длинное меню должно прокручиваться, а не обрезаться */
  .fab-main-menu.open,
  .fab-main-menu.is-open {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
}

/* Подложка за меню: fabrica-interactions.js ставит класс is-active,
   а main.css знает только про .open — поэтому подложка не появлялась. */
.mainMenuSubOverlay.is-active {
  display: block;
}
