/* ============================================================
   EclipseID · Base v3 (квадратный строгий стиль)
   ============================================================ */
:root {
  --bg: #0e0e12;
  --bg-2: #14141a;
  --card: #1a1a21;
  --card-2: #22222b;
  --border: #26262f;
  --border-2: #32323d;
  --fg: #ececf1;
  --fg-2: #a2a2ae;
  --fg-3: #6a6a78;
  --accent: #8ef0a8;
  --accent-2: #5ed98a;
  --accent-bg: rgba(142, 240, 168, .12);
  --danger: #ff4444;
  --r: 2px;
  --r-lg: 4px;
  --f: 'Inter', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --wrap: min(1200px, 100% - 48px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--f);
  font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { width: var(--wrap); margin-inline: auto; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 18, .85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); font-weight: 600; font-size: 17px; letter-spacing: -.01em;
}
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(142,240,168,.35)); }
.brand em { font-style: normal; color: var(--accent); }

.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  padding: 8px 12px; border-radius: var(--r);
  font-size: 13.5px; color: var(--fg-2); transition: .15s;
}
.menu a:hover, .menu a.active { color: var(--fg); background: var(--card); }

/* ---------- Topbar right (avatar + burger) ---------- */
.topbar-right { display: flex; align-items: center; gap: 10px; }

.avatar-btn {
  display: inline-flex; width: 38px; height: 38px;
  border-radius: 0; overflow: hidden;
  transition: .18s; flex-shrink: 0;
  margin: 0;
}
.avatar-btn:hover { transform: translateY(-2px); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-btn[hidden] { display: none; }

/* ---------- Burger ---------- */
.burger {
  display: none; width: 38px; height: 38px;
  border-radius: var(--r); background: var(--card);
  border: 1px solid var(--border); position: relative;
  cursor: pointer; padding: 0;
  margin: 0;
}
.burger span {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 16px; height: 1.8px; background: var(--fg);
  border-radius: 0; transition: .22s;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 18px; }
.burger span:nth-child(3) { top: 23px; }
.burger.open span:nth-child(1) { top: 18px; transform: translateX(-50%) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 18px; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none; flex-direction: column;
  padding: 10px 0 14px;
  border-top: 1px solid var(--border);
  background: rgba(14, 14, 18, .98);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.mobile-menu a { padding: 12px 24px; font-size: 15px; color: var(--fg-2); }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--fg); background: var(--card); }
.mobile-menu.open { display: flex; }
body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid transparent;
  transition: .15s;
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #0b0b0f;
  border-color: var(--accent); font-weight: 600;
  box-shadow: 0 4px 16px rgba(142, 240, 168, .18);
}
.btn-primary:hover { background: #a3f5b9; }
.btn-lg { padding: 11px 22px; font-size: 13px; }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent; color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--fg-2); background: var(--card); }
.btn-sm { padding: 6px 12px; font-size: 10px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: rgba(26, 26, 33, .65);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r);
  font-size: 12px; color: var(--fg-2);
}
.chip-dot {
  width: 7px; height: 7px; border-radius: 0;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

/* ---------- Sections ---------- */
.section { width: var(--wrap); margin-inline: auto; padding: 80px 0; }
.section-head { margin-bottom: 32px; }
.section-label {
  font-size: 11px; letter-spacing: .14em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 12px; font-weight: 600;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0;
}

/* ---------- Cards ---------- */
.card {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: .2s border-color, .2s transform;
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r);
  background: var(--accent-bg); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-weight: 600; font-size: 14px; margin-bottom: 16px;
}
.card h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; }
.card p { font-size: 14px; color: var(--fg-2); margin: 0; }

/* ---------- Grids ---------- */
.cards-3, .services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

/* ---------- Gradient text ---------- */
.grad {
  background: linear-gradient(90deg, var(--accent), #b6f7c9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 48px 0 0; margin-top: 80px;
}
.footer-grid {
  width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(142,240,168,.35)); }
.footer-brand-name { font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--fg); }
.footer-brand-name em { font-style: normal; color: var(--accent); }
.footer-tagline { font-size: 13px; color: var(--fg-3); margin-top: 6px; max-width: 320px; }
.footer-col h4 {
  font-size: 11px; font-weight: 600; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px;
}
.footer-col a { display: block; padding: 6px 0; font-size: 14px; color: var(--fg-2); transition: .15s; }
.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  width: var(--wrap); margin: 40px auto 0;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--fg-3); font-family: var(--mono);
}
.footer-bottom a { color: var(--fg-2); }
.footer-bottom a:hover { color: var(--fg); }

/* ---------- Adaptive ---------- */
@media (max-width: 980px) {
  .menu { display: none !important; }
  .burger { display: inline-flex; }
  .cards-3, .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cards-3, .services-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .topbar-inner { padding: 12px 0; }
  .brand { font-size: 16px; }
  .footer-bottom { justify-content: flex-start; }
}

/* === Кнопка открытия в SPM (публичный профиль) === */
.btn-spm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r);
  font-family: var(--f);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
  margin-top: 8px;
}
.btn-spm:hover {
  background: var(--accent-bg);
  color: var(--accent);
}
.btn-spm svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}
