/* Site-wide typography authority. Loaded after the legacy bundle. */
:root {
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --ui-font-family-primary: 'Manrope', sans-serif;
  --ui-font-family-secondary: 'Manrope', sans-serif;
  --ui-font-family-open-sans: 'Manrope', sans-serif;
  --ui-font-family-helvetica: 'Manrope', sans-serif;
}

/* Readability guard: display headings must never collide with body copy. */
:is(
  .page-title,
  .ls-hero h1,
  .up-hero h1,
  .products-hero h1,
  .ac-hero h1,
  .team-page .page-title,
  .premium-service .page-title,
  .hub-cleanup .page-title,
  .automation-page .page-title,
  .sp-hero h1
) {
  line-height: 1.02 !important;
}

:is(
  .auto-section-head h2,
  .auto-stack h2,
  .ls-section h2,
  .sp-section h2,
  .sp-command-copy h2,
  .hub-head h2,
  .hub-dark h2,
  .hub-playbook h2,
  .ac-head h2,
  .ac-ai-copy h2,
  .ac-ai-head h2,
  .product-section-head h2,
  .cloyal-stage-head h2,
  .product-integrations h2,
  .pricing-copy h2,
  .sp-expansion h2,
  .up-intro h2
) {
  line-height: 1.04 !important;
}

:where(main section) :is(h1, h2, h3) + p {
  position: relative;
  margin-top: clamp(.85rem, 1.3vw, 1.3rem);
}

html,
body,
body *:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not([class^="fa-"]):not([class*=" fa-"]):not([class^="concept-"]):not([class*=" concept-"]):not(.slick-prev):not(.slick-next):not(.ui-icon-set):not([class^="ui-icon"]):not([class*=" ui-icon"]) {
  font-family: 'Manrope', sans-serif !important;
}

/* Native controls do not reliably inherit the body font in every browser. */
button,
input,
select,
textarea,
option,
[type="button"],
[type="submit"],
[type="reset"],
[role="button"],
.btn,
.button,
.button-def,
.button-grey,
.button-second,
.popup-window-button,
.header-contact-btn,
.mobile-menu-btn,
.service-banner-btn,
.fixed-contact-btn,
.whatsapp-button,
.team-all-action .btn {
  font-family: 'Manrope', sans-serif !important;
  font-synthesis: none;
}

button *:not(.fa):not(.fas):not(.far):not(.fab),
[role="button"] *:not(.fa):not(.fas):not(.far):not(.fab),
.btn *:not(.fa):not(.fas):not(.far):not(.fab),
.button-def *:not(.fa):not(.fas):not(.far):not(.fab),
.popup-window-button *:not(.fa):not(.fas):not(.far):not(.fab) {
  font-family: 'Manrope', sans-serif !important;
}

/* Home hero alignment: safe spacing without overlap. */
.hero .hero-features {
  position: relative;
  top: -12px;
  transform: none !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
}

/* Keep the logo rail compact even when legacy section rules are present. */
.brand-orbit {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  padding: 10px 0 !important;
  overflow: hidden !important;
}

.lux-page main .brand-orbit > .brand-orbit-glow {
  position: absolute !important;
  inset: 50% auto auto 50% !important;
  width: 520px !important;
  height: 220px !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.brand-orbit .brand-track-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 100% !important;
  height: 76px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2 !important;
}

.brand-orbit .brand-track {
  position: absolute !important;
  top: 4px !important;
  left: 0 !important;
  display: inline-flex !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  height: 68px !important;
  align-items: center !important;
  animation: premium-brand-marquee 46s linear infinite !important;
  will-change: transform;
}

.brand-orbit .brand-set {
  display: inline-flex !important;
  align-items: center !important;
  width: max-content !important;
  min-width: max-content !important;
  flex: none !important;
}

.brand-orbit .brand-pill {
  flex: 0 0 auto !important;
  min-width: 158px !important;
  width: auto !important;
  height: 64px !important;
}

@keyframes premium-brand-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Premium team presentation on the home page. */
#specialists-home {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 171, 227, .11), transparent 34%),
    linear-gradient(180deg, #f8fcff 0%, #fff 42%, #f7fbff 100%) !important;
}

