/* SpyGrabs — шапка и первый экран, октябрь 2026. Подключается только на /ru/. */

/* Шрифт с кириллицей вместо Outfit (в Outfit нет русских букв) */
body.spygrabs-unified { font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.spygrabs-unified :is(.btn-tg, .tg-tab, .copy-bot-btn) { font-family: inherit; }

.h26-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ── Шапка ── */
.h26-nav .nav-inner { gap: 20px; }
.h26-nav .btn-tg { min-height: 44px; }
.h26-lang { position: relative; flex-shrink: 0; overflow: visible; background: transparent; border: 0; border-radius: 0; }
.h26-lang > summary::after { content: none; }
.h26-lang > summary:hover { background: transparent; color: var(--text-primary); }
.h26-lang > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--text-secondary); font-size: .85rem; font-weight: 600; letter-spacing: .04em; cursor: pointer; user-select: none; -webkit-user-select: none; }
.h26-lang > summary::-webkit-details-marker { display: none; }
.h26-lang > summary svg { width: 14px; height: 14px; transition: transform .2s; }
.h26-lang[open] > summary { color: var(--text-primary); border-color: var(--border-strong); }
.h26-lang[open] > summary svg { transform: rotate(180deg); }
.h26-lang .lang-sw { position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; flex-direction: column; align-items: stretch; gap: 2px; min-width: 96px; padding: 6px; border-radius: 12px; background: var(--bg-elevated); box-shadow: var(--shadow-card); }
.h26-lang .lang-sw a { display: flex; align-items: center; justify-content: flex-start; min-width: 0; min-height: 44px; padding: 0 14px; font-size: .85rem; border-radius: 8px; color: var(--text-secondary); }
.h26-burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; background: transparent; color: var(--text-primary); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.h26-burger svg { width: 20px; height: 20px; }

/* ── Первый экран ── */
.h26.hero { padding: 44px 0 0; }
.h26-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.h26-copy { position: relative; z-index: 8; min-width: 0; }

