/* ПАЛИТРА И ТОКЕНЫ */
:root{
  --bg:#0b0d10; --panel:#101319cc; --text:#e9eef6; --muted:#a7b0be;
  --brand:#e83e8c; --brand-2:#6c5ce7; --glass:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.12); --radius:22px; --shadow:0 10px 30px rgba(0,0,0,.45);
}

/* БАЗА */
*{ box-sizing:border-box }
html,body{ height:100% }
html{ scroll-behavior:smooth; scrollbar-width:none }           /* Firefox: hide */
body{ -ms-overflow-style:none }                               /* IE/Edge: hide */
body::-webkit-scrollbar{ display:none }                       /* WebKit: hide */

body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Inter,"SF Pro Text",Arial,sans-serif;
  color:var(--text);
  background:#0b0d10;
}
::selection{ background:rgba(232,62,140,.35) }

.container{ max-width:1200px; margin:0 auto; padding:0 24px }

/* ЖИВОЙ ФОН (без «разделённого» эффекта) */
body::before{
  content:""; position:fixed; inset:-10% -10% -10% -10%; z-index:-2; border-radius:8%;
  background:
    radial-gradient(900px 600px at 8% 0%, rgba(232,62,140,.12), transparent 70%),
    radial-gradient(900px 600px at 92% 6%, rgba(108,92,231,.12), transparent 70%),
    radial-gradient(700px 500px at 50% 110%, rgba(70,120,255,.08), transparent 70%);
  filter:saturate(120%); animation:bgFloat 36s ease-in-out infinite alternate;
}
body::after{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(1200px 800px at 50% 120%, rgba(0,0,0,.28), transparent 60%),
    radial-gradient(1000px 700px at 50% -20%, rgba(0,0,0,.22), transparent 60%);
}
@keyframes bgFloat{
  0%{ transform:translate3d(0,0,0) scale(1.02) rotate(0.0001deg) }
  100%{ transform:translate3d(-12px,6px,0) scale(1.03) rotate(0.0001deg) }
}
@media (prefers-reduced-motion:reduce){ body::before{ animation:none } }

/* НАВИГАЦИЯ (статичный цвет ссылок — без фиолетового/красного) */
.navbar{
  position:sticky; top:0; z-index:100;
  backdrop-filter:saturate(140%) blur(10px);
  background:linear-gradient(180deg,rgba(10,12,15,.7),rgba(10,12,15,.35));
  border-bottom:1px solid var(--stroke);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; height:72px }
.brand{ display:flex; align-items:center; gap:14px; text-decoration:none; color:var(--text) }
.brand img{ width:28px; height:28px }
.brand b{ letter-spacing:.3px }
.menu{ display:flex; gap:10px; flex-wrap:wrap }
.menu a{
  padding:10px 14px; border:1px solid transparent; border-radius:14px;
  text-decoration:none; color:var(--text); transition:transform .12s ease, background .12s ease, border-color .12s ease;
}
.menu a:hover{ transform:translateY(-1px); background:var(--glass); border-color:var(--stroke) }
.menu a:visited, .menu a:active{ color:var(--text) } /* фиксы: статичный цвет */

/* КАРТОЧКИ/ХЕДЕРЫ */
.hero{ padding:72px 0 24px }
.card{ border:1px solid var(--stroke); background:var(--panel); border-radius:var(--radius); box-shadow:var(--shadow) }
.card.pad{ padding:28px }

.h1{ font-size:48px; line-height:1.1; margin:0 0 14px }
.h1 .grad{ background:linear-gradient(90deg,var(--brand),var(--brand-2)); -webkit-background-clip:text; background-clip:text; color:transparent }
.lead{ color:var(--muted); font-size:18px; max-width:720px }

/* КНОПКИ */
.btn{ display:inline-flex; align-items:center; gap:10px; padding:12px 16px; border-radius:14px; border:1px solid var(--stroke); color:var(--text); text-decoration:none }
.btn:hover{ background:var(--glass) }
.btn.primary{
  position:relative; overflow:hidden; border-color:transparent;
  background:linear-gradient(135deg,var(--brand),var(--brand-2)); background-size:160% 160%;
  box-shadow:0 10px 24px rgba(108,92,231,.20), inset 0 0 0 1px rgba(255,255,255,.06);
  transform:translateZ(0);
}
.btn.primary .arrow{ width:16px; height:16px; transition:transform .18s ease }
.btn.primary:hover{
  transform:translateY(-1px); filter:saturate(110%);
  box-shadow:0 16px 36px rgba(108,92,231,.28), inset 0 0 0 1px rgba(255,255,255,.08);
  background-position:80% 20%;
}
.btn.primary:hover .arrow{ transform:translateX(4px) }
.btn.primary:active{ transform:translateY(0); box-shadow:0 8px 18px rgba(108,92,231,.22) }
.btn-xl{ padding:14px 20px; font-weight:700; font-size:16px; border-radius:16px }
.btn.ghost{ background:transparent; border-color:var(--stroke); box-shadow:inset 0 0 0 1px rgba(255,255,255,.04) }
.btn.ghost:hover{ background:var(--glass) }