#specialists-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 71, 126, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 71, 126, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 78%);
  pointer-events: none;
}

#specialists-home .container {
  position: relative;
  z-index: 2;
}

.team-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .75rem;
  color: #0877bb;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.team-section-kicker span {
  width: 28px;
  height: 2px;
  border-radius: 10px;
  background: linear-gradient(90deg, #084487, #0db9ed);
}

#specialists-home .home-specialists-grid {
  gap: 1.25rem;
  padding: 1rem;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(13, 103, 162, .1);
  border-radius: 30px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 28px 80px rgba(0, 55, 102, .1), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px);
}

#specialists-home .home-spec-card {
  position: relative;
  border-color: rgba(4, 74, 127, .12);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 35px rgba(0, 50, 92, .07);
  transition: transform .45s cubic-bezier(.2,.75,.25,1), box-shadow .45s ease, border-color .45s ease;
}

#specialists-home .home-spec-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(6, 164, 228, .75), transparent 35%, rgba(0, 54, 119, .32));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

#specialists-home .home-spec-card:hover {
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: 0 28px 60px rgba(0, 67, 119, .18);
}

#specialists-home .home-spec-card:hover::before {
  opacity: 1;
}

#specialists-home .home-spec-photo-wrapper {
  border: 0;
  background: #eef8fd;
}

#specialists-home .home-spec-photo-wrapper::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(to top, rgba(0, 32, 73, .28), transparent);
  pointer-events: none;
}

#specialists-home .home-spec-floating-icon {
  width: 40px;
  height: 40px;
  border-color: rgba(0, 139, 207, .18);
  box-shadow: 0 9px 25px rgba(0, 54, 100, .15);
}

#specialists-home .home-spec-body {
  padding: 1.35rem 1.4rem 1.45rem;
}

#specialists-home .home-spec-name {
  font-size: 1.22rem;
  letter-spacing: -.025em;
}

#specialists-home .home-spec-tag-pill {
  padding: .28rem .62rem;
  background: linear-gradient(135deg, rgba(5, 143, 211, .08), rgba(5, 143, 211, .025));
  border-color: rgba(0, 145, 211, .14);
}

.team-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.45fr;
  align-items: center;
  gap: 0;
  margin: 0 1rem 1.6rem;
  padding: 1rem 1.3rem;
  border: 1px solid rgba(5, 89, 148, .1);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 14px 38px rgba(0,50,91,.07);
}

.team-proof-row > div {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 34px;
  padding: 0 1rem;
  border-right: 1px solid rgba(0, 73, 128, .1);
}

