:root {
  color-scheme: dark;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: #0B2B22;
  color: #F4F6F5;
  font-family: 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content:"";
  position:fixed;
  inset:0;
  z-index:-3;
  background: radial-gradient(1100px 700px at 88% -8%, rgba(212,175,55,.12), transparent 60%), radial-gradient(800px 600px at -5% 28%, rgba(16,58,46,.9), transparent 60%), radial-gradient(1200px 900px at 50% 125%, rgba(7,28,23,.95), transparent 60%), #0B2B22;
}
#goldCanvas {
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
}
body::after {
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.025;
  mix-blend-mode:normal;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.font-display {
  font-family:'Cormorant Garamond', Georgia, serif;
}
.gold-text {
  background: linear-gradient(100deg, #997A15 0%, #D4AF37 25%, #F6E7A8 50%, #D4AF37 75%, #997A15 100%);
  background-size: 220% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation: none;
  background-position:50% 50%;
}

.gold-bg {
  background: linear-gradient(135deg, #E6CA65 0%, #D4AF37 50%, #997A15 100%);
}
.gold-rule {
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(212,175,55,.65), transparent);
}
.glass {
  background: rgba(7,28,23,.88);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border:1px solid rgba(212,175,55,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 20px 50px -30px rgba(0,0,0,.8);
}
.glass-strong {
  background: rgba(7,28,23,.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border:1px solid rgba(212,175,55,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 40px 90px -40px rgba(0,0,0,.9);
}
.card-grad {
  background: linear-gradient(160deg, rgba(16,58,46,.82), rgba(7,28,23,.94));
}
.anchor {
  scroll-margin-top: 112px;
}
.btn {
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  font-weight:600;
  letter-spacing:.02em;
  min-height:52px;
  padding:.95rem 1.7rem;
  border-radius:2px;
  cursor:pointer;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, background .3s, color .3s, border-color .3s;
  will-change: auto;
}
.btn-gold {
  color:#0B2B22;
}
.btn-gold:hover {
  box-shadow: 0 0 0 1px rgba(212,175,55,.55), 0 22px 50px -16px rgba(212,175,55,.65);
}
.btn-gold::after {
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:60%;
  height:100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-18deg);
  transition: left .7s cubic-bezier(.2,.7,.2,1);
}
.btn-gold:hover::after {
  left:140%;
}
.btn-ghost {
  border:1px solid rgba(212,175,55,.45);
  color:#F4F6F5;
  background: rgba(212,175,55,.04);
}
.btn-ghost:hover {
  background: rgba(212,175,55,.12);
  border-color: rgba(212,175,55,.85);
}
.kicker {
  display:inline-flex;
  align-items:center;
  gap:.7rem;
  text-transform:uppercase;
  letter-spacing:.36em;
  font-size:.7rem;
  font-weight:600;
  color:#D1C097;
}
.kicker::before {
  content:"";
  width:30px;
  height:1px;
  background:linear-gradient(90deg,transparent,#D4AF37);
}
.tilt {
  transform-style: flat;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
  will-change: auto;
}
.tilt:hover {
  transform: translateY(-2px);
  border-color: rgba(212,175,55,.5);
  box-shadow: 0 30px 60px -38px rgba(0,0,0,.82);
}
.tilt .tilt-pop {
  transform: none;
}
.lift {
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s, box-shadow .4s;
}
.lift:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,.5);
  box-shadow: 0 36px 70px -34px rgba(0,0,0,.85);
}
/* warianty kafelków – różnorodność w tej samej tonacji */ .v-left {
  border-left:2px solid rgba(212,175,55,.55);
}
.v-idx {
  position:relative;
}
.v-idx::after {
  content:attr(data-idx);
  position:absolute;
  top:14px;
  right:18px;
  font-family:'Cormorant Garamond',serif;
  font-size:54px;
  font-weight:600;
  line-height:1;
  color:rgba(212,175,55,.16);
  pointer-events:none;
}
.v-top {
  position:relative;
}
.v-top::before {
  content:"";
  position:absolute;
  top:0;
  left:20px;
  right:20px;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(212,175,55,.55),transparent);
}
.badge-gold {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  background:linear-gradient(135deg,#E6CA65,#D4AF37,#997A15);
  color:#0B2B22;
  font-size:10px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  padding:.35rem .7rem;
  border-radius:2px;
}
.reveal {
  --rv-x: 0px;
  --rv-y: 24px;
  --rv-scale: 1;
  --rv-rotate: 0deg;
  opacity:0;
  transform:
    translate3d(var(--rv-x), var(--rv-y), 0)
    scale(var(--rv-scale))
    rotate(var(--rv-rotate));
  transition:
    opacity 1.02s cubic-bezier(.16,1,.3,1),
    transform 1.02s cubic-bezier(.16,1,.3,1);
}
.reveal.in {
  opacity:1;
  transform:translate3d(0,0,0) scale(1) rotate(0deg);
}
#site-header {
  transition: padding .35s ease, background .35s ease, border-color .35s ease;
}
#site-header.scrolled {
  padding-top:.4rem;
  padding-bottom:.4rem;
}
#drawer {
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
#drawer.closed {
  transform: translateX(100%);
}
#drawer-overlay {
  transition: opacity .35s ease;
}
.modal {
  transition: opacity .3s ease;
}
.modal.hidden-modal {
  opacity:0;
  pointer-events:none;
}
.modal-panel {
  transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
}
.modal.hidden-modal .modal-panel {
  transform: translateY(26px) scale(.97);
  opacity:0;
}
.toast {
  animation: toastIn .45s cubic-bezier(.2,.7,.2,1);
}
@keyframes toastIn {
  from {
    opacity:0;
    transform:translateY(18px) scale(.96);
  }
  to {
    opacity:1;
    transform:none;
  }
}
.ham span {
  display:block;
  width:24px;
  height:2px;
  background:#D4AF37;
  transition: transform .35s, opacity .25s;
}
.ham.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.ham.open span:nth-child(2) {
  opacity:0;
}
.ham.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.gal-item img {
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.gal-item:hover img {
  transform: scale(1.07);
}
.field {
  background: rgba(7,28,23,.6);
  border:1px solid rgba(212,175,55,.22);
  color:#F4F6F5;
  border-radius:2px;
  padding:.9rem 1rem;
  width:100%;
  transition: border-color .25s, box-shadow .25s;
}
.field::placeholder {
  color:#7f8d88;
}
.field:focus {
  outline:none;
  border-color:#D4AF37;
  box-shadow:0 0 0 3px rgba(212,175,55,.15);
}
.field.invalid {
  border-color:#e0795f;
  box-shadow:0 0 0 3px rgba(224,121,95,.15);
}
select.field option {
  background:#071C17;
  color:#F4F6F5;
}
#progress {
  position:fixed;
  top:0;
  left:0;
  height:3px;
  width:100%;
  z-index:80;
  background:linear-gradient(90deg,#997A15,#D4AF37,#E6CA65);
  transform:scaleX(0);
  transform-origin:left center;
  will-change:transform;
}
#toTop, #chatFab {
  transition: opacity .3s ease, transform .3s ease;
}
#toTop.hide {
  opacity:0;
  transform: translateY(12px);
  pointer-events:none;
}
.vlabel {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing:.5em;
}
.tl-line {
  background: linear-gradient(180deg, transparent, rgba(212,175,55,.6) 8%, rgba(212,175,55,.6) 92%, transparent);
}
#chatPanel {
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1);
  transform-origin: bottom right;
}
#chatPanel.closed {
  opacity:0;
  transform: translateY(20px) scale(.94);
  pointer-events:none;
}
.chat-bubble-in {
  animation: bubbleIn .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes bubbleIn {
  from {
    opacity:0;
    transform:translateY(8px);
  }
  to {
    opacity:1;
    transform:none;
  }
}
.typing span {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#D4AF37;
  margin:0 1px;
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) {
  animation-delay:.2s;
}
.typing span:nth-child(3) {
  animation-delay:.4s;
}
@keyframes blink {
  0%,60%,100% {
    opacity:.25;
  }
  30% {
    opacity:1;
  }
}
.slot, .daycell {
  transition: all .2s ease;
}
.slot.sel, .daycell.sel {
  background:linear-gradient(135deg,#E6CA65,#D4AF37,#997A15);
  color:#0B2B22;
  border-color:transparent;
  font-weight:600;
}
.bar-rect {
  transition: fill .3s ease;
}
.svc-filter {
  color:#C5C9C7;
  border-color:rgba(212,175,55,.25);
  background:rgba(212,175,55,.03);
}
.svc-filter:hover {
  border-color:rgba(212,175,55,.6);
  color:#F4F6F5;
}
.svc-filter.is-active {
  background:linear-gradient(135deg,#E6CA65,#D4AF37,#997A15);
  color:#0B2B22;
  border-color:transparent;
  font-weight:600;
}
.mode-btn {
  color:#C5C9C7;
}
.mode-btn.is-active {
  background:linear-gradient(135deg,#E6CA65,#D4AF37,#997A15);
  color:#0B2B22;
  font-weight:600;
}
::selection {
  background: rgba(212,175,55,.32);
  color:#fff;
}
::-webkit-scrollbar {
  width:11px;
}
::-webkit-scrollbar-track {
  background:#071C17;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(#997A15,#D4AF37);
  border-radius:8px;
  border:2px solid #071C17;
}
@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before {
    animation: none !important;
    transition: none !important;
    scroll-behavior:auto !important;
  }
  .reveal {
    opacity:1;
    transform:none;
  }
  .gold-text {
    animation:none;
  }
}
@media print {
  body * {
    visibility: hidden !important;
  }
  #printArea, #printArea * {
    visibility: visible !important;
  }
  #printArea {
    position:absolute;
    left:0;
    top:0;
    width:100%;
    padding:32px;
    background:#fff;
    color:#111;
  }
  #printArea .ph-gold {
    color:#997A15 !important;
  }
  #printArea table {
    width:100%;
    border-collapse:collapse;
  }
  #printArea th, #printArea td {
    border:1px solid #ccc;
    padding:8px 10px;
    text-align:left;
    font-size:12px;
  }
  #printArea th {
    background:#f3f3f3;
  }
}


