/* a-bit.ru — стили визитки, вариант «Матрица». Версия 3.0 (2026-11-28): основа 2.0 + цифровой дождь */
:root {
  --bg: #0a0e09;
  --ink: #eef3e6;
  --muted: #93a187;
  --line: rgba(196, 230, 110, .14);
  --lime: #a3c434;
  --lime-hi: #c8ec5a;
  --glass: rgba(20, 27, 17, .62);
  --tile: rgba(255, 255, 255, .035);
  --radius: 28px;
  color-scheme: dark;
  font-family: "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* ---------- фон ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; opacity: .5; }
.g1 {
  width: 58vmax; height: 58vmax; left: -18vmax; top: -22vmax;
  background: radial-gradient(circle, rgba(111,143,18,.9) 0%, rgba(111,143,18,.25) 35%, transparent 68%);
  animation: drift 22s ease-in-out infinite alternate;
}
.g2 {
  width: 50vmax; height: 50vmax; right: -20vmax; bottom: -24vmax;
  background: radial-gradient(circle, rgba(47,90,26,.9) 0%, rgba(47,90,26,.25) 35%, transparent 68%);
  animation: drift 28s ease-in-out infinite alternate-reverse;
}
.hexgrid {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23a3c434' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 62%);
  animation: pan 60s linear infinite;
}
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes pan { to { transform: translateY(97px); } }

/* ---------- карточка ---------- */
.card {
  --mx: 50%; --my: 0%;
  position: relative;
  width: min(100%, 920px);
  padding: clamp(24px, 5vw, 56px);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.4),
    0 40px 120px -30px rgba(0,0,0,.8),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  overflow: hidden;
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}
.card::before { /* лаймовая кромка сверху */
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime-hi), transparent);
  opacity: .7;
}
.spot {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(163,196,52,.13), transparent 60%);
  transition: opacity .3s;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* ---------- шапка ---------- */
.head { position: relative; display: grid; justify-items: start; gap: 14px; margin-bottom: clamp(28px, 5vw, 44px); }
.mark { width: clamp(150px, 22vw, 210px); margin-bottom: 10px; }
.mark img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 0 22px rgba(163,196,52,.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px); filter: drop-shadow(0 0 34px rgba(163,196,52,.55)); } }

.kicker {
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(163,196,52,.06);
  color: var(--lime-hi); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

h1 {
  margin: 0;
  font-size: clamp(40px, 8.5vw, 88px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.045em;
  background: linear-gradient(180deg, #fff 30%, #b9c9a6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- плитки ---------- */
.grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  position: relative;
  display: grid; align-content: start; gap: 8px;
  min-width: 0;
  padding: 22px 22px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--tile);
  color: inherit; text-decoration: none; text-align: left;
  font: inherit; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, background .25s;
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(200,236,90,.45);
  background: rgba(163,196,52,.07);
  outline: none;
}
.tile.addr { grid-column: 1 / -1; cursor: default; }
.tile.addr:hover { transform: none; }

.label { color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.value { font-size: clamp(19px, 2.3vw, 24px); font-weight: 650; letter-spacing: -.02em; overflow-wrap: anywhere; }
.value.small { font-size: clamp(15px, 1.7vw, 18px); font-weight: 500; line-height: 1.5; letter-spacing: 0; color: #dbe4d0; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.hint {
  font-size: 13px; color: var(--lime-hi);
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}
.tile:hover .hint, .tile:focus-visible .hint { opacity: 1; transform: none; }
.ico {
  position: absolute; top: 20px; right: 20px; width: 22px; height: 22px;
  fill: var(--lime); opacity: .55; transition: opacity .25s, transform .25s;
}
.tile:hover .ico { opacity: 1; transform: rotate(-8deg) scale(1.1); }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--ink); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover, .chip:focus-visible { border-color: var(--lime); color: var(--lime-hi); background: rgba(163,196,52,.08); outline: none; }

/* ---------- низ ---------- */
.foot {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(24px, 4vw, 36px);
  padding-top: 22px; border-top: 1px solid var(--line);
}
.save {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: linear-gradient(180deg, var(--lime-hi), var(--lime));
  color: #10160b; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(163,196,52,.6), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .2s, box-shadow .2s;
}
.save:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(163,196,52,.75), inset 0 1px 0 rgba(255,255,255,.5); }
.save svg { width: 18px; height: 18px; }
.copy { color: var(--muted); font-size: 13px; }

/* ---------- уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 10;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 14px;
  background: #1a2214; border: 1px solid rgba(200,236,90,.35);
  color: var(--ink); font-size: 14px;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.8);
  transition: opacity .25s, transform .25s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- мобильные ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hint { opacity: 1; transform: none; }
  .foot { justify-content: center; text-align: center; }
  .save { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.nowrap { white-space: nowrap; overflow-wrap: normal; }

/* ===== вариант «Матрица» ===== */
:root { --bg: #020502; --glass: rgba(4, 10, 4, .72); --line: rgba(163,196,52,.22); --muted: #7f9a6c; }
body { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace; }
.bg canvas { position: absolute; inset: 0; display: block; }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(2,5,2,.85) 85%); }
.card { box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 80px -20px rgba(163,196,52,.25), 0 40px 120px -30px rgba(0,0,0,.9); }
h1 {
  font-family: inherit; font-weight: 800; letter-spacing: -.04em;
  background: none; color: #e8ffd0;
  text-shadow: 0 0 18px rgba(163,196,52,.55), 0 0 2px #c8ec5a;
  min-height: 1em;
}
.kicker { font-size: 12px; }
.value { letter-spacing: -.01em; }
.tile { background: rgba(163,196,52,.03); }
.tile:hover, .tile:focus-visible { box-shadow: 0 0 30px -8px rgba(163,196,52,.45); }
.save { box-shadow: 0 0 30px -4px rgba(163,196,52,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.value { font-size: clamp(17px, 2vw, 22px); }
