/* PROFI-RU storefront restoration, additive layer, 2026-11-27.
   Load after styles.css and super-platform.css. Activated only by the
   body.profi-visual-restored hook. Existing IDs, images and actions stay intact.
   The assistant may use --profi-bottom-safe for its own fixed positioning. */

body.profi-visual-restored {
  --profi-page-width: 1280px;
  --profi-gutter: clamp(18px, 3.5vw, 48px);
  --profi-bg: #ffffff;
  --profi-surface: #ffffff;
  --profi-soft: #f6f5f2;
  --profi-text: #1b252d;
  --profi-muted: #52616b;
  --profi-border: #e5e4df;
  --profi-accent: #bf4218;
  --profi-accent-soft: #fff0e8;
  --profi-on-accent: #ffffff;
  --profi-header: rgba(255, 255, 255, .97);
  --profi-shadow: 0 16px 44px rgba(36, 43, 45, .07);
  --profi-bottom-safe: 0px;
  --profi-anchor-offset: 144px;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: var(--profi-bottom-safe) !important;
  min-width: 0 !important;
  background: var(--profi-bg) !important;
  color: var(--profi-text) !important;
  color-scheme: light;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.profi-visual-restored.night-mode {
  --profi-bg: #071724;
  --profi-surface: #102737;
  --profi-soft: #0b2030;
  --profi-text: #eff8fb;
  --profi-muted: #b3c7d2;
  --profi-border: #294454;
  --profi-accent: #6fe6ed;
  --profi-accent-soft: #163a49;
  --profi-on-accent: #092431;
  --profi-header: rgba(7, 23, 36, .97);
  --profi-shadow: 0 20px 54px rgba(0, 0, 0, .22);
  color-scheme: dark;
}

body.profi-visual-restored .container {
  box-sizing: border-box !important;
  width: calc(100% - var(--profi-gutter) * 2) !important;
  max-width: var(--profi-page-width) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  min-width: 0 !important;
}

body.profi-visual-restored #main {
  background: var(--profi-bg) !important;
  color: var(--profi-text) !important;
}

body.profi-visual-restored #main :is(section[id], h2[id]),
body.profi-visual-restored #super-platform,
body.profi-visual-restored #profi-ecosystem {
  scroll-margin-top: var(--profi-anchor-offset);
}

body.profi-visual-restored :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--profi-accent) !important;
  outline-offset: 4px !important;
}

body.profi-visual-restored .skip-link:focus {
  z-index: 100000 !important;
}

/* Keep lettering still and opaque. Legacy sweeps crossed both header and
   navigation text, and the old brand gradient made text transparent. */
body.profi-visual-restored #top.site-header::before,
body.profi-visual-restored #top.site-header::after,
body.profi-visual-restored #top .header-menu-control::before,
body.profi-visual-restored #top .header-menu-control::after,
body.profi-visual-restored #top .theme-header-control::before,
body.profi-visual-restored #top .theme-header-control::after,
body.profi-visual-restored #main .hero::before,
body.profi-visual-restored #main .hero::after,
body.profi-visual-restored .mobile-nav::before,
body.profi-visual-restored .mobile-nav::after,
body.profi-visual-restored .mobile-nav .mobile-profi::before,
body.profi-visual-restored .mobile-nav .mobile-profi::after {
  content: none !important;
  animation: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* Header: all original controls remain available. */
body.profi-visual-restored #top.site-header {
  position: sticky !important;
  inset: 0 0 auto !important;
  z-index: 1200 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--profi-border) !important;
  background: var(--profi-header) !important;
  color: var(--profi-text) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .025) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: visible !important;
}

body.profi-visual-restored #top .header-inner {
  display: block !important;
  padding-block: 14px 0 !important;
}

/* The original single-row header used fixed 58/68/72px heights. Let both
   mobile rows contribute to the sticky header's normal-flow height. */
body.profi-visual-restored #top :is(.header-inner, .header-brand-row, .header-actions) {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

body.profi-visual-restored #top .header-brand-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 20px !important;
  align-items: center !important;
  min-width: 0 !important;
}

body.profi-visual-restored #top :is(.brand-logo-wrap, .brand-wordmark) {
  min-width: 0 !important;
  max-width: 100% !important;
  transform: none !important;
}

body.profi-visual-restored #top .brand-wordmark {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  text-decoration: none !important;
}