/* ГРИДЫ */
.grid{ display:grid; gap:24px }
.grid-2{ grid-template-columns:1.2fr .8fr }
.grid-3{ grid-template-columns:repeat(3,1fr) }
@media (min-width:981px){ .grid-3.center-last-row > .center-last{ grid-column:2 } }
@media (max-width:1200px){ .h1{ font-size:42px } }
@media (max-width:980px){
  .grid-2{ grid-template-columns:1fr }
  .grid-3{ grid-template-columns:1fr }
  .h1{ font-size:36px }
}
@media (max-width:560px){ .h1{ font-size:30px } }

/* КАТЕГОРИИ НА ГЛАВНОЙ */
a.card{ display:block; color:var(--text); text-decoration:none }
a.card.cat{ cursor:pointer }
.cat{
  display:flex; flex-direction:column; justify-content:space-between; gap:8px;
  min-height:140px; position:relative; overflow:hidden;
  border:1px solid var(--stroke); background:var(--panel);
  border-radius:var(--radius); box-shadow:var(--shadow);
  transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cat::after{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(600px 200px at -10% -20%, rgba(232,62,140,.16), transparent),
    radial-gradient(500px 200px at 110% -10%, rgba(108,92,231,.16), transparent);
}
.cat h3{ margin:0 0 6px; font-weight:800; letter-spacing:.2px }
.cat p{ margin:0; color:var(--muted) }
.cat .cta{
  display:inline-flex; align-items:center; gap:10px; margin-top:12px; padding:10px 12px;
  border-radius:12px; border:1px solid var(--stroke);
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02)); font-weight:600;
}
.cat .cta svg{ width:16px; height:16px; transition:transform .15s ease }
.cat:hover{ transform:translateY(-2px); border-color:rgba(255,255,255,.22); box-shadow:0 14px 34px rgba(0,0,0,.5) }
.cat:hover .cta svg{ transform:translateX(4px) }
.cat:focus-visible{ outline:none; box-shadow:0 0 0 2px rgba(232,62,140,.55), 0 0 0 6px rgba(108,92,231,.25) }

/* ФУТЕР — строго по центру на любых экранах */
.footer{
  display:flex; justify-content:center; align-items:center; text-align:center;
  width:100%; padding:24px; margin:48px 0 32px; color:var(--muted);
}
.footer a{ color:var(--muted); text-decoration:none }
.footer a:hover{ text-decoration:underline }

/* СЕКЦИИ (общий стиль карточек-разделов) */
.section{
  margin:24px 0; border:1px solid var(--stroke); background:var(--panel);
  border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden;
}
.section .head{ padding:18px 22px; background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,0)) }
.section .head .title{ margin:0; font-size:20px; letter-spacing:.2px }
.section .head .underline{ height:2px; width:100%; background:linear-gradient(90deg,var(--brand),var(--brand-2)); opacity:.55 }
.section .body{ padding:0px 22px 22px 22px }

/* Списки с красивыми маркерами */
ul.pretty, ol.pretty{ margin:0; padding-left:22px; color:var(--muted) }
ul.pretty li, ol.pretty li{ margin:8px 0 6px; line-height:1.55 }
ul.pretty li{ list-style:none; position:relative; padding-left:22px }
ul.pretty li::before{
  content:""; position:absolute; left:0; top:.55em; width:10px; height:10px; border-radius:50%;
  background:linear-gradient(135deg,var(--brand),var(--brand-2)); box-shadow:0 0 0 2px rgba(255,255,255,.06);
}

/* КАЛЛАУТЫ */
.callout{
  display:flex; gap:12px; align-items:flex-start; border:1px solid var(--stroke);
  border-radius:16px; padding:14px 16px; margin:12px 0; background:var(--glass);
}
.callout .ico{ width:18px; height:18px; flex:0 0 18px; opacity:.9 }
.callout.info{ border-color:rgba(108,92,231,.45) }
.callout.warn{ border-color:rgba(232,62,140,.45) }

/* МЕЛКИЕ БЕЙДЖИ */
.badges{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px }
.badge{
  font-size:11px; padding:6px 10px; border-radius:999px; border:1px solid var(--stroke);
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02)); color:var(--muted);
}

/* СТРАНИЦА WEB */
.page-web .hero-web{ position:relative; padding:64px 0 32px; margin-bottom:16px }
.page-web .hero-web .wrap{
  border:1px solid var(--stroke); background:linear-gradient(180deg,rgba(16,19,25,.72),rgba(16,19,25,.48));
  border-radius:var(--radius); box-shadow:var(--shadow); padding:32px; overflow:hidden;
}
.page-web .hero-web .wrap::before{
  content:""; position:absolute; inset:-2px; border-radius:inherit; pointer-events:none;
  background:
    radial-gradient(900px 400px at -10% -30%, rgba(232,62,140,.18), transparent),
    radial-gradient(700px 300px at 120% -20%, rgba(108,92,231,.18), transparent);
  z-index:0;
}
.page-web .hero-title{ position:relative; z-index:1; margin:0 0 8px; font-size:52px; line-height:1.05; letter-spacing:.3px }
.page-web .hero-title .grad{ background:linear-gradient(90deg,var(--brand),var(--brand-2)); -webkit-background-clip:text; background-clip:text; color:transparent }
.page-web .hero-sub{ position:relative; z-index:1; color:var(--muted); max-width:820px }
.page-web .chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px }
.page-web .chip{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  border:1px solid var(--stroke); background:var(--glass); color:var(--text);
  font-size:12px; text-transform:uppercase; letter-spacing:.6px;
}

