:root {
  --bp-bg: #071124;
  --bp-panel: #101b2d;
  --bp-primary: #f59e0b;
}

.legacy-brand-link { text-decoration: none; }
.legacy-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 36, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid hsl(var(--border));
}
.legacy-site-header-inner {
  height: 80px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
}
.legacy-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.legacy-brand-mark {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(240,158,24,.35));
}
.legacy-brand-text {
  font-family: var(--font-display,inherit);
  font-size: 18px;
  line-height: .9;
  text-transform: uppercase;
  color: hsl(var(--foreground));
}
.legacy-brand-text span { color: hsl(var(--primary)); }
.legacy-site-nav {
  display: none;
  align-items: center;
  gap: 2px;
}
.legacy-site-nav a {
  font-family: var(--font-mono,monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  padding: 10px 13px;
  border-radius: 4px;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.legacy-site-nav a:hover,
.legacy-site-nav a[data-active="true"] {
  color: hsl(var(--primary));
  background: rgba(245,158,11,.08);
}
.legacy-site-phone {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  padding: 10px 13px;
  font-family: var(--font-mono,monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: hsl(var(--foreground));
  text-decoration: none;
}
.legacy-site-phone:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}
.legacy-site-menu-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  gap: 4px;
  background: hsl(var(--panel));
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  color: #fff;
}
.legacy-site-menu-toggle span,
.legacy-site-menu-toggle::before,
.legacy-site-menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: .18s ease;
}
.legacy-site-menu-toggle[aria-expanded="true"] span { opacity: 0; }
.legacy-site-menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.legacy-site-menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }
.bp-brand-flame svg { width: 24px; height: 24px; color: hsl(var(--primary-foreground)); stroke-width: 2.5; }
.bp-inline-icon svg,
.bp-marquee-flame svg,
.bp-chevron-icon svg { width: 16px; height: 16px; }
.bp-marquee-flame svg { color: hsl(var(--primary)); }
.bp-benefit-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.bp-benefit-flame svg { width: 256px; height: 256px; stroke-width: 1.2; }
.bp-footer-icon svg,
.bp-social-icon svg { width: 16px; height: 16px; }
.legacy-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.legacy-site-nav ul,
.legacy-site-mobile ul,
.legacy-footer-links ul { display: contents; }
.legacy-site-nav li,
.legacy-site-mobile li,
.legacy-footer-links li { list-style: none; }
.legacy-site-nav a[aria-current="page"],
.legacy-site-mobile a[aria-current="page"] { color: hsl(var(--primary)); }

.legacy-footer-brand-text {
  font-family: var(--font-display,inherit);
  font-size: 20px;
  line-height: .95;
  text-transform: uppercase;
}
.legacy-footer-brand-text span { color: hsl(var(--primary)); }
.legacy-site-footer {
  background: #0d1729 !important;
  color: #f8fafc !important;
  border-top: 1px solid rgba(148,163,184,.16) !important;
}
.legacy-site-footer .hazard-stripe { height: 8px; width: 100%; }
.legacy-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
.legacy-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #f8fafc;
  text-decoration: none;
}
.legacy-footer-copy {
  max-width: 320px;
  color: #9aa8bb;
  font-size: 14px;
  line-height: 1.65;
}
.legacy-footer-title {
  font-family: var(--font-mono,monospace);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 24px;
}
.legacy-footer-list { display: grid; gap: 16px; }
.legacy-footer-row {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  align-items: start;
  gap: 12px;
  color: #e5edf8;
  font-size: 14px;
  line-height: 1.55;
}
.legacy-footer-row svg {
  width: 16px;
  height: 16px;
  color: hsl(var(--primary));
  margin-top: 3px;
  stroke-width: 1.9;
}
.legacy-footer-row a {
  color: #f8fafc;
  text-decoration: none;
}
.legacy-footer-row a:hover { color: hsl(var(--primary)); }
.legacy-footer-muted { color: #9aa8bb; }
.legacy-footer-socials { display: flex; gap: 12px; }
.legacy-footer-social {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid rgba(148,163,184,.18);
  background: #162236;
  display: grid;
  place-items: center;
  color: #f8fafc;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.legacy-footer-social:hover {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: #071124;
}
.legacy-footer-social svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}
.legacy-footer-bottom { border-top: 1px solid rgba(148,163,184,.16); }
.legacy-footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: center;
  font-family: var(--font-mono,monospace);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #9aa8bb;
}