/* ===== LAYOUT + PERFORMANCE ===== */
.hero-marquee {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  contain: paint;
}
.strip-track {
  display: flex;
  width: max-content;
  min-width: 200vw;
  gap: 0;
  animation: marquee 42s linear infinite;
  will-change: transform;
}
.strip-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 0 0 100vw;
  width: 100vw;
  min-width: 100vw;
  gap: 2.25rem;
  padding-inline: max(2rem, calc((100vw - 1560px) / 2 + 2.5rem));
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.team-photo-ilona {
  object-position: 50% 34% !important;
}
.social-link {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
}
.social-link svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}
.calculator-brand-mark {
  display: flex;
  align-items: center;
  min-height: 112px;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(212,175,55,.20);
  border-bottom: 1px solid rgba(212,175,55,.20);
  background: linear-gradient(90deg, rgba(212,175,55,.035), transparent 72%);
}
.calculator-brand-mark img {
  width: min(100%, 340px);
  height: auto;
  object-fit: contain;
  object-position: left center;
  opacity: .96;
}
@media (max-width: 1199px) {
  .strip-group {
    flex-basis: 1180px;
    width: 1180px;
    min-width: 1180px;
    justify-content: flex-start;
    padding-inline: 2rem;
  }
  .strip-track { min-width: 2360px; }
}
@media (max-width: 767px) {
  .strip-group {
    flex-basis: 1060px;
    width: 1060px;
    min-width: 1060px;
    gap: 2.5rem;
  }
  .strip-track { min-width: 2120px; }
  .calculator-brand-mark { justify-content: center; }
  .calculator-brand-mark img { width: min(92%, 320px); }
}
@media (hover: none), (pointer: coarse) {
  [data-tilt], [data-magnetic] { transform: none !important; }
}


/* ==========================================================================
   MERITUM MOTION v4 — SINGLE PIPELINE
   Jeden system reveal. Zero drugiego IntersectionObservera do tych samych treści.
   ========================================================================== */

:root{
  --motion-v4-ease:cubic-bezier(.16,1,.3,1);
  --motion-v4-soft:cubic-bezier(.22,.61,.36,1);
}

/* Różne wektory, ale jeden lifecycle: .reveal -> .reveal.in */
.motion-v4-left{--rv-x:-26px;--rv-y:4px;}
.motion-v4-right{--rv-x:26px;--rv-y:4px;}
.motion-v4-up{--rv-x:0px;--rv-y:28px;}
.motion-v4-soft{--rv-x:0px;--rv-y:12px;--rv-scale:.988;}
.motion-v4-scale{--rv-x:0px;--rv-y:5px;--rv-scale:.974;}
.motion-v4-diagonal-left{--rv-x:-18px;--rv-y:18px;}
.motion-v4-diagonal-right{--rv-x:18px;--rv-y:18px;}
.motion-v4-editorial{--rv-x:-18px;--rv-y:8px;--rv-scale:.996;}
.motion-v4-calm{--rv-x:0px;--rv-y:14px;--rv-scale:.996;}

/* Hero — nie zmieniamy geometrii floating cards.
   Prawa kolumna wykonuje tylko delikatny entrance i finalnie wraca do transform:none. */
.motion-v4-hero-copy{
  --rv-x:-22px;
  --rv-y:8px;
}
.motion-v4-hero-media{
  --rv-x:20px;
  --rv-y:4px;
  --rv-scale:.992;
}

/* Oryginalne pozycje floating overlays — jawne zabezpieczenie kompozycji. */
main > section:first-child [data-tilt] > .tilt-pop.-left-5{left:-1.25rem!important;}
main > section:first-child [data-tilt] > .tilt-pop.-right-4{right:-1rem!important;}
main > section:first-child [data-tilt] > .tilt-pop.left-6{left:1.5rem!important;}

/* Story image / badge 2025 — oryginalna geometria ma pierwszeństwo. */
.kancelaria-duo-wrap [data-tilt] > .tilt-pop.-bottom-6.-left-6{
  left:-1.5rem!important;
  bottom:-1.5rem!important;
}

/* Divider draw — to NIE jest drugi reveal; uruchamia się dokładnie przy .in rodzica. */
.section-divider.reveal span{
  transform:scaleX(.24);
  transform-origin:center;
  opacity:.35;
  transition:
    transform 1.05s var(--motion-v4-ease),
    opacity .8s ease;
}
.section-divider.reveal.in span{
  transform:scaleX(1);
  opacity:1;
}

/* Kicker lines: subtelne "dorysowanie", bez ukrywania tekstu. */
.reveal .kicker::before,
.kicker.reveal::before{
  transform-origin:right center;
  transition:transform .9s var(--motion-v4-ease),opacity .8s ease;
}
.reveal:not(.in) .kicker::before,
.kicker.reveal:not(.in)::before{
  transform:scaleX(.35);
  opacity:.38;
}
.reveal.in .kicker::before,
.kicker.reveal.in::before{
  transform:scaleX(1);
  opacity:1;
}

/* Dynamiczne siatki: inne kierunki bez drugiego observera. */
#why-grid > .reveal:nth-child(3n+1){--rv-x:-20px;--rv-y:12px;}
#why-grid > .reveal:nth-child(3n+2){--rv-x:0px;--rv-y:24px;}
#why-grid > .reveal:nth-child(3n+3){--rv-x:20px;--rv-y:12px;}

#industries-grid > .reveal:nth-child(4n+1){--rv-x:-18px;--rv-y:16px;}
#industries-grid > .reveal:nth-child(4n+2){--rv-x:-6px;--rv-y:22px;}
#industries-grid > .reveal:nth-child(4n+3){--rv-x:6px;--rv-y:22px;}
#industries-grid > .reveal:nth-child(4n+4){--rv-x:18px;--rv-y:16px;}

#testi-grid > .reveal:nth-child(1){--rv-x:-20px;--rv-y:10px;}
#testi-grid > .reveal:nth-child(2){--rv-x:0px;--rv-y:24px;}
#testi-grid > .reveal:nth-child(3){--rv-x:20px;--rv-y:10px;}

#news-grid > .reveal:nth-child(1){--rv-x:-18px;--rv-y:10px;}
#news-grid > .reveal:nth-child(2){--rv-x:0px;--rv-y:24px;}
#news-grid > .reveal:nth-child(3){--rv-x:18px;--rv-y:10px;}

/* Services — jeden płynny transition przy zmianie filtra. */
#services-grid{
  transition:
    opacity .34s var(--motion-v4-soft),
    transform .38s var(--motion-v4-soft);
}
#services-grid.motion-v4-filter-out{
  opacity:.34;
  transform:translate3d(0,7px,0) scale(.995);
}
#services-grid > .reveal{
  transition-duration:.88s;
}
#services-grid > .reveal:nth-child(1){transition-delay:0ms!important;}
#services-grid > .reveal:nth-child(2){transition-delay:70ms!important;}
#services-grid > .reveal:nth-child(3){transition-delay:140ms!important;}
#services-grid > .reveal:nth-child(4){transition-delay:210ms!important;}
#services-grid > .reveal:nth-child(5){transition-delay:280ms!important;}
#services-grid > .reveal:nth-child(6){transition-delay:350ms!important;}

/* Dodatkowe 01→02→03 */
#services-grid.meritum-additional-grid > .additional-service-card:nth-child(1){--rv-x:-14px;--rv-y:14px;}
#services-grid.meritum-additional-grid > .additional-service-card:nth-child(2){--rv-x:0px;--rv-y:22px;}
#services-grid.meritum-additional-grid > .additional-service-card:nth-child(3){--rv-x:14px;--rv-y:14px;}

/* Zespół */
.team-panel.reveal{
  transition-duration:1.1s;
}
.team-panel.motion-v4-team-left{--rv-x:-30px;--rv-y:6px;--rv-scale:.995;}
.team-panel.motion-v4-team-right{--rv-x:30px;--rv-y:6px;--rv-scale:.995;}
.team-panel img{
  transition:transform 1.05s var(--motion-v4-soft);
}
.team-panel:hover img{transform:scale(1.03);}

/* Timeline: shell entrance + jedna linia dekoracyjna. */
.history-object-shell.reveal{
  --rv-y:18px;
  --rv-scale:.997;
}
.history-object-shell.reveal #timeline::before{
  transform:scaleX(.15);
  transform-origin:left center;
  opacity:.3;
  transition:transform 1.25s var(--motion-v4-ease) .12s,opacity .8s ease .12s;
}
.history-object-shell.reveal.in #timeline::before{
  transform:scaleX(1);
  opacity:1;
}

/* Subtelne gallery hover — ruch wewnątrz ramki, nie samej geometrii layoutu. */
.gal-item img{
  transition:transform .9s var(--motion-v4-soft);
}
@media (hover:hover) and (pointer:fine){
  .gal-item:hover img{transform:scale(1.025);}
}

/* Header: tylko optycznie, bez drugiego scroll systemu. */
#site-header{
  transition:
    padding .42s var(--motion-v4-soft),
    background .42s ease,
    border-color .42s ease,
    box-shadow .42s ease;
}
#site-header.scrolled{
  box-shadow:0 18px 44px -38px rgba(0,0,0,.95);
}