/* СТРАНИЦА GENERAL */
.page-general .hero-general{ position:relative; padding:64px 0 32px; margin-bottom:16px }
.page-general .hero-general .wrap{
  /*position:relative;*/ border:1px solid var(--stroke); background:linear-gradient(180deg,rgba(16,19,25,.72),rgba(16,19,25,.48));
  border-radius:var(--radius); box-shadow:var(--shadow); padding:32px; overflow:hidden;
}
.page-general .hero-general .wrap::before{
  content:""; position:absolute; inset:-2px; border-radius:inherit; pointer-events:none;
  background:
    radial-gradient(900px 420px at -10% -30%, rgba(232,62,140,.18), transparent),
    radial-gradient(700px 320px at 120% -20%, rgba(108,92,231,.18), transparent);
  z-index:0;
}
.page-general .hero-title{ position:relative; z-index:1; margin:0 0 8px; font-size:48px; line-height:1.05; letter-spacing:.3px }
.page-general .hero-title .grad{ background:linear-gradient(90deg,var(--brand),var(--brand-2)); -webkit-background-clip:text; background-clip:text; color:transparent }
.page-general .hero-sub{ position:relative; z-index:1; color:var(--muted); max-width:820px }
.page-general .chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px }
.page-general .chip{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  border:1px solid var(--stroke); background:var(--glass); color:var(--text);
  font-size:12px; text-transform:uppercase; letter-spacing:.6px;
}
/* === GENERAL: spotlight «Что такое CTF» === */
/*.gen-spot{ margin:12px 0 20px; position:relative }
.gen-spot::before{
  content:""; position:absolute; inset:-1px; border-radius:20px;
  background: radial-gradient(600px 300px at 0% 0%, rgba(232,62,140,.35), transparent 70%),
              radial-gradient(600px 300px at 100% 0%, rgba(108,92,231,.35), transparent 70%);
  filter: blur(18px); opacity:.35; pointer-events:none;
}
.gen-spot__inner{
  position:relative; z-index:1;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(16,19,25,.78), rgba(16,19,25,.56));
  border-radius:20px; box-shadow:var(--shadow);
  padding:22px; display:grid; gap:16px; grid-template-columns: 1.2fr .8fr;
}
@media (max-width:980px){ .gen-spot__inner{ grid-template-columns:1fr } }

.kicker{ margin:0 0 6px; color:var(--muted); font-weight:700; letter-spacing:.3px; text-transform:uppercase }
.gen-spot__title{ margin:0 0 8px; font-size:28px; line-height:1.15; letter-spacing:.2px }
.gen-spot__lead{ margin:0 0 12px; color:var(--muted) }

.gen-quick{ display:grid; gap:8px; grid-template-columns:1fr 1fr }
.gen-quick .q{
  border:1px solid var(--stroke); border-radius:12px; padding:10px 12px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  font-size:14px; color:var(--text)
}
@media (max-width:980px){ .gen-quick{ grid-template-columns:1fr } }

.gen-spot__aside .aside-card{
  border:1px solid var(--stroke); border-radius:16px; padding:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.gen-spot__aside h4{ margin:0 0 8px; font-weight:800; letter-spacing:.2px }
.gen-spot__aside ul{ margin:0 0 8px 18px; color:var(--muted) }
.gen-spot__aside .line{
  height:2px; margin:10px 0; opacity:.55;
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  border-radius:999px;
} */

/* === GENERAL: премиальный «Быстрый словарь терминов» === */
/*.glossary{
  display:grid; gap:12px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width:980px){ .glossary{ grid-template-columns:1fr } }

.term{
  position:relative;
  border:1px solid var(--stroke); border-radius:16px; padding:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.term:hover{ transform:translateY(-1px); border-color:rgba(255,255,255,.22) }

.term::before{
  content:""; position:absolute; left:12px; top:14px; width:10px; height:10px; border-radius:50%;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  box-shadow:0 0 0 3px rgba(255,255,255,.06);
}
.t-title{
  margin:0 0 6px 26px; font-weight:800; letter-spacing:.2px;
  background:linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.t-desc{ margin:0 0 2px 26px; color:var(--muted) }

.page-general main a{ color:var(--text); text-decoration:none }
.page-general main a:hover{ color:#fff; text-decoration:underline }
/*
/* СТРАНИЦА REVERSING */
.page-reversing .hero-rev{ position:relative; padding:64px 0 32px; margin-bottom:16px }
.page-reversing .hero-rev .wrap{
  /*position:relative;*/ border:1px solid var(--stroke); background:linear-gradient(180deg,rgba(16,19,25,.72),rgba(16,19,25,.48));
  border-radius:var(--radius); box-shadow:var(--shadow); padding:32px; overflow:hidden;
}
.page-reversing .hero-rev .wrap::before{
  content:""; position:absolute; inset:-2px; border-radius:inherit; pointer-events:none;
  background:
    radial-gradient(900px 420px at -10% -30%, rgba(232,62,140,.18), transparent),
    radial-gradient(700px 320px at 120% -20%, rgba(108,92,231,.18), transparent);
}
.page-reversing .hero-title{ position:relative; z-index:1; margin:0 0 8px; font-size:48px; line-height:1.05; letter-spacing:.3px }
.page-reversing .hero-title .grad{ background:linear-gradient(90deg,var(--brand),var(--brand-2)); -webkit-background-clip:text; background-clip:text; color:transparent }
.page-reversing .hero-sub{ position:relative; z-index:1; color:var(--muted); max-width:820px }
.page-reversing .chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px }
.page-reversing .chip{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  border:1px solid var(--stroke); background:var(--glass); color:var(--text);
  font-size:12px; text-transform:uppercase; letter-spacing:.6px;
}

