/* perf1811 (18.11, owner 10:35 «сайт люто моргает и лагает, многих блоков нет, они прозрачные», iPhone Safari).
   Safari on the phone ran out of layer memory / paint time: glass blur on fixed bars, glows repainted every frame,
   a blurred canvas, big soft shadows. On phones (and on any iPhone/iPad) the page keeps the same look on solid
   colours; on the computer only the reveal rule changes. Nothing is removed from the page. */

/* 1. a block never stays transparent: the reveal only slides (transform), the content is visible from the start */
.h7 [data-rv]{ opacity:1 !important; }
@media (max-width:820px){ .h7 [data-rv]{ transform:none !important; transition:none !important; } }
html.ios .h7 [data-rv]{ transform:none !important; transition:none !important; }
@media (prefers-reduced-motion:reduce){ .h7 [data-rv]{ transform:none !important; transition:none !important; } }

/* 2. no glass blur on phones: every backdrop layer is a solid colour instead */
@media (max-width:820px){
  *, *::before, *::after{ -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }
}
html.ios *, html.ios *::before, html.ios *::after{ -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }
@media (max-width:820px){
  .nav, .nav.scrolled{ background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.02)),#0a1124 !important; }
  body.light .nav, body.light .nav.scrolled{ background:#fff !important; }
  .h7-sticky{ background:#0a1022 !important; }
  body.light .h7-sticky{ background:#fff !important; }
  .b18-bg{ background:rgba(3,7,18,.86) !important; }
  .xp-chip, .xp-play, .xp-flash, .lg-lens{ background-color:rgba(6,10,22,.72) !important; }
  .lang-dropdown, .nav-dropdown-menu{ background:#0f1424 !important; }
  /* 3. paints every frame: neon logo pulse (filter), footer edge (background), live dot (box-shadow) */
  .x-mark{ animation:xMarkOn 2.6s linear .25s both !important; }
  body.light .x-mark{ animation:xMarkOnL 2.6s linear .25s both !important; }
  .r18-live i, .x-fc-dot, .site-footer::before, .site-footer::after{ animation:none !important; }
  /* the big drifting glows and the floating dots: a still glow, no layer per dot */
  .h7-glow{ animation:none !important; will-change:auto !important; }
  div[style*="sviFloatDrift"]{ display:none !important; }
  /* the film's colour glow: a blurred canvas the size of the player, a heavy layer on a phone */
  .xp-amb{ display:none !important; }
  /* the demo account: no mask over a changing feed, lighter shadows */
  .r18-feed{ -webkit-mask-image:none !important; mask-image:none !important; }
  .r18-stage{ box-shadow:inset 0 0 0 1px var(--line) !important; }
  .r18-stage::before{ display:none !important; }
  .r18-calc{ box-shadow:inset 0 0 0 1px var(--line) !important; }
  .r18-m .v, .r18-cs .ft b{ text-shadow:none !important; }
  /* the sticky «Buy access» slides on its own layer and does not repaint the page under it */
  .h7-sticky{ will-change:transform; box-shadow:inset 0 0 0 1px rgba(255,255,255,.1), 0 10px 24px -12px rgba(0,0,0,.8) !important; }
}
html.ios .nav, html.ios .nav.scrolled{ background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.02)),#0a1124 !important; }
html.ios body.light .nav, html.ios body.light .nav.scrolled{ background:#fff !important; }
html.ios .x-mark{ animation:xMarkOn 2.6s linear .25s both !important; }
html.ios body.light .x-mark{ animation:xMarkOnL 2.6s linear .25s both !important; }
html.ios .xp-amb{ display:none !important; }

/* 4. a weak device (perf1811.js measured long frames): every endless motion holds still */
html.perf-low .h7-glow, html.perf-low .h7-trust-row, html.perf-low .bl8-cov .o1, html.perf-low .bl8-cov .o2, html.perf-low .bl8-cmark g{ animation:none !important; }

/* 5. a block off the phone screen: the endless animations of its ::before/::after stop (perf1811.js adds .p18off) */
.p18off::before, .p18off::after{ animation-name:none !important; }

/* 6. removed 18.11 11:55: content-visibility on iOS/Telegram webview left whole sections blank (owner screenshot 2387). */

/* 7. static1811: in an in-app browser (Telegram, Instagram, Facebook, WebView: html.inapp set inline in <head>) on a phone the page is static. Every animation, transition-driven loop, filter, backdrop blur,
   big glow shadow and will-change is off, so iOS Safari / the Telegram in-app browser never run out of layer memory.
   The page must render 100% of the time; motion returns only after it is proven on a real iPhone. */
@media (max-width:820px){
  html.inapp *, html.inapp *::before, html.inapp *::after, html.perf-low *, html.perf-low *::before, html.perf-low *::after{ animation:none !important; will-change:auto !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; filter:none !important; }
  html.inapp [data-rv], html.inapp .rv, html.inapp [class*="reveal"]{ opacity:1 !important; transform:none !important; }
  /* elements whose entrance animation is what brings them from opacity:0 to 1: with animation:none they must be shown */
  html.inapp .h7-ln, html.inapp .h7-ln>span, html.inapp .h7-hero *, html.inapp .h7-eyebrow, html.inapp .h7-sub, html.inapp .h7-cta-row, html.inapp .h7-note, html.inapp .h7-title, html.inapp .h7-title *,
  html.inapp .h7-hero h1, html.inapp .h7-hero h2, html.inapp .h7-hero p, html.inapp .fcol, html.inapp .footer-infra-strip,
  html.perf-low .h7-ln>span, html.perf-low .h7-eyebrow, html.perf-low .h7-sub, html.perf-low .h7-cta-row, html.perf-low .h7-note, html.perf-low .fcol, html.perf-low .footer-infra-strip{ opacity:1 !important; transform:none !important; }
  html.inapp canvas, html.inapp .xp-amb, html.inapp .h7-glow, html.inapp video{ display:none !important; }
  html.inapp .nav, html.inapp .nav.scrolled, html.inapp .h7-sticky, html.inapp .h7-sticky *{ box-shadow:none !important; }
}

/* 8. glass1911 (owner 19.11 01:27 «на тёмно-синем монолитном фоне это не очень прикольно… как раньше… матовое тёмное стекло»):
   the top island alone gets its frosted glass back on phones and in-app browsers. One small fixed element only;
   every other layer stays solid. If the page blinks on an iPhone again, delete this section first. */
@media (max-width:820px){
  .nav, .nav.scrolled, html.ios .nav, html.ios .nav.scrolled, html.inapp .nav, html.inapp .nav.scrolled{
    background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02)),rgba(10,17,36,.55) !important;
    -webkit-backdrop-filter:blur(16px) saturate(140%) !important; backdrop-filter:blur(16px) saturate(140%) !important; }
  body.light .nav, body.light .nav.scrolled, html.ios body.light .nav, html.inapp body.light .nav{
    background:rgba(255,255,255,.62) !important; }
}
html.ios .nav, html.ios .nav.scrolled{
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02)),rgba(10,17,36,.55) !important;
  -webkit-backdrop-filter:blur(16px) saturate(140%) !important; backdrop-filter:blur(16px) saturate(140%) !important; }
html.ios body.light .nav{ background:rgba(255,255,255,.62) !important; }

/* 9. menuglass1911 (owner 19.11 01:33 «фон выпадающего меню из него с тёмно-синего поменять на матовое стекло»):
   the burger menu is frosted dark glass again. The 28.10 bleed (WebKit painted the hero title through a blurred menu)
   is held off by giving the menu its own composited layer above everything (isolation + translateZ + top z-index). */
.mobile-menu, html.inapp .mobile-menu, html.ios .mobile-menu{
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.015)),rgba(6,10,22,.9) !important;
  -webkit-backdrop-filter:blur(22px) saturate(150%) !important; backdrop-filter:blur(22px) saturate(150%) !important;
  isolation:isolate; z-index:10050 !important; }
.mobile-menu{ transform:translateX(-50%) translateY(-20px) translateZ(0); }
.mobile-menu.open{ transform:translateX(-50%) translateY(0) translateZ(0); }
body.light .mobile-menu, html.inapp body.light .mobile-menu, html.ios body.light .mobile-menu{ background:rgba(250,251,253,.88) !important; }