/* Ambient: tylko bardzo wolny puls dekoracyjnego goldCanvas jako warstwy.
   Canvas sam jest statyczny, więc zero dodatkowego RAF. */
#goldCanvas{
  animation:motionV4CanvasBreath 16s ease-in-out infinite alternate;
}
@keyframes motionV4CanvasBreath{
  from{opacity:.72;}
  to{opacity:1;}
}

/* Floating control: usuń agresywny ciągły ping — jeden spokojny ambient. */
#chatFab > .animate-ping{
  animation:motionV4ChatHalo 4.8s ease-in-out infinite!important;
}
@keyframes motionV4ChatHalo{
  0%,100%{transform:scale(1);opacity:.10;}
  50%{transform:scale(1.14);opacity:.24;}
}

/* Filter buttons / CTA — spokojniejsze mikrointerakcje */
.svc-filter,
.btn{
  transition-duration:.34s!important;
}

/* Lightbox */
#lightbox:not(.hidden-modal){
  animation:motionV4ModalFade .28s ease both;
}
#lightbox:not(.hidden-modal) figure{
  animation:motionV4LightboxIn .5s var(--motion-v4-ease) both;
}
@keyframes motionV4ModalFade{from{opacity:0}to{opacity:1}}
@keyframes motionV4LightboxIn{
  from{opacity:0;transform:scale(.978);}
  to{opacity:1;transform:none;}
}

/* Mobile: mniejsze amplitudy, nadal jeden pipeline. */
@media (max-width:767px){
  .reveal{
    --rv-x:0px!important;
    --rv-y:16px!important;
    --rv-scale:.995!important;
    transition-duration:.72s!important;
  }
  #goldCanvas{animation-duration:20s;}
  main > section:first-child [data-tilt] > .tilt-pop.-left-5,
  main > section:first-child [data-tilt] > .tilt-pop.-right-4,
  .kancelaria-duo-wrap [data-tilt] > .tilt-pop.-bottom-6.-left-6{
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
  }
}

@media (prefers-reduced-motion:reduce){
  #goldCanvas,
  #chatFab > .animate-ping{
    animation:none!important;
  }
}


/* ==========================================================================
   MERITUM MOTION v6 — OPTIMIZED LIVING GOLD
   Gold animations are scoped to sections near the viewport.
   No global filter loops, no permanent high-frequency RAF.
   ========================================================================== */

:root{
  --v6-bg-x:0px;
  --v6-bg-y:0px;
  --v6-dust-x:0px;
  --v6-dust-y:0px;
  --v6-dust-opacity:.78;
  --v6-noise-opacity:.025;
}

/* ---------------- RESTORE / HARDEN FLOATING CONTROLS ---------------- */
#chatFab{
  position:fixed !important;
  right:5rem !important;
  bottom:1.5rem !important;
  z-index:66 !important;
  overflow:visible !important;
}
#toTop{
  position:fixed !important;
  right:1.5rem !important;
  bottom:1.5rem !important;
  z-index:66 !important;
  overflow:visible !important;
}
#chatPanel{z-index:67 !important;}
footer{
  margin-bottom:0 !important;
}
body{
  padding-bottom:0 !important;
}

/* Tiny sheen for the two floating controls, without changing position. */
#chatFab::before,
#toTop::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(112deg,transparent 28%,rgba(255,255,255,.28) 50%,transparent 72%);
  transform:translate3d(-150%,0,0) skewX(-17deg);
  animation:v6ControlSweep 9.2s ease-in-out infinite;
}
#chatFab::before{border-radius:999px;}
#toTop::before{border-radius:2px;}
@keyframes v6ControlSweep{
  0%,65%{transform:translate3d(-150%,0,0) skewX(-17deg);opacity:0;}
  72%{opacity:.12;}
  83%{opacity:.26;}
  96%,100%{transform:translate3d(150%,0,0) skewX(-17deg);opacity:0;}
}

/* ---------------- AMBIENT BACKGROUND ---------------- */
body::before{
  transform:translate3d(var(--v6-bg-x),var(--v6-bg-y),0) scale(1.03);
  transform-origin:center;
  transition:none !important;
  will-change:transform;
}
#goldCanvas{
  animation:none !important;
  transform:translate3d(var(--v6-dust-x),var(--v6-dust-y),0);
  opacity:var(--v6-dust-opacity);
  transition:none !important;
  will-change:transform,opacity;
}
body::after{
  opacity:var(--v6-noise-opacity);
  transition:none !important;
}

/* ---------------- GOLD SHIMMER: TEXT ---------------- */
@keyframes v6GoldTextFlow{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}

/* v4 defined .gold-text but did not animate it. */
.gold-text{
  animation:none;
  background-position:0% 50%;
}

/* Only visible/near-visible section content animates. */
.gold-live .gold-text,
.gold-live p.text-brand-gold,
.gold-live span.text-brand-gold,
.gold-live a.text-brand-gold:not(.social-link),
.gold-live button.text-brand-gold,
.gold-live p.text-brand-goldlight,
.gold-live span.text-brand-goldlight,
.gold-live a.text-brand-goldlight:not(.social-link),
.gold-live button.text-brand-goldlight,
#site-header.gold-live p.text-brand-gold,
#site-header.gold-live span.text-brand-gold,
#site-header.gold-live a.text-brand-gold:not(.social-link){
  background-image:linear-gradient(
    100deg,
    #997A15 0%,
    #D4AF37 24%,
    #F6E7A8 50%,
    #D4AF37 76%,
    #997A15 100%
  );
  background-size:220% 100%;
  background-position:0% 50%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent !important;
  animation:v6GoldTextFlow 12s linear infinite;
}

/* ---------------- GOLD SHIMMER: SURFACES ---------------- */
@keyframes v6GoldSurfaceFlow{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}

/* IMPORTANT: no position:relative here. That was what broke fixed chat/toTop in v5. */
.gold-live .btn-gold,
.gold-live .badge-gold,
.gold-live .svc-filter.is-active,
.gold-live .mode-btn.is-active,
.gold-live .slot.sel,
.gold-live .daycell.sel,
#site-header.gold-live .btn-gold{
  background-image:linear-gradient(
    135deg,
    #E6CA65 0%,
    #D4AF37 30%,
    #997A15 54%,
    #F6E7A8 72%,
    #D4AF37 88%,
    #997A15 100%
  );
  background-size:190% 190%;
  animation:v6GoldSurfaceFlow 14s linear infinite;
}

/* Floating buttons use their fixed geometry and a normal gold background. */
#chatFab.gold-bg,
#toTop.gold-bg{
  background:linear-gradient(135deg,#E6CA65 0%,#D4AF37 52%,#997A15 100%) !important;
  animation:none !important;
}

/* ---------------- GOLD SHIMMER: ICONS ---------------- */
@keyframes v6GoldIconFlow{
  0%,100%{color:#B28C20;opacity:.92;}
  50%{color:#F5DF86;opacity:1;}
}
.gold-live svg.text-brand-gold,
.gold-live svg.text-brand-goldlight,
.gold-live .social-link svg,
#site-header.gold-live svg.text-brand-gold,
#site-header.gold-live svg.text-brand-goldlight{
  animation:v6GoldIconFlow 9.4s ease-in-out infinite;
}

/* Social media: preserve currentColor; do not make the anchor transparent. */
.social-link{
  color:#D4AF37 !important;
  position:relative;
  overflow:hidden;
}
.social-link::after{
  content:"";
  position:absolute;
  inset:-20% auto -20% -40%;
  width:28%;
  pointer-events:none;
  background:linear-gradient(110deg,transparent,rgba(246,231,168,.16),transparent);
  transform:translate3d(-130%,0,0) skewX(-18deg);
  transition:transform .8s cubic-bezier(.16,1,.3,1),opacity .25s ease;
  opacity:0;
}
@media (hover:hover) and (pointer:fine){
  .social-link:hover::after{
    transform:translate3d(620%,0,0) skewX(-18deg);
    opacity:1;
  }
}

/* ---------------- CALCULATOR BARS ---------------- */
.bar-rect{
  transition:fill .3s ease,opacity .35s ease;
}
#kalkulator.gold-live .bar-rect{
  animation:v6BarBreath 7.4s ease-in-out infinite;
}
#kalkulator.gold-live .bar-rect:nth-of-type(2){animation-delay:-1.2s;}
#kalkulator.gold-live .bar-rect:nth-of-type(3){animation-delay:-2.4s;}
#kalkulator.gold-live .bar-rect:nth-of-type(4){animation-delay:-3.6s;}
@keyframes v6BarBreath{
  0%,100%{opacity:.86;}
  50%{opacity:1;}
}

/* ---------------- CALCULATOR LOGO LIGHT SWEEP ---------------- */
.calculator-brand-symbol{
  isolation:isolate;
}
.calculator-brand-symbol .calculator-logo-sweep{
  position:absolute;
  z-index:2;
  left:50%;
  top:50%;
  width:clamp(178px,17vw,238px);
  max-width:58%;
  aspect-ratio:900 / 882;
  transform:translate(-48%,-50%);
  pointer-events:none;
  opacity:.72;
  background:linear-gradient(
    105deg,
    transparent 0 39%,
    rgba(255,244,201,0) 40%,
    rgba(255,244,201,.58) 50%,
    rgba(255,244,201,0) 60%,
    transparent 61% 100%
  );
  background-size:240% 100%;
  background-position:-160% 50%;
  -webkit-mask:url("../meritum-symbol-m.webp") center/contain no-repeat;
  mask:url("../meritum-symbol-m.webp") center/contain no-repeat;
  animation:none;
}
#kalkulator.gold-live .calculator-logo-sweep{
  animation:v6LogoSweep 8.5s ease-in-out infinite;
}
@keyframes v6LogoSweep{
  0%,56%{background-position:-160% 50%;opacity:0;}
  64%{opacity:.28;}
  78%{opacity:.72;}
  94%,100%{background-position:160% 50%;opacity:0;}
}

