/* GetPower, desktop: current from "Подключиться" through steps 1–7 to the lamp. */
.gp-flow, .gp-flow-btn, .gp-flow-lampglow { display: none; }
@media (min-width: 1251px) {
  .work-inner { --gp-done: #3ef0a1; }
  .gp-flow { display: block; position: absolute; overflow: visible; pointer-events: none; z-index: 1; visibility: hidden; }
  .gp-flow.is-ready { visibility: visible; }
  .gp-flow-path {
    fill: none; stroke: var(--gp-done); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
    stroke-dashoffset: 100000;
  }
  .gp-flow-path-glow { stroke-width: 7; opacity: .45; }
  .gp-flow-head {
    fill: #f2fff9; opacity: 0; transition: opacity .3s ease;
    filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px var(--gp-done));
  }
  .gp-flow-head.is-on { opacity: 1; }

  /* Frames light up from the side where the current comes in; they fade out when you scroll back. */
  .gp-flow-ring { opacity: 0; transition: opacity .9s ease; }
  .gp-flow-ring.is-done { opacity: 1; transition-duration: .2s; }
  .gp-flow-ring path {
    fill: none; stroke: var(--gp-done); stroke-width: 3.4; stroke-linecap: round;
    stroke-dasharray: 1 1; stroke-dashoffset: 1;
    transition: stroke-dashoffset 0s linear .9s;
  }
  .gp-flow-ring-glow path { stroke-width: 7; }
  .gp-flow-ring-glow { opacity: .5; }
  .gp-flow-ring.is-done path { stroke-dashoffset: 0; transition: none; }
  .gp-flow-ring.is-charging path { transition: stroke-dashoffset .8s cubic-bezier(.22, 1, .36, 1); }
  .gp-flow-ring.is-charging .gp-flow-ring-glow { animation: gp-flow-flash 1.4s ease-out both; }
  @keyframes gp-flow-flash { 0%, 35% { opacity: 1; } 100% { opacity: .5; } }

  .work-list-item::after { transition: text-shadow .9s ease, color .9s ease; }
  .work-list-item.gp-flow-lit::after { color: #eafff5; text-shadow: 0 0 6px rgba(62, 240, 161, .9), 0 0 18px rgba(62, 240, 161, .65); }

  /* Button outline, drawn above the button. */
  .gp-flow-btn { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 6; opacity: 0; transition: opacity .4s ease; }
  .gp-flow-btn.is-on { opacity: 1; }
  .gp-flow-bhalf { fill: none; stroke: var(--gp-done, #3ef0a1); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  .gp-flow-bhalf-glow { stroke-width: 7; opacity: .45; filter: blur(2.5px); }
  .interest-btn a span { transition: box-shadow .8s ease; }
  .interest-btn a span.gp-flow-on { box-shadow: 0 0 18px rgba(62, 240, 161, .45); }

  /* The lamp lights up: warm light inside, a soft green halo around, slightly bigger. */
  .contact-form-icon-wrapper { transition: transform 1.4s cubic-bezier(.22, 1, .36, 1); }
  .gp-flow-lamp-on .contact-form-icon-wrapper { transform: scale(1.18); }
  .contact-form-icon svg { transition: filter 1.6s ease; }
  .contact-form-icon.gp-flow-lamp-on svg {
    filter: brightness(1.7) saturate(1.15) drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px rgba(255, 228, 140, .95)) drop-shadow(0 0 22px rgba(62, 240, 161, .7));
  }
  .contact-form-icon.gp-flow-lamp-on svg[style*="blur"] { filter: blur(3px) brightness(2) drop-shadow(0 0 12px rgba(255, 236, 170, 1)) !important; }
  .gp-flow-lampglow {
    display: block; position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; margin: -126px 0 0 -120px;
    border-radius: 50%; pointer-events: none; z-index: -1;
    background: radial-gradient(circle, rgba(255, 250, 226, .9) 0%, rgba(255, 232, 150, .55) 14%, rgba(255, 214, 120, .22) 30%, rgba(62, 240, 161, .16) 46%, rgba(62, 240, 161, 0) 68%);
    opacity: 0; transform: scale(.4); transition: opacity 1.6s ease, transform 1.8s cubic-bezier(.22, 1, .36, 1);
  }
  .gp-flow-lamp-on .gp-flow-lampglow { opacity: 1; transform: none; animation: gp-flow-lamp 4.2s cubic-bezier(.45, .05, .55, .95) 1.8s infinite; }
  @keyframes gp-flow-lamp { 50% { opacity: .72; transform: scale(.94); } }
}
@media (prefers-reduced-motion: reduce) {
  .gp-flow-ring, .gp-flow-ring path, .contact-form-icon svg, .contact-form-icon-wrapper, .gp-flow-lampglow, .work-list-item::after { transition: none !important; }
  .gp-flow-ring-glow, .gp-flow-lampglow { animation: none !important; }
  .gp-flow-head { display: none; }
}
