:root{
  --bg:#0b0f14;
  --card:rgba(18,18,18,.78);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.65);
  --accent:#FF8C00;
  --accent2:#00cfcf;
  --shadow:0 16px 60px rgba(0,0,0,.55);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:"Segoe UI",system-ui,-apple-system,Arial,sans-serif;
  color:var(--text);
  background:transparent;
  overflow-x:hidden;

  /* ВАЖНО — фикс футера */
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

body::before{
  content:"";
  position:fixed; inset:0;
  background:url('/images/logo.jpg') no-repeat center center fixed;
  background-size:cover;
  filter:saturate(1.05) contrast(1.05);
  z-index:-3;
}
body::after{
  content:"";
  position:fixed; inset:0;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(255,140,0,.16), transparent 60%),
    radial-gradient(900px 520px at 85% 25%, rgba(0,207,207,.14), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.52), rgba(0,0,0,.72));
  z-index:-2;
}

.top-panel{
  position:sticky;
  top:0;
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 22px;
  background:rgba(0,0,0,.50);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:170px;
}
.brand img{height:44px;width:auto;display:block}
.brand .name{
  font-weight:900;
  letter-spacing:.3px;
  color:var(--accent);
  text-shadow:0 0 10px rgba(255,140,0,.22);
  line-height:1.05;
}
.brand .sub{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
  font-weight:800;
}

.menu{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.menu a{
  text-decoration:none;
  color:rgba(255,140,0,.95);
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,140,0,.18);
  background:rgba(255,140,0,.06);
  transition:.2s ease;
  font-weight:700;
  font-size:14px;
}
.menu a:hover{
  color:#061017;
  background:rgba(0,207,207,.95);
  border-color:rgba(0,207,207,.35);
  box-shadow:0 12px 30px rgba(0,207,207,.18);
  transform:translateY(-1px);
}

.auth{
  display:flex;
  align-items:center;
  gap:12px;
}
.navbar__profile{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#fff;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  transition:.2s ease;
}
.navbar__profile:hover{
  background:rgba(255,255,255,.06);
  transform:translateY(-1px);
  border-color:rgba(255,140,0,.20);
}
.avatar-wrapper{
  width:40px;
  height:40px;
  border-radius:50%;
  overflow:hidden;
  border:2px solid rgba(255,255,255,.9);
  box-shadow:0 0 8px rgba(255,255,255,.18);
  flex-shrink:0;
}
.avatar-wrapper img{
  width:150%;
  height:150%;
  object-fit:cover;
  object-position:center top;
  transform:translateY(12%);
  margin-left:-23%;
  display:block;
}
.user-profile__nickname{
  font-weight:900;
  white-space:nowrap;
}

.logout-link{
  padding:9px 14px;
  background:linear-gradient(135deg, rgba(255,140,0,1), rgba(255,180,72,1));
  color:#0b0f14;
  text-decoration:none;
  border-radius:14px;
  font-weight:950;
  transition:.2s ease;
  border:0;
  box-shadow:0 14px 38px rgba(255,140,0,.18);
}
.logout-link:hover{
  transform:translateY(-1px);
  background:linear-gradient(135deg, rgba(0,207,207,1), rgba(0,255,231,1));
  box-shadow:0 16px 46px rgba(0,207,207,.16);
  color:#061017;
}