body.profi-visual-restored #top .brand-wordmark img {
  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  filter: none !important;
  animation: none !important;
}

body.profi-visual-restored #top .brand-title {
  min-width: 0 !important;
  font-size: clamp(17px, 1.8vw, 27px) !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: initial !important;
  color: var(--profi-text) !important;
  -webkit-text-fill-color: var(--profi-text) !important;
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  text-shadow: none !important;
  animation: none !important;
}

body.profi-visual-restored #top .header-actions {
  display: flex !important;
  gap: 7px !important;
  align-items: center !important;
  width: auto !important;
  min-width: 0 !important;
  z-index: 1 !important;
}

body.profi-visual-restored #top :is(.theme-header-control, .language-header-control) {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 3px !important;
  border: 1px solid var(--profi-border) !important;
  border-radius: 12px !important;
  background: var(--profi-surface) !important;
  color: var(--profi-text) !important;
  box-shadow: none !important;
  transform: none !important;
}

body.profi-visual-restored #top .header-utility .utility-label {
  font-size: 9px !important;
  line-height: 1.1 !important;
  color: var(--profi-muted) !important;
}

body.profi-visual-restored #top .header-utility .utility-icon {
  font-size: 19px !important;
  line-height: 1.05 !important;
  color: var(--profi-text) !important;
}

body.profi-visual-restored #top .language-header-control .utility-label {
  display: grid !important;
  place-items: center !important;
  font-size: 0 !important;
}

body.profi-visual-restored #top .language-header-control .utility-label::before {
  content: "\1F310" !important;
  display: block !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

body.profi-visual-restored #top .language-header-control select {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

body.profi-visual-restored #top .header-menu-control,
body.profi-visual-restored #top .header-request {
  min-height: 44px !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid var(--profi-accent) !important;
  border-radius: 12px !important;
  background: var(--profi-accent) !important;
  color: var(--profi-on-accent) !important;
  box-shadow: none !important;
  line-height: 1.25 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

body.profi-visual-restored #top .header-menu-control {
  display: inline-flex !important;
  width: auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

body.profi-visual-restored #top :is(.header-menu-control, .header-request) * {
  color: var(--profi-on-accent) !important;
  -webkit-text-fill-color: var(--profi-on-accent) !important;
}

body.profi-visual-restored #top .phone-header-call {
  display: inline-flex !important;
  width: auto !important;
  min-width: 44px !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 6px 10px !important;
  align-items: center !important;
  gap: 6px !important;
  border: 1px solid var(--profi-border) !important;
  border-radius: 12px !important;
  background: var(--profi-surface) !important;
  color: var(--profi-text) !important;
  box-shadow: none !important;
  font-size: 12px !important;
  z-index: 1 !important;
}

body.profi-visual-restored #top .phone-header-number {
  display: inline !important;
  color: var(--profi-text) !important;
}

body.profi-visual-restored #top .phone-header-icon {
  background: var(--profi-accent-soft) !important;
  color: var(--profi-accent) !important;
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
}

body.profi-visual-restored #top .online-pill {
  min-width: 0 !important;
  padding: 5px 8px !important;
  border: 1px solid var(--profi-border) !important;
  background: var(--profi-soft) !important;
  color: var(--profi-muted) !important;
  box-shadow: none !important;
  font-size: 11px !important;
}

body.profi-visual-restored #top .desktop-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  width: 100% !important;
  margin-top: 10px !important;
  padding: 7px 0 !important;
  overflow-x: auto !important;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--profi-border) !important;
  box-shadow: none !important;
}

body.profi-visual-restored #top .desktop-nav > a {
  flex: 0 0 auto !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--profi-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

body.profi-visual-restored #top .desktop-nav > a:hover,
body.profi-visual-restored #top .desktop-nav > a:focus-visible {
  background: var(--profi-accent-soft) !important;
  color: var(--profi-accent) !important;
}

/* Real existing photograph is restored as a proper grid item, not a faint
   masked background behind the copy. The HTML retains the original img src. */
body.profi-visual-restored #main .hero {
  position: relative !important;
  min-height: 0 !important;
  padding: clamp(28px, 4.5vw, 68px) 0 32px !important;
  background: var(--profi-bg) !important;
  color: var(--profi-text) !important;
  box-shadow: none !important;
  overflow: clip !important;
}

body.profi-visual-restored #main .hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) !important;
  grid-template-areas: "copy visual" "control control" !important;
  gap: 28px 42px !important;
  align-items: center !important;
  min-height: 0 !important;
}