/* ---------------- LIGHTWEIGHT "LIFE" DETAILS ---------------- */
.gold-live .kicker::before,
.gold-live .gold-rule{
  animation:v6RuleBreath 7.8s ease-in-out infinite;
}
@keyframes v6RuleBreath{
  0%,100%{opacity:.58;transform:scaleX(.97);}
  50%{opacity:.9;transform:scaleX(1.02);}
}

/* One-time sheen on cards only when the user hovers. No idle repaint loop. */
.card-grad.tilt{
  position:relative;
  overflow:hidden;
}
.card-grad.tilt::after{
  content:"";
  position:absolute;
  inset:-35% auto -35% -34%;
  width:20%;
  pointer-events:none;
  background:linear-gradient(110deg,transparent,rgba(246,231,168,.07),transparent);
  transform:translate3d(-135%,0,0) skewX(-17deg);
  opacity:0;
  transition:transform .9s cubic-bezier(.16,1,.3,1),opacity .25s ease;
}
@media (hover:hover) and (pointer:fine){
  .card-grad.tilt:hover::after{
    transform:translate3d(760%,0,0) skewX(-17deg);
    opacity:1;
  }
}

/* Hero floating facts: only 3 elements, very slow ±2px breathing. */
main > section:first-child [data-tilt] > .tilt-pop.absolute{
  animation:v6HeroFloat 9s ease-in-out infinite alternate;
}
main > section:first-child [data-tilt] > .tilt-pop.absolute:nth-of-type(2){animation-delay:-2.8s;}
main > section:first-child [data-tilt] > .tilt-pop.absolute:nth-of-type(3){animation-delay:-5.4s;}
@keyframes v6HeroFloat{
  from{translate:0 -1px;}
  to{translate:0 2px;}
}

/* Story 2025 badge: minimal breathing, independent from its absolute offsets. */
.kancelaria-duo-wrap [data-tilt] > .tilt-pop.absolute{
  animation:v6BadgeFloat 10s ease-in-out infinite alternate;
}
@keyframes v6BadgeFloat{
  from{translate:0 0;}
  to{translate:0 -2px;}
}

/* Proof ribbon gets one tiny border-intensity pulse when on screen. */
.gold-live .proof-ribbon{
  animation:v6ProofEdge 11s ease-in-out infinite;
}
@keyframes v6ProofEdge{
  0%,100%{border-color:rgba(212,175,55,.14);}
  50%{border-color:rgba(212,175,55,.24);}
}

/* ---------------- PERFORMANCE GUARDRAILS ---------------- */
@media (max-width:991px){
  body::before{
    transform:scale(1.02) !important;
    will-change:auto;
  }
  #goldCanvas{
    transform:none !important;
    will-change:auto;
    opacity:.68;
  }
  main > section:first-child [data-tilt] > .tilt-pop.absolute,
  .kancelaria-duo-wrap [data-tilt] > .tilt-pop.absolute{
    animation:none;
  }
  .gold-live .gold-text,
  .gold-live p.text-brand-gold,
  .gold-live span.text-brand-gold,
  .gold-live a.text-brand-gold:not(.social-link),
  .gold-live button.text-brand-gold{
    animation-duration:16s;
  }
}

@media (prefers-reduced-motion:reduce){
  #chatFab::before,
  #toTop::before,
  .gold-live .gold-text,
  .gold-live p.text-brand-gold,
  .gold-live span.text-brand-gold,
  .gold-live a.text-brand-gold,
  .gold-live button.text-brand-gold,
  .gold-live .btn-gold,
  .gold-live .badge-gold,
  .gold-live svg.text-brand-gold,
  .gold-live .social-link svg,
  #kalkulator.gold-live .bar-rect,
  #kalkulator.gold-live .calculator-logo-sweep,
  .gold-live .kicker::before,
  .gold-live .gold-rule,
  main > section:first-child [data-tilt] > .tilt-pop.absolute,
  .kancelaria-duo-wrap [data-tilt] > .tilt-pop.absolute,
  .gold-live .proof-ribbon{
    animation:none !important;
  }
  body::before,#goldCanvas{
    transform:none !important;
    will-change:auto !important;
  }
}


/* ==========================================================================
   MERITUM MOTION v7 — PERFORMANCE POLISH
   Layered on top of v6. No redesign: motion/interaction/performance only.
   ========================================================================== */

:root{
  --v7-active-glow:.035;
  --v7-near-glow:.018;
}

/* Main sections become the scope boundary for section-specific ambient effects.
   No layout dimensions are changed. */
main > section,
footer{
  position:relative;
}

/* Faint, composited section light. Only the ACTIVE section moves.
   Pseudo-layer is visual-only and uses transform + opacity. */
main > section.motion-v7-section::after{
  content:"";
  position:absolute;
  z-index:0;
  pointer-events:none;
  width:min(42vw,620px);
  aspect-ratio:1;
  border-radius:999px;
  right:-18vw;
  top:18%;
  opacity:0;
  background:radial-gradient(circle,rgba(212,175,55,.055) 0%,rgba(212,175,55,.018) 34%,transparent 70%);
  transform:translate3d(22px,0,0) scale(.94);
  transition:opacity 1.1s ease,transform 1.8s cubic-bezier(.16,1,.3,1);
}
main > section.motion-v7-section.motion-near::after{
  opacity:var(--v7-near-glow);
}
main > section.motion-v7-section.motion-active::after{
  opacity:var(--v7-active-glow);
  transform:translate3d(0,0,0) scale(1);
}
main > section.motion-v7-section:nth-of-type(2n)::after{
  right:auto;
  left:-20vw;
}

/* Keep section content above ambient pseudo-light. */
main > section.motion-v7-section > *{
  position:relative;
  z-index:1;
}

/* ==========================================================================
   SECTION VOCABULARY
   ========================================================================== */

/* HERO — only internal image movement, wrappers/floating cards untouched. */
.motion-v7-hero .mv7-depth-image{
  --mv7-parallax-y:0px;
  transform:translate3d(0,var(--mv7-parallax-y),0) scale(1.012);
  transition:transform .35s linear;
}
.motion-v7-hero.motion-active .hero-marquee .strip-group i{
  animation-duration:9.5s;
}

/* Story — frame light, not layout movement. */
.motion-v7-story .kancelaria-duo-frame{
  position:relative;
}
.motion-v7-story .kancelaria-duo-frame::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border:1px solid rgba(212,175,55,0);
  transition:border-color 1.2s ease;
}
.motion-v7-story.motion-active .kancelaria-duo-frame::after{
  border-color:rgba(212,175,55,.12);
}

/* Why / section dividers: tiny opacity breathing only when active. */
.motion-v7-why.motion-active .section-divider span{
  animation:v7DividerAlive 8.8s ease-in-out infinite;
}
@keyframes v7DividerAlive{
  0%,100%{opacity:.64;transform:scaleX(.99);}
  50%{opacity:1;transform:scaleX(1.015);}
}

/* Philosophy: mission line has a restrained living edge. */
.motion-v7-philosophy .glass.border-l-2{
  transition:border-left-color .7s ease,background .7s ease;
}
.motion-v7-philosophy.motion-active .glass.border-l-2{
  border-left-color:#E0BC48;
  background:linear-gradient(90deg,rgba(212,175,55,.045),rgba(7,28,23,.88) 56%);
}

/* Pointer depth panel: JS writes only two CSS vars to the single panel. */
.motion-v7-pointer-panel{
  --mv7-rx:0deg;
  --mv7-ry:0deg;
  transform:perspective(1200px) rotateX(var(--mv7-rx)) rotateY(var(--mv7-ry));
  transform-origin:center;
  transition:transform .22s ease-out,border-color .35s ease;
}
.motion-v7-pointer-panel:not(:hover){
  --mv7-rx:0deg!important;
  --mv7-ry:0deg!important;
}

/* Team: inner images can drift 2px when the section is active. */
.motion-v7-team .team-panel img{
  --mv7-team-y:0px;
  transform:translate3d(0,var(--mv7-team-y),0) scale(1.005);
}
.motion-v7-team.motion-active .team-panel:first-child img{
  animation:v7TeamDriftA 18s ease-in-out infinite alternate;
}
.motion-v7-team.motion-active .team-panel:last-child img{
  animation:v7TeamDriftB 20s ease-in-out infinite alternate;
}
@keyframes v7TeamDriftA{
  from{transform:translate3d(0,-1px,0) scale(1.006);}
  to{transform:translate3d(0,2px,0) scale(1.01);}
}
@keyframes v7TeamDriftB{
  from{transform:translate3d(0,2px,0) scale(1.008);}
  to{transform:translate3d(0,-1px,0) scale(1.006);}
}
@media (hover:hover) and (pointer:fine){
  .motion-v7-team .team-panel:hover img{
    animation-play-state:paused;
    transform:scale(1.028);
  }
}

/* Services: static after entry; only active filter edge has a mild life signal. */
.motion-v7-services.motion-active .svc-filter.is-active{
  box-shadow:0 0 0 1px rgba(246,231,168,.09) inset;
}

/* Calculator: avoid heavy glow; selected result has optical emphasis. */
.motion-v7-calc.motion-active #calcReco{
  border-color:rgba(212,175,55,.42);
  transition:border-color .8s ease;
}