.legacy-site-mobile {
  position: fixed;
  left: 0;
  right: 0;
  top: 80px;
  z-index: 49;
  display: block;
  max-height: 0;
  overflow: hidden auto;
  border-top: 1px solid hsl(var(--border));
  background:
    linear-gradient(180deg, rgba(8, 15, 30, .99), rgba(7, 17, 36, .98)),
    hsl(var(--background));
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-height .24s ease, opacity .18s ease, transform .18s ease, box-shadow .24s ease;
}
.legacy-site-mobile-inner {
  min-height: 0;
  overflow: hidden;
  padding: 10px 0 18px;
}
.legacy-site-mobile.is-open {
  max-height: calc(100vh - 80px);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.legacy-site-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 18px 24px;
  border-bottom: 1px solid hsl(var(--border));
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  text-decoration: none;
}
.legacy-site-mobile a[data-active="true"] {
  color: hsl(var(--primary));
  background: rgba(245,158,11,.08);
}
.legacy-site-mobile a::after {
  content: "→";
  color: hsl(var(--primary));
  opacity: .8;
}
.legacy-site-mobile .legacy-mobile-phone {
  margin: 14px 24px 0;
  min-height: 54px;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(245,158,11,.55);
  border-radius: 6px;
  background: rgba(245,158,11,.08);
  color: #f8fafc;
}
.legacy-site-mobile .legacy-mobile-phone::after { content: ""; display: none; }
.legacy-mobile-cta {
  width: calc(100% - 48px);
  min-height: 54px;
  margin: 12px 24px 0;
  border: 1px solid hsl(var(--primary));
  border-radius: 6px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.legacy-mobile-backdrop {
  position: fixed;
  inset: 80px 0 0;
  z-index: 48;
  display: none;
  background: rgba(5, 9, 18, .62);
  backdrop-filter: blur(3px);
}
.legacy-mobile-backdrop.is-open { display: block; }
html.legacy-mobile-menu-open,
html.legacy-mobile-menu-open body { overflow: hidden; }

.bp-cf7-card {
  background: #071124;
  border: 1px solid rgba(245,158,11,.35);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
}

.legacy-hero-video-section {
  position: relative !important;
  overflow: hidden !important;
  background: #050914 !important;
}
.legacy-hero-video-section > video.legacy-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.08) contrast(1.08) brightness(.72);
}
.legacy-hero-video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,9,18,.86) 0%, rgba(5,9,18,.66) 42%, rgba(5,9,18,.35) 100%),
    linear-gradient(180deg, rgba(5,9,18,.42) 0%, rgba(5,9,18,.1) 46%, rgba(5,9,18,.82) 100%);
}
.legacy-hero-video-section > *:not(.legacy-hero-video) {
  position: relative;
  z-index: 2;
}
.legacy-product-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050914;
}
.legacy-product-video-fallback { display: none !important; }
.legacy-viber {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
  margin-left: 8px;
  vertical-align: -3px;
  display: inline-block;
  filter: brightness(0) invert(1);
}
section.bg-primary a[href^="tel:"] {
  color: #f8fafc !important;
  background: #071124 !important;
}
section.bg-primary a[href^="tel:"] .font-display {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #f8fafc !important;
  font-weight: 900 !important;
}
section.bg-primary a[href^="tel:"] .legacy-viber {
  margin-left: 10px;
  filter: brightness(0) invert(1);
}
.legacy-services-grid {
  border: 0 !important;
  gap: 18px !important;
  background: transparent !important;
  overflow: visible !important;
}
.legacy-service-card {
  position: relative !important;
  min-height: 430px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(245,158,11,.22) !important;
  border-radius: 8px !important;
  background: #08111f !important;
  isolation: isolate;
}
.legacy-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,9,18,.08) 0%, rgba(5,9,18,.36) 42%, rgba(5,9,18,.92) 100%);
}
.legacy-service-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, hsl(var(--primary)), rgba(245,158,11,0));
}
.legacy-service-card:hover {
  border-color: hsl(var(--primary)) !important;
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
}
.legacy-service-media {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  height: 100% !important;
  border-radius: 0 !important;
  background: #050914 !important;
}
.legacy-service-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.02);
  transition: transform .65s ease, filter .65s ease;
}
.legacy-service-card:hover .legacy-service-media img {
  transform: scale(1.09);
  filter: saturate(1.2) contrast(1.12);
}
.legacy-service-body {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: block !important;
  padding: 96px 28px 34px !important;
  color: #f8fafc !important;
}
.legacy-service-card h4 {
  font-size: clamp(20px,2vw,30px) !important;
  line-height: .95 !important;
  max-width: 88%;
  font-weight: 900 !important;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.legacy-service-copy {
  margin-top: 16px;
  max-width: 520px;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.55;
}
.legacy-service-index,
.legacy-service-chip {
  position: absolute;
  z-index: 3;
  font-family: monospace;
  color: hsl(var(--primary));
  background: rgba(5,9,18,.62);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 999px;
  padding: 8px 11px;
}
.legacy-service-index {
  top: 24px;
  left: 24px;
  font-size: 12px;
  letter-spacing: .18em;
}
.legacy-service-chip {
  top: 24px;
  right: 24px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f8fafc;
  border-color: rgba(255,255,255,.16);
}
.legacy-service-card svg {
  position: absolute;
  right: 28px;
  bottom: 34px;
  z-index: 3;
  opacity: 1 !important;
  transform: none !important;
  color: hsl(var(--primary)) !important;
}
h1, h2, h3, .font-display { font-weight: 900 !important; }

.legacy-popup-trigger {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(245, 158, 11, .72);
  border-radius: 6px;
  background: #101b30;
  color: #f8fafc;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.legacy-popup-trigger:hover { background: hsl(var(--primary)); color: #071124; }
.legacy-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.legacy-popup.is-open { display: flex; }
.legacy-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 18, .76);
  backdrop-filter: blur(7px);
}
.legacy-popup-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #0d1729;
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 44px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}
.legacy-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
}
.legacy-popup-close svg { width: 18px; height: 18px; }
html.legacy-popup-open,
html.legacy-popup-open body { overflow: hidden; }
.bp-form-grid { display: grid; gap: 14px; }
.bp-form-grid label {
  display: grid;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}