body.profi-visual-restored #main .hero-copy {
  grid-area: copy !important;
  min-width: 0 !important;
  max-width: 650px !important;
  padding: 0 !important;
  color: var(--profi-text) !important;
  text-shadow: none !important;
}

body.profi-visual-restored #main .hero .eyebrow {
  display: block !important;
  color: var(--profi-accent) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  line-height: 1.5 !important;
}

body.profi-visual-restored #main .hero-copy h1 {
  margin: 16px 0 20px !important;
  max-width: 650px !important;
  color: var(--profi-text) !important;
  -webkit-text-fill-color: var(--profi-text) !important;
  background: none !important;
  font-size: clamp(34px, 3.65vw, 54px) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: -.045em !important;
  text-shadow: none !important;
  overflow-wrap: normal !important;
  text-wrap: balance;
}

body.profi-visual-restored #main .hero-copy h1::after {
  content: none !important;
}

body.profi-visual-restored #main .hero-lead {
  margin: 0 !important;
  max-width: 570px !important;
  color: var(--profi-muted) !important;
  font-size: clamp(15px, 1.2vw, 17px) !important;
  line-height: 1.75 !important;
  font-weight: 500 !important;
}

body.profi-visual-restored #main .hero-visual {
  grid-area: visual !important;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: clamp(380px, 39vw, 510px) !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--profi-border) !important;
  border-radius: 28px !important;
  background: #102a3e !important;
  opacity: 1 !important;
  overflow: hidden !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  box-shadow: var(--profi-shadow) !important;
  transform: none !important;
  z-index: 1 !important;
}

body.profi-visual-restored #main .hero-visual img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: 65% center !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  transform: none !important;
}

body.profi-visual-restored #main .hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 26px 0 !important;
}

body.profi-visual-restored #main .hero-actions .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  max-width: 100% !important;
  padding: 12px 17px !important;
  border: 1px solid var(--profi-border) !important;
  border-radius: 12px !important;
  background: var(--profi-surface) !important;
  color: var(--profi-text) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  box-shadow: none !important;
}

body.profi-visual-restored #main .hero-actions .btn-accent {
  border-color: var(--profi-accent) !important;
  background: var(--profi-accent) !important;
  color: var(--profi-on-accent) !important;
}

body.profi-visual-restored #main .hero-actions .btn-accent * {
  color: var(--profi-on-accent) !important;
}

body.profi-visual-restored #main .hero-trust {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 15px !important;
  padding-top: 20px !important;
  border-top: 1px solid var(--profi-border) !important;
}

body.profi-visual-restored #main .hero-trust strong {
  color: var(--profi-text) !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

body.profi-visual-restored #main .hero-trust span {
  margin-top: 5px !important;
  color: var(--profi-muted) !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
}

body.profi-visual-restored #main .hero-card {
  grid-area: control !important;
  display: grid !important;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 2fr) !important;
  gap: 10px 26px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 22px 24px !important;
  border: 1px solid var(--profi-border) !important;
  border-radius: 20px !important;
  background: var(--profi-soft) !important;
  color: var(--profi-text) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.profi-visual-restored #main .hero-card-top {
  grid-column: 1 !important;
  color: var(--profi-text) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  font-weight: 800 !important;
}

body.profi-visual-restored #main .hero-card > p {
  grid-column: 1 !important;
  margin: 0 !important;
  color: var(--profi-muted) !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
}

body.profi-visual-restored #main .hero-card .remote-preview {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
}

body.profi-visual-restored #main .hero-card .preview-line {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-content: start !important;
  gap: 7px !important;
  min-width: 0 !important;
  min-height: 84px !important;
  padding: 11px !important;
  border: 1px solid var(--profi-border) !important;
  border-radius: 12px !important;
  background: var(--profi-surface) !important;
  color: var(--profi-text) !important;
}

body.profi-visual-restored #main .hero-card .preview-line b {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  color: var(--profi-text) !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
}

body.profi-visual-restored #main .hero-card .preview-line :is(span, i) {
  color: var(--profi-muted) !important;
  font-size: 10px !important;
}

body.profi-visual-restored #main .hero-card .preview-line.active {
  border-color: var(--profi-accent) !important;
  background: var(--profi-accent-soft) !important;
}

