/* Blueprint skin for restored CMS shell (fab-header, fab-footer, menu) */

body.fd.fd--blueprint {
  --overlay-banner-bg: #0c2340;
  --primary: #0c2340;
  --primary-inverse: #f8fafc;
  --secondary-bold: #1e40af;
  --dark-color: #0c2340;
  --light-color: #f8fafc;
  --accent-color: #2563eb;
  --hover-color: #1d4ed8;
  --base-body-background: #f8fafc;
  --grey: #f1f5f9;
  --border-radius: 0;
  --border-radius-sm: 0;
  --border-radius-md: 0;
}

body.fd.fd--blueprint .banner-bg-page {
  background: var(--fd-bg);
}

/* Header */
body.fd.fd--blueprint .fab-header {
  background: #fff;
  border-bottom: 1px solid #cbd5e1;
  box-shadow: 0 1px 0 rgba(37, 99, 235, 0.08);
}

body.fd.fd--blueprint .fab-header.overlayBannerBg {
  background: #fff !important;
  border-bottom: 1px solid #cbd5e1;
}

/* Always dark chrome on white header (fixes invisible white icons before scroll) */
body.fd.fd--blueprint .fab-header.overlayBannerBg .fab-header__logo,
body.fd.fd--blueprint .fab-header.overlayBannerBg .hdr-phone-link,
body.fd.fd--blueprint .fab-header.overlayBannerBg .fab-btn-social,
body.fd.fd--blueprint .fab-header.overlayBannerBg .main-menu-top .main-menu-item,
body.fd.fd--blueprint .fab-header.overlayBannerBg .main-menu-top .main-menu-item > span,
body.fd.fd--blueprint .fab-header.overlayBannerBg .main-menu-top .main-menu-item .l-icon {
  color: #0c2340 !important;
}

body.fd.fd--blueprint .fab-header.overlayBannerBg .fab-btn-social {
  border-color: #cbd5e1 !important;
}

body.fd.fd--blueprint .fab-header.overlayBannerBg .fab-btn-social:hover,
body.fd.fd--blueprint .fab-header.overlayBannerBg .fab-btn-social:active {
  color: #2563eb !important;
  border-color: #2563eb !important;
}

body.fd.fd--blueprint .fab-header.overlayBannerBg .hdr-phone-link:hover {
  color: #2563eb !important;
}

body.fd.fd--blueprint .fab-header.overlayBannerBg .main-menu-top .main-menu-item:hover > span,
body.fd.fd--blueprint .fab-header.overlayBannerBg .main-menu-top .main-menu-item.is-active > span {
  color: #2563eb !important;
}

body.fd.fd--blueprint .fab-header.overlayBannerBg .fab-btn-social-text {
  color: #fff !important;
  border-color: #2563eb !important;
}

body.fd.fd--blueprint .fab-header.overlayBannerBg .fab-btn-social.reverse,
body.fd.fd--blueprint .fab-header.overlayBannerBg .js-main-menu-toggle.reverse {
  color: #fff !important;
  background: #0c2340 !important;
  border-color: #0c2340 !important;
}

body.fd.fd--blueprint .fab-header .fab-header__logo,
body.fd.fd--blueprint .fab-header .hdr-phone-link {
  color: #0c2340;
}

body.fd.fd--blueprint .fab-header.is-scrolled {
  box-shadow: 0 4px 0 #2563eb;
}

body.fd.fd--blueprint .main-menu-top .main-menu-item > span {
  color: #334155;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color 0.15s;
}

body.fd.fd--blueprint .main-menu-top .main-menu-item:hover > span,
body.fd.fd--blueprint .main-menu-top .main-menu-item.is-active > span {
  color: #2563eb;
}

body.fd.fd--blueprint .main-menu-sub {
  background: #fff;
  border: 1px solid #94a3b8;
  box-shadow: 8px 8px 0 rgba(30, 64, 175, 0.15);
}

body.fd.fd--blueprint .main-menu-sub .sub-title {
  color: #0c2340;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
}

body.fd.fd--blueprint .main-menu-sub .sub-list a {
  color: #1e3a5f;
  padding: 0.35rem 0;
  display: block;
  /* сдвиг делаем трансформом: padding-left на длинных пунктах
     («Согласие на обработку персональных данных») менял перенос строк
     и всё меню прыгало при наведении */
  transition: color 0.12s, transform 0.12s;
}

body.fd.fd--blueprint .main-menu-sub .sub-list a:hover {
  color: #2563eb;
  transform: translateX(0.35rem);
}

body.fd.fd--blueprint .fab-btn-social {
  border: 1px solid #cbd5e1;
  border-radius: 0;
}

body.fd.fd--blueprint .fab-btn-social-text {
  background: #2563eb;
  color: #fff !important;
  box-shadow: 4px 4px 0 #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}

body.fd.fd--blueprint .mainMenuSubOverlay {
  background: rgba(12, 35, 64, 0.45);
  backdrop-filter: blur(2px);
}

body.fd.fd--blueprint .mainMenuSubOverlay.open,
body.fd.fd--blueprint .mainMenuSubOverlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Footer */
body.fd.fd--blueprint .fab-footer {
  background: #f1f5f9;
  border-top: 1px solid #cbd5e1;
  color: #1e3a5f;
}

body.fd.fd--blueprint .fab-footer .footer-title,
body.fd.fd--blueprint .fab-footer .footer-link {
  color: #334155;
}

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

body.fd.fd--blueprint .fab-footer-copy {
  border-top: 1px solid #cbd5e1;
  color: #55617a;
}

/* Menu icons */
body.fd.fd--blueprint .sub-title[data-icon]::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.4rem;
  vertical-align: -3px;
  background: center/contain no-repeat;
}

body.fd.fd--blueprint .sub-title[data-icon="print"]::before {
  background-image: url("icons/menu-print.svg");
}

body.fd.fd--blueprint .sub-title[data-icon="star"]::before {
  background-image: url("icons/menu-star.svg");
}

body.fd.fd--blueprint .sub-title[data-icon="services"]::before {
  background-image: url("icons/menu-services.svg");
}

body.fd.fd--blueprint .sub-title[data-icon="gallery"]::before {
  background-image: url("icons/menu-gallery.svg");
}

body.fd.fd--blueprint .sub-title[data-icon="company"]::before {
  background-image: url("icons/menu-company.svg");
}

body.fd.fd--blueprint .sub-title[data-icon="contacts"]::before {
  background-image: url("icons/menu-contacts.svg");
}

body.fd.fd--blueprint .sub-title[data-icon="docs"]::before {
  background-image: url("icons/menu-docs.svg");
}