/* Industries: only two icons breathe at a time, not the whole grid. */
.motion-v7-industries.motion-active #industries-grid > article:nth-child(3n+1) svg.text-brand-gold,
.motion-v7-industries.motion-active #industries-grid > article:nth-child(3n+2) svg.text-brand-gold{
  animation:v7IconQuiet 10.5s ease-in-out infinite;
}
.motion-v7-industries.motion-active #industries-grid > article:nth-child(3n+2) svg.text-brand-gold{
  animation-delay:-4.8s;
}
@keyframes v7IconQuiet{
  0%,100%{opacity:.76;}
  50%{opacity:1;}
}

/* Seat: scroll moves images INSIDE frames only. */
.motion-v7-seat .gal-item img{
  --mv7-parallax-y:0px;
  transform:translate3d(0,var(--mv7-parallax-y),0) scale(1.012);
}
@media (hover:hover) and (pointer:fine){
  .motion-v7-seat .gal-item:hover img{
    transform:translate3d(0,var(--mv7-parallax-y),0) scale(1.025);
  }
}

/* Timeline: once revealed, active state affects only the decorative line. */
.motion-v7-seat.motion-active #timeline::before{
  animation:v7TimelineLuma 12s ease-in-out infinite;
}
@keyframes v7TimelineLuma{
  0%,100%{opacity:.62;}
  50%{opacity:.9;}
}

/* Social proof: one idle effect for this whole section. */
.motion-v7-proof.motion-active .proof-ribbon{
  animation:v7ProofBreath 12.5s ease-in-out infinite;
}
@keyframes v7ProofBreath{
  0%,100%{border-color:rgba(212,175,55,.14);}
  50%{border-color:rgba(212,175,55,.23);}
}

/* Knowledge: no perpetual card loops; interaction only. */
@media (hover:hover) and (pointer:fine){
  .motion-v7-knowledge #news-grid > article{
    transition:transform .45s cubic-bezier(.16,1,.3,1),border-color .35s ease;
  }
  .motion-v7-knowledge #news-grid > article:hover{
    transform:translateY(-3px);
  }
  .motion-v7-knowledge #news-grid > article:hover svg{
    transform:translateX(4px);
  }
}

/* Work: one restrained diagonal corner glint, scoped to active section. */
.motion-v7-work [class*="lg:col-span-6"]:last-child{
  position:relative;
}
.motion-v7-work [class*="lg:col-span-6"]:last-child::before{
  content:"";
  position:absolute;
  pointer-events:none;
  right:-4%;
  top:-6%;
  width:120px;
  height:120px;
  opacity:0;
  border-top:1px solid rgba(212,175,55,.16);
  border-right:1px solid rgba(212,175,55,.16);
  transform:translate3d(8px,-8px,0);
  transition:opacity 1.1s ease,transform 1.4s cubic-bezier(.16,1,.3,1);
}
.motion-v7-work.motion-active [class*="lg:col-span-6"]:last-child::before{
  opacity:.55;
  transform:none;
}

/* Contact: focus is the life signal; map gets a calm border change only. */
.motion-v7-contact.motion-active iframe{
  opacity:.98;
}
.motion-v7-contact .field:focus{
  border-color:#D4AF37;
  box-shadow:0 0 0 2px rgba(212,175,55,.12);
}

/* Footer: no idle animation; hover only. */
footer.motion-active .social-link{
  border-color:rgba(212,175,55,.32);
}

/* ==========================================================================
   ACTIVE GOLD BUDGET
   ========================================================================== */

/* v6 used .gold-live. v7 aliases it only for near/active sections from JS.
   Slow the repaint-heavy text gradients further. */
.gold-live .gold-text,
.gold-live p.text-brand-gold,
.gold-live span.text-brand-gold,
.gold-live a.text-brand-gold:not(.social-link),
.gold-live button.text-brand-gold,
.gold-live p.text-brand-goldlight,
.gold-live span.text-brand-goldlight,
.gold-live a.text-brand-goldlight:not(.social-link),
.gold-live button.text-brand-goldlight{
  animation-duration:15.5s;
}

/* Surface gradients are small and less frequent. */
.gold-live .btn-gold,
.gold-live .badge-gold,
.gold-live .svc-filter.is-active,
.gold-live .mode-btn.is-active,
.gold-live .slot.sel,
.gold-live .daycell.sel{
  animation-duration:16.5s;
}

/* ==========================================================================
   PERFORMANCE / MOBILE
   ========================================================================== */
@media (max-width:991px){
  main > section.motion-v7-section::after{display:none;}
  .motion-v7-pointer-panel{transform:none!important;}
  .motion-v7-team.motion-active .team-panel img{animation:none!important;}
  .motion-v7-seat .gal-item img,
  .motion-v7-hero .mv7-depth-image{transform:none!important;}
}

@media (prefers-reduced-motion:reduce){
  main > section.motion-v7-section::after{display:none!important;}
  .motion-v7-why.motion-active .section-divider span,
  .motion-v7-team.motion-active .team-panel img,
  .motion-v7-industries.motion-active svg,
  .motion-v7-seat.motion-active #timeline::before,
  .motion-v7-proof.motion-active .proof-ribbon{
    animation:none!important;
  }
  .motion-v7-pointer-panel{transform:none!important;}
}


/* ==========================================================================
   v7 FAIL-OPEN + ACTIVE-ONLY IDLE OVERRIDES
   ========================================================================== */

/* If the main JS fails, the head watchdog removes .motion-js and content is visible. */
html:not(.motion-js) .reveal{
  opacity:1!important;
  transform:none!important;
  transition:none!important;
}

/* v6 idle animations are tightened to ACTIVE sections only. */
main > section:first-child [data-tilt] > .tilt-pop.absolute{
  animation:none;
}
.motion-v7-hero.motion-active [data-tilt] > .tilt-pop.absolute{
  animation:v6HeroFloat 10.5s ease-in-out infinite alternate;
}
.motion-v7-hero.motion-active [data-tilt] > .tilt-pop.absolute:nth-of-type(2){animation-delay:-3.2s;}
.motion-v7-hero.motion-active [data-tilt] > .tilt-pop.absolute:nth-of-type(3){animation-delay:-6.1s;}

.kancelaria-duo-wrap [data-tilt] > .tilt-pop.absolute{
  animation:none;
}
.motion-v7-story.motion-active .kancelaria-duo-wrap [data-tilt] > .tilt-pop.absolute{
  animation:v6BadgeFloat 12s ease-in-out infinite alternate;
}

/* Keep calculator idle work off until it is the active section. */
#kalkulator.gold-live .bar-rect,
#kalkulator.gold-live .calculator-logo-sweep{
  animation:none;
}
#kalkulator.motion-active .bar-rect{
  animation:v6BarBreath 8.8s ease-in-out infinite;
}
#kalkulator.motion-active .bar-rect:nth-of-type(2){animation-delay:-1.7s;}
#kalkulator.motion-active .bar-rect:nth-of-type(3){animation-delay:-3.4s;}
#kalkulator.motion-active .bar-rect:nth-of-type(4){animation-delay:-5.1s;}
#kalkulator.motion-active .calculator-logo-sweep{
  animation:v6LogoSweep 10s ease-in-out infinite;
}

/* One proof idle animation, active only. */
.gold-live .proof-ribbon{animation:none;}
.motion-v7-proof.motion-active .proof-ribbon{
  animation:v7ProofBreath 12.5s ease-in-out infinite;
}


/* ==========================================================================
   MERITUM MOTION v8 — SCROLL PERFORMANCE
   Objective: keep visual polish, remove repaint-heavy and scroll-coupled work.
   ========================================================================== */

/* --------------------------------------------------------------------------
   HARD PERFORMANCE RESET FOR OLD IDLE SYSTEMS
   -------------------------------------------------------------------------- */

/* Static atmospheric background. No viewport-sized layer moves during scroll. */
body::before{
  transform:none !important;
  transition:none !important;
  will-change:auto !important;
}
body::after{
  opacity:.018 !important;
  transition:none !important;
}
#goldCanvas{
  transform:none !important;
  opacity:.66 !important;
  animation:none !important;
  transition:none !important;
  will-change:auto !important;
}

/* Old v6/v7 repaint-heavy gold loops are disabled globally.
   Gold remains the SAME gradient/colour — only the continuous repaint is removed. */
.gold-live .gold-text,
.gold-live p.text-brand-gold,
.gold-live span.text-brand-gold,
.gold-live a.text-brand-gold:not(.social-link),
.gold-live button.text-brand-gold,
.gold-live p.text-brand-goldlight,
.gold-live span.text-brand-goldlight,
.gold-live a.text-brand-goldlight:not(.social-link),
.gold-live button.text-brand-goldlight,
.gold-live .btn-gold,
.gold-live .badge-gold,
.gold-live .svc-filter.is-active,
.gold-live .mode-btn.is-active,
.gold-live .slot.sel,
.gold-live .daycell.sel,
.gold-live svg.text-brand-gold,
.gold-live svg.text-brand-goldlight,
.gold-live .social-link svg,
#kalkulator.gold-live .bar-rect,
#kalkulator.gold-live .calculator-logo-sweep,
.gold-live .kicker::before,
.gold-live .gold-rule,
.gold-live .proof-ribbon{
  animation:none !important;
}

/* No old active-section infinite loops if stale classes ever remain in markup/cache. */
.motion-v7-why.motion-active .section-divider span,
.motion-v7-team.motion-active .team-panel img,
.motion-v7-industries.motion-active svg,
.motion-v7-seat.motion-active #timeline::before,
.motion-v7-proof.motion-active .proof-ribbon,
.motion-v7-hero.motion-active [data-tilt] > .tilt-pop.absolute,
.motion-v7-story.motion-active .kancelaria-duo-wrap [data-tilt] > .tilt-pop.absolute{
  animation:none !important;
}

