/* Страница презентации AIfa Memory (/deck). Одна и та же на восьми сайтах; без внешних шрифтов и встроенных стилей — CSP сайтов рассылки разрешает только свои файлы. */
:root {
  --bg: #0a0e1a; --bg2: #0f1526; --card: #121a2e; --line: #263352;
  --text: #eef2fa; --muted: #9aa6c0; --accent: #5ec8ff; --violet: #a48bff; --orange: #ff9f4a;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55;
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(94, 200, 255, .12), transparent 60%),
                    radial-gradient(900px 500px at -10% 20%, rgba(164, 139, 255, .10), transparent 60%);
  background-repeat: no-repeat;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 50; }

.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, calc((100vw - 1180px) / 2)); background: rgba(10, 14, 26, .82);
  backdrop-filter: blur(10px); border-bottom: 1px solid rgba(38, 51, 82, .6);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--violet)); box-shadow: 0 0 12px var(--accent); }
.langs { display: flex; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; min-width: 44px; text-align: center; }
.langs a[aria-current="true"] { background: var(--accent); color: #06121f; }
.langs a:hover:not([aria-current="true"]) { color: var(--text); }

main { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding: 56px 0 40px; }
.badge { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); font-size: 13px; font-weight: 600; background: rgba(94, 200, 255, .06); }
h1 { margin: 0 0 16px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.5px; }
.lead { margin: 0 0 12px; font-size: 19px; color: #d6deee; }
.meta { margin: 0 0 26px; color: var(--muted); font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #7b9bff); color: #06121f; box-shadow: 0 8px 28px rgba(94, 200, 255, .28); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(94, 200, 255, .38); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); background: rgba(18, 26, 46, .6); }
.btn.ghost:hover { border-color: var(--accent); }
.ico { font-size: 18px; line-height: 1; }
.others { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); font-size: 14px; }
.others a { color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--bg2); }
.others a:hover { border-color: var(--accent); }
.others a[aria-current="true"] { border-color: var(--accent); color: var(--accent); }
.others small { color: var(--muted); }

.cover { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: zoom-in; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(94, 200, 255, .08), 0 0 60px rgba(94, 200, 255, .12); transition: transform .2s; }
.cover:hover { transform: translateY(-2px); }
.cover img { display: block; width: 100%; height: auto; }

.facts { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facts li { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; }
.facts b { display: block; font-size: 26px; color: var(--accent); letter-spacing: -.3px; margin-bottom: 4px; }
.facts span { color: var(--muted); font-size: 14px; }

.slides h2 { margin: 0 0 6px; font-size: 28px; }
.hint { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.grid { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.grid button { width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; font: inherit; text-align: left; cursor: zoom-in; overflow: hidden; transition: border-color .15s, transform .15s; }
.grid button:hover { border-color: var(--accent); transform: translateY(-2px); }
.grid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--bg2); }
.grid .cap { display: block; padding: 10px 12px 12px; }
.grid .k { display: block; color: var(--accent); font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 3px; }
.grid .t { display: block; font-size: 14px; line-height: 1.35; color: #dbe3f2; }

.foot { border-top: 1px solid var(--line); padding: 28px 16px 40px; text-align: center; color: var(--muted); font-size: 14px; }
.foot p { margin: 6px auto; max-width: 760px; }
.foot .sites { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }

.box { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: rgba(4, 7, 14, .94); }
.box[hidden] { display: none; }
.box figure { margin: 0; max-width: min(1280px, 100%); flex: 1; text-align: center; }
.box img { display: block; width: 100%; height: auto; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
.box figcaption { margin-top: 10px; color: #dbe3f2; font-size: 15px; }
.box button { border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; border-radius: 999px; }
.box .nav { width: 48px; height: 48px; font-size: 28px; line-height: 1; flex: none; }
.box .x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; font-size: 26px; line-height: 1; }
.box button:hover { border-color: var(--accent); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .top { padding: 10px 16px; }
  .brand { font-size: 15px; }
  .langs a { padding: 6px 8px; min-width: 36px; font-size: 13px; }
  .lead { font-size: 17px; }
  .btn { width: 100%; justify-content: center; }
  .facts { grid-template-columns: 1fr; }
  .facts b { font-size: 22px; }
  .grid { grid-template-columns: 1fr; }
  .box { padding: 8px; gap: 0; }
  .box .nav { position: absolute; bottom: 14px; }
  .box .prev { left: calc(50% - 60px); } .box .next { right: calc(50% - 60px); }
  .box img { max-height: calc(100vh - 150px); }
}
.brand, .langs a { white-space: nowrap; }
@media (max-width: 380px) {
  .top { gap: 8px; }
  .brand { font-size: 14px; gap: 7px; }
  .langs { gap: 2px; }
  .langs a { padding: 6px 7px; min-width: 32px; font-size: 12.5px; }
}