.team-proof-row > div:first-child { padding-left: 0; }
.team-proof-row > div:last-child { border-right: 0; padding-right: 0; }
.team-proof-row strong { color: #07569e; font-size: 1.35rem; letter-spacing: -.04em; white-space: nowrap; }
.team-proof-row span { color: #52677b; font-size: .76rem; line-height: 1.3; }
.team-proof-note i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #24c875;
  box-shadow: 0 0 0 5px rgba(36, 200, 117, .12), 0 0 18px rgba(36,200,117,.55);
  animation: team-status-pulse 2s ease-in-out infinite;
}

.team-proof-note span { color: #174660; font-weight: 700; }

@keyframes team-status-pulse {
  50% { box-shadow: 0 0 0 8px rgba(36, 200, 117, 0), 0 0 22px rgba(36,200,117,.7); }
}

.team-all-action { text-align: center; margin-bottom: 0; }
.team-all-action .btn {
  padding: 1rem 2.35rem !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #fff !important;
  background: linear-gradient(110deg, #073b7a, #006fbe 52%, #08aee6) !important;
  box-shadow: 0 14px 32px rgba(0, 105, 181, .25), inset 0 1px 0 rgba(255,255,255,.3);
}
.team-all-action .btn:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(0,105,181,.34); }
.team-all-action .btn svg { transition: transform .25s ease; }
.team-all-action .btn:hover svg { transform: translateX(4px); }

/* Service tabs CTA: consistent proportions and a visible directional cue. */
.services-panel .service-banner-btn {
  width: fit-content !important;
  min-width: 232px !important;
  min-height: 54px !important;
  padding: 0 1.15rem 0 1.45rem !important;
  justify-content: space-between !important;
  gap: 1.1rem !important;
  border: 1px solid rgba(103, 207, 255, .62) !important;
  border-radius: 14px !important;
  font-size: .92rem !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: -.012em !important;
  box-shadow: 0 13px 30px rgba(0, 91, 164, .27), inset 0 1px 0 rgba(255,255,255,.3) !important;
}

.services-panel .service-banner-btn svg {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  padding: 8px !important;
  overflow: visible !important;
  border-radius: 9px;
  background: rgba(255,255,255,.16);
  transition: transform .3s ease, background-color .3s ease !important;
}

.services-panel .service-banner-btn:hover svg {
  transform: translateX(3px);
  background: rgba(255,255,255,.24);
}

@media (max-width: 900px) {
  .team-proof-row { grid-template-columns: repeat(2, 1fr); }
  .team-proof-row > div { border-right: 0; padding: .55rem; }
}

@media (max-width: 576px) {
  #specialists-home .home-specialists-grid { padding: .65rem; border-radius: 24px; }
  .team-proof-row { grid-template-columns: 1fr; margin-inline: .5rem; }
  .team-proof-row > div { justify-content: center; text-align: center; }
}

@media (max-width: 767px) {
  .hero .hero-features {
    top: 0;
    margin-top: 1.25rem !important;
  }
}

/* ===== Site-wide premium interaction layer ===== */
html {
  scroll-behavior: smooth;
  scrollbar-color: #078ed0 #eaf5fa;
  scrollbar-width: thin;
}

body {
  overflow-x: hidden;
  background: #fff;
}

::selection {
  color: #fff;
  background: #087fc5;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(39, 201, 242, .42) !important;
  outline-offset: 4px;
}

/* Consistent high-value buttons on every template. */
:where(.btn, .mega-cta-btn, .service-banner-btn, .fixed-contact-btn, .popup-window-button) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease !important;
}

:where(.btn, .mega-cta-btn, .service-banner-btn, .fixed-contact-btn, .popup-window-button)::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -45% auto -45% -35%;
  width: 24%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-18deg);
  transition: left .65s ease, opacity .25s ease;
}

:where(.btn, .mega-cta-btn, .service-banner-btn, .fixed-contact-btn, .popup-window-button):hover {
  transform: translateY(-3px);
}

:where(.btn, .mega-cta-btn, .service-banner-btn, .fixed-contact-btn, .popup-window-button):hover::after {
  left: 118%;
  opacity: .72;
}

/* Inputs now feel like one coherent interface across legacy and new pages. */
:where(.form-input, .form-textarea, .ls-form input, .premium-lead-form input, .premium-lead-form textarea, .modal-form input, .modal-form textarea) {
  border: 1px solid rgba(7, 98, 157, .13) !important;
  border-radius: 14px !important;
  background: rgba(248, 252, 255, .94) !important;
  box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(3, 75, 121, .035);
  transition: border-color .24s ease, box-shadow .24s ease, background-color .24s ease, transform .24s ease !important;
}

:where(.form-input, .form-textarea, .ls-form input, .premium-lead-form input, .premium-lead-form textarea, .modal-form input, .modal-form textarea):focus {
  border-color: rgba(0, 166, 226, .65) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(26, 183, 229, .1), 0 16px 30px rgba(3, 87, 143, .08) !important;
  transform: translateY(-1px);
  outline: 0 !important;
}

/* Fine dividers make long pages easier to scan without adding visual weight. */
:where(.content-hub-page, .premium-service, .localized-service, .academy-page, .products-page, .solutions-page, .automation-page, .b24-page) > section {
  position: relative;
}

:where(.content-hub-page, .premium-service, .localized-service, .academy-page, .products-page, .solutions-page, .automation-page, .b24-page) > section + section::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 50%;
  width: min(86vw, 1240px);
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(5, 141, 205, .16) 25%, rgba(51, 218, 239, .38) 50%, rgba(5, 141, 205, .16) 75%, transparent);
  transform: translateX(-50%);
}

