/* ATTACH — общая обвязка публичных страниц: шапка, футер, логотип */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(6, 7, 13, 0.78);
  backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.03em; font-size: 19px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #06070d; font-size: 17px; font-weight: 800;
  box-shadow: 0 8px 28px -8px rgba(123, 92, 255, 0.9);
  position: relative; overflow: hidden; flex: none;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.6), transparent 60%);
  transform: translateX(-100%);
  animation: shine 4.5s infinite;
}
@keyframes shine { 0%, 65% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.logo-sep { color: var(--dim); font-weight: 300; }
.logo-sub { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 15px; border-radius: 100px; font-size: 14.5px; color: var(--muted);
  transition: color 0.2s, background 0.2s; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--panel-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.burger span { display: block; width: 18px; height: 1.6px; background: var(--text); margin: 3.6px auto; transition: 0.3s var(--ease); border-radius: 2px; }
.burger.open span:nth-child(1) { transform: translateY(5.2px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-5.2px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 190;
  background: rgba(6, 7, 13, 0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  padding: 20px; display: none; flex-direction: column; gap: 6px;
}
.mobile-menu.open { display: flex; animation: dropIn 0.32s var(--ease); }
.mobile-menu a { padding: 14px 16px; border-radius: 14px; font-size: 16px; font-weight: 500; }
.mobile-menu a:hover { background: var(--panel-2); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-12px); } }

/* ------------------------------------------------------------------- футер */

.footer { border-top: 1px solid var(--line); padding: 70px 0 34px; margin-top: 40px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; font-weight: 700; }
.footer ul { display: flex; flex-direction: column; gap: 11px; }
.footer a { color: var(--muted); font-size: 14.5px; transition: color 0.2s; }
.footer a:hover { color: var(--c1); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--dim); font-size: 13.5px;
}
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); display: grid; place-items: center; font-size: 16px;
  transition: 0.25s var(--ease);
}
.socials a:hover { transform: translateY(-3px); border-color: var(--c2); box-shadow: var(--glow); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .burger { display: block; margin-left: auto; }
  .nav-actions .btn-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .logo-sub { display: none; }
  .section { padding: 76px 0; }
}