.bp-form-grid input,
.bp-form-grid textarea,
.bp-form-grid select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 5px;
  background: rgba(255,255,255,.05);
  color: #f8fafc;
  padding: 15px 16px;
  outline: none;
  font-family: var(--font-body, sans-serif);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}
.bp-form-grid input:focus,
.bp-form-grid textarea:focus,
.bp-form-grid select:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px rgba(245,158,11,.16);
}
.bp-form-grid input[type="submit"],
.bp-form-grid .wpcf7-submit {
  cursor: pointer;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.bp-form-consent { color: #cbd5e1; letter-spacing: 0; text-transform: none; }
.wpcf7-not-valid-tip { margin-top: 6px; color: #fca5a5; font-size: 13px; }
.wpcf7-response-output { color: #f8fafc; border-radius: 5px; margin: 18px 0 0 !important; }

@media (max-width: 767px) {
  .legacy-site-header-inner {
    height: 72px;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .legacy-brand-mark {
    width: 38px !important;
    height: 38px !important;
  }
  .legacy-brand-text { font-size: 16px; }
  .legacy-popup-trigger { left: 14px; right: 14px; justify-content: center; }
  .legacy-popup-panel { padding: 28px 20px; }
  .legacy-site-mobile { top: 72px; }
  .legacy-mobile-backdrop { inset: 72px 0 0; }
}

@media (min-width: 768px) {
  .legacy-site-mobile,
  .legacy-mobile-backdrop { display: none !important; }
  .legacy-site-header-inner { display: flex; justify-content: space-between; }
  .legacy-site-nav { display: flex; }
  .legacy-site-phone { display: inline-flex; }
  .legacy-site-menu-toggle { display: none; }
  .legacy-footer-inner {
    grid-template-columns: minmax(240px, 1fr) minmax(260px, .95fr) minmax(260px, .9fr) minmax(120px, .45fr);
    align-items: start;
  }
  .legacy-footer-bottom-inner {
    flex-direction: row;
    text-align: left;
  }
  .legacy-footer-license { text-align: right; }
  .legacy-benefits-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .legacy-benefit-feature {
    grid-column: span 3 / span 3;
    grid-row: span 2 / span 2;
  }
  .legacy-benefit-01,
  .legacy-benefit-02 {
    grid-column: span 3 / span 3;
  }
  .legacy-benefit-03,
  .legacy-benefit-04,
  .legacy-benefit-05 {
    grid-column: span 2 / span 2;
  }
  .legacy-benefit-06 {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .legacy-service-card { min-height: 430px !important; }
}

@media (max-width: 767px) {
  .legacy-service-card { min-height: 360px !important; }
  .legacy-service-body { padding: 82px 22px 30px !important; }
  .legacy-service-copy { font-size: 14px; }
  .legacy-service-chip { display: none; }
}
