/* ===========================================================
   TON Site — визитка. Без внешних CDN: системные шрифты,
   inline-SVG. Всё, что грузится — лежит на твоём сервере.
   =========================================================== */

:root {
  --bg:        #0b0f17;
  --bg-soft:   #111826;
  --card:      rgba(255, 255, 255, 0.04);
  --card-edge: rgba(255, 255, 255, 0.08);
  --text:      #e8edf5;
  --muted:     #93a1b5;
  --ton:       #0098ea;   /* фирменный TON-синий */
  --ton-2:     #2bb3ff;
  --radius:    18px;
  --maxw:      640px;
  --shadow:    0 20px 60px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Фон ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-glow {
  position: absolute;
  width: 50vw; height: 50vw;
  max-width: 620px; max-height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bg-glow--1 { top: -10%; left: -10%; background: radial-gradient(circle, var(--ton), transparent 70%); }
.bg-glow--2 { bottom: -15%; right: -10%; background: radial-gradient(circle, #6b3bff, transparent 70%); opacity: 0.35; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
}

/* ---------- Лэйаут ---------- */
.page {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 12px 0 8px; }

.avatar {
  width: 92px; height: 92px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 24px;
  font-size: 32px; font-weight: 700; letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(145deg, var(--ton), #0b6fc4);
  box-shadow: 0 12px 36px -10px rgba(0, 152, 234, 0.7);
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  font-size: 13px; color: var(--muted);
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 999px;
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #29d97c;
  box-shadow: 0 0 0 0 rgba(41, 217, 124, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(41, 217, 124, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(41, 217, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(41, 217, 124, 0); }
}

.hero-name {
  margin: 18px 0 10px;
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-tagline {
  margin: 0 auto;
  max-width: 460px;
  color: var(--muted);
  font-size: clamp(15px, 4vw, 18px);
}

.hero-actions {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ton-2), var(--ton));
  box-shadow: 0 10px 26px -10px rgba(0, 152, 234, 0.9);
}
.btn--primary:hover { box-shadow: 0 14px 32px -10px rgba(0, 152, 234, 1); transform: translateY(-1px); }
.btn--ghost {
  color: var(--text);
  background: var(--card);
  border-color: var(--card-edge);
}
.btn--ghost:hover { background: rgba(255,255,255,0.07); }

/* ---------- Карточки ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: clamp(20px, 5vw, 30px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.card p { margin: 0 0 12px; color: #c6d0de; }
.card p:last-child { margin-bottom: 0; }

.section-title {
  margin: 0 0 16px;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ton-2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.card--mini { padding: 20px; box-shadow: none; }
.card--mini h3 { margin: 10px 0 6px; font-size: 16px; }
.card--mini p { font-size: 14px; color: var(--muted); }
.card-ico { font-size: 26px; }

/* ---------- Ссылки-контакты ---------- */
.links { display: grid; gap: 10px; }
.link {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.link:hover { transform: translateY(-1px); background: rgba(0,152,234,0.09); border-color: rgba(0,152,234,0.4); }
.link .ico { flex: none; width: 22px; height: 22px; fill: var(--ton-2); }
.link-text { display: flex; flex-direction: column; line-height: 1.3; }
.link-text b { font-weight: 600; }
.link-text small { color: var(--muted); font-size: 13px; }

/* ---------- Footer ---------- */
.footer { text-align: center; margin-top: 8px; }
.ton-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  font-size: 14px; font-weight: 600;
  color: var(--text); text-decoration: none;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 999px;
}
.ton-badge .ico { width: 18px; height: 18px; fill: var(--ton-2); }
.ton-badge:hover { border-color: rgba(0,152,234,0.5); }
.footer-meta { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.ico { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  padding: 11px 18px;
  background: #1b2536;
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  color: var(--text); font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pill-dot { animation: none; }
  html { scroll-behavior: auto; }
}