/* Remove old giant section radial pseudo-layers. */
main > section.motion-v7-section::after{
  display:none !important;
}

/* Old scroll depth variables no longer participate. */
.mv7-depth-image,
.motion-v7-seat .gal-item img,
.motion-v7-hero .mv7-depth-image{
  transform:none !important;
  transition:transform .7s cubic-bezier(.16,1,.3,1) !important;
}

/* --------------------------------------------------------------------------
   v8 ACTIVE SECTION SYSTEM — ONE SMALL COMPOSITED ACCENT
   -------------------------------------------------------------------------- */
main > section.motion-v8-section,
footer.motion-v8-section{
  position:relative;
}

/* Small 150px line, not a 600px radial layer. Only one active section animates it. */
main > section.motion-v8-section::after{
  content:"";
  position:absolute;
  z-index:0;
  pointer-events:none;
  top:14%;
  right:4.5%;
  width:150px;
  height:1px;
  opacity:0;
  background:linear-gradient(90deg,transparent,rgba(212,175,55,.55),transparent);
  transform:translate3d(16px,0,0) scaleX(.82);
  transform-origin:center;
}
main > section.motion-v8-section:nth-of-type(2n)::after{
  right:auto;
  left:4.5%;
}
main > section.motion-v8-section.motion-v8-active::after{
  opacity:.38;
  animation:v8SectionAccent 9.5s ease-in-out infinite;
}
@keyframes v8SectionAccent{
  0%,100%{transform:translate3d(-4px,0,0) scaleX(.88);opacity:.24;}
  50%{transform:translate3d(7px,0,0) scaleX(1);opacity:.48;}
}
main > section.motion-v8-section > *{
  position:relative;
  z-index:1;
}

/* --------------------------------------------------------------------------
   GOLD — STATIC PREMIUM BASE + ONLY MAIN ACTIVE HEADING SHIMMERS
   -------------------------------------------------------------------------- */
.gold-text{
  animation:none !important;
  background-position:50% 50% !important;
}

/* At most the prominent gold phrase in the currently active section repaints. */
.motion-v8-active h1 .gold-text,
.motion-v8-active h2 .gold-text,
.motion-v8-active h3 .gold-text{
  animation:v8MainGold 18s linear infinite !important;
  background-size:220% 100%;
}
@keyframes v8MainGold{
  0%{background-position:18% 50%;}
  50%{background-position:82% 50%;}
  100%{background-position:18% 50%;}
}

/* Gold surfaces stay static; existing hover sheen remains. */
.btn-gold,
.badge-gold,
.svc-filter.is-active,
.mode-btn.is-active,
.slot.sel,
.daycell.sel{
  animation:none !important;
}

/* Icons: static gold. Hover/focus remains responsive without permanent repaints. */
svg.text-brand-gold,
svg.text-brand-goldlight,
.social-link svg{
  animation:none !important;
}

/* --------------------------------------------------------------------------
   MARQUEE — important optimization:
   the 200vw compositor layer runs ONLY while HERO is active.
   -------------------------------------------------------------------------- */
.strip-track{
  animation-play-state:paused !important;
  will-change:auto !important;
}
.motion-v8-hero.motion-v8-active .strip-track{
  animation-play-state:running !important;
  will-change:transform !important;
}

/* --------------------------------------------------------------------------
   HERO — three tiny transform-only idle elements, active only.
   -------------------------------------------------------------------------- */
main > section:first-child [data-tilt] > .tilt-pop.absolute{
  animation:none !important;
}
.motion-v8-hero.motion-v8-active [data-tilt] > .tilt-pop.absolute{
  animation:v8HeroFloat 11s ease-in-out infinite alternate !important;
}
.motion-v8-hero.motion-v8-active [data-tilt] > .tilt-pop.absolute:nth-of-type(2){
  animation-delay:-3.4s !important;
}
.motion-v8-hero.motion-v8-active [data-tilt] > .tilt-pop.absolute:nth-of-type(3){
  animation-delay:-6.8s !important;
}
@keyframes v8HeroFloat{
  from{translate:0 -1px;}
  to{translate:0 2px;}
}

/* --------------------------------------------------------------------------
   KANCELARIA / TEAM
   No permanent image drift. Interaction only.
   -------------------------------------------------------------------------- */
.motion-v7-team .team-panel img,
.team-panel img{
  animation:none !important;
}
@media (hover:hover) and (pointer:fine){
  .team-panel:hover img{
    transform:scale(1.025) !important;
  }
}

.motion-v8-pointer-panel{
  --v8-rx:0deg;
  --v8-ry:0deg;
  transform:perspective(1200px) rotateX(var(--v8-rx)) rotateY(var(--v8-ry));
  transform-origin:center;
  transition:transform .22s ease-out,border-color .35s ease;
}
.motion-v8-pointer-panel:not(:hover){
  --v8-rx:0deg !important;
  --v8-ry:0deg !important;
}

/* --------------------------------------------------------------------------
   CARDS — life comes from interaction, not idle animation.
   -------------------------------------------------------------------------- */
.card-grad.tilt::after{
  animation:none !important;
}
@media (hover:hover) and (pointer:fine){
  .card-grad.tilt:hover::after{
    transform:translate3d(760%,0,0) skewX(-17deg);
    opacity:1;
  }
}

/* --------------------------------------------------------------------------
   CALCULATOR
   Static SVG gradients + one small masked logo sweep while active.
   -------------------------------------------------------------------------- */
#kalkulator .bar-rect{
  animation:none !important;
}
#kalkulator .calculator-logo-sweep{
  animation:none !important;
}
#kalkulator.motion-v8-active .calculator-logo-sweep{
  animation:v8LogoSweep 11.5s ease-in-out infinite !important;
}
@keyframes v8LogoSweep{
  0%,64%{background-position:-160% 50%;opacity:0;}
  70%{opacity:.24;}
  82%{opacity:.64;}
  96%,100%{background-position:160% 50%;opacity:0;}
}

/* --------------------------------------------------------------------------
   SEAT / GALLERY — no scroll parallax. Hover-only internal scale.
   -------------------------------------------------------------------------- */
.motion-v7-seat .gal-item img,
.gal-item img{
  transform:none !important;
  animation:none !important;
}
@media (hover:hover) and (pointer:fine){
  .gal-item:hover img{
    transform:scale(1.022) !important;
  }
}

/* --------------------------------------------------------------------------
   TIMELINE / PROOF — one cheap opacity/border signal in the active section.
   -------------------------------------------------------------------------- */
.motion-v8-seat.motion-v8-active #timeline::before{
  animation:v8Timeline 13s ease-in-out infinite !important;
}
@keyframes v8Timeline{
  0%,100%{opacity:.62;}
  50%{opacity:.88;}
}

.motion-v8-proof.motion-v8-active .proof-ribbon{
  animation:v8Proof 14s ease-in-out infinite !important;
}
@keyframes v8Proof{
  0%,100%{border-color:rgba(212,175,55,.14);}
  50%{border-color:rgba(212,175,55,.22);}
}

/* --------------------------------------------------------------------------
   SOCIAL / FLOATING CONTROLS — stable geometry, hover-only sheen.
   -------------------------------------------------------------------------- */
.social-link{
  color:#D4AF37 !important;
}
.social-link::after{
  animation:none !important;
}
#chatFab,
#toTop{
  position:fixed !important;
}
#chatFab::before,
#toTop::before{
  animation:none !important;
}
@media (hover:hover) and (pointer:fine){
  #chatFab:hover::before,
  #toTop:hover::before{
    animation:v8ControlSweep .75s cubic-bezier(.16,1,.3,1) 1 !important;
  }
}
@keyframes v8ControlSweep{
  from{transform:translate3d(-150%,0,0) skewX(-17deg);opacity:0;}
  45%{opacity:.22;}
  to{transform:translate3d(150%,0,0) skewX(-17deg);opacity:0;}
}

/* --------------------------------------------------------------------------
   MOBILE: even less continuous work.
   -------------------------------------------------------------------------- */
@media (max-width:991px){
  main > section.motion-v8-section::after{
    display:none !important;
  }
  .motion-v8-active h1 .gold-text,
  .motion-v8-active h2 .gold-text,
  .motion-v8-active h3 .gold-text,
  .motion-v8-hero.motion-v8-active [data-tilt] > .tilt-pop.absolute,
  #kalkulator.motion-v8-active .calculator-logo-sweep,
  .motion-v8-seat.motion-v8-active #timeline::before,
  .motion-v8-proof.motion-v8-active .proof-ribbon{
    animation:none !important;
  }
  .strip-track{
    will-change:auto !important;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  main > section.motion-v8-section::after,
  .motion-v8-active h1 .gold-text,
  .motion-v8-active h2 .gold-text,
  .motion-v8-active h3 .gold-text,
  .motion-v8-hero.motion-v8-active [data-tilt] > .tilt-pop.absolute,
  #kalkulator.motion-v8-active .calculator-logo-sweep,
  .motion-v8-seat.motion-v8-active #timeline::before,
  .motion-v8-proof.motion-v8-active .proof-ribbon{
    animation:none !important;
  }
  .strip-track{
    animation-play-state:paused !important;
  }
}


/* ==========================================================================
   MERITUM v9 — CLIENT UPDATES
   ========================================================================== */

/* HERO: dynamic 21% counter uses the same visual language as 10+ / 300+. */
.hero-savings-line{
  display:inline-flex;
  align-items:baseline;
  gap:.22em;
  white-space:normal;
}
.hero-savings-counter{
  display:inline-block;
  min-width:2.15ch;
  color:#D4AF37;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}

/* TEAM: long client-approved biographies — readable without changing the visual concept. */
.team-panel{
  min-height:850px;
}
.team-panel-copy.team-panel-copy--bio{
  max-width:94%;
  padding:2rem 2rem 1.8rem;
  background:linear-gradient(180deg,rgba(7,28,23,0),rgba(7,28,23,.18) 2%,rgba(7,28,23,.86) 12%,rgba(7,28,23,.965) 100%);
}
.team-panel-copy--bio .eyebrow{
  letter-spacing:.24em;
}
.team-panel-copy--bio h3{
  font-size:2.45rem;
  margin-top:.72rem;
}
.team-panel-copy--bio p{
  margin-top:.72rem;
  font-size:.82rem;
  line-height:1.53;
  color:#C7D0CD;
}
.team-panel-copy--bio p + p{
  margin-top:.55rem;
}

/* CLIENT NOTE: remove the wandering "flash"/shine around cards and AI assistant.
   Keep normal hover borders/scales, but no traveling white streaks. */
.card-grad.tilt::after,
.btn-gold::after,
.social-link::after,
#chatFab::before,
#toTop::before{
  content:none !important;
  display:none !important;
  animation:none !important;
  transition:none !important;
}
#chatFab > .animate-ping{
  display:none !important;
  animation:none !important;
}

