@font-face { font-family: "JetBrains Mono"; font-weight: 400; src: url(assets/fonts/jetbrains-mono-cyrillic-400-normal.woff2?v=0.8.2242) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; src: url(assets/fonts/jetbrains-mono-latin-400-normal.woff2?v=0.8.2242) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; src: url(assets/fonts/jetbrains-mono-cyrillic-700-normal.woff2?v=0.8.2242) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; src: url(assets/fonts/jetbrains-mono-latin-700-normal.woff2?v=0.8.2242) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; font-display: swap; }
@font-face { font-family: "Press Start 2P"; font-weight: 400; src: url(assets/fonts/press-start-2p-cyrillic-400-normal.woff2?v=0.8.2242) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; font-display: swap; }
@font-face { font-family: "Press Start 2P"; font-weight: 400; src: url(assets/fonts/press-start-2p-latin-400-normal.woff2?v=0.8.2242) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; font-display: swap; }

:root {
  --bg: #02060b; --bg2: #061018; --cyan: #b49cff; --rew: #ffb347; --ff: #2fe6d0; --text: #cfd8dc; --muted: #6f8a99; --line: rgba(180,156,255,.35);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pixel: "Press Start 2P", "JetBrains Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--mono); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .07;
  background-image: linear-gradient(rgba(180,156,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(180,156,255,.7) 1px, transparent 1px); background-size: 48px 48px; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-shadow: 0 0 8px var(--cyan); }
.wrap { position: relative; z-index: 2; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-weight: 400; margin: 0; }
h2 { font-family: var(--pixel); font-size: 15px; letter-spacing: .06em; color: var(--cyan); text-shadow: 0 0 10px rgba(180,156,255,.6); margin-bottom: 22px; }
h2 small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .25em; color: var(--muted); text-shadow: none; margin-top: 8px; }
section { padding: 56px 0; border-top: 1px solid rgba(180,156,255,.12); }
.muted { color: var(--muted); }

/* nav */
nav { position: sticky; top: 0; z-index: 5; background: rgba(2,6,11,.85); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(180,156,255,.2); }
nav .wrap { display: flex; align-items: center; gap: 18px; height: 56px; }
nav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--pixel); font-size: 12px; color: var(--cyan); letter-spacing: .08em; }
nav .brand img { width: 26px; height: 26px; }
nav .links { margin-left: auto; display: flex; gap: 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
nav .links a { color: var(--muted); }
nav .links a:hover { color: var(--cyan); }
/* shared header of all web pages (site, map, cabinet, admin): DEGRESS -> home, «· section», Карта / Кабинет */
nav .sec { font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
nav .top { margin-left: 18px; display: flex; gap: 6px; }
nav .links + .top { margin-left: 18px; } nav .brand + .top, nav .sec + .top { margin-left: auto; }
nav .top a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); color: var(--cyan); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
nav .top a:hover { border-color: var(--cyan); text-shadow: none; }
@media (max-width: 640px) { nav .links { display: none; } nav .links + .top { margin-left: auto; } nav .wrap { gap: 10px; } nav .top a { padding: 0 8px; font-size: 11px; letter-spacing: .08em; } }
@media (max-width: 480px) { nav .wrap { padding: 0 12px; gap: 8px; } nav .brand { gap: 7px; font-size: 10px; letter-spacing: .02em; } nav .brand img { width: 22px; height: 22px; } nav .sec { font-size: 10px; letter-spacing: .06em; } nav .top { gap: 4px; } nav .top a { padding: 0 7px; font-size: 10px; letter-spacing: .04em; } }
@media (max-width: 400px) { nav .sec { display: none; } }   /* three links (Карта, Справочник, Кабинет) leave no room for «· Раздел» on a phone */
@media (max-width: 340px) { nav .brand span { display: none; } }

/* hero */
.hero { padding: 72px 0 56px; text-align: center; position: relative; }
.hero img.mark { width: 168px; height: 168px; border-radius: 22%; filter: drop-shadow(0 0 24px rgba(180,156,255,.45)); }
nav .brand img { border-radius: 22%; }
.hero h1 { font-family: var(--pixel); font-size: clamp(26px, 6vw, 48px); color: var(--cyan); letter-spacing: .12em; margin: 22px 0 10px; text-shadow: 0 0 18px rgba(180,156,255,.7); }
.hero .tag { font-size: clamp(13px, 2.6vw, 18px); letter-spacing: .28em; color: var(--muted); text-transform: uppercase; }
.hero .tag b { color: var(--text); font-weight: 400; border-bottom: 2px solid var(--cyan); }
.hero p.lead { max-width: 640px; margin: 26px auto 0; color: var(--text); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-block; padding: 12px 18px; border: 1px solid var(--cyan); color: var(--cyan); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; transition: .15s; }
.btn:hover { background: rgba(180,156,255,.12); box-shadow: 0 0 16px rgba(180,156,255,.35); text-shadow: none; }
.btn.solid { background: var(--cyan); color: #02060b; }
.btn.solid:hover { background: #cbb9ff; }
.btn.rew { border-color: var(--rew); color: var(--rew); } .btn.ff { border-color: var(--ff); color: var(--ff); }

/* cards */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
#how .grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card { background: rgba(0,0,0,.55); border: 1px solid var(--line); padding: 18px; position: relative; }
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); opacity: .7; }
.card h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.card p { margin: 0; font-size: 13.5px; color: var(--text); }
.card .n { font-family: var(--pixel); font-size: 18px; color: var(--muted); margin-bottom: 10px; }

/* factions */
.factions { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .factions { grid-template-columns: 1fr; } }
.faction { border: 1px solid; padding: 22px; background: rgba(0,0,0,.55); display: flex; gap: 18px; align-items: flex-start; }
.faction img { width: 72px; height: 72px; flex: none; }
.faction.rew { border-color: var(--rew); } .faction.ff { border-color: var(--ff); }
.faction h3 { font-family: var(--pixel); font-size: 14px; margin-bottom: 8px; }
.faction.rew h3 { color: var(--rew); text-shadow: 0 0 10px rgba(255,179,71,.6); } .faction.ff h3 { color: var(--ff); text-shadow: 0 0 10px rgba(47,230,208,.6); }
.faction p { margin: 0; font-size: 13.5px; }
.faction .motto { margin-top: 10px; font-size: 12px; letter-spacing: .1em; color: var(--muted); }

/* map */
.map { position: relative; border: 1px solid var(--line); background: var(--bg2); }
.map iframe { display: block; width: 100%; height: 460px; border: 0; }
@media (max-width: 640px) { .map iframe { height: 360px; } }
.map .over { position: absolute; left: 12px; bottom: 12px; font-size: 11px; letter-spacing: .14em; color: var(--muted); background: rgba(0,0,0,.7); padding: 6px 10px; }
.tape { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.tape .bar { flex: 1; height: 6px; background: #0b1620; border: 1px solid #16303c; position: relative; }
.tape .bar i { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); left: 66%; }
.tape .year { font-family: var(--pixel); color: var(--cyan); font-size: 14px; }

/* download */
.dl { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dl .card .soon { color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }

/* footer */
footer { padding: 36px 0 60px; font-size: 12px; color: var(--muted); border-top: 1px solid rgba(180,156,255,.12); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .wrap span:first-child { margin-right: auto; }
.blink { animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
