/* Webgram Ads Funnel v1.1.0 — aggressive mobile-first acquisition */
:root{--wgaf-primary:#168ACD;--wgaf-accent:#FFB020;--wgaf-ink:#0D2637;--wgaf-muted:#536C7C;--wgaf-line:#D9E6ED;--wgaf-paper:#fff;--wgaf-sticky-h:0px}
.wgaf-layer,.wgaf-editorial{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}
.wgaf-layer *,.wgaf-editorial *{box-sizing:border-box}

/* ARTICLE AD — intentionally unmistakable */
.wgaf-editorial{position:relative;margin:28px 0!important;max-width:100%;overflow:hidden;border:2px dashed rgba(22,138,205,.38);border-radius:22px;background:linear-gradient(145deg,#effaff 0%,#fff 55%,#fff8e7 100%);box-shadow:0 15px 42px rgba(12,55,81,.12);isolation:isolate}
.wgaf-editorial:before{content:"";position:absolute;left:0;top:0;bottom:0;width:7px;background:linear-gradient(180deg,var(--wgaf-accent),var(--wgaf-primary));z-index:0}
.wgaf-editorial:after{content:"";position:absolute;right:-65px;top:-85px;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(255,176,32,.22),rgba(255,176,32,0) 68%);pointer-events:none}
.wgaf-editorial__link{position:relative;z-index:1;display:block;padding:18px 19px 16px;text-decoration:none!important;color:var(--wgaf-ink)!important;outline:none}
.wgaf-editorial__link:focus-visible{box-shadow:inset 0 0 0 3px rgba(22,138,205,.35)}
.wgaf-editorial__top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.wgaf-editorial__badge{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border-radius:999px;background:#FFF0C9;color:#8D5200;font-size:10px;font-weight:950;letter-spacing:.08em;line-height:1;text-transform:uppercase}
.wgaf-dot{width:8px;height:8px;border-radius:50%;background:#F04438;box-shadow:0 0 0 0 rgba(240,68,56,.45);animation:wgafRadar 1.7s infinite}
.wgaf-editorial__audience{font-size:11px;color:#607987;font-weight:800;text-align:right}
.wgaf-editorial__main{display:flex;align-items:flex-start;gap:13px}
.wgaf-editorial__icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;flex:0 0 52px;background:linear-gradient(145deg,#FFB020,#FF7A00);color:#fff;box-shadow:0 11px 27px rgba(255,139,0,.28);transform:rotate(-5deg)}
.wgaf-editorial__icon svg{width:31px;height:31px;filter:drop-shadow(0 1px 0 rgba(0,0,0,.1))}
.wgaf-editorial__copy{display:block;min-width:0}
.wgaf-editorial__title{display:block;margin:0 0 6px!important;font-size:22px!important;line-height:1.12!important;letter-spacing:-.025em!important;font-weight:950!important;color:var(--wgaf-ink)!important}
.wgaf-editorial__text{display:block;color:#455F70;font-size:14.5px;line-height:1.5;font-weight:600}
.wgaf-editorial__cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:15px;padding:14px 16px;border-radius:13px;background:linear-gradient(135deg,var(--wgaf-primary),#0D74B2);color:#fff!important;font-size:13px;font-weight:950;letter-spacing:.02em;box-shadow:0 11px 28px rgba(22,138,205,.28);transition:transform .18s ease,box-shadow .18s ease;animation:wgafButtonGlow 2.5s infinite}
.wgaf-editorial__cta .wgaf-arrow{font-size:18px;line-height:1;transition:transform .18s ease}
.wgaf-editorial__link:hover .wgaf-editorial__cta{transform:translateY(-2px);box-shadow:0 15px 34px rgba(22,138,205,.36)}
.wgaf-editorial__link:hover .wgaf-arrow{transform:translateX(3px)}
.wgaf-editorial__micro{display:block;margin-top:9px;text-align:center;color:#6D8290;font-size:10.5px;line-height:1.4;font-weight:700}
.wgaf-editorial--end{border-style:solid;background:linear-gradient(145deg,#fff8e9,#fff 58%,#eef9ff)}

/* FLOATING — always visible, card repeatedly calls attention */
.wgaf-floating-wrap{position:fixed;right:18px;bottom:24px;z-index:2147483000;display:flex;align-items:flex-end;gap:10px;max-width:calc(100vw - 24px);opacity:0;transform:translateY(12px) scale(.96);pointer-events:none;transition:opacity .24s ease,transform .28s cubic-bezier(.2,.8,.2,1),bottom .22s ease}
.wgaf-floating-wrap.is-visible{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
.wgaf-floating{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:58px;padding:0 17px;border-radius:999px;background:linear-gradient(145deg,#0D2C3F,#153F59);color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:950;box-shadow:0 16px 42px rgba(5,28,42,.34);border:1px solid rgba(255,255,255,.13);transition:transform .2s ease,box-shadow .2s ease;white-space:nowrap}
.wgaf-floating:hover{transform:translateY(-3px);box-shadow:0 19px 48px rgba(5,28,42,.4)}
.wgaf-floating__icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:linear-gradient(145deg,#FFB020,#FF7A00);color:#fff;box-shadow:0 6px 18px rgba(255,139,0,.35);flex:0 0 36px}
.wgaf-floating__icon svg{width:24px;height:24px}
.wgaf-floating__text{display:flex;flex-direction:column;gap:1px;line-height:1.05}
.wgaf-floating__text strong{font-size:12.5px;color:#fff;letter-spacing:.01em}
.wgaf-floating__text small{font-size:9.5px;color:#C9E2EF;font-weight:800}
.wgaf-floating__ping{position:absolute;right:3px;top:1px;width:12px;height:12px;border-radius:50%;background:#F04438;border:2px solid #fff;box-shadow:0 0 0 0 rgba(240,68,56,.5);animation:wgafRadar 1.7s infinite}
.wgaf-floating-card{position:relative;display:flex;align-items:center;gap:10px;width:min(355px,calc(100vw - 28px));padding:12px 13px;border-radius:17px;background:#fff;color:var(--wgaf-ink)!important;text-decoration:none!important;border:1px solid rgba(12,55,81,.1);box-shadow:0 17px 50px rgba(5,27,41,.28);opacity:0;visibility:hidden;pointer-events:none;transform:translateX(14px) scale(.95);transition:opacity .22s ease,transform .28s cubic-bezier(.2,.8,.2,1),visibility .22s ease}
.wgaf-floating-card__dot{width:10px;height:10px;border-radius:50%;background:#F04438;box-shadow:0 0 0 0 rgba(240,68,56,.45);animation:wgafRadar 1.7s infinite;flex:0 0 10px}
.wgaf-floating-card__copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.wgaf-floating-card__copy strong{font-size:13px;line-height:1.15;color:var(--wgaf-ink);font-weight:950}
.wgaf-floating-card__copy span{font-size:11px;line-height:1.25;color:#607582;font-weight:700}
.wgaf-floating-card__cta{flex:0 0 auto;padding:7px 9px;border-radius:9px;background:#EAF7FD;color:#0A73AC;font-size:9.5px;font-weight:950;letter-spacing:.03em}
.wgaf-floating-wrap.is-expanded .wgaf-floating-card{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(0) scale(1)}
.wgaf-floating-wrap.is-attention .wgaf-floating{animation:wgafStrongAttention 1.05s both}

/* STICKY — stronger than v1 but still dismissible */
.wgaf-sticky{position:fixed;left:0;right:0;bottom:0;z-index:2147482990;padding:0 max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));opacity:0;transform:translateY(115%);pointer-events:none;transition:opacity .25s ease,transform .34s cubic-bezier(.2,.8,.2,1)}
.wgaf-sticky.is-visible{opacity:1;transform:translateY(0);pointer-events:auto}
.wgaf-sticky__inner{position:relative;max-width:920px;margin:0 auto;min-height:64px;display:flex;align-items:center;gap:10px;padding:8px 42px 8px 10px;border:1px solid rgba(255,255,255,.14);border-radius:17px;background:linear-gradient(100deg,#0B293D,#154D6B);box-shadow:0 15px 46px rgba(3,21,33,.32);color:#fff}
.wgaf-sticky__icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:13px;background:linear-gradient(145deg,#FFB020,#FF7A00);color:#fff;box-shadow:0 7px 18px rgba(255,139,0,.28)}
.wgaf-sticky__icon svg{width:25px;height:25px}
.wgaf-sticky__copy{display:block;min-width:0;flex:1}
.wgaf-sticky__copy strong{display:block;font-size:13px;line-height:1.15;color:#fff;font-weight:950}
.wgaf-sticky__copy small{display:block;margin-top:3px;font-size:10px;color:#C8E2EF;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.wgaf-sticky__cta{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 13px;border-radius:11px;background:linear-gradient(135deg,#FFB020,#FF8900);color:#18222A!important;text-decoration:none!important;font-size:10.5px;font-weight:950;white-space:nowrap;box-shadow:0 7px 20px rgba(255,139,0,.28);animation:wgafSoftPulse 2.5s infinite}
.wgaf-sticky__close{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:27px;height:27px;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#DCECF4;font-size:20px;line-height:1;cursor:pointer;padding:0}

/* MODAL — strongest conversion surface */
.wgaf-modal{position:fixed;inset:0;z-index:2147483500;display:flex;align-items:center;justify-content:center;padding:22px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility .22s ease}
.wgaf-modal.is-open{opacity:1;visibility:visible;pointer-events:auto}
.wgaf-modal__backdrop{position:absolute;inset:0;background:rgba(3,15,24,.75);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.wgaf-modal__panel{position:relative;width:min(590px,100%);max-height:min(780px,calc(100vh - 44px));overflow:auto;padding:31px;border:1px solid rgba(255,255,255,.6);border-radius:27px;background:linear-gradient(155deg,#fff 0%,#f8fcff 70%,#fff7e7 100%);box-shadow:0 32px 95px rgba(2,18,29,.42);transform:translateY(18px) scale(.97);transition:transform .32s cubic-bezier(.2,.8,.2,1);outline:none}
.wgaf-modal.is-open .wgaf-modal__panel{transform:translateY(0) scale(1)}
.wgaf-modal__close{position:absolute;right:14px;top:14px;width:36px;height:36px;border:0;border-radius:50%;background:#EEF4F7;color:#405C6C;font-size:23px;line-height:1;cursor:pointer;padding:0}
.wgaf-modal__brandrow{display:flex;align-items:center;gap:10px;margin:0 42px 13px 0}
.wgaf-modal__mark{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#FFB020,#FF7A00);color:#fff;box-shadow:0 8px 21px rgba(255,139,0,.26);transform:rotate(-4deg)}
.wgaf-modal__mark svg{width:25px;height:25px}
.wgaf-modal__eyebrow{display:inline-flex;padding:6px 9px;border-radius:999px;background:#EAF7FD;color:#0B75AE;font-size:10px;font-weight:950;letter-spacing:.1em}
.wgaf-modal h2{margin:0 0 10px!important;color:var(--wgaf-ink)!important;font-size:32px!important;line-height:1.05!important;letter-spacing:-.035em!important;font-weight:950!important}
.wgaf-modal__text{margin:0!important;color:#486373!important;font-size:15.5px!important;line-height:1.58!important;font-weight:600}
.wgaf-modal__benefits{display:grid;grid-template-columns:1fr;gap:8px;margin:17px 0}
.wgaf-modal__benefits span{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #DDE8EE;border-radius:12px;background:rgba(255,255,255,.82);color:#294B60;font-size:13px;font-weight:800}
.wgaf-modal__benefits b{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;flex:0 0 22px;background:#FFF0C9;color:#A45A00;font-size:12px}
.wgaf-modal__cta{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;padding:12px 18px;border-radius:14px;background:linear-gradient(135deg,var(--wgaf-primary),#0D72AF);color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:950;letter-spacing:.02em;box-shadow:0 14px 32px rgba(22,138,205,.3);animation:wgafButtonGlow 2.35s infinite}
.wgaf-modal__telegram{width:22px;height:22px;display:grid;place-items:center}.wgaf-modal__telegram svg{width:22px;height:22px}
.wgaf-modal__note{margin:10px 4px 0!important;color:#6C818E!important;text-align:center;font-size:10.5px!important;line-height:1.45!important;font-weight:700}
body.wgaf-modal-open{overflow:hidden!important}
body.wgaf-modal-open .wgaf-floating-wrap,body.wgaf-modal-open .wgaf-sticky{opacity:0!important;pointer-events:none!important}

.wgaf-opening{position:fixed;left:50%;bottom:28px;z-index:2147483646;display:flex;align-items:center;gap:9px;max-width:90vw;padding:12px 15px;border-radius:999px;background:#0D2C3F;color:#fff;box-shadow:0 20px 56px rgba(3,20,31,.4);opacity:0;visibility:hidden;transform:translate(-50%,8px) scale(.96);transition:.2s}.wgaf-opening.is-visible{opacity:1;visibility:visible;transform:translate(-50%,0) scale(1)}.wgaf-opening span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--wgaf-primary)}.wgaf-opening svg{width:17px;height:17px}.wgaf-opening strong{font-size:11px;white-space:nowrap}

@keyframes wgafRadar{0%{box-shadow:0 0 0 0 rgba(240,68,56,.5)}70%{box-shadow:0 0 0 9px rgba(240,68,56,0)}100%{box-shadow:0 0 0 0 rgba(240,68,56,0)}}
@keyframes wgafButtonGlow{0%,100%{box-shadow:0 11px 28px rgba(22,138,205,.23)}50%{box-shadow:0 13px 34px rgba(22,138,205,.42)}}
@keyframes wgafSoftPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
@keyframes wgafStrongAttention{0%,100%{transform:translateY(0) scale(1)}20%{transform:translateY(-4px) rotate(-1.5deg) scale(1.04)}45%{transform:translateY(0) rotate(1deg) scale(1.02)}70%{transform:translateY(-2px) rotate(-.5deg) scale(1.03)}}

@media(max-width:782px){
  .wgaf-editorial{margin:22px -2px!important;border-radius:18px}.wgaf-editorial__link{padding:15px 14px 14px}.wgaf-editorial__top{margin-bottom:11px}.wgaf-editorial__badge{font-size:9px;padding:6px 8px}.wgaf-editorial__audience{font-size:9.5px}.wgaf-editorial__main{gap:10px}.wgaf-editorial__icon{width:44px;height:44px;flex-basis:44px;border-radius:13px}.wgaf-editorial__icon svg{width:27px;height:27px}.wgaf-editorial__title{font-size:19px!important}.wgaf-editorial__text{font-size:13.5px;line-height:1.47}.wgaf-editorial__cta{margin-top:13px;padding:13px 11px;font-size:11.5px}.wgaf-editorial__micro{font-size:9.5px}

  .wgaf-floating-wrap{right:10px;left:auto;max-width:calc(100vw - 20px);align-items:flex-end;flex-direction:column-reverse;gap:8px}
  .wgaf-floating{min-height:56px;padding:0 13px 0 9px;gap:8px}.wgaf-floating__icon{width:38px;height:38px;flex-basis:38px}.wgaf-floating__icon svg{width:25px;height:25px}.wgaf-floating__text strong{font-size:11.5px}.wgaf-floating__text small{font-size:8.8px}
  .wgaf-floating-card{width:min(330px,calc(100vw - 20px));padding:12px;transform:translateY(10px) scale(.96)}.wgaf-floating-wrap.is-expanded .wgaf-floating-card{transform:translateY(0) scale(1)}.wgaf-floating-card__copy strong{font-size:12.5px}.wgaf-floating-card__copy span{font-size:10.5px}

  .wgaf-sticky__inner{min-height:58px;border-radius:15px;padding:7px 38px 7px 8px;gap:8px}.wgaf-sticky__icon{width:37px;height:37px;flex-basis:37px;border-radius:11px}.wgaf-sticky__icon svg{width:22px;height:22px}.wgaf-sticky__copy strong{font-size:11.5px}.wgaf-sticky__copy small{font-size:9px}.wgaf-sticky__cta{min-height:37px;padding:0 10px;font-size:9.5px}

  .wgaf-modal{align-items:flex-end;padding:0}.wgaf-modal__panel{width:100%;max-width:none;max-height:88vh;border-radius:25px 25px 0 0;padding:24px 18px calc(21px + env(safe-area-inset-bottom));transform:translateY(100%) scale(1)}.wgaf-modal.is-open .wgaf-modal__panel{transform:translateY(0) scale(1)}.wgaf-modal__brandrow{margin-bottom:11px}.wgaf-modal__mark{width:38px;height:38px;border-radius:12px}.wgaf-modal h2{font-size:26px!important}.wgaf-modal__text{font-size:14px!important;line-height:1.52!important}.wgaf-modal__benefits{margin:14px 0;gap:7px}.wgaf-modal__benefits span{padding:9px 10px;font-size:11.5px}.wgaf-modal__cta{min-height:53px;font-size:11.5px}.wgaf-opening{bottom:calc(18px + env(safe-area-inset-bottom));font-size:11px}
}
@media(max-width:390px){.wgaf-editorial__audience{display:none}.wgaf-sticky__copy small{display:none}.wgaf-sticky__cta{padding:0 8px}.wgaf-floating-card__cta{display:none}.wgaf-modal h2{font-size:24px!important}}
@media(prefers-reduced-motion:reduce){.wgaf-dot,.wgaf-floating__ping,.wgaf-floating-card__dot,.wgaf-editorial__cta,.wgaf-sticky__cta,.wgaf-modal__cta,.wgaf-floating-wrap,.wgaf-floating-card,.wgaf-floating,.wgaf-sticky,.wgaf-modal,.wgaf-modal__panel,.wgaf-opening{animation:none!important;transition:none!important}}
