/* GetPower iOS layer — overlay on top of the original theme styles.
   Original effects (particles network, lamp flicker, work connector) are untouched. */
:root {
  --gp-navy: #00203e;
  --gp-violet: #b32bcc;
  --gp-cyan: #6deeff;
  --gp-glass: rgba(0, 32, 62, .62);
  --gp-hairline: rgba(255, 255, 255, .14);
  --gp-spring: cubic-bezier(.32, .72, 0, 1);
  --gp-out: cubic-bezier(.22, 1, .36, 1);
  --gp-safe-top: env(safe-area-inset-top, 0px);
  --gp-safe-bottom: env(safe-area-inset-bottom, 0px);
  --gp-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html.gp-ios { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.gp-ios a, .gp-ios button, .gp-ios label, .gp-ios .select__title, .gp-ios .burger-menu,
.gp-ios .gradient-box { -webkit-tap-highlight-color: transparent; }
.gp-ios a, .gp-ios button { touch-action: manipulation; }
.gp-ios ::selection { background: rgba(109, 238, 255, .28); color: #fff; }
.gp-ios :focus-visible { outline: 2px solid var(--gp-cyan); outline-offset: 3px; border-radius: 6px; }
section[id], footer[id] { scroll-margin-top: 64px; }

/* ---------- Spring reveal ---------- */
.gp-reveal {
  opacity: 0;
  transform: translate3d(0, 44px, 0) scale(.97);
  transition: opacity .7s var(--gp-out) var(--gp-delay, 0ms), transform .95s var(--gp-spring) var(--gp-delay, 0ms);
}
.gp-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Tactile press (after reveal so it wins) ---------- */
.gp-pressable { transition: transform .42s var(--gp-spring), filter .25s ease, opacity .25s ease; }
.gp-pressable.is-pressed { transform: scale(.965); filter: brightness(.9); transition-duration: .1s; }
.gradient-box.gp-pressable.is-pressed { transform: scale(.985); }
.menu-link.gp-pressable.is-pressed { transform: none; opacity: .6; }

/* ---------- Buttons ---------- */
.gp-btn { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* Living call-to-action: a slow sheen and a soft breathing glow. */
.gp-ios .gp-cta {
  background-image: linear-gradient(105deg, transparent 38%, rgba(109, 238, 255, .55) 48%, rgba(179, 43, 204, .38) 54%, transparent 64%);
  background-size: 260% 100%; background-repeat: no-repeat; background-position: 160% 0;
  animation: gp-cta-sheen 4.8s cubic-bezier(.45, .05, .25, 1) var(--gp-cta-delay, 0s) infinite,
             gp-cta-glow 4.8s ease-in-out var(--gp-cta-delay, 0s) infinite;
}
@keyframes gp-cta-sheen { 0%, 58% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
@keyframes gp-cta-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(109, 238, 255, 0); }
  70% { box-shadow: 0 0 22px 2px rgba(109, 238, 255, .32), 0 0 34px 6px rgba(179, 43, 204, .16); }
}

/* Touch screens keep :hover after a tap. Cards are information, not buttons,
   and buttons must return to their normal colours after the tap. */
@media (hover: none) {
  .work-list-item, .interests-list-item { pointer-events: none; }
  .intro-btn a:hover span, .interest-btn a:hover span, .next-step-btn a:hover span,
  .agreement-btn a:hover span, .contract-btn a:hover span, .form-btn:hover {
    background-color: #fff !important; color: #00203e !important;
  }
}

/* Lamp flicker on phones lives in gp-lamp.css. */

/* ---------- Logo charge: runs inside the coloured pulse only ---------- */
/* position only: z-index stays auto so the particle network keeps working over the logo */
.intro-title.gp-logo-host { position: relative; z-index: auto; }
.gp-logo-charge { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: visible; pointer-events: none; }
.gp-logo-core, .gp-logo-glow {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: .16 1.2; stroke-dashoffset: .16; opacity: 0;
}
.gp-logo-core { stroke: #fff; stroke-width: 2.4; }
.gp-logo-glow { stroke: #bff6ff; stroke-width: 5; }
.gp-logo-host.is-charging .gp-logo-core,
.gp-logo-host.is-charging .gp-logo-glow { animation: gp-logo-run 1.15s cubic-bezier(.45, .05, .25, 1) both; }
@keyframes gp-logo-run {
  0% { stroke-dashoffset: .16; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { stroke-dashoffset: -1.02; opacity: 0; }
}

/* ---------- Power line: sparks on the six conductors only ---------- */
.advantages-bg-pic { isolation: isolate; }
.gp-wires { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: hidden; pointer-events: none; z-index: 1; }
.gp-wire path {
  fill: none; stroke-linecap: round;
  stroke-dasharray: 26 2000; stroke-dashoffset: 26;
  opacity: 0; transition: opacity .25s ease;
  animation: gp-wire-run 2.4s linear infinite paused;
}
.gp-wire-core { stroke: #f4fdff; stroke-width: 1.6; }
.gp-wire-glow { stroke: #7fe9ff; stroke-width: 5; }
.advantages-bg-pic.is-live .gp-wire path { opacity: 1; animation-play-state: running; }
/* Different speed and phase per conductor: the six discharges never move as one front. */
.gp-wire-1 path { animation-duration: 2.15s; animation-delay: -.3s; }
.gp-wire-2 path { animation-duration: 2.55s; animation-delay: -1.4s; }
.gp-wire-3 path { animation-duration: 1.95s; animation-delay: -.8s; }
.gp-wire-4 path { animation-duration: 2.8s; animation-delay: -2.05s; }
.gp-wire-5 path { animation-duration: 2.3s; animation-delay: -.55s; }
.gp-wire-6 path { animation-duration: 2.65s; animation-delay: -1.7s; }
@keyframes gp-wire-run { from { stroke-dashoffset: 26; } to { stroke-dashoffset: -1000; } }

/* ---------- Glass top bar ---------- */
.gp-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
  display: flex; align-items: center; gap: 24px;
  height: calc(58px + var(--gp-safe-top)); padding: var(--gp-safe-top) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  background: var(--gp-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--gp-hairline);
  transform: translate3d(0, -110%, 0); transition: transform .55s var(--gp-spring);
  font-family: var(--gp-font);
}
.gp-topbar.is-visible { transform: none; }
.gp-topbar.is-menu-open { z-index: 10001; background: rgba(45, 67, 114, .92); }
.gp-topbar a { color: #fff; text-decoration: none; }
.gp-topbar-brand {
  font-family: "Bebas Neue", var(--gp-font); font-size: 26px; letter-spacing: .06em; line-height: 1;
  background: linear-gradient(90deg, #fff 0%, #fff 55%, var(--gp-cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.gp-topbar-nav { display: flex; gap: 22px; margin-right: auto; font-size: 14px; font-weight: 500; }
.gp-topbar-nav a { opacity: .78; transition: opacity .2s ease; }
.gp-topbar-nav a:hover { opacity: 1; }
.gp-topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.gp-topbar-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gp-topbar-phone svg { width: 18px; height: 18px; fill: currentColor; }
.gp-topbar-cta {
  padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--gp-navy) !important;
  font-size: 14px; font-weight: 600; box-shadow: 0 0 22px rgba(109, 238, 255, .25);
}
.gp-topbar-menu { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); position: relative; cursor: pointer; }
.gp-topbar-menu span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: #fff; transition: transform .45s var(--gp-spring), top .45s var(--gp-spring); }
.gp-topbar-menu span:first-child { top: 15px; }
.gp-topbar-menu span:last-child { top: 23px; }
.gp-topbar.is-menu-open .gp-topbar-menu span:first-child { top: 19px; transform: rotate(45deg); }
.gp-topbar.is-menu-open .gp-topbar-menu span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Phones: compact top bar (the floating bottom bar was removed at the owner's request) ---------- */
@media (max-width: 900px) {
  .gp-topbar { gap: 12px; height: calc(52px + var(--gp-safe-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .gp-topbar-nav, .gp-topbar-cta, .gp-topbar-phone span { display: none; }
  .gp-topbar-phone { width: 40px; height: 40px; justify-content: center; border-radius: 12px; background: rgba(255, 255, 255, .08); }
  .gp-topbar-menu { display: block; }
  .gp-topbar-brand { font-size: 24px; }

  /* Mobile menu: iOS sheet-like slide instead of a linear push */
  .header-menu { transition: transform .55s var(--gp-spring) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .gp-reveal { opacity: 1 !important; transform: none !important; }
  .gp-wire path, .gp-logo-core, .gp-logo-glow { animation: none !important; opacity: 0 !important; }
  .gp-topbar, .gp-pressable { transition: none !important; }
  .gp-ios .gp-cta { animation: none !important; }
}

/* ---------- Local Bebas Neue (no request to Google Fonts) ---------- */
@font-face { font-family: "Bebas Neue"; src: url("../fonts/BebasNeue_Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("../fonts/BebasNeue_Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Consent checkbox (iOS style) ---------- */
.gp-hidden { display: none !important; }
.gp-consent {
  display: flex; align-items: flex-start; gap: 12px; margin: 18px 0; cursor: pointer;
  font-family: inherit; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .82); text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.gp-consent a { color: var(--gp-cyan); text-decoration: underline; text-underline-offset: 2px; }
.gp-consent-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.gp-consent-box {
  flex: 0 0 24px; width: 24px; height: 24px; margin-top: -1px; border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06);
  display: grid; place-items: center;
  transition: background-color .25s ease, border-color .25s ease, transform .35s var(--gp-spring);
}
.gp-consent-box svg { width: 14px; height: 14px; fill: none; stroke: var(--gp-navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .3s var(--gp-out) .05s; }
.gp-consent-input:checked + .gp-consent-box { background: linear-gradient(135deg, var(--gp-cyan), #fff); border-color: transparent; }
.gp-consent-input:checked + .gp-consent-box svg { stroke-dashoffset: 0; }
.gp-consent:active .gp-consent-box { transform: scale(.88); }
.gp-consent-input:focus-visible + .gp-consent-box { outline: 2px solid var(--gp-cyan); outline-offset: 3px; }
.gp-consent.is-error .gp-consent-box { border-color: var(--gp-violet); box-shadow: 0 0 0 4px rgba(179, 43, 204, .25); animation: gp-shake .42s var(--gp-out); }
.gp-consent.is-error .gp-consent-text { color: #fff; }
@keyframes gp-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.about-form .gp-consent { font-size: 13px; margin: 12px 0 16px; }

/* ---------- Cookie notice: bottom glass sheet ---------- */
.gp-cookie {
  position: fixed; z-index: 10002; left: 50%; bottom: calc(14px + var(--gp-safe-bottom));
  width: min(560px, calc(100% - 24px)); padding: 16px 16px 14px; border-radius: 22px;
  background: rgba(0, 32, 62, .78); color: #fff; font-family: inherit;
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border: .5px solid var(--gp-hairline); box-shadow: 0 18px 50px rgba(0, 8, 20, .5);
  opacity: 0; transform: translate3d(-50%, 24px, 0) scale(.98);
  transition: opacity .35s ease, transform .55s var(--gp-spring);
}
.gp-cookie.is-visible { opacity: 1; transform: translate3d(-50%, 0, 0); }
.gp-cookie-text { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .86); }
.gp-cookie-text a { color: var(--gp-cyan); }
.gp-cookie-actions { display: flex; gap: 10px; }
.gp-cookie-actions button {
  flex: 1; height: 44px; border: 0; border-radius: 13px; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.15; cursor: pointer;
  transition: transform .35s var(--gp-spring), filter .2s ease;
}
.gp-cookie-actions button:active { transform: scale(.96); filter: brightness(.9); }
.gp-cookie-min { background: rgba(255, 255, 255, .1); color: #fff; }
.gp-cookie-ok { background: #fff; color: var(--gp-navy); }

/* ---------- Legal pages ---------- */
.gp-legal { max-width: 820px; margin: 0 auto; padding: 24px 20px 64px; font-family: inherit; font-size: 16px; line-height: 1.65; box-sizing: border-box; }
.gp-legal h2 { margin: 2em 0 .6em; font-size: 1.25em; line-height: 1.3; }
.gp-legal p, .gp-legal li { margin: 0 0 .8em; }
.gp-legal ul { padding-left: 1.2em; }
.gp-legal-meta { opacity: .7; font-size: .9em; }

@media (prefers-reduced-motion: reduce) {
  .gp-cookie, .gp-consent-box, .gp-consent-box svg { transition: none !important; }
  .gp-consent.is-error .gp-consent-box { animation: none !important; }
}


/* ---------- Trap field for spam bots (never visible) ---------- */
.gp-hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* ---------- Banner when a form could not be sent ---------- */
.gp-toast {
  position: fixed; z-index: 2147483000; left: 50%; top: calc(12px + var(--gp-safe-top));
  width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 14px;
  padding: 14px 14px 14px 18px; border-radius: 20px;
  background: rgba(0, 32, 62, .72); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border: .5px solid rgba(255, 255, 255, .2); box-shadow: 0 18px 50px rgba(0, 8, 20, .5);
  color: #fff; font: 500 15px/1.35 var(--gp-font);
  transform: translate3d(-50%, -140%, 0); opacity: 0; pointer-events: none;
  transition: transform .55s var(--gp-spring), opacity .3s ease;
}
.gp-toast.is-on { transform: translate3d(-50%, 0, 0); opacity: 1; pointer-events: auto; }
.gp-toast-text { flex: 1; }
.gp-toast-call { flex: none; padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--gp-navy) !important; font-weight: 600; text-decoration: none; }

/* ---------- Page never pans sideways; pinch zoom is off (the layout is built for the phone) ---------- */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
@media (max-width: 1024px) { html, body { touch-action: pan-y; } }

/* ---------- Phones: «быстро / выгодно / без лишней бюрократии» on one left edge ---------- */
@media (max-width: 767px) {
  .advantages-list { text-align: left; }
  .advantages-list-item { justify-content: flex-start; text-align: left; }
  .advantages-list-item-title { text-align: left; }
}