.h26 .h26-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--signal); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.h26 .h26-eyebrow::before { content: ''; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--signal); }
.h26 h1 { margin: 0 0 18px; font-size: clamp(1.75rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.h26-lead { max-width: 560px; margin: 0 0 26px; font-size: 1.12rem; line-height: 1.5; color: var(--text-secondary); }
.h26-lead strong { color: var(--text-primary); font-weight: 600; }

.h26-field { display: flex; gap: 10px; padding: 8px; background: var(--bg-elevated); border: 1px solid rgba(156, 189, 255, .2); border-radius: 18px; transition: border-color .2s; }
.h26-field:focus-within { border-color: var(--accent); }
.h26-inputwrap { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 14px; color: var(--accent); cursor: text; }
.h26-inputwrap svg { width: 20px; height: 20px; flex-shrink: 0; }
.h26 .h26-input { flex: 1 1 auto; min-width: 0; height: 48px; background: transparent; border: 0; color: var(--text-primary); font-family: ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace; font-size: .95rem; }
.h26 .h26-input::placeholder { color: #8494AE; opacity: 1; }
.spygrabs-unified .h26 .h26-input:focus-visible { outline: 0; }
.h26 .h26-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; min-height: 48px; padding: 0 22px; border-radius: 12px; background: var(--acid); color: #0B1404; border: 1px solid rgba(220, 255, 151, .7); font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease-smooth), background .2s; }
.h26 .h26-go:hover { background: #D6FF8A; transform: translateY(-1px); }
.h26 .h26-go:active { transform: translateY(0) scale(.98); }
.h26 .h26-go svg { width: 18px; height: 18px; flex-shrink: 0; }

.h26 .h26-go.is-busy { opacity: .72; cursor: wait; pointer-events: none; }

.h26-hint { margin: 10px 4px 0; font-size: .9rem; line-height: 1.4; color: var(--text-secondary); }
.h26-hint[hidden] { display: none; }
.h26-hint[data-kind="ok"] { color: var(--acid); }
.h26-hint[data-kind="warn"] { color: #FFC2D1; }

.h26-checks { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 4px 0; list-style: none; font-size: .9rem; color: var(--text-secondary); }
.h26-checks li { display: flex; align-items: center; gap: 9px; }
.h26-checks li::before { content: ''; width: 5px; height: 10px; flex-shrink: 0; margin: 0 2px 3px; border: solid var(--acid); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.h26 .tg-fallback-hint { margin: 14px 4px 0; color: #8494AE; }
.h26 .copy-bot-btn { min-height: 32px; padding: 4px 10px; }

.h26-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--border); }
.h26-proof p { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.h26-proof b { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; color: var(--text-primary); white-space: nowrap; }
.h26-proof span { font-size: .875rem; line-height: 1.35; color: var(--text-secondary); }

/* Сцена «было → стало» */
.h26-scene { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.h26-ask { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8494AE; }
.h26-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.h26 .h26-chip { min-height: 44px; padding: 0 12px; border-radius: 12px; background: transparent; color: var(--text-secondary); border: 1px solid rgba(156, 189, 255, .22); font-size: .875rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.h26 .h26-chip:hover { color: var(--text-primary); border-color: var(--border-strong); }
.h26 .h26-chip.is-on { background: var(--text-primary); color: var(--bg-base); border-color: var(--text-primary); }

.h26-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 24px; }
.h26-card--ok { border-color: rgba(200, 255, 103, .4); }
.h26-tag { display: flex; align-items: center; gap: 8px; font-family: ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.h26-tag::before { content: ''; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.h26-tag--pain { color: var(--signal); }
.h26-tag--ok { color: var(--acid); }
.h26-tag small { margin-left: auto; font: inherit; color: #8494AE; }
.h26-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-width: 0; }
.h26-ava { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--bg-panel); border: 1px solid rgba(156, 189, 255, .18); font-size: .875rem; font-weight: 700; color: var(--accent); }
.h26-chname { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; }
.h26-chname b { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.h26-chname small { font-size: .8125rem; color: var(--text-secondary); }
.h26-badge { flex-shrink: 0; padding: 6px 10px; border-radius: 8px; background: rgba(255, 109, 146, .12); color: #FF9DB5; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.h26-media { position: relative; display: flex; align-items: center; justify-content: center; height: 120px; border-radius: 16px; background: var(--bg-panel); border: 1px solid rgba(156, 189, 255, .1); }
.h26-play { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(246, 248, 255, .1); color: var(--text-primary); }
.h26-play svg { width: 20px; height: 20px; }
.h26-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; overflow: hidden; font-size: .875rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; text-overflow: ellipsis; }
.h26-toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 109, 146, .1); border: 1px solid rgba(255, 109, 146, .35); color: #FFC2D1; font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.h26-toast svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--signal); }
.h26-arrow { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .875rem; font-weight: 600; color: var(--accent); }
.h26-arrow svg { width: 18px; height: 18px; }
.h26-file { display: flex; align-items: center; gap: 14px; min-width: 0; }
.h26-fileic { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: rgba(200, 255, 103, .12); color: var(--acid); }
.h26-fileic svg { width: 24px; height: 24px; }
.h26-filename { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.h26-filename b { overflow: hidden; font-size: 1.0625rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; text-overflow: ellipsis; }
.h26-filename small { font-family: ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace; font-size: .8125rem; color: var(--text-secondary); }
.h26-done { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: .875rem; font-weight: 600; color: var(--acid); white-space: nowrap; }
.h26-done svg { width: 16px; height: 16px; }

.h26-honest { margin: 36px 0 0; padding: 16px 0 26px; border-top: 1px solid var(--border); font-size: .9rem; line-height: 1.5; color: var(--text-secondary); }

/* ── Планшет и телефон ── */
@media (max-width: 900px) {
  .h26-burger { display: inline-flex; }
  .h26-nav .nav-inner { gap: 8px; }
  .h26-nav .h26-lang { margin-left: auto; }
  .h26-nav .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 8px 16px 14px; flex-direction: column; align-items: stretch; gap: 2px; background: var(--bg-base); border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px rgba(0, 0, 0, .5); }
  .h26-nav.h26-open .nav-links { display: flex; }
  .h26-nav .nav-links a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; font-size: 1rem; }

  .h26.hero { padding: 24px 0 0; }
  .h26-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .h26-copy { display: contents; }
  .h26 .h26-eyebrow { order: 1; margin-bottom: 12px; font-size: .75rem; letter-spacing: .12em; }
  .h26 h1 { order: 2; margin-bottom: 12px; }
  .h26-lead { order: 3; max-width: none; margin-bottom: 18px; font-size: 1rem; line-height: 1.45; }
  .h26-field { order: 4; flex-direction: column; padding: 0; background: transparent; border: 0; border-radius: 0; }
  .h26-inputwrap { min-height: 52px; background: var(--bg-elevated); border: 1px solid rgba(156, 189, 255, .2); border-radius: 14px; }
  .h26-inputwrap:focus-within { border-color: var(--accent); }
  .h26 .h26-input { height: 50px; font-size: 1rem; }
  .h26 .h26-go { min-height: 54px; border-radius: 14px; font-size: 1.0625rem; }
  .h26-hint { order: 5; }
  .h26 .link-checker-result { order: 5; }
  .h26-checks { order: 6; gap: 6px 14px; margin-top: 12px; font-size: .8125rem; }
  .h26-scene { order: 7; margin-top: 22px; }
  .h26 .tg-fallback-hint { order: 8; margin-top: 18px; }
  .h26-proof { order: 9; margin-top: 20px; gap: 14px; }
  .h26-proof b { font-size: 1.25rem; }
  .h26-proof span { font-size: .8125rem; }
  .h26-honest { margin-top: 22px; }
}

@media (max-width: 520px) {
  .h26-nav .btn-tg { min-height: 44px; padding: 0 12px; }
  .h26-lang > summary { padding: 0 10px; }
  .h26-chips { flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .h26-chips::-webkit-scrollbar { display: none; }
  .h26 .h26-chip { flex-shrink: 0; }
  .h26-card { padding: 14px; border-radius: 18px; gap: 10px; }
  .h26-media { display: none; }
  .h26-ch { flex-wrap: wrap; gap: 8px 10px; }
  .h26-ava { width: 36px; height: 36px; font-size: .75rem; }
  .h26-toast { font-size: .875rem; padding: 10px 12px; }
  .h26-fileic { width: 44px; height: 44px; }
  .h26-filename b { font-size: .9375rem; }
  .h26-done { font-size: .8125rem; }
  .h26-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Баннер согласия Meta: компактнее, чтобы не закрывать главную кнопку */
  #spygrabs-meta-consent { left: 8px !important; right: 8px !important; bottom: 8px !important; padding: 10px 12px !important; font-size: 13px !important; line-height: 1.35 !important; }
  #spygrabs-meta-consent p { margin: 0 0 6px !important; }
  #spygrabs-meta-consent button { margin: 2px 6px 2px 0 !important; padding: 7px 10px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .h26 .h26-go, .h26 .h26-chip, .h26-lang > summary svg { transition: none; }
}