/* Cursor lighting is opt-in through main.js and safe for every card family. */
.site-interactive-card {
  --site-spot-x: 50%;
  --site-spot-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .38s cubic-bezier(.2,.8,.2,1), box-shadow .38s ease, border-color .38s ease !important;
}

.site-card-glow {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: block;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(310px circle at var(--site-spot-x) var(--site-spot-y), rgba(80, 221, 255, .17), transparent 63%);
  transition: opacity .35s ease;
}

.site-interactive-card:hover {
  border-color: rgba(20, 179, 225, .28) !important;
  box-shadow: 0 25px 60px rgba(3, 62, 105, .13) !important;
}

.site-interactive-card:hover > .site-card-glow {
  opacity: 1;
}

/* Motion is added only after JavaScript has initialised, avoiding hidden content. */
.js-motion-ready .site-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(.985);
  filter: saturate(.86);
  transition:
    opacity .75s cubic-bezier(.2,.75,.2,1) var(--site-delay, 0ms),
    transform .75s cubic-bezier(.2,.75,.2,1) var(--site-delay, 0ms),
    filter .75s ease var(--site-delay, 0ms);
}

.js-motion-ready .site-reveal.site-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: saturate(1);
}

@media (hover: none), (pointer: coarse) {
  .site-interactive-card:hover {
    transform: none !important;
  }

  .site-card-glow,
  .site-cursor-glow {
    display: none !important;
  }
}

/* Premium navigation surface without changing its established layout. */
:where(.header, .navbar) {
  border-bottom-color: rgba(2, 64, 108, .08) !important;
  box-shadow: 0 12px 38px rgba(2, 45, 78, .045);
}

.mega-menu {
  border: 1px solid rgba(7, 107, 171, .1) !important;
  box-shadow: 0 28px 80px rgba(1, 43, 77, .16) !important;
  backdrop-filter: blur(22px);
}

.whatsapp-float {
  box-shadow: 0 14px 35px rgba(18, 192, 93, .32), 0 0 0 0 rgba(31, 210, 108, .23) !important;
  animation: site-whatsapp-pulse 3.2s ease-out infinite;
}

@keyframes site-whatsapp-pulse {
  0%, 35% { box-shadow: 0 14px 35px rgba(18,192,93,.32), 0 0 0 0 rgba(31,210,108,.22); }
  72%, 100% { box-shadow: 0 14px 35px rgba(18,192,93,.32), 0 0 0 18px rgba(31,210,108,0); }
}