/* Photographs and captions stay visible, with no moving glare over text. */
body.profi-visual-restored #main .visual-strip {
  padding: 0 0 28px !important;
  border: 0 !important;
  background: var(--profi-bg) !important;
}

body.profi-visual-restored #main .visual-strip-track {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: calc(100% - var(--profi-gutter) * 2) !important;
  max-width: var(--profi-page-width) !important;
  margin-inline: auto !important;
  padding: 0 !important;
}

body.profi-visual-restored #main .visual-strip figure {
  position: relative !important;
  height: 128px !important;
  border-radius: 14px !important;
  background: var(--profi-soft) !important;
  box-shadow: none !important;
}

body.profi-visual-restored #main .visual-strip img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform .35s ease !important;
}

body.profi-visual-restored #main .visual-strip figcaption {
  inset: auto 0 0 !important;
  padding: 24px 10px 10px !important;
  color: #ffffff !important;
  background: linear-gradient(transparent, rgba(6, 18, 26, .84)) !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  text-shadow: none !important;
}

body.profi-visual-restored #main :is(.section, .vip-section) {
  padding-block: clamp(48px, 6vw, 80px) !important;
  background: var(--profi-bg) !important;
  color: var(--profi-text) !important;
}

body.profi-visual-restored #main :is(.section-soft, #premium-showcase, #portfolio) {
  background: var(--profi-soft) !important;
}

body.profi-visual-restored #main .section-head {
  gap: 24px !important;
  align-items: end !important;
  margin-bottom: 30px !important;
}

body.profi-visual-restored #main .section-head h2,
body.profi-visual-restored #super-platform .super-platform-head h2 {
  margin: 9px 0 0 !important;
  color: var(--profi-text) !important;
  font-size: clamp(25px, 2.8vw, 38px) !important;
  line-height: 1.2 !important;
  letter-spacing: -.035em !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

body.profi-visual-restored #main .section-head .eyebrow,
body.profi-visual-restored #super-platform .eyebrow {
  color: var(--profi-accent) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
}

body.profi-visual-restored #main .section-head > p,
body.profi-visual-restored #super-platform .super-platform-head p {
  color: var(--profi-muted) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
}

body.profi-visual-restored #premium-showcase .premium-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: auto !important;
  gap: 18px !important;
}

body.profi-visual-restored #premium-showcase .premium-tile,
body.profi-visual-restored #portfolio .portfolio-grid figure {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--profi-border) !important;
  border-radius: 20px !important;
  background: var(--profi-surface) !important;
  color: var(--profi-text) !important;
  overflow: hidden !important;
  box-shadow: var(--profi-shadow) !important;
  transform: none !important;
}

body.profi-visual-restored #premium-showcase .premium-tile-wide {
  grid-column: span 2 !important;
  grid-row: auto !important;
}

body.profi-visual-restored #premium-showcase .premium-tile::before,
body.profi-visual-restored #premium-showcase .premium-tile::after,
body.profi-visual-restored #portfolio .portfolio-grid figure::before {
  content: none !important;
}

body.profi-visual-restored #premium-showcase .premium-tile > img,
body.profi-visual-restored #portfolio .portfolio-grid figure > img {
  position: static !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: transform .35s ease !important;
}

body.profi-visual-restored #premium-showcase .premium-tile > figcaption,
body.profi-visual-restored #portfolio .portfolio-grid figure > figcaption {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  flex: 1 0 auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 17px 19px !important;
  background: var(--profi-surface) !important;
  color: var(--profi-text) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  text-shadow: none !important;
  transform: none !important;
}

body.profi-visual-restored #premium-showcase .premium-tile figcaption b,
body.profi-visual-restored #portfolio .portfolio-grid figcaption * {
  display: block !important;
  color: var(--profi-text) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

body.profi-visual-restored #premium-showcase .premium-tile figcaption span {
  display: block !important;
  margin-top: 4px !important;
  color: var(--profi-muted) !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
}

body.profi-visual-restored #premium-showcase .materials-supplier-wall {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 24px !important;
  border: 1px solid var(--profi-border) !important;
  border-radius: 20px !important;
  background: var(--profi-surface) !important;
  color: var(--profi-text) !important;
}

body.profi-visual-restored #premium-showcase .materials-supplier-wall h3 {
  color: var(--profi-text) !important;
}

body.profi-visual-restored #premium-showcase .materials-supplier-wall p {
  color: var(--profi-muted) !important;
}

body.profi-visual-restored #portfolio .portfolio-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