/* УТИЛИТЫ ДЛЯ ИНФО-БЛОКОВ */
.link-cards{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px }
.link-card{
  display:block; padding:16px; border:1px solid var(--stroke); border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.015));
  text-decoration:none; color:var(--text);
  transition:transform .12s ease, border-color .12s ease;
}
.link-card:hover{ transform:translateY(-2px); border-color:rgba(255,255,255,.22) }
.link-card .k{ font-weight:600; margin-bottom:6px }
.link-card .d{ color:var(--muted); font-size:14px }
.tool-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px }
.tool{ border:1px solid var(--stroke); border-radius:16px; padding:14px; background:var(--panel) }
.tool .name{ font-weight:600; margin:0 0 6px }
.tool .desc{ color:var(--muted); margin:0 }
@media (max-width:980px){
  .link-cards{ grid-template-columns:1fr }
  .tool-grid{ grid-template-columns:1fr }
  .page-web .hero-title{ font-size:40px }
}
/* === Reversing: spotlight «Что такое RE» === */
.rev-spot{
  margin: 12px 0 20px;
  position: relative;
}
.rev-spot::before{
  content:""; position:absolute; inset:-1px; border-radius:20px;
  background: conic-gradient(from 120deg, rgba(232,62,140,.35), rgba(108,92,231,.35), rgba(232,62,140,.35));
  filter: blur(20px); opacity:.35; pointer-events:none;
}
.rev-spot__inner{
  position:relative; z-index:1;
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(16,19,25,.78), rgba(16,19,25,.56));
  border-radius:20px; box-shadow: var(--shadow);
  padding: 22px;
  display:grid; gap:16px; grid-template-columns: 1.2fr .8fr;
}
@media (max-width:980px){
  .rev-spot__inner{ grid-template-columns: 1fr; }
}
.kicker{
  margin:0 0 6px; color:var(--muted); font-weight:700; letter-spacing:.3px; text-transform:uppercase;
}
.rev-spot__title{
  margin:0 0 8px; font-size:28px; line-height:1.15; letter-spacing:.2px;
}
.rev-spot__lead{ margin:0 0 12px; color:var(--muted) }

.rev-quick{ display:grid; gap:8px; grid-template-columns: 1fr 1fr }
.rev-quick .q{
  border:1px solid var(--stroke); border-radius:12px; padding:10px 12px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  font-size:14px; color:var(--text)
}
@media (max-width:980px){ .rev-quick{ grid-template-columns:1fr } }

.rev-spot__aside .aside-card{
  border:1px solid var(--stroke); border-radius:16px; padding:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.rev-spot__aside h4{ margin:0 0 8px; font-weight:800; letter-spacing:.2px }
.rev-spot__aside ul{ margin:0 0 8px 18px; color:var(--muted) }
.rev-spot__aside .line{
  height:2px; margin:10px 0; opacity:.55;
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  border-radius:999px;
}

/* ======= TEAM BLOCK (главная) ======= */
.team-card{
  position:relative; padding:18px !important; border-radius:20px;
  border:1px solid var(--stroke); background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  box-shadow:var(--shadow);
}
.team-card h3{ margin:0 0 12px !important; font-size:20px; font-weight:800; letter-spacing:.2px }

/* Ники */
.chips-nick{ display:flex; flex-wrap:wrap; gap:8px }
.chips-nick .chip{
  display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px;
  border:1px solid var(--stroke); background:rgba(255,255,255,.03); color:var(--text);
  font-weight:700; font-size:12.5px; letter-spacing:.2px;
  transition:background .15s ease, border-color .15s ease, transform .15s ease;
}
.chips-nick .chip:hover{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.18); transform:translateY(-1px) }

/* Теги турниров (на главной) */
.tags-ctf{ margin-top:10px; display:flex; flex-wrap:wrap; gap:6px }
.tag{
  display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px;
  background:linear-gradient(180deg, rgba(232,62,140,.14), rgba(108,92,231,.14));
  border:1px solid rgba(255,255,255,.12); color:#fff; font-weight:800; font-size:12px;
}