@media (max-width: 767px) {
  :where(.page-title, .ls-hero h1, .hub-head h2, .hub-dark h2) {
    text-wrap: balance;
  }
  :where(.hero-cta-box, .ls-actions) .btn {
    min-height: 54px;
  }
  .site-interactive-card:hover {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .js-motion-ready .site-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Unified CTA system: identical typography, alignment and proportions site-wide. */
html body :is(
  .content-hub-page,
  .premium-service,
  .localized-service,
  .automation-page,
  .b24-page,
  .academy-page,
  .solutions-page,
  .products-page,
  .team-page
) :is(
  a.btn,
  button.btn,
  input.btn,
  .sp-btn,
  .ac-btn,
  .ac-ai-btn,
  .product-btn,
  .contact-submit,
  .hero-primary-cta,
  .service-banner-btn
),
html body :is(a.btn,button.btn,input.btn) {
  box-sizing: border-box !important;
  min-height: 56px !important;
  height: auto !important;
  padding: .82rem 1.45rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .55rem !important;
  border: 1px solid rgba(61, 202, 247, .34) !important;
  border-radius: 14px !important;
  background: linear-gradient(115deg, #064682 0%, #087fd2 55%, #0aafe3 100%) !important;
  color: #fff !important;
  box-shadow: 0 15px 34px rgba(2, 93, 160, .25) !important;
  font-family: inherit !important;
  font-size: clamp(.75rem, .9vw, .86rem) !important;
  font-weight: 780 !important;
  font-style: normal !important;
  line-height: 1.2 !important;
  letter-spacing: -.01em !important;
  text-align: center !important;
  text-decoration: none !important;
  vertical-align: middle !important;
  white-space: normal !important;
  cursor: pointer !important;
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease !important;
}

html body :is(
  .content-hub-page,
  .premium-service,
  .localized-service,
  .automation-page,
  .b24-page,
  .academy-page,
  .solutions-page,
  .products-page,
  .team-page
) :is(a.btn,button.btn,.sp-btn,.ac-btn,.ac-ai-btn,.product-btn,.contact-submit,.hero-primary-cta,.service-banner-btn):hover,
html body :is(a.btn,button.btn):hover {
  transform: translateY(-3px) !important;
  filter: saturate(1.08) brightness(1.03) !important;
  box-shadow: 0 22px 46px rgba(2, 105, 174, .34) !important;
}

html body :is(
  .content-hub-page,
  .premium-service,
  .localized-service,
  .automation-page,
  .b24-page,
  .academy-page,
  .solutions-page,
  .products-page,
  .team-page
) :is(.btn-small,.btn--small),
html body :is(.btn-small,.btn--small) {
  min-height: 44px !important;
  padding: .65rem 1.05rem !important;
  border-radius: 12px !important;
  font-size: .72rem !important;
}

html body :is(
  .content-hub-page,
  .premium-service,
  .localized-service,
  .automation-page,
  .b24-page,
  .academy-page,
  .solutions-page,
  .products-page,
  .team-page
) :is(.btn-full,.contact-submit),
html body :is(.btn-full,.contact-submit) {
  width: 100% !important;
}

html body :is(
  .content-hub-page,
  .premium-service,
  .localized-service,
  .automation-page,
  .b24-page,
  .academy-page,
  .solutions-page,
  .products-page,
  .team-page
) :is(.btn--outline,.sp-btn--ghost,.ac-btn--ghost,.product-btn-ghost) {
  border-color: rgba(44, 177, 228, .3) !important;
  background: rgba(255,255,255,.9) !important;
  color: #07518c !important;
  box-shadow: 0 14px 32px rgba(3, 76, 124, .12) !important;
  backdrop-filter: blur(14px);
}

/* Unified photographic-banner surface. Images stay thematic; framing stays identical. */
html body :is(
  .localized-service .ls-banner,
  .premium-service .sp-campaign,
  .automation-page .auto-story-banner,
  .automation-page .auto-architecture-banner,
  .b24-page .b24-showcase-shell,
  .b24-page .b24-security-banner,
  .academy-page .ac-showcase,
  .solutions-page .sp-command-banner,
  .products-page .products-hero-visual,
  .products-page .cloyal-cinema
) {
  overflow: hidden !important;
  border: 1px solid rgba(101, 216, 250, .2) !important;
  border-radius: 36px !important;
  background-color: #041f3d !important;
  box-shadow: 0 38px 92px rgba(3, 57, 95, .2) !important;
}

html body :is(
  .localized-service .ls-banner,
  .premium-service .sp-campaign,
  .automation-page .auto-story-banner,
  .automation-page .auto-architecture-banner,
  .b24-page .b24-security-banner,
  .academy-page .ac-showcase,
  .solutions-page .sp-command-banner
) > img,
html body .b24-page .b24-security-visual > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: saturate(1.04) contrast(1.03) !important;
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .8s ease !important;
}

html body :is(
  .localized-service .ls-banner,
  .premium-service .sp-campaign,
  .automation-page .auto-story-banner,
  .automation-page .auto-architecture-banner,
  .b24-page .b24-security-banner,
  .academy-page .ac-showcase,
  .solutions-page .sp-command-banner
):hover > img,
html body .b24-page .b24-security-banner:hover .b24-security-visual > img {
  transform: scale(1.035) !important;
  filter: saturate(1.08) contrast(1.04) !important;
}

@media (max-width: 720px) {
  html body :is(
    .localized-service .ls-banner,
    .premium-service .sp-campaign,
    .automation-page .auto-story-banner,
    .automation-page .auto-architecture-banner,
    .b24-page .b24-showcase-shell,
    .b24-page .b24-security-banner,
    .academy-page .ac-showcase,
    .solutions-page .sp-command-banner,
    .products-page .products-hero-visual,
    .products-page .cloyal-cinema
  ) {
    border-radius: 26px !important;
  }

  html body :is(
    .content-hub-page,
    .premium-service,
    .localized-service,
    .automation-page,
    .b24-page,
    .academy-page,
    .solutions-page,
    .products-page,
    .team-page
  ) :is(a.btn,button.btn,input.btn,.sp-btn,.ac-btn,.ac-ai-btn,.product-btn,.contact-submit,.hero-primary-cta,.service-banner-btn) {
    min-height: 54px !important;
    padding: .78rem 1.2rem !important;
  }
}

/* Localized service header compatibility.
   These pages use the concise .header/.nav-list markup rather than .navbar. */
body > header.header {
  position: sticky !important;
  z-index: 1200 !important;
  top: 0 !important;
  width: 100% !important;
  min-height: 86px !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(4, 76, 124, .08) !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 14px 42px rgba(2, 44, 76, .08) !important;
  backdrop-filter: blur(22px) saturate(1.25) !important;
}

body > header.header .header-container {
  min-height: 86px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.4rem !important;
}

body > header.header .nav {
  margin-left: auto;
}

body > header.header .nav-list {
  display: flex !important;
  align-items: center !important;
  gap: clamp(.8rem, 1.7vw, 1.55rem) !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body > header.header .nav-list a {
  position: relative;
  display: inline-flex;
  padding: .55rem 0;
  color: #3d5669 !important;
  font-size: .82rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

body > header.header .nav-list a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .25rem;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #07539a, #09afe3);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

body > header.header .nav-list a:hover::after,
body > header.header .nav-list a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Four narrow Bitrix24 pages now open with a real premium banner. */
.bitrix-detail-page > .page-hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 8rem) 0 !important;
  border: 0 !important;
  background: #031d39 !important;
  color: #fff;
}

.bitrix-detail-page > .page-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--detail-hero-image) 69% center / cover no-repeat;
  transform: scale(1.015);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .8s ease;
}