body.profi-visual-restored #main :is(.service-card, .remote-card, .review-card) {
  border: 1px solid var(--profi-border) !important;
  border-radius: 20px !important;
  background: var(--profi-surface) !important;
  color: var(--profi-text) !important;
  box-shadow: var(--profi-shadow) !important;
}

body.profi-visual-restored #main :is(.service-card, .remote-card, .review-card) h3 {
  color: var(--profi-text) !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}

body.profi-visual-restored #main :is(.service-card, .remote-card, .review-card) p {
  color: var(--profi-muted) !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
}

/* Compact bridge to the retained management features, below the visual work. */
body.profi-visual-restored #super-platform {
  padding-block: 48px !important;
  background: var(--profi-soft) !important;
  color: var(--profi-text) !important;
  border-block: 1px solid var(--profi-border) !important;
  box-shadow: none !important;
}

body.profi-visual-restored #super-platform .platform-card {
  min-height: 150px !important;
  padding: 18px !important;
  border: 1px solid var(--profi-border) !important;
  border-radius: 16px !important;
  background: var(--profi-surface) !important;
  color: var(--profi-text) !important;
  box-shadow: none !important;
}

body.profi-visual-restored #super-platform .platform-card h3 {
  color: var(--profi-text) !important;
  font-size: 15px !important;
}

body.profi-visual-restored #super-platform .platform-card p {
  color: var(--profi-muted) !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}

body.profi-visual-restored .eco-bar {
  background: var(--profi-surface) !important;
  border-color: var(--profi-border) !important;
  box-shadow: none !important;
}

body.profi-visual-restored .eco-bar-inner {
  gap: 8px !important;
  padding-block: 13px !important;
}

body.profi-visual-restored .eco-bar-inner > a {
  background: var(--profi-soft) !important;
  color: var(--profi-text) !important;
  border-color: var(--profi-border) !important;
  padding: 9px 13px !important;
  font-size: 11px !important;
}

body.profi-visual-restored #profi-ecosystem {
  padding-block: 28px !important;
  background: var(--profi-bg) !important;
  color: var(--profi-text) !important;
}

body.profi-visual-restored #profi-ecosystem a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--profi-border);
  border-radius: 12px;
  background: var(--profi-surface);
  color: var(--profi-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* Never hide an original modal. Hide duplicate launchers only after the new
   assistant has successfully installed equivalent controls. */
body.profi-visual-restored.profi-assistant-ready .profi-tools,
body.profi-visual-restored.profi-assistant-ready #profiHubFab,
body.profi-visual-restored.profi-assistant-ready .chat-fab,
body.profi-visual-restored.profi-assistant-ready #liveChatLaunch {
  display: none !important;
}

body.profi-visual-restored .mobile-nav {
  display: none !important;
}

@media (max-width: 1180px) {
  body.profi-visual-restored #top .phone-header-call {
    width: 44px !important;
    padding: 5px !important;
    justify-content: center !important;
  }
  body.profi-visual-restored #top .phone-header-number {
    display: none !important;
  }
  body.profi-visual-restored #main .hero-grid {
    gap: 24px !important;
  }
  body.profi-visual-restored #main .hero-card {
    grid-template-columns: minmax(160px, .65fr) minmax(0, 2fr) !important;
  }
}