/* Кнопка открытия модалки */
.team-toggle{
  margin-top:12px; cursor:pointer; display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:12px; border:1px solid var(--stroke);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  color:#fff; font-weight:800; letter-spacing:.2px;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.team-toggle:hover{ transform:translateY(-1px); box-shadow:0 12px 28px rgba(0,0,0,.35); border-color:rgba(255,255,255,.16) }
.team-toggle .ico{ width:18px; height:18px; opacity:.95 }

/* ======= TEAM MODAL v2 (вылет из кнопки) ======= */
.team-modal{ position:fixed; inset:0; z-index:1000; display:none }
.team-modal.is-open{ display:block }
.tm-backdrop{
  position:absolute; inset:0; background:rgba(8,10,14,.55);
  backdrop-filter:blur(4px) saturate(120%); opacity:0; transition:opacity .22s ease;
}
.team-modal.is-open .tm-backdrop{ opacity:1 }

.tm-window{
  position:relative; margin:max(10vh,60px) auto 0; width:min(920px,92vw);
  border:1px solid var(--stroke); border-radius:24px; overflow:hidden;
  background:linear-gradient(180deg,rgba(16,19,25,.96),rgba(16,19,25,.9));
  box-shadow:0 30px 60px rgba(0,0,0,.6);
  transform:translate(var(--from-x,0),var(--from-y,0)) scale(.92); opacity:0;
}
.team-modal.is-open .tm-window{ animation:teamIn .28s cubic-bezier(.2,.8,.2,1) forwards }
.team-modal.closing .tm-window{ animation:teamOut .22s cubic-bezier(.2,.8,.2,1) forwards }

@keyframes teamIn{
  from{ transform:translate(var(--from-x),var(--from-y)) scale(.92); opacity:0 }
  to{ transform:translate(0,0) scale(1); opacity:1 }
}
@keyframes teamOut{
  from{ transform:translate(0,0) scale(1); opacity:1 }
  to{ transform:translate(var(--from-x),var(--from-y)) scale(.92); opacity:0 }
}

/* Хедер/подсказка/тело */
.tm-header{
  position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px; background:linear-gradient(180deg,rgba(16,19,25,.98),rgba(16,19,25,.84));
  border-bottom:1px solid var(--stroke);
}
.tm-title{ margin:0; font-weight:800; letter-spacing:.2px }
.tm-close{
  cursor:pointer; display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:10px; border:1px solid var(--stroke);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  color:var(--text); font-weight:700;
}
.tm-hint{ margin:6px 16px 0; color:var(--muted); font-size:13px }

.tm-body{ padding:14px 16px 16px; max-height:60vh; overflow:auto }
.tm-body::-webkit-scrollbar{ display:none }
.tm-body{ scrollbar-width:none }
body.modal-open{ overflow:hidden }

/* Сетка участников и карточки */
.roster{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px }
@media (max-width:980px){ .roster{ grid-template-columns:1fr } }
.member{
  display:flex; flex-direction:column; gap:6px; min-height:86px;
  border:1px solid var(--stroke); border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  padding:12px 14px; transition:border-color .15s ease, transform .15s ease;
}
.member:hover{ border-color:rgba(255,255,255,.22); transform:translateY(-1px) }
.member .name{
  margin:0; font-weight:800; letter-spacing:.2px;
  background:linear-gradient(90deg,var(--brand),var(--brand-2)); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.member .roles{ margin:0; color:var(--muted); font-size:13.5px; line-height:1.45 }

/* Разделы в модалке: «Участвовали» и «Финалы/результаты» */
.tm-section{ margin-top:16px; padding-top:12px; border-top:1px solid var(--stroke) }
.tm-subtitle{ margin:0 0 8px; font-weight:800; letter-spacing:.2px }
.tm-tags{ display:flex; flex-wrap:wrap; gap:6px }
.tm-pill{
  display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px;
  border:1px solid var(--stroke); background:var(--glass); font-weight:700; font-size:12px;
}
.tm-statlist{ display:grid; gap:8px }
.tm-stat{
  display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:12px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  border:1px solid var(--stroke);
}
.tm-stat .ico{ width:16px; height:16px; opacity:.9 }
.tm-stat .dim{ color:var(--muted) }

/* === СТРАНИЦА STEGO === */
.page-stego .hero-stego{ position:relative; padding:64px 0 32px; margin-bottom:16px }
.page-stego .hero-stego .wrap{
  border:1px solid var(--stroke);
  background:linear-gradient(180deg,rgba(16,19,25,.72),rgba(16,19,25,.48));
  border-radius:var(--radius); box-shadow:var(--shadow); padding:32px; overflow:hidden;
}
.page-stego .hero-stego .wrap::before{
  content:""; position:absolute; inset:-2px; border-radius:inherit; pointer-events:none;
  background:
    radial-gradient(900px 420px at -10% -30%, rgba(232,62,140,.18), transparent),
    radial-gradient(700px 320px at 120% -20%, rgba(108,92,231,.18), transparent);
  z-index:0;
}
.page-stego .hero-title{
  position:relative; z-index:1; margin:0 0 8px; font-size:48px; line-height:1.05; letter-spacing:.3px;
}
.page-stego .hero-title .grad{
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.page-stego .hero-sub{ position:relative; z-index:1; color:var(--muted); max-width:820px }
.page-stego .chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px }
.page-stego .chip{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  border:1px solid var(--stroke); background:var(--glass); color:var(--text);
  font-size:12px; text-transform:uppercase; letter-spacing:.6px;
}
/* === СТРАНИЦА CRYPTO === */
.page-crypto .hero-crypto{ position:relative; padding:64px 0 32px; margin-bottom:16px }
.page-crypto .hero-crypto .wrap{
  border:1px solid var(--stroke);
  background:linear-gradient(180deg,rgba(16,19,25,.72),rgba(16,19,25,.48));
  border-radius:var(--radius); box-shadow:var(--shadow); padding:32px; overflow:hidden;
}
.page-crypto .hero-crypto .wrap::before{
  content:""; position:absolute; inset:-2px; border-radius:inherit; pointer-events:none;
  background:
    radial-gradient(900px 420px at -10% -30%, rgba(232,62,140,.18), transparent),
    radial-gradient(700px 320px at 120% -20%, rgba(108,92,231,.18), transparent);
  z-index:0;
}
.page-crypto .hero-title{
  position:relative; z-index:1; margin:0 0 8px; font-size:48px; line-height:1.05; letter-spacing:.3px;
}
.page-crypto .hero-title .grad{
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.page-crypto .hero-sub{ position:relative; z-index:1; color:var(--muted); max-width:820px }
.page-crypto .chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px }
.page-crypto .chip{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  border:1px solid var(--stroke); background:var(--glass); color:var(--text);
  font-size:12px; text-transform:uppercase; letter-spacing:.6px;
}

/* мини TL;DR карточка */
.tldr{
  border:1px solid var(--stroke); border-radius:16px; padding:14px 16px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  color:var(--text); box-shadow:var(--shadow); margin-bottom:8px;
}
.tldr b{ font-weight:800 }
/* === СТРАНИЦА PWN === */
.page-pwn .hero-pwn{ position:relative; padding:64px 0 32px; margin-bottom:16px }
.page-pwn .hero-pwn .wrap{
  border:1px solid var(--stroke);
  background:linear-gradient(180deg,rgba(16,19,25,.72),rgba(16,19,25,.48));
  border-radius:var(--radius); box-shadow:var(--shadow); padding:32px; overflow:hidden;
}
.page-pwn .hero-pwn .wrap::before{
  content:""; position:absolute; inset:-2px; border-radius:inherit; pointer-events:none;
  background:
    radial-gradient(900px 420px at -10% -30%, rgba(232,62,140,.18), transparent),
    radial-gradient(700px 320px at 120% -20%, rgba(108,92,231,.18), transparent);
  z-index:0;
}
.page-pwn .hero-title{
  position:relative; z-index:1; margin:0 0 8px; font-size:48px; line-height:1.05; letter-spacing:.3px;
}
.page-pwn .hero-title .grad{
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.page-pwn .hero-sub{ position:relative; z-index:1; color:var(--muted); max-width:820px }
.page-pwn .chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px }
.page-pwn .chip{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  border:1px solid var(--stroke); background:var(--glass); color:var(--text);
  font-size:12px; text-transform:uppercase; letter-spacing:.6px;
}
/* === СТРАНИЦА FORENSICS === */
.page-forensics .hero-forensics{ position:relative; padding:64px 0 32px; margin-bottom:16px }
.page-forensics .hero-forensics .wrap{
  border:1px solid var(--stroke);
  background:linear-gradient(180deg,rgba(16,19,25,.72),rgba(16,19,25,.48));
  border-radius:var(--radius); box-shadow:var(--shadow); padding:32px; overflow:hidden;
}
.page-forensics .hero-forensics .wrap::before{
  content:""; position:absolute; inset:-2px; border-radius:inherit; pointer-events:none;
  background:
    radial-gradient(900px 420px at -10% -30%, rgba(232,62,140,.18), transparent),
    radial-gradient(700px 320px at 120% -20%, rgba(108,92,231,.18), transparent);
  z-index:0;
}
.page-forensics .hero-title{
  position:relative; z-index:1; margin:0 0 8px; font-size:48px; line-height:1.05; letter-spacing:.3px;
}
.page-forensics .hero-title .grad{
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.page-forensics .hero-sub{ position:relative; z-index:1; color:var(--muted); max-width:820px }
.page-forensics .chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px }
.page-forensics .chip{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  border:1px solid var(--stroke); background:var(--glass); color:var(--text);
  font-size:12px; text-transform:uppercase; letter-spacing:.6px;
}
/* === СТРАНИЦА OSINT === */
.page-osint .hero-osint{ position:relative; padding:64px 0 32px; margin-bottom:16px }
.page-osint .hero-osint .wrap{
  border:1px solid var(--stroke);
  background:linear-gradient(180deg,rgba(16,19,25,.72),rgba(16,19,25,.48));
  border-radius:var(--radius); box-shadow:var(--shadow); padding:32px; overflow:hidden;
}
.page-osint .hero-osint .wrap::before{
  content:""; position:absolute; inset:-2px; border-radius:inherit; pointer-events:none;
  background:
    radial-gradient(900px 420px at -10% -30%, rgba(232,62,140,.18), transparent),
    radial-gradient(700px 320px at 120% -20%, rgba(108,92,231,.18), transparent);
  z-index:0;
}
.page-osint .hero-title{
  position:relative; z-index:1; margin:0 0 8px; font-size:48px; line-height:1.05; letter-spacing:.3px;
}
.page-osint .hero-title .grad{
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.page-osint .hero-sub{ position:relative; z-index:1; color:var(--muted); max-width:820px }
.page-osint .chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px }
.page-osint .chip{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  border:1px solid var(--stroke); background:var(--glass); color:var(--text);
  font-size:12px; text-transform:uppercase; letter-spacing:.6px;
}
/* Линки*/
.section .body a,
.hero-sub a,
.tool .desc a,
.tool .name a,
.note a,
.tm-body a,
.tm-section a,
.page-web .hero-sub a,
.page-general .hero-sub a,
.page-reversing .hero-sub a,
.page-pwn .hero-sub a,
.page-forensics .hero-sub a,
.page-osint .hero-sub a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(232,62,140,.35);
  transition: color .15s ease, border-color .15s ease, text-shadow .15s ease, filter .15s ease;
}

/* Один и тот же вид для посещённых */
.section .body a:visited,
.hero-sub a:visited,
.tool .desc a:visited,
.tool .name a:visited,
.note a:visited,
.tm-body a:visited,
.tm-section a:visited,
.page-web .hero-sub a:visited,
.page-general .hero-sub a:visited,
.page-reversing .hero-sub a:visited,
.page-pwn .hero-sub a:visited,
.page-forensics .hero-sub a:visited,
.page-osint .hero-sub a:visited {
  color: var(--brand);
  border-bottom-color: rgba(232,62,140,.35);
}

/* Ховер (новый)*/
.section .body a:hover,
.hero-sub a:hover,
.tool .desc a:hover,
.tool .name a:hover,
.note a:hover,
.tm-body a:hover,
.tm-section a:hover,
.page-web .hero-sub a:hover,
.page-general .hero-sub a:hover,
.page-reversing .hero-sub a:hover,
.page-pwn .hero-sub a:hover,
.page-forensics .hero-sub a:hover,
.page-osint .hero-sub a:hover {
  color: #ff5fb5;
  border-bottom-color: rgba(232,62,140,.6);
  text-shadow: 0 0 22px rgba(108,92,231,.25);
  filter: saturate(110%);
}

/* Active + доступность */
.section .body a:active,
.hero-sub a:active,
.tool .desc a:active,
.tool .name a:active,
.note a:active,
.tm-body a:active,
.tm-section a:active,
.page-web .hero-sub a:active,
.page-general .hero-sub a:active,
.page-reversing .hero-sub a:active,
.page-pwn .hero-sub a:active,
.page-forensics .hero-sub a:active,
.page-osint .hero-sub a:active {
  color: #ff4aa9;
  border-bottom-color: rgba(232,62,140,.75);
}

.section .body a:focus-visible,
.hero-sub a:focus-visible,
.tool .desc a:focus-visible,
.tool .name a:focus-visible,
.note a:focus-visible,
.tm-body a:focus-visible,
.tm-section a:focus-visible,
.page-web .hero-sub a:focus-visible,
.page-general .hero-sub a:focus-visible,
.page-reversing .hero-sub a:focus-visible,
.page-pwn .hero-sub a:focus-visible,
.page-forensics .hero-sub a:focus-visible,
.page-osint .hero-sub a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(232,62,140,.55), 0 0 0 6px rgba(108,92,231,.25);
  border-radius: 6px;
}
/* === СТРАНИЦА MISC === */
.page-misc .hero-misc{ position:relative; padding:64px 0 32px; margin-bottom:16px }
.page-misc .hero-misc .wrap{
  border:1px solid var(--stroke);
  background:linear-gradient(180deg,rgba(16,19,25,.72),rgba(16,19,25,.48));
  border-radius:var(--radius); box-shadow:var(--shadow); padding:32px; overflow:hidden;
}
.page-misc .hero-misc .wrap::before{
  content:""; position:absolute; inset:-2px; border-radius:inherit; pointer-events:none;
  background:
    radial-gradient(900px 420px at -10% -30%, rgba(232,62,140,.18), transparent),
    radial-gradient(700px 320px at 120% -20%, rgba(108,92,231,.18), transparent);
  z-index:0;
}
.page-misc .hero-title{
  position:relative; z-index:1; margin:0 0 8px; font-size:48px; line-height:1.05; letter-spacing:.3px;
}
.page-misc .hero-title .grad{
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.page-misc .hero-sub{ position:relative; z-index:1; color:var(--muted); max-width:820px }
.page-misc .chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px }
.page-misc .chip{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  border:1px solid var(--stroke); background:var(--glass); color:var(--text);
  font-size:12px; text-transform:uppercase; letter-spacing:.6px;
}
/* === СТРАНИЦА ABOUT === */
.page-about .hero-about{position:relative;padding:64px 0 32px;margin-bottom:16px}
.page-about .hero-about .wrap{
  border:1px solid var(--stroke);
  background:linear-gradient(180deg,rgba(16,19,25,.72),rgba(16,19,25,.48));
  border-radius:var(--radius);box-shadow:var(--shadow);padding:32px;overflow:hidden;
}
.page-about .hero-about .wrap::before{
  content:"";position:absolute;inset:-2px;border-radius:inherit;pointer-events:none;background:
    radial-gradient(900px 420px at -10% -30%,rgba(232,62,140,.18),transparent),
    radial-gradient(700px 320px at 120% -20%,rgba(108,92,231,.18),transparent);
  z-index:0;
}
.page-about .hero-title{
  position:relative;z-index:1;margin:0 0 8px;font-size:48px;line-height:1.05;letter-spacing:.3px;
}
.page-about .hero-title .grad{
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.page-about .hero-sub{position:relative;z-index:1;color:var(--muted);max-width:820px}
.page-about .chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.page-about .chip{
  display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;
  border:1px solid var(--stroke);background:var(--glass);color:var(--text);
  font-size:12px;text-transform:uppercase;letter-spacing:.6px;
}
.deflist{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.def{border:1px solid var(--stroke);border-radius:16px;padding:12px 14px;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.015))}
.def .k{font-weight:700;margin:0 0 6px}
.def .v{color:var(--muted);margin:0}
@media (max-width:980px){.deflist{grid-template-columns:1fr}}
.twogrid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.bigcard{border:1px solid var(--stroke);border-radius:16px;padding:16px;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02))}
.bigcard .h{font-weight:800;margin:0 0 8px;letter-spacing:.2px}
.bigcard .t{color:var(--muted);margin:0}
@media (max-width:980px){.twogrid{grid-template-columns:1fr}}