.auth a:not(.navbar__profile):not(.logout-link){
  padding:9px 14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:#fff;
  text-decoration:none;
  border-radius:14px;
  font-weight:900;
  transition:.2s ease;
}
.auth a:not(.navbar__profile):not(.logout-link):hover{
  border-color:rgba(255,140,0,.45);
  background:rgba(255,140,0,.12);
  color:rgba(0,207,207,.95);
  transform:translateY(-1px);
}
.wrap{
  width:min(1200px,94vw);
  margin:24px auto 42px;

  flex:1;
}
    .hero{
      min-height:calc(100vh - 88px);
      display:grid;
      grid-template-columns: 1.15fr .85fr;
      gap:18px;
      align-items:center;
    }

    .hero-card{
      background:var(--card);
      border:1px solid var(--bd);
      border-radius:22px;
      box-shadow:0 18px 60px var(--soft);
      overflow:hidden;
      padding:22px;
      position:relative;
    }
    .hero-card:before{
      content:"";
      position:absolute;
      inset:-2px;
      background:radial-gradient(600px 220px at 12% 10%, rgba(255,140,0,.18), transparent 60%),
                 radial-gradient(500px 220px at 85% 25%, rgba(0,207,207,.10), transparent 60%);
      pointer-events:none;
    }

    .hero-title{
      margin:0;
      font-size:40px;
      font-weight:1000;
      letter-spacing:.4px;
      text-shadow:0 0 22px rgba(255,140,0,.20);
      position:relative;
      z-index:1;
    }
    .hero-sub{
      margin:10px 0 0;
      color:var(--mut);
      font-weight:800;
      line-height:1.5;
      position:relative;
      z-index:1;
    }

    .hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px;position:relative;z-index:1}
    .btn{
      display:inline-flex;align-items:center;justify-content:center;
      gap:10px;
      padding:13px 18px;
      border-radius:16px;
      font-weight:950;
      text-decoration:none;
      transition:.2s;
      border:1px solid rgba(255,255,255,.10);
      background:rgba(255,255,255,.06);
      color:#fff;
    }
    .btn:hover{transform:translateY(-1px);border-color:rgba(255,140,0,.35);background:rgba(255,140,0,.10)}
    .btn-primary{
      background:var(--acc);
      color:#000;
      border:none;
    }
    .btn-primary:hover{
      background:#fff;
      color:var(--acc);
      box-shadow:0 0 18px rgba(255,140,0,.30);
    }

    .side-card{
      background:var(--card);
      border:1px solid var(--bd);
      border-radius:22px;
      box-shadow:0 18px 60px var(--soft);
      padding:18px;
      display:flex;
      flex-direction:column;
      gap:12px;
    }
    .mini{
      background:rgba(0,0,0,.18);
      border:1px solid rgba(255,255,255,.08);
      border-radius:18px;
      padding:14px;
    }
    .mini .t{color:var(--mut);font-weight:900;font-size:12px}
    .mini .v{margin-top:8px;font-weight:1000;font-size:18px;letter-spacing:.2px}

    .grid{
      margin-top:18px;
      display:grid;
      grid-template-columns:repeat(3,1fr);
      gap:14px;
    }
    .feature{
      background:rgba(0,0,0,.22);
      border:1px solid rgba(255,255,255,.08);
      border-radius:20px;
      padding:16px;
      transition:.2s;
    }
    .feature:hover{border-color:rgba(255,140,0,.35);background:rgba(255,140,0,.08);transform:translateY(-1px)}
    .feature h3{margin:0;color:var(--acc2);font-size:15px;font-weight:1000}
    .feature p{margin:8px 0 0;color:#e9e9f3;opacity:.9;line-height:1.5;font-weight:700;font-size:13px}

    .footer{
  margin-top:auto;
  text-align:center;
  padding:30px;
  background:rgba(0,0,0,.6);
  color:#FF8C00;
  font-size:16px;
  text-shadow:0 0 10px #000;
  border-top:1px solid rgba(255,255,255,.1);
}

    .modal{
      display:none;
      position:fixed;
      inset:0;
      z-index:1000;
      background:rgba(0,0,0,.75);
      backdrop-filter:blur(6px);
      padding:18px;
    }
    .modal.show{display:flex;align-items:center;justify-content:center}
    .modal-box{
      width:min(420px, 92vw);
      background:rgba(15,15,19,.96);
      border:1px solid rgba(255,255,255,.10);
      border-radius:20px;
      box-shadow:0 30px 80px rgba(0,0,0,.7);
      overflow:hidden;
    }
    .modal-hd{
      display:flex;align-items:center;justify-content:space-between;
      padding:14px 16px;
      border-bottom:1px solid rgba(255,255,255,.06);
    }
    .modal-hd strong{color:var(--acc2);font-weight:1000}
    .x{
      width:36px;height:36px;border-radius:12px;
      border:1px solid rgba(255,255,255,.10);
      background:rgba(255,255,255,.06);
      color:#fff;
      cursor:pointer;
      font-weight:1000;
      transition:.2s;
    }
    .x:hover{border-color:rgba(255,140,0,.35);background:rgba(255,140,0,.10)}
    .modal-bd{padding:16px}
    .modal-bd p{margin:0;color:#e9e9f3;font-weight:800;line-height:1.5}
    .modal-bd code{
      display:inline-block;
      padding:6px 10px;
      border-radius:12px;
      background:rgba(255,140,0,.12);
      border:1px solid rgba(255,140,0,.25);
      color:var(--acc2);
      font-weight:1000;
    }

@media (max-width: 980px){
  .menu{display:none}
  .top-panel{padding:12px 16px}
  .logo img{height:42px}
  .hero{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .hero-title{font-size:32px}
  .brand img{height:40px}
  .user-profile__nickname{display:none}
}