@media (max-width: 980px) {
  body.profi-visual-restored {
    --profi-bottom-safe: calc(76px + env(safe-area-inset-bottom, 0px));
    --profi-anchor-offset: 128px;
    --profi-gutter: 22px;
  }
  body.profi-visual-restored #top .header-inner {
    padding-block: 10px !important;
  }
  body.profi-visual-restored #top .header-brand-row {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    position: relative !important;
  }
  body.profi-visual-restored #top .brand-logo-wrap {
    padding-right: 80px !important;
  }
  body.profi-visual-restored #top .brand-wordmark img {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
  }
  body.profi-visual-restored #top .brand-title {
    font-size: clamp(17px, 3.9vw, 23px) !important;
    line-height: 1.15 !important;
  }
  body.profi-visual-restored #top .header-actions {
    display: grid !important;
    grid-template-columns: 44px 44px 44px minmax(0, 1fr) 74px !important;
    gap: 8px !important;
    width: 100% !important;
    position: static !important;
  }
  body.profi-visual-restored #top .online-pill {
    position: absolute !important;
    top: 6px !important;
    right: 0 !important;
    margin: 0 !important;
  }
  body.profi-visual-restored #top .header-request {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-inline: 9px !important;
    width: 100% !important;
    white-space: normal !important;
  }
  body.profi-visual-restored #top .header-menu-control {
    padding-inline: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body.profi-visual-restored #top .desktop-nav {
    display: none !important;
  }
  body.profi-visual-restored #main .hero {
    padding-top: 24px !important;
  }
  body.profi-visual-restored #main .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 22px !important;
  }
  body.profi-visual-restored #main .hero-copy h1 {
    font-size: clamp(29px, 4.2vw, 39px) !important;
  }
  body.profi-visual-restored #main .hero-visual {
    height: 410px !important;
    border-radius: 22px !important;
  }
  body.profi-visual-restored #main .hero-card {
    grid-template-columns: 1fr !important;
  }
  body.profi-visual-restored #main .hero-card .remote-preview {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  body.profi-visual-restored #main .hero-card > p {
    grid-row: auto !important;
  }
  body.profi-visual-restored #main .visual-strip-track {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  body.profi-visual-restored #premium-showcase .premium-gallery,
  body.profi-visual-restored #portfolio .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.profi-visual-restored .mobile-nav {
    position: fixed !important;
    inset: auto 0 0 !important;
    z-index: 1100 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: var(--profi-bottom-safe) !important;
    margin: 0 !important;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    border: 0 !important;
    border-top: 1px solid var(--profi-border) !important;
    border-radius: 0 !important;
    background: var(--profi-header) !important;
    color: var(--profi-text) !important;
    box-shadow: 0 -5px 24px rgba(0, 0, 0, .07) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    transform: none !important;
    box-sizing: border-box !important;
  }
  body.profi-visual-restored .mobile-nav > :is(a, button) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 59px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 5px 2px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--profi-muted) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transform: none !important;
    overflow: hidden !important;
  }
  body.profi-visual-restored .mobile-nav > a span {
    color: var(--profi-muted) !important;
    font-size: 21px !important;
    line-height: 1 !important;
  }
  body.profi-visual-restored .mobile-nav > :is(a, button) small {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    text-align: center !important;
  }
  body.profi-visual-restored .mobile-nav > .mobile-profi {
    border: 1px solid var(--profi-accent) !important;
    background: var(--profi-accent) !important;
    color: var(--profi-on-accent) !important;
  }
  body.profi-visual-restored .mobile-nav > .mobile-profi :is(span, small) {
    color: var(--profi-on-accent) !important;
    -webkit-text-fill-color: var(--profi-on-accent) !important;
  }
  body.profi-visual-restored .mobile-nav > .mobile-profi span {
    font-size: 22px !important;
    line-height: 1 !important;
  }
  body.profi-visual-restored .mobile-nav > a:is(:hover, .active) {
    background: var(--profi-accent-soft) !important;
    color: var(--profi-accent) !important;
  }
  body.profi-visual-restored .mobile-nav .mobile-material-icon svg {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    fill: currentColor !important;
  }
  /* Fallback launchers remain usable until assistant-ready is set. */
  body.profi-visual-restored:not(.profi-assistant-ready) #liveChatLaunch {
    bottom: calc(var(--profi-bottom-safe) + 14px) !important;
    right: 14px !important;
  }
  body.profi-visual-restored:not(.profi-assistant-ready) .chat-fab {
    bottom: calc(var(--profi-bottom-safe) + 14px) !important;
    left: 14px !important;
    right: auto !important;
  }
  body.profi-visual-restored:not(.profi-assistant-ready) .profi-tools {
    bottom: calc(var(--profi-bottom-safe) + 76px) !important;
    left: 14px !important;
    right: auto !important;
  }
  body.profi-visual-restored:not(.profi-assistant-ready) #profiHubFab {
    bottom: calc(var(--profi-bottom-safe) + 76px) !important;
    right: 14px !important;
  }
}