.callout{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--stroke);border-radius:16px;padding:14px 16px;margin:12px 0;background:var(--glass)}
.callout .ico{width:18px;height:18px;flex:0 0 18px;opacity:.9}
.callout.info{border-color:rgba(108,92,231,.45)}
.callout.warn{border-color:rgba(232,62,140,.45)}


.burger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.menu {
  display: flex;
  gap: 15px;
}

.menu a {
  text-decoration: none;
  color: #fff;
  transition: color 0.2s;
}

.menu a:hover {
  color: #0ff;
}

@media(max-width: 466px){
.btn-tg{
margin-top: 6px;
}
}

@media (max-width: 1060px) {
  .burger {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 60px;
    right: 15px;
    background: #111;
    padding: 15px;
    border-radius: 8px;
    z-index: 1000;
  }

  .menu.active {
    display: flex;
  }
}

#scrollTopBtn{
  position: fixed;
opacity: 0; 

 right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;

  background: #b940a4;

  background-image: linear-gradient(135deg,#b940a4 0%,#8a3ffc 55%,#4c1d95 100%);
  color: #fff;
  font: 700 18px/1 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-shadow:
    0 6px 18px rgba(185,64,164,.35),
    inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background-position .3s ease;
  background-size: 140% 140%;
  z-index: 999;

}

