/* #2763: экран «Открыть в Telegram» во встроенном браузере TikTok/Instagram («Тёплая сцена»: бордо, золото, крем) */
html.ia-open, html.ia-open body { overflow: hidden; }
.ia-ov {
  --ia-bg: #1b0c10; --ia-wine: #4a0e1a; --ia-gold: #f2c46d; --ia-gold2: #e0a43a; --ia-cream: #fbf1de; --ia-soft: #e9dcc3;
  position: fixed; inset: 0; z-index: 2000; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: radial-gradient(120% 70% at 50% 0%, #4a0e1a 0%, #241114 55%, #1b0c10 100%);
  color: var(--ia-cream); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ia-card {
  max-width: 420px; margin: 0 auto; min-height: 100%;
  padding: calc(20px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: stretch;
}
.ia-pv { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 4px 4px 4px 14px; border-radius: 14px;
  background: rgba(242,196,109,.14); border: 1px dashed rgba(242,196,109,.55); color: var(--ia-gold); font-size: 14px; }
.ia-pv span { flex: 1; }
.ia-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ia-cream); font-size: 18px; cursor: pointer; }
.ia-logo { width: 60px; height: 60px; margin: 6px auto 14px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(145deg, #f2c46d, #e0a43a); color: #4a0e1a; font: 800 36px/1 Georgia, "Times New Roman", serif;
  box-shadow: 0 8px 28px rgba(224,164,58,.35); }
.ia-h { margin: 0 0 10px; text-align: center; font: 700 26px/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
.ia-p { margin: 0 0 22px; text-align: center; color: var(--ia-soft); font-size: 16px; }
.ia-tg { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 0 20px;
  border-radius: 18px; background: linear-gradient(180deg, #f2c46d, #e0a43a); color: #2a0d12; text-decoration: none;
  font-size: 20px; font-weight: 800; line-height: 1.1; box-shadow: 0 6px 22px rgba(224,164,58,.35); }
.ia-tg svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.ia-tg:active { transform: translateY(1px); }
.ia-mail { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 20px; border: 0; border-radius: 18px;
  background: linear-gradient(180deg, #f2c46d, #e0a43a); color: #2a0d12; font: inherit; font-size: 20px; font-weight: 800; line-height: 1.1;
  box-shadow: 0 6px 22px rgba(224,164,58,.35); cursor: pointer; }
/* #3007b: Telegram — вторая кнопка (контур), когда есть вход по почте */
.ia-tg.is-second { margin-top: 12px; min-height: 56px; font-size: 18px; background: rgba(242,196,109,.12); border: 1.5px solid var(--ia-gold);
  color: var(--ia-cream); box-shadow: none; }
.ia-tg.is-second svg { width: 24px; height: 24px; }
.ia-mail:active { transform: translateY(1px); }
.ia-or { margin: 26px 0 12px; text-align: center; color: var(--ia-soft); font-size: 15px; }
/* подсказка картинкой — шапка встроенного браузера */
.ia-pic { position: relative; border-radius: 16px; overflow: hidden; background: #f4f4f4; color: #222; box-shadow: 0 8px 26px rgba(0,0,0,.45); }
.ia-bar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px; background: #fff; border-bottom: 1px solid #e3e3e3; }
.ia-bar i { font-style: normal; font-size: 18px; width: 28px; text-align: center; color: #555; }
.ia-bar b { flex: 1; font-weight: 600; font-size: 14px; color: #666; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ia-bar em { position: relative; font-style: normal; font-weight: 800; font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; color: #111; }
.ia-bar em::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 3px solid var(--ia-gold2); animation: ia-ring 1.6s ease-out infinite; }
@keyframes ia-ring { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.ia-menu { margin: 8px 10px 12px auto; width: max-content; max-width: calc(100% - 20px); display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); outline: 3px solid var(--ia-gold2); outline-offset: 0; }
.ia-mi { font-size: 18px; color: #333; }
.ia-mt { font-size: 15px; font-weight: 700; color: #111; }
.ia-steps { margin: 16px 0 0; padding: 0 0 0 26px; display: grid; gap: 8px; font-size: 16px; }
.ia-steps li::marker { color: var(--ia-gold); font-weight: 800; }
.ia-copy { margin-top: 18px; min-height: 52px; border-radius: 16px; border: 1px solid var(--ia-gold); background: transparent; color: var(--ia-gold);
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.ia-stay { margin: 14px auto 0; min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--ia-soft); font: inherit; font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ia-msg { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--ia-gold); }
.ia-tg:focus-visible, .ia-mail:focus-visible, .ia-copy:focus-visible, .ia-stay:focus-visible, .ia-x:focus-visible { outline: 2px solid var(--ia-cream); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ia-bar em::after { animation: none; opacity: 1; transform: none; } }
@media (min-width: 700px) { .ia-card { padding-top: 48px; } }