.bitrix-detail-page > .page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 38% 48%, rgba(4, 137, 210, .28), transparent 38%),
    linear-gradient(90deg, rgba(2, 17, 37, .99), rgba(3, 30, 58, .93) 48%, rgba(2, 21, 42, .12) 86%);
}

.bitrix-detail-page > .page-hero:hover::before {
  transform: scale(1.055);
  filter: saturate(1.08);
}

.bitrix-detail-page > .page-hero .container {
  position: relative;
  z-index: 2;
}

.bitrix-detail-page > .page-hero :is(.page-title, .page-description) {
  max-width: 760px;
  color: #fff !important;
}

.bitrix-detail-page > .page-hero .page-title {
  font-size: clamp(3rem, 5.4vw, 5.6rem) !important;
  line-height: .98 !important;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.bitrix-detail-page > .page-hero .page-description {
  color: #c6dae7 !important;
  font-size: 1.08rem !important;
  line-height: 1.72 !important;
}

.bitrix-detail-page > .page-hero .hero-tag {
  border: 1px solid rgba(88, 219, 255, .26);
  background: rgba(7, 123, 186, .15) !important;
  color: #67dcff !important;
  backdrop-filter: blur(12px);
}

/* Unique editorial section for the four Bitrix24 detail landings. */
.bitrix-detail-page .detail-story {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 9vw, 8.5rem) !important;
  background:
    radial-gradient(circle at 92% 10%, rgba(24, 187, 236, .17), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(60, 75, 222, .16), transparent 34%),
    linear-gradient(135deg, #031c38, #062b4c 54%, #061c38);
  color: #fff;
}

.bitrix-detail-page .detail-story::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(114, 218, 255, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 218, 255, .22) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.bitrix-detail-page .detail-story .container {
  position: relative;
  z-index: 1;
}

.detail-story-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 1.2rem 4rem;
  align-items: end;
  margin-bottom: 3rem;
}