#scrollTopBtn::before{
  content:"";
  position:absolute; inset:-8px;
  border-radius:inherit;
  pointer-events:none;
  background: radial-gradient(35px 35px at 50% 50%, rgba(185,64,164,.45), rgba(138,63,252,.15) 60%, transparent 70%);
  filter: blur(6px);
  opacity: .85;
  transition: opacity .18s ease, filter .18s ease;
}


#scrollTopBtn:hover{
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(138,63,252,.45),
    inset 0 1px 0 rgba(255,255,255,.35);
  filter: saturate(1.05);
  background-position: 20% 80%;
}
/*#scrollTopBtn:active{
  transform: translateY(0) scale(.98);
  box-shadow:
    0 5px 16px rgba(138,63,252,.4),
    inset 0 1px 0 rgba(255,255,255,.25);
}*/
#scrollTopBtn:focus-visible{
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow:
    0 0 0 4px rgba(138,63,252,.35),
    0 10px 26px rgba(138,63,252,.45);
}


#scrollTopBtn.show {
  opacity: 0.85;
  pointer-events: auto;
transform: translateY(0) scale(1);
  pointer-events: auto;
animation: btn-pop .34s cubic-bezier(.22,1,.36,1) both;
}
#scrollTopBtn.show::before{
  opacity: .9;
  animation: glow-pop 1.2s ease-out .12s both;
}

