/* ATL LAW — animacja WYŁĄCZNIE na istniejących wierszach WPBakery */
.atl2-hero.atl-sync-surface,
.atl2-spec-head.atl-sync-surface,
.atl2-spec-cards.atl-sync-surface,
.atl2-spec-footer.atl-sync-surface {
  position: relative !important;
  isolation: isolate;
  background-color: #3e1035 !important;
  background-image: none !important;
}
.atl-sync-surface > .atl-sync-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #3e1035;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--atl-sync-transition, 420ms) ease-in-out;
}
.atl-sync-surface > .atl-sync-bg-0 { opacity: 1; }
.atl-sync-surface.atl-sync-state-0 > .atl-sync-bg-0 { opacity: 1; }
.atl-sync-surface.atl-sync-state-0 > .atl-sync-bg-1,
.atl-sync-surface.atl-sync-state-0 > .atl-sync-bg-2 { opacity: 0; }
.atl-sync-surface.atl-sync-state-1 > .atl-sync-bg-0,
.atl-sync-surface.atl-sync-state-1 > .atl-sync-bg-2 { opacity: 0; }
.atl-sync-surface.atl-sync-state-1 > .atl-sync-bg-1 { opacity: 1; }
.atl-sync-surface.atl-sync-state-2 > .atl-sync-bg-0,
.atl-sync-surface.atl-sync-state-2 > .atl-sync-bg-1 { opacity: 0; }
.atl-sync-surface.atl-sync-state-2 > .atl-sync-bg-2 { opacity: 1; }
.atl-sync-surface > .vc_column_container,
.atl-sync-surface > .wpb_column { position: relative; z-index: 1; }
/* Koła bazują na oddzielnych, edytowalnych blokach Text Block w WPBakery. */
.atl2-hero.atl-sync-surface .atl2-hero-right > .vc_column-inner { position: relative; }
.atl2-hero.atl-sync-surface .atl2-hero-circle {
  position: absolute !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  background-color: var(--atl-sync-circle, #f01171) !important;
  color: #fff !important;
  box-shadow: -42px 0 42px -8px var(--atl-sync-circle, #f01171) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(.94);
  transition: opacity var(--atl-sync-transition, 420ms) ease-in-out, transform var(--atl-sync-transition, 420ms) cubic-bezier(.2,.7,.25,1), visibility var(--atl-sync-transition, 420ms);
  border-radius: 50%;
}
.atl2-hero.atl-sync-surface .atl2-hero-circle.atl2-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 3;
}
.atl2-hero.atl-sync-surface .atl2-hero-circle::before {
  border-color: var(--atl-sync-circle, #f01171) !important;
}
.atl2-hero.atl-sync-surface .atl2-hero-circle a { color: #fff !important; }
.atl2-spec-head.atl-sync-surface .atl2-kicker p::before { background: var(--atl-sync-accent, #f01171) !important; transition: background var(--atl-sync-transition, 420ms) ease; }
/* Dotychczasowe trzy kafle pozostają statyczne i normalnie edytowalne w WPBakery. */
.atl2-spec-cards.atl-sync-surface .atl2-spec-card-0 > .vc_column-inner { background-color: var(--atl-sync-c0, #f01171) !important; }
.atl2-spec-cards.atl-sync-surface .atl2-spec-card-1 > .vc_column-inner { background-color: var(--atl-sync-c1, #5abce0) !important; }
.atl2-spec-cards.atl-sync-surface .atl2-spec-card-2 > .vc_column-inner { background-color: var(--atl-sync-c2, #5ae0a2) !important; }
@media (max-width: 1023px) {
  .atl2-hero.atl-sync-surface { min-height: unset !important; }
  .atl2-hero.atl-sync-surface > .vc_column_container { width: 100% !important; max-width: 100% !important; float: none !important; }
  .atl2-hero.atl-sync-surface .atl2-hero-right > .vc_column-inner { min-height: clamp(300px, 60vw, 465px) !important; }
  .atl2-hero.atl-sync-surface .atl2-hero-circle {
    width: min(390px, 75vw) !important;
    height: min(390px, 75vw) !important;
    max-width: calc(100vw - 54px) !important;
    top: 18px !important;
    right: auto !important;
    left: 50% !important;
    padding: clamp(20px, 6vw, 43px) !important;
    transform: translate(-50%, 14px) scale(.94);
    box-shadow: -25px 0 22px -5px var(--atl-sync-circle, #f01171) !important;
  }
  .atl2-hero.atl-sync-surface .atl2-hero-circle.atl2-active { transform: translate(-50%, 0) scale(1); }
  .atl2-hero.atl-sync-surface .atl2-hero-circle a { font-size: clamp(22px, 5vw, 39px) !important; line-height: 1.1; }
  .atl2-spec-cards.atl-sync-surface > .vc_column_container { width: 100% !important; max-width: 100% !important; float: none !important; }
}
@media (max-width: 767px) {
  .atl2-hero.atl-sync-surface { padding-top: 110px !important; padding-bottom: 22px !important; }
  .atl2-hero.atl-sync-surface .atl2-hero-right > .vc_column-inner { min-height: min(86vw, 380px) !important; }
  .atl2-hero.atl-sync-surface .atl2-hero-circle { width: min(78vw, 330px) !important; height: min(78vw, 330px) !important; padding: 20px !important; }
  .atl2-hero.atl-sync-surface .atl2-hero-circle a { font-size: clamp(20px, 6.0vw, 29px) !important; overflow-wrap: anywhere; }
  .atl2-hero.atl-sync-surface .atl2-hero-circle p { margin: 0 !important; }
  .atl2-spec-cards.atl-sync-surface > .vc_column_container { margin-bottom: 18px; }
  .atl2-spec-head.atl-sync-surface,
  .atl2-spec-cards.atl-sync-surface { padding-left: 18px !important; padding-right: 18px !important; }
}


/* 1.2.0: entrance, drifting outline and orbiting highlight.
   Only pseudo elements move. Text, links and WPBakery columns stay fixed. */
.atl2-hero.atl-sync-surface .atl2-hero-circle {
  will-change: opacity, transform;
}
.atl2-hero.atl-sync-surface .atl2-hero-circle::before {
  content: "";
  display: block;
  position: absolute;
  inset: -5.8%;
  pointer-events: none;
  border: 1.5px solid var(--atl-sync-circle, #f01171) !important;
  border-radius: 50%;
  opacity: .90;
  transform-origin: center;
  z-index: 1;
}
.atl2-hero.atl-sync-surface .atl2-hero-circle::after {
  content: "";
  display: block;
  position: absolute;
  inset: -9%;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--atl-sync-circle, #f01171);
  border-right-color: var(--atl-sync-circle, #f01171);
  opacity: .90;
  filter: drop-shadow(0 0 4px var(--atl-sync-circle, #f01171));
  transform-origin: center center;
  z-index: 2;
}
.atl2-hero.atl-sync-surface .atl2-hero-circle .wpb_wrapper {
  position: relative;
  z-index: 3;
}
/* Koło zachowuje rozmiar, kółko zewnętrzne swobodnie "pływa" wokół niego. */
.atl2-hero.atl-sync-surface .atl2-hero-circle.atl2-active::before {
  animation: atl-sync-rim-float var(--atl-sync-rim-float-duration, 4080ms) ease-in-out infinite;
}
.atl2-hero.atl-sync-surface .atl2-hero-circle.atl2-active::after {
  animation: atl-sync-rim-orbit var(--atl-sync-rim-duration, 3400ms) linear infinite;
}
@keyframes atl-sync-rim-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  26% { transform: translate(var(--atl-sync-rim-shift, 7px), var(--atl-sync-rim-half-neg, -3.5px)) scale(1.01); }
  52% { transform: translate(var(--atl-sync-rim-half-neg, -3.5px), var(--atl-sync-rim-shift-neg, -7px)) scale(.99); }
  76% { transform: translate(var(--atl-sync-rim-shift-neg, -7px), var(--atl-sync-rim-half, 3.5px)) scale(1); }
}
@keyframes atl-sync-rim-orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* Opcjonalnie: delikatne oddychanie całości, domyślnie wyłączone. */
.atl2-hero.atl-sync-surface .atl2-hero-circle.atl2-active {
  animation: var(--atl-sync-pulse-name, none) var(--atl-sync-pulse-duration, 2600ms) ease-in-out infinite;
  transform-origin: center;
}
@keyframes atl-sync-breathe {
  0%, 100% { scale: 1; }
  50% { scale: var(--atl-sync-pulse-scale, 1.03); }
}
/* Gdy efekt obreczy wyłączony w ustawieniach, nadal pokazujemy statyczny kontur. */
.atl2-hero.atl-sync-surface.atl-sync-rim-disabled .atl2-hero-circle.atl2-active::before,
.atl2-hero.atl-sync-surface.atl-sync-rim-disabled .atl2-hero-circle.atl2-active::after {
  animation: none !important;
}
/* Wejście: widoczne, ale bez wysuwania poza ekran i bez skoków geometrii. */
.atl2-hero.atl-sync-surface.atl-sync-preintro .atl2-hero-circle.atl2-active {
  opacity: 0 !important;
  visibility: visible;
  transform: translateY(34px) scale(.84);
}
.atl2-hero.atl-sync-surface.atl-sync-preintro .atl2-hero-left {
  opacity: 0;
  transform: translateY(18px);
}
.atl2-hero.atl-sync-surface .atl2-hero-left {
  transition: opacity .65s ease, transform .8s cubic-bezier(.18,.75,.25,1);
}
.atl2-hero.atl-sync-surface.atl-sync-intro-playing .atl2-hero-circle.atl2-active {
  transition-duration: 850ms !important;
  transition-timing-function: cubic-bezier(.12,.82,.23,1) !important;
}
.atl2-hero.atl-sync-surface.atl-sync-preintro .atl2-hero-circle.atl2-active::before,
.atl2-hero.atl-sync-surface.atl-sync-preintro .atl2-hero-circle.atl2-active::after {
  animation: none !important;
  opacity: 0;
}
@media (max-width: 1023px) {
  .atl2-hero.atl-sync-surface { --atl-sync-rim-shift: 4px; --atl-sync-rim-shift-neg:-4px; --atl-sync-rim-half:2px; --atl-sync-rim-half-neg:-2px; }
  .atl2-hero.atl-sync-surface.atl-sync-preintro .atl2-hero-circle.atl2-active {
    transform: translate(-50%, 30px) scale(.84);
  }
}
@media (max-width: 767px) {
  .atl2-hero.atl-sync-surface .atl2-hero-circle::after { inset: -6.8%; border-width: 1.6px; }
  .atl2-hero.atl-sync-surface .atl2-hero-circle::before { inset: -4%; }
  .atl2-hero.atl-sync-surface { --atl-sync-rim-shift: 3px; --atl-sync-rim-shift-neg:-3px; --atl-sync-rim-half:1.5px; --atl-sync-rim-half-neg:-1.5px; }
  .atl2-hero.atl-sync-surface.atl-sync-preintro .atl2-hero-circle.atl2-active {
    transform: translate(-50%, 22px) scale(.84);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atl-sync-surface .atl-sync-bg,
  .atl2-hero.atl-sync-surface .atl2-hero-circle,
  .atl2-hero.atl-sync-surface .atl2-hero-left { transition: none !important; }
  .atl2-hero.atl-sync-surface .atl2-hero-circle,
  .atl2-hero.atl-sync-surface .atl2-hero-circle::before,
  .atl2-hero.atl-sync-surface .atl2-hero-circle::after { animation: none !important; scale: 1 !important; }
  .atl2-hero.atl-sync-surface.atl-sync-preintro .atl2-hero-circle.atl2-active,
  .atl2-hero.atl-sync-surface.atl-sync-preintro .atl2-hero-left { opacity: 1 !important; }
}

/* ATL LAW 1.2.1 — kontury zgodne z kolorem koła i oryginalny biały plus.
 * Tytuł pozostaje w zwykłym, edytowalnym elemencie Text Block WPBakery.
 * Plus jest wyłącznie dekoracją CSS; cały tytuł nadal jest jednym linkiem. */
.atl2-hero.atl-sync-surface .atl2-hero-circle .wpb_wrapper > p {
  width: 100%;
  margin: 0 !important;
}
.atl2-hero.atl-sync-surface .atl2-hero-circle .wpb_wrapper > p > a {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 25px);
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}
.atl2-hero.atl-sync-surface .atl2-hero-circle .wpb_wrapper > p > a::after {
  content: "";
  display: block;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  box-sizing: border-box;
  background-color: #fff;
  background-image:
    linear-gradient(var(--atl-sync-circle, #f01171), var(--atl-sync-circle, #f01171)),
    linear-gradient(var(--atl-sync-circle, #f01171), var(--atl-sync-circle, #f01171));
  background-position: center center, center center;
  background-size: 20px 1.5px, 1.5px 20px;
  background-repeat: no-repeat;
  border-radius: 50%;
  transition: transform 240ms ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .atl2-hero.atl-sync-surface .atl2-hero-circle .wpb_wrapper > p > a:hover::after {
    transform: rotate(90deg);
  }
}
@media (max-width: 1023px) {
  .atl2-hero.atl-sync-surface .atl2-hero-circle .wpb_wrapper > p > a {
    gap: 13px;
  }
  .atl2-hero.atl-sync-surface .atl2-hero-circle .wpb_wrapper > p > a::after {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    background-size: 18px 1.5px, 1.5px 18px;
  }
}
@media (max-width: 767px) {
  .atl2-hero.atl-sync-surface .atl2-hero-circle .wpb_wrapper > p > a {
    gap: 10px;
  }
  .atl2-hero.atl-sync-surface .atl2-hero-circle .wpb_wrapper > p > a::after {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    background-size: 15px 1.5px, 1.5px 15px;
  }
}