.detail-story-head > span {
  grid-column: 1 / -1;
  color: #54d9ff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.detail-story-head h2 {
  max-width: 830px;
  margin: 0;
  color: #fff !important;
  font-size: clamp(2.35rem, 4.6vw, 4.8rem) !important;
  line-height: .98 !important;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.detail-story-head p {
  margin: 0;
  color: #b9cedc !important;
  font-size: 1rem;
  line-height: 1.75;
}

.detail-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.detail-story-grid article {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  border: 1px solid rgba(105, 219, 255, .14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 22px 65px rgba(0, 0, 0, .12);
  backdrop-filter: blur(16px);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .35s ease, background .35s ease;
}

.detail-story-grid article::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -110px;
  bottom: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 215, 255, .28), transparent 67%);
  transition: transform .45s ease;
}

.detail-story-grid article:hover {
  transform: translateY(-8px);
  border-color: rgba(104, 224, 255, .4);
  background: linear-gradient(145deg, rgba(19, 157, 211, .17), rgba(255, 255, 255, .035));
}

.detail-story-grid article:hover::after {
  transform: translate(-24px, -24px) scale(1.3);
}

.detail-story-grid b {
  color: #57dcff;
  font-size: .72rem;
  letter-spacing: .13em;
}

.detail-story-grid h3 {
  margin: 3.3rem 0 .85rem;
  color: #fff !important;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem) !important;
  line-height: 1.08 !important;
}

.detail-story-grid p {
  margin: 0 0 1.5rem;
  color: #b9cedc !important;
  line-height: 1.65;
}

.detail-story-grid a {
  position: absolute;
  z-index: 2;
  left: clamp(1.5rem, 2.5vw, 2.2rem);
  bottom: 1.7rem;
  color: #5ddeff !important;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.detail-outcome {
  display: flex;
  gap: .55rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid rgba(83, 219, 255, .16);
  border-radius: 16px;
  background: rgba(1, 16, 34, .35);
  color: #c5dce9;
  font-size: .9rem;
}

.detail-outcome strong {
  color: #fff;
}

/* Non-invasive hero effects added by main.js to every route. */
.site-opening-hero {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
}

.site-hero-fx {
  position: absolute;
  z-index: 7;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-hero-fx > span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -18%;
  width: 1px;
  opacity: .54;
  background: linear-gradient(180deg, transparent, rgba(100, 230, 255, .95) 28%, #fff 50%, rgba(52, 196, 246, .9) 72%, transparent);
  box-shadow: 0 0 20px rgba(80, 218, 255, .75), 20px 0 70px rgba(32, 178, 235, .18);
  animation: site-hero-scan 9s cubic-bezier(.55,.05,.45,.95) infinite;
}

.site-hero-fx > i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: .55;
  background: #68e4ff;
  box-shadow: 0 0 0 7px rgba(75, 216, 251, .08), 0 0 22px rgba(75, 216, 251, .75);
  animation: site-hero-particle 6s ease-in-out infinite;
}

.site-hero-fx > i:nth-child(1) { top: 22%; right: 14%; }
.site-hero-fx > i:nth-child(2) { top: 67%; right: 31%; animation-delay: -2s; }
.site-hero-fx > i:nth-child(3) { top: 38%; right: 47%; animation-delay: -4s; }

@keyframes site-hero-scan {
  0%, 12% { left: -18%; opacity: 0; }
  20% { opacity: .55; }
  76% { opacity: .55; }
  88%, 100% { left: 112%; opacity: 0; }
}

@keyframes site-hero-particle {
  50% { transform: translate3d(0, -14px, 0) scale(1.25); opacity: .9; }
}

.form-status {
  width: 100%;
  margin: .8rem 0 0 !important;
  padding: .75rem .9rem;
  border-radius: 12px;
  font-size: .76rem !important;
  line-height: 1.45;
}

.form-status.success {
  border: 1px solid rgba(42, 205, 135, .28);
  background: rgba(42, 205, 135, .13);
  color: inherit;
}