#scrollTopBtn:active {
  transform: scale(0.92);
}
@media (max-width: 460px){
  #scrollTopBtn{ right:16px; bottom:16px; width:44px; height:44px; font-size:16px; }
}

@keyframes glow-pop{
  0%   { opacity: 0; filter: blur(10px); }
  35%  { opacity: .95; filter: blur(6px); }
  100% { opacity: .85; filter: blur(6px); }
}
@keyframes btn-pop{
  0%   { opacity:0; transform: translateY(18px) scale(.86) rotate(-3deg); filter: blur(2px) saturate(.8); }
  60%  { opacity:1; transform: translateY(-2px) scale(1.04) rotate(0deg); filter: blur(0); }
  100% { opacity:1; transform: translateY(0) scale(1); }
}


@media (prefers-reduced-motion: reduce){
  #scrollTopBtn{ transition:none; }
  #scrollTopBtn::before{ transition:none; }
}

@media (prefers-color-scheme: dark){
  #scrollTopBtn::before{ opacity:.95; filter: blur(7px); }
}
@media (prefers-reduced-motion: reduce){
  #scrollTopBtn, #scrollTopBtn::before{ transition: none !important; animation: none !important; }
}


#scrollTopBtn.hiding{
  transition: none;
  animation: btn-out .28s ease forwards;
}

@keyframes btn-out{
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(12px) scale(.94); }
}
@media (prefers-reduced-motion: reduce){
  #scrollTopBtn{ transition: none !important; }
  #scrollTopBtn.hiding{ animation: none !important; }
}


@media (max-width: 590px) {
  .svg-mob{ width: 2em !important; }
  .tm-stat{ flex-wrap: wrap; }
  .pre-mob{ white-space: break-spaces; }
  .grad{ word-wrap: break-word; overflow-wrap: break-word; }

}