@media (max-width: 700px) {
  body.profi-visual-restored {
    --profi-gutter: 18px;
  }
  body.profi-visual-restored #top .header-actions {
    grid-template-columns: 44px 44px 44px minmax(0, 1fr) 68px !important;
    gap: 6px !important;
  }
  body.profi-visual-restored #main .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "visual" "copy" "control" !important;
    gap: 24px !important;
  }
  body.profi-visual-restored #main .hero {
    padding-top: 18px !important;
    padding-bottom: 24px !important;
  }
  body.profi-visual-restored #main .hero-visual {
    height: auto !important;
    aspect-ratio: 16 / 10;
    min-height: 210px !important;
    max-height: 340px !important;
    border-radius: 20px !important;
  }
  body.profi-visual-restored #main .hero-visual img {
    position: absolute !important;
    inset: 0 !important;
  }
  body.profi-visual-restored #main .hero-copy h1 {
    margin-block: 12px 16px !important;
    font-size: clamp(29px, 7.8vw, 42px) !important;
    line-height: 1.12 !important;
  }
  body.profi-visual-restored #main .hero-lead {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }
  body.profi-visual-restored #main .hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-block: 22px !important;
  }
  body.profi-visual-restored #main .hero-actions > :first-child {
    grid-column: 1 / -1 !important;
  }
  body.profi-visual-restored #main .hero-actions > :last-child:nth-child(2) {
    grid-column: 1 / -1 !important;
  }
  body.profi-visual-restored #main .hero-actions .btn {
    font-size: 11px !important;
    padding-inline: 10px !important;
  }
  body.profi-visual-restored #main .hero-trust strong {
    font-size: 26px !important;
  }
  body.profi-visual-restored #main .hero-card {
    padding: 18px !important;
    gap: 12px !important;
  }
  body.profi-visual-restored #main .hero-card .remote-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  body.profi-visual-restored #main .hero-card .preview-line {
    min-height: 74px !important;
  }
  body.profi-visual-restored #main .visual-strip-track {
    gap: 8px !important;
  }
  body.profi-visual-restored #main .visual-strip figure {
    height: 100px !important;
    border-radius: 12px !important;
  }
  body.profi-visual-restored #main .visual-strip figcaption {
    font-size: 9px !important;
    padding: 22px 7px 8px !important;
  }
  body.profi-visual-restored #main .section-head {
    display: block !important;
    margin-bottom: 24px !important;
  }
  body.profi-visual-restored #main .section-head > p {
    margin-top: 14px !important;
  }
  body.profi-visual-restored #premium-showcase .premium-gallery,
  body.profi-visual-restored #portfolio .portfolio-grid {
    gap: 12px !important;
  }
  body.profi-visual-restored #premium-showcase .premium-tile > img,
  body.profi-visual-restored #portfolio .portfolio-grid figure > img {
    height: 180px !important;
  }
  body.profi-visual-restored #premium-showcase .premium-tile-wide > img {
    height: 230px !important;
  }
  body.profi-visual-restored #premium-showcase .premium-tile > figcaption,
  body.profi-visual-restored #portfolio .portfolio-grid figure > figcaption {
    padding: 13px !important;
    font-size: 12px !important;
  }
  body.profi-visual-restored #premium-showcase .premium-tile figcaption b {
    font-size: 13px !important;
  }
  body.profi-visual-restored #premium-showcase .materials-supplier-wall {
    padding: 18px !important;
  }
  body.profi-visual-restored #super-platform {
    padding-block: 38px !important;
  }
}

@media (max-width: 380px) {
  body.profi-visual-restored {
    --profi-gutter: 14px;
  }
  body.profi-visual-restored #top .brand-title {
    font-size: 16px !important;
  }
  body.profi-visual-restored #top .header-actions {
    grid-template-columns: 44px 44px 44px minmax(0, 1fr) 60px !important;
    gap: 4px !important;
  }
  body.profi-visual-restored #top :is(.header-request, .header-menu-control) {
    padding-inline: 4px !important;
    font-size: 10px !important;
  }
  body.profi-visual-restored #premium-showcase .premium-gallery,
  body.profi-visual-restored #portfolio .portfolio-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.profi-visual-restored #premium-showcase .premium-tile-wide {
    grid-column: 1 !important;
  }
  body.profi-visual-restored #premium-showcase .premium-tile > img,
  body.profi-visual-restored #portfolio .portfolio-grid figure > img {
    height: 225px !important;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.profi-visual-restored #main .visual-strip figure:hover img,
  body.profi-visual-restored #premium-showcase .premium-tile:hover > img,
  body.profi-visual-restored #portfolio .portfolio-grid figure:hover > img {
    transform: scale(1.025) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.profi-visual-restored *,
  body.profi-visual-restored *::before,
  body.profi-visual-restored *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html:has(> body.profi-visual-restored) {
    scroll-behavior: auto !important;
  }
}