/* Remove any inherited pseudo sheen from generated service/industry cards. */
#services-grid .card-grad::after,
#industries-grid .card-grad::after,
#why-grid .card-grad::after,
#testi-grid .card-grad::after,
#news-grid .card-grad::after{
  content:none !important;
  display:none !important;
}

/* Gallery: the supplied station photos should remain natural and sharp. */
#siedziba .gal-item img{
  filter:none !important;
}
#siedziba .gal-item[data-gal="0"] img{
  object-position:center center;
}
#siedziba .gal-item[data-gal="1"] img{
  object-position:center 53%;
}
#siedziba .gal-item[data-gal="2"] img{
  object-position:center center;
}

@media (max-width:1023px){
  .team-panel{min-height:800px;}
  .team-panel-copy.team-panel-copy--bio{max-width:100%;}
  .team-panel-copy--bio h3{font-size:2.15rem;}
  .team-panel-copy--bio p{font-size:.79rem;line-height:1.48;}
}
@media (max-width:767px){
  .team-panel{min-height:720px;}
  .team-panel-copy.team-panel-copy--bio{
    padding:1.45rem 1.25rem 1.35rem;
  }
  .team-panel-copy--bio h3{font-size:2rem;}
  .team-panel-copy--bio p{font-size:.76rem;line-height:1.45;}
}


/* ==========================================================================
   MERITUM v11 — TEAM PORTRAIT FIRST / HOVER REVEAL
   ========================================================================== */

.team-panel--reveal{
  cursor:default;
  outline:none;
  min-height:760px;
  border-color:rgba(212,175,55,.14);
  transition:border-color .4s ease, box-shadow .4s ease;
}

.team-panel--reveal:focus-visible{
  border-color:rgba(212,175,55,.48);
  box-shadow:0 0 0 2px rgba(212,175,55,.16);
}

.team-panel--reveal::after{
  background:linear-gradient(
    180deg,
    rgba(7,28,23,.01) 0%,
    rgba(7,28,23,.04) 43%,
    rgba(7,28,23,.20) 63%,
    rgba(7,28,23,.74) 84%,
    rgba(7,28,23,.94) 100%
  );
  transition:background .5s ease;
}

.team-panel--reveal .team-panel-copy.team-panel-copy--bio{
  left:0;
  right:0;
  bottom:0;
  width:100%;
  max-width:100%;
  height:76%;
  padding:1.8rem 2rem 2rem;
  overflow:hidden;
  background:linear-gradient(
    180deg,
    rgba(7,28,23,0) 0%,
    rgba(7,28,23,.12) 10%,
    rgba(7,28,23,.68) 28%,
    rgba(7,28,23,.95) 56%,
    rgba(7,28,23,.99) 100%
  );
  transform:translate3d(0,calc(100% - 150px),0);
  transition:transform .72s cubic-bezier(.16,1,.3,1), background .55s ease;
  will-change:transform;
}

.team-panel--reveal .team-profile-head{
  position:relative;
  z-index:2;
}

.team-panel--reveal .team-profile-head h3{
  margin-top:.72rem;
}

.team-panel--reveal .team-profile-cue{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  margin-top:.9rem;
  color:#D1C097;
  font-size:.70rem;
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
  transition:opacity .28s ease, transform .42s cubic-bezier(.16,1,.3,1);
}

.team-panel--reveal .team-profile-cue i{
  width:.95rem;
  height:.95rem;
  color:#D4AF37;
  transition:transform .42s cubic-bezier(.16,1,.3,1);
}

.team-panel--reveal .team-profile-details{
  margin-top:1.15rem;
  padding-top:1.05rem;
  border-top:1px solid rgba(212,175,55,.16);
  opacity:0;
  transform:translate3d(0,18px,0);
  transition:opacity .38s ease .08s, transform .58s cubic-bezier(.16,1,.3,1) .04s;
}

.team-panel--reveal .team-profile-details p{
  margin-top:.66rem;
  font-size:.82rem;
  line-height:1.53;
  color:#C7D0CD;
}

.team-panel--reveal .team-profile-details p:first-child{
  margin-top:0;
}

@media (hover:hover) and (pointer:fine){
  .team-panel--reveal:hover,
  .team-panel--reveal:focus{
    border-color:rgba(212,175,55,.34);
    box-shadow:0 28px 70px -52px rgba(0,0,0,.92);
  }

  .team-panel--reveal:hover img,
  .team-panel--reveal:focus img{
    transform:scale(1.025);
  }

  .team-panel--reveal:hover::after,
  .team-panel--reveal:focus::after{
    background:linear-gradient(
      180deg,
      rgba(7,28,23,.02) 0%,
      rgba(7,28,23,.08) 30%,
      rgba(7,28,23,.32) 52%,
      rgba(7,28,23,.76) 72%,
      rgba(7,28,23,.97) 100%
    );
  }

  .team-panel--reveal:hover .team-panel-copy.team-panel-copy--bio,
  .team-panel--reveal:focus .team-panel-copy.team-panel-copy--bio{
    transform:translate3d(0,0,0);
  }

  .team-panel--reveal:hover .team-profile-details,
  .team-panel--reveal:focus .team-profile-details{
    opacity:1;
    transform:translate3d(0,0,0);
  }

  .team-panel--reveal:hover .team-profile-cue,
  .team-panel--reveal:focus .team-profile-cue{
    opacity:.42;
    transform:translate3d(0,-3px,0);
  }

  .team-panel--reveal:hover .team-profile-cue i,
  .team-panel--reveal:focus .team-profile-cue i{
    transform:rotate(45deg);
  }
}

@media (min-width:768px) and (max-width:1199px){
  .team-panel--reveal .team-panel-copy.team-panel-copy--bio{
    height:82%;
    transform:translate3d(0,calc(100% - 142px),0);
    padding:1.55rem 1.45rem 1.7rem;
  }

  .team-panel--reveal .team-profile-details p{
    font-size:.76rem;
    line-height:1.47;
  }
}

@media (hover:none), (max-width:767px){
  .team-panel--reveal{
    min-height:0;
    display:flex;
    flex-direction:column;
  }

  .team-panel--reveal img{
    position:relative;
    height:520px;
    flex:none;
  }

  .team-panel--reveal::after{
    bottom:auto;
    height:520px;
    background:linear-gradient(180deg,rgba(7,28,23,.01),rgba(7,28,23,.08) 60%,rgba(7,28,23,.66) 100%);
  }

  .team-panel--reveal .team-panel-copy.team-panel-copy--bio{
    position:relative;
    height:auto;
    max-width:100%;
    padding:1.45rem 1.25rem 1.55rem;
    overflow:visible;
    background:linear-gradient(180deg,rgba(7,28,23,.97),rgba(7,28,23,1));
    transform:none;
    will-change:auto;
  }

  .team-panel--reveal .team-profile-details{
    opacity:1;
    transform:none;
  }

  .team-panel--reveal .team-profile-cue{
    display:none;
  }
}

@media (prefers-reduced-motion:reduce){
  .team-panel--reveal .team-panel-copy.team-panel-copy--bio,
  .team-panel--reveal .team-profile-details,
  .team-panel--reveal .team-profile-cue,
  .team-panel--reveal img{
    transition:none !important;
  }
}


/* ==========================================================================
   MERITUM v12 — minimal tune: keep hover bio lower, reduce empty space
   ========================================================================== */

@media (hover:hover) and (pointer:fine) and (min-width:1200px){
  .team-panel--reveal:hover .team-panel-copy.team-panel-copy--bio,
  .team-panel--reveal:focus .team-panel-copy.team-panel-copy--bio{
    transform:translate3d(0,78px,0);
  }
}

@media (hover:hover) and (pointer:fine) and (min-width:768px) and (max-width:1199px){
  .team-panel--reveal:hover .team-panel-copy.team-panel-copy--bio,
  .team-panel--reveal:focus .team-panel-copy.team-panel-copy--bio{
    transform:translate3d(0,62px,0);
  }
}


/* ==========================================================================
   MERITUM v13 — stronger tune: hover bio stays visibly lower
   ========================================================================== */

@media (hover:hover) and (pointer:fine) and (min-width:1200px){
  .team-panel--reveal .team-panel-copy.team-panel-copy--bio{
    height:70%;
    transform:translate3d(0,calc(100% - 148px),0);
  }

  .team-panel--reveal:hover .team-panel-copy.team-panel-copy--bio,
  .team-panel--reveal:focus .team-panel-copy.team-panel-copy--bio{
    transform:translate3d(0,132px,0);
  }
}