@media (max-width: 980px) {
  .detail-story-head {
    grid-template-columns: 1fr;
  }

  .detail-story-grid {
    grid-template-columns: 1fr;
  }

  .detail-story-grid article {
    min-height: 290px;
  }

  body > header.header .nav-list {
    position: fixed;
    z-index: 1300;
    top: 76px;
    right: 1rem;
    left: 1rem;
    max-height: calc(100vh - 96px);
    display: none !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: .25rem !important;
    overflow: auto;
    padding: 1rem !important;
    border: 1px solid rgba(6, 101, 162, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 28px 80px rgba(2, 44, 76, .22);
  }

  body > header.header .nav-list.active {
    display: flex !important;
  }

  body > header.header .nav-list a {
    width: 100%;
    padding: .8rem 1rem;
    border-radius: 11px;
  }

  body > header.header .hamburger {
    display: block !important;
  }

  body > header.header .nav-right {
    margin-left: auto !important;
    gap: .6rem;
  }

  body > header.header .nav-right > .btn {
    display: none !important;
  }
}

@media (max-width: 720px) {
  body > header.header,
  body > header.header .header-container {
    min-height: 74px !important;
  }

  body > header.header .logo {
    margin-right: 0 !important;
  }

  body > header.header .logo img,
  body > header.header .logo .logo-itba {
    height: 31px !important;
  }

  body > header.header .logo img.logo-ezt {
    height: 22px !important;
  }

  .bitrix-detail-page > .page-hero {
    min-height: 700px;
    align-items: flex-end;
    padding: 5rem 0 4rem !important;
  }

  .bitrix-detail-page > .page-hero::before {
    background-position: 66% center;
  }

  .bitrix-detail-page > .page-hero::after {
    background:
      radial-gradient(circle at 75% 20%, rgba(0, 153, 222, .18), transparent 35%),
      linear-gradient(180deg, rgba(2, 18, 39, .25), rgba(3, 31, 61, .94) 48%, rgba(2, 18, 39, .995));
  }

  .bitrix-detail-page > .page-hero .page-title {
    font-size: clamp(2.6rem, 12vw, 3.4rem) !important;
  }

  .detail-story-head {
    margin-bottom: 2rem;
  }

  .detail-story-head h2 {
    font-size: clamp(2.25rem, 11vw, 3.25rem) !important;
  }

  .detail-story-grid article {
    min-height: 310px;
    border-radius: 20px;
  }

  .detail-outcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-hero-fx > i {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-hero-fx {
    display: none;
  }
}

/* Flagship $1M hero treatment: generated campaign visuals become the whole
   architectural background instead of another image inside a card. */
html body .products-page .products-hero .products-hero-visual {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html body .products-page .products-hero .products-hero-visual > img {
  opacity: 0 !important;
  pointer-events: none;
}

.solutions-page .sp-hero .site-hero-fx,
.products-page .products-hero .site-hero-fx {
  opacity: .68;
  mix-blend-mode: screen;
}

.solutions-page .sp-hero::selection,
.products-page .products-hero::selection {
  background: rgba(65, 218, 255, .3);
  color: #fff;
}

/* Magnetic motion uses the independent CSS translate property, preserving
   each button's existing hover transform and layout. */
.site-magnetic {
  translate: var(--magnetic-x, 0) var(--magnetic-y, 0);
  transition:
    translate .26s cubic-bezier(.2,.8,.2,1),
    transform .3s ease,
    box-shadow .3s ease,
    background .3s ease !important;
  will-change: translate;
}

.site-magnetic:active {
  scale: .98;
}

@media (max-width: 1000px), (pointer: coarse) {
  .site-magnetic {
    translate: none;
    will-change: auto;
  }
}

/* Mobile display typography must stay premium. The legacy bundle contains
   a late 1.6rem !important rule that otherwise flattens most page heroes. */
@media (max-width: 767px) {
  html body .page-hero.site-opening-hero .page-title,
  html body .hero.site-opening-hero .hero-title {
    font-size: clamp(2.7rem, 12vw, 3.15rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.055em !important;
    text-wrap: balance;
  }

  html body .lang-btn {
    min-height: 44px;
    padding: .55rem .85rem;
  }

  html body .lang-item {
    min-height: 42px;
    align-items: center;
  }
}
