:root {
  --bg: #0b0f1a;
  --bg-soft: #12182a;
  --card: #151d33;
  --text: #e9eefc;
  --muted: #a9b4d0;
  --line: #27314f;
  --accent: #6ea8ff;
  --accent-2: #9b7bff;
  --max: 960px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 450px at 95% -5%, rgba(155,123,255,.18), transparent 60%),
    radial-gradient(800px 420px at -5% 0%, rgba(110,168,255,.16), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 26, 0.82);
  border-bottom: 1px solid rgba(255,255,255,.05);
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 36px;
  background: linear-gradient(135deg, #6f7bf7, #9b6dff);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}

.brand-mark img {
  width: 120%;
  height: 120%;
  display: block;
  object-fit: cover;
  object-position: center;
 /* transform: translateY(3px); /* попробуй 0px / 1px / -1px */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  padding: .45rem .65rem;
  border-radius: 10px;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
  text-decoration: none;
}

main { padding: 2rem 0 2rem; }

.hero {
  padding: 2rem 0 1rem;
}

.hero-card,
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.hero h1, h1 {
  margin: 0 0 .6rem;
  line-height: 1.15;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

p { margin: .65rem 0; }

.muted { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.badge {
  display: inline-block;
  font-size: .8rem;
  line-height: 1;
  padding: .35rem .55rem;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}

.badge.released { border-color: rgba(110,168,255,.35); }
.badge.progress { border-color: rgba(155,123,255,.35); }
.badge.plan { border-color: rgba(255,255,255,.18); }

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li { margin: .45rem 0; }

.section-title {
  margin: 1.4rem 0 .6rem;
  font-size: 1.15rem;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0 1.4rem;
}

.footer-links {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover { color: var(--text); text-decoration: none; }

.note {
  border-left: 3px solid var(--accent);
  padding: .7rem .85rem;
  background: rgba(110,168,255,.06);
  border-radius: 10px;
}

@media (max-width: 640px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .nav-links { gap: .4rem; }
}


.readme-card {
  margin-top: .2rem;
}

.readme-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.home-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding: .35rem;
}

.markdown-view h1,
.markdown-view h2,
.markdown-view h3 {
  margin-top: 0;
}

.markdown-view h2 {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

.markdown-view h3 {
  margin: .5rem 0 .35rem;
  font-size: 1rem;
}

.markdown-view ul {
  margin: .5rem 0 .5rem 1.1rem;
  padding: 0;
}

.project-card .meta-list {
  margin: .75rem 0 0;
  display: grid;
  gap: .45rem;
}

.project-card .meta-list > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: .55rem;
  align-items: start;
  padding-top: .35rem;
  border-top: 1px dashed rgba(255,255,255,.06);
}

.project-card .meta-list > div:first-child {
  border-top: none;
  padding-top: 0;
}

.project-card dt {
  color: var(--muted);
  font-weight: 600;
}

.project-card dd {
  margin: 0;
}

.links-inline {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 640px) {
  .readme-head {
    grid-template-columns: 1fr;
  }

  .home-logo {
    width: 72px;
    height: 72px;
  }

  .project-card .meta-list > div {
    grid-template-columns: 1fr;
    gap: .1rem;
  }
}


/* Footer social icons (v3) */
.footer-stack {
  padding: 1rem 0 1.35rem;
}

.footer-social-label {
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: .7rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  margin-bottom: .95rem;
}

.icon-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(233, 238, 252, 0.92);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.015);
  transition: transform .12s ease, border-color .12s ease, background-color .12s ease, color .12s ease;
}

.icon-link:hover {
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(110,168,255,.35);
  background: rgba(110,168,255,.06);
}

.icon-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: .8rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--muted);
}

.footer-bottom-links a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 640px) {
  .footer-social-label {
    font-size: 1.45rem;
  }

  .icon-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .icon-link svg {
    width: 20px;
    height: 20px;
  }
}