@media (hover:hover) and (pointer:fine) and (min-width:768px) and (max-width:1199px){
  .team-panel--reveal .team-panel-copy.team-panel-copy--bio{
    height:76%;
    transform:translate3d(0,calc(100% - 144px),0);
  }

  .team-panel--reveal:hover .team-panel-copy.team-panel-copy--bio,
  .team-panel--reveal:focus .team-panel-copy.team-panel-copy--bio{
    transform:translate3d(0,96px,0);
  }
}


/* ==========================================================================
   MERITUM v14 — final team reveal spacing fix
   Only the home-page team hover panel is adjusted.
   ========================================================================== */

@media (hover:hover) and (pointer:fine) and (min-width:768px){
  .team-panel--reveal .team-panel-copy.team-panel-copy--bio{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    transform:translate3d(0,calc(100% - 148px),0) !important;
    padding-top:1.55rem !important;
    padding-bottom:1.55rem !important;
  }

  .team-panel--reveal:hover .team-panel-copy.team-panel-copy--bio,
  .team-panel--reveal:focus .team-panel-copy.team-panel-copy--bio{
    transform:translate3d(0,0,0) !important;
  }

  .team-panel--reveal .team-profile-details{
    margin-top:.82rem !important;
    padding-top:.82rem !important;
  }
}


/* ==========================================================================
   MERITUM FINAL MOBILE V3 — 2026-09-26
   Mobile-only refinements requested after final client review.
   Desktop/tablet >= 901px remains unchanged.
   ========================================================================== */

@media (max-width:900px){
  /* 1) HEADER: keep logo, consultation CTA and hamburger fully inside viewport. */
  #site-header{
    padding-top:.62rem !important;
    padding-bottom:.62rem !important;
  }

  #site-header > div{
    padding-left:.75rem !important;
    padding-right:.75rem !important;
    gap:.45rem !important;
    overflow:visible !important;
  }

  #site-header > div > a[aria-label*="MERITUM"]{
    min-width:0 !important;
    flex:0 1 auto !important;
  }

  #site-header > div > a[aria-label*="MERITUM"] img{
    width:clamp(122px,31vw,158px) !important;
    height:auto !important;
    max-height:50px !important;
  }

  #site-header > div > .flex.items-center.gap-3{
    gap:.4rem !important;
    flex:0 0 auto !important;
    min-width:0 !important;
  }

  #site-header [data-open-consult].btn-gold{
    display:inline-flex !important;
    min-height:40px !important;
    padding:.52rem .72rem !important;
    gap:.36rem !important;
    font-size:.72rem !important;
    line-height:1.12 !important;
    white-space:normal !important;
    text-align:center !important;
    max-width:118px !important;
  }

  #site-header [data-open-consult].btn-gold svg{
    width:.82rem !important;
    height:.82rem !important;
    flex:0 0 auto !important;
  }

  #hamBtn{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    flex:0 0 40px !important;
    margin:0 !important;
    transform:none !important;
  }

  /* 2) HOME TEAM: touch devices must show the biographies normally.
     No clipped gradient, no hidden copy, no hover dependency. */
  .team-panels{
    grid-template-columns:1fr !important;
    gap:1.25rem !important;
  }

  .team-panel.team-panel--reveal{
    display:flex !important;
    flex-direction:column !important;
    min-height:0 !important;
    height:auto !important;
    overflow:hidden !important;
  }

  .team-panel.team-panel--reveal > img{
    position:relative !important;
    display:block !important;
    width:100% !important;
    height:auto !important;
    aspect-ratio:4/5 !important;
    object-fit:cover !important;
    object-position:center 24% !important;
    flex:none !important;
    transform:none !important;
  }

  .team-panel.team-panel--reveal:nth-child(2) > img{
    object-position:center 24% !important;
  }

  .team-panel.team-panel--reveal::after{
    content:"" !important;
    position:absolute !important;
    inset:0 0 auto 0 !important;
    width:100% !important;
    height:auto !important;
    aspect-ratio:4/5 !important;
    background:linear-gradient(180deg,rgba(7,28,23,.01) 0%,rgba(7,28,23,.02) 72%,rgba(7,28,23,.16) 100%) !important;
    pointer-events:none !important;
  }

  .team-panel.team-panel--reveal .team-panel-copy.team-panel-copy--bio{
    position:relative !important;
    inset:auto !important;
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
    padding:1.35rem 1.15rem 1.45rem !important;
    background:linear-gradient(180deg,rgba(8,32,26,.99),rgba(6,25,20,1)) !important;
    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
    will-change:auto !important;
  }

  .team-panel.team-panel--reveal .team-profile-head,
  .team-panel.team-panel--reveal .team-profile-details{
    display:block !important;
    position:relative !important;
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
  }

  .team-panel.team-panel--reveal .team-profile-details{
    margin-top:.9rem !important;
    padding-top:.9rem !important;
    border-top:1px solid rgba(212,175,55,.16) !important;
  }

  .team-panel.team-panel--reveal .team-profile-cue{
    display:none !important;
  }

  .team-panel.team-panel--reveal .team-panel-copy--bio h3{
    font-size:2rem !important;
    line-height:1 !important;
    margin-top:.6rem !important;
  }

  .team-panel.team-panel--reveal .team-panel-copy--bio p{
    display:block !important;
    opacity:1 !important;
    visibility:visible !important;
    font-size:.79rem !important;
    line-height:1.52 !important;
    margin-top:.62rem !important;
  }

  /* 3) CONTACT MODE ICONS: nudge icons right without changing the buttons. */
  #contactForm [aria-label="Forma kontaktu"] .mode-btn{
    justify-content:center !important;
    gap:.7rem !important;
  }

  #contactForm [aria-label="Forma kontaktu"] .mode-btn > svg{
    transform:translateX(6px) !important;
    margin-right:2px !important;
    flex:0 0 auto !important;
  }
}

/* Very narrow phones: keep header especially compact. */
@media (max-width:380px){
  #site-header > div{
    padding-left:.55rem !important;
    padding-right:.55rem !important;
    gap:.32rem !important;
  }

  #site-header > div > a[aria-label*="MERITUM"] img{
    width:116px !important;
    max-height:44px !important;
  }

  #site-header [data-open-consult].btn-gold{
    max-width:108px !important;
    padding:.46rem .55rem !important;
    font-size:.68rem !important;
  }

  #hamBtn{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    flex-basis:38px !important;
  }
}


/* ========================================================================== 
   MERITUM FINAL V16 — 2026-09-26
   Surgical refinements only: hero savings + secure contact helper.
   ========================================================================== */
.hero-savings-line{
  display:inline-flex;
  align-items:baseline;
  gap:.42rem;
}
.hero-savings-counter{
  display:inline-block;
  font-size:2.15rem;
  line-height:.8;
  font-style:normal;
  font-weight:700;
  letter-spacing:-.035em;
  color:#E4C45F;
}
@media(max-width:767px){
  .hero-savings-counter{font-size:2rem;}
}
.meritum-contact-hp{
  position:absolute!important;
  left:-10000px!important;
  top:auto!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
#contactSecureStatus{
  margin-top:.85rem;
  min-height:1.25rem;
  font-size:.8rem;
  line-height:1.45;
  color:#D1C097;
}
#contactSecureStatus[data-state="error"]{color:#e79a86;}
#contactSecureStatus[data-state="success"]{color:#E4C45F;}
#contactForm[data-sending="true"] button[type="submit"]{
  opacity:.7;
  pointer-events:none;
}


/* ========================================================================== 
   MERITUM v17 — FINAL PATCH V4
   1) deterministic marquee spacing/seam on all viewport widths
   2) secure quick-consult status styling
   ========================================================================== */

/* The old marquee mixed 100vw groups, fixed pixel widths and space-around.
   On some viewport/font combinations the seam could collapse or become huge.
   Both duplicate groups now have the same intrinsic width and an explicit,
   deterministic gap. Translating by 50% therefore lands exactly on the copy. */
.hero-marquee{
  overflow:hidden!important;
}
.strip-track{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  width:max-content!important;
  min-width:0!important;
  gap:0!important;
  animation-name:meritumMarqueeStable!important;
  animation-duration:48s!important;
  animation-timing-function:linear!important;
  animation-iteration-count:infinite!important;
}
.strip-group{
  --meritum-marquee-gap:clamp(3rem,4.25vw,5.25rem);
  display:flex!important;
  flex:0 0 auto!important;
  flex-basis:auto!important;
  width:max-content!important;
  min-width:max-content!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:var(--meritum-marquee-gap)!important;
  padding-left:calc(var(--meritum-marquee-gap) / 2)!important;
  padding-right:calc(var(--meritum-marquee-gap) / 2)!important;
  white-space:nowrap!important;
}
.strip-group > span{
  flex:0 0 auto!important;
  min-width:max-content!important;
  white-space:nowrap!important;
}
@keyframes meritumMarqueeStable{
  from{transform:translate3d(0,0,0);}
  to{transform:translate3d(-50%,0,0);}
}
@media (max-width:767px){
  .strip-group{
    --meritum-marquee-gap:2.75rem;
  }
  .strip-track{animation-duration:42s!important;}
}

#apptSecureStatus{
  margin-top:.9rem;
  min-height:1.25rem;
  font-size:.8rem;
  line-height:1.45;
  color:#D1C097;
}
#apptSecureStatus[data-state="error"]{color:#e79a86;}
#apptSecureStatus[data-state="success"]{color:#E4C45F;}
#apptForm[data-sending="true"] #apptNext{
  opacity:.72;
  pointer-events:none;
}
