:root {
  --bg: #0c0c0e; --bg-2: #131316; --card: #17171b; --line: #26262c;
  --text: #f2f0ea; --muted: #9a978f; --gold: #e3b12f; --orange: #e37b28;
  --grad: linear-gradient(180deg, #e3b12f 0%, #e37b28 100%);
  --grad-h: linear-gradient(90deg, #e3b12f 0%, #e37b28 100%);
  --radius: 14px;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;   
  --font-h:    "Unbounded", "Onest", system-ui, sans-serif;                          
  --font-ui:   "Rubik", "Onest", system-ui, sans-serif;                                 
  --font-alt:  "Exo 2", "Onest", system-ui, sans-serif;                              
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh;
  font-family: var(--font-body);
  display: flex; flex-direction: column;
}
body.no-scroll { overflow: hidden; }
main { flex: 1; }
.container { width: min(1100px, 100% - 40px); margin-inline: auto; }
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12,12,14,.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; }
.logo-img { height: 40px; width: auto; display: block; }
.hero-logo { height: clamp(120px, 30vw, 240px); width: auto; display: block; margin: 0 auto; }
.nav { display: flex; gap: 6px; flex: 1; margin-left: 20px; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; transition: .15s; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--card); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; font-weight: 600;
  cursor: pointer; transition: .15s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-primary { background: var(--grad-h); border-color: transparent; color: #1a1206; }
.btn-primary:hover { background: var(--grad-h); border-color: transparent; filter: brightness(1.08); }
.btn-lg { padding: 14px 28px; font-size: 17px; border-radius: 12px; }
.hero {
  overflow-x: clip; text-align: center; padding: 64px 0 0;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(227,177,47,.16), transparent 70%),
    radial-gradient(500px 300px at 85% 100%, rgba(227,123,40,.10), transparent 70%);
}
.hero h1 { line-height: 0; }
.hero p { max-width: 560px; margin: 28px auto 0; color: var(--muted); font-size: 18px; }
.hero .actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ip {
  display: inline-flex; align-items: center; margin-top: 28px; cursor: pointer;
  padding: 10px 20px; border: 1px dashed var(--line); border-radius: 10px; background: transparent;
  color: var(--text); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; transition: .15s;
}
.ip:hover { border-color: var(--gold); background: rgba(227,177,47,.06); }
.ip.copied { border-color: var(--gold); color: var(--gold); }
.stats-wrap { margin-top: 72px; width: 100vw; margin-left: calc(50% - 50vw); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats { width: min(900px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 6px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .lbl { font-family: var(--font-alt); font-size: clamp(11px, 2.6vw, 15px); font-weight: 600; color: var(--muted); }
.stat .num { font-family: var(--font-h); font-weight: 800; font-size: clamp(34px, 6vw, 52px); line-height: 1; color: var(--text); }
.section { padding: 56px 0 0; }
.section:last-of-type { padding-bottom: 72px; }
.section h2 { font-size: 28px; margin-bottom: 8px; letter-spacing: -.01em; }
.section .lead { color: var(--muted); margin-bottom: 28px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; transition: .2s;
}
.features .card { height: 100%; min-height: 190px; }
.card.link { cursor: pointer; }
.card.link:hover { border-color: rgba(227,177,47,.5); transform: translateY(-2px); }
.features .card { display: flex; flex-direction: column; }
.more { margin-top: auto; padding-top: 14px; font-weight: 500; font-size: 15px; color: var(--gold); }
.features { padding-top: 24px; row-gap: 40px; }
.features .card { position: relative; padding-top: 44px; }
.card .icon {
  position: absolute; top: -24px; left: 24px; width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; background: var(--grad); color: #1a1206;
  box-shadow: 0 10px 24px rgba(227,123,40,.35);
}
.card .icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; }
.member .top { display: flex; align-items: center; gap: 14px; }
.member .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.member .tag { padding: 2px 9px; border-radius: 6px; border: 1px solid rgba(227,177,47,.45); background: rgba(227,177,47,.08); color: var(--gold); font-family: var(--font-alt); font-weight: 600; font-size: 13px; line-height: 1.5; }
.member.ph .tag { border-color: var(--line); background: transparent; color: var(--muted); }
.member .ds { color: var(--muted); font-size: 14px; line-height: 1.5; }
.member .ava {
  width: 48px; height: 48px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 20px; color: #1a1206; background: var(--grad); overflow: hidden;
}
.member .ava img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.member .ava img.custom { image-rendering: auto; object-fit: cover; }
a.member { color: inherit; text-decoration: none; }
.member .ext { color: var(--muted); font-size: 13px; font-weight: 600; }
a.member:hover .ext { color: var(--gold); }
.member.star {
  position: relative; border: 2px solid #4da3ff; padding-top: 26px;
  background: linear-gradient(180deg, rgba(77,163,255,.10), transparent 60%), var(--card);
  box-shadow: 0 0 0 3px rgba(77,163,255,.12), 0 0 28px rgba(77,163,255,.28);
}
.member .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 3px 14px; border-radius: 999px; background: #1b6fd6; color: #fff;
  font-family: var(--font-alt); font-weight: 700; font-size: 13px; letter-spacing: .02em;
  box-shadow: 0 2px 10px rgba(77,163,255,.45);
}
.member.star .tag { border-color: rgba(77,163,255,.5); background: rgba(77,163,255,.1); color: #8cc4ff; }
.member.star { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.member.star.link:hover {
  transform: translateY(-10px);
  border-color: #6db5ff;
  background: linear-gradient(180deg, rgba(77,163,255,.20), transparent 70%), var(--card);
  box-shadow: 0 0 0 4px rgba(77,163,255,.25), 0 0 48px rgba(77,163,255,.6), 0 18px 36px rgba(77,163,255,.25);
}
a.member.star:hover .ext { color: #8cc4ff; }
.member .ds-img { height: 1.6em; width: auto; display: inline-block; vertical-align: middle; }
.member .nm { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.member .rl { color: var(--muted); font-size: 14px; }
.member.ph .ava { background: var(--bg-2); border: 1px dashed var(--line); color: var(--muted); }
.member.ph .nm { color: var(--muted); }
.socials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.social { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.social { color: #fff; border-color: transparent; }
.social.discord  { background: #5865F2; }
.social.telegram { background: #26A5E4; }
.social.boosty   { grid-column: 1 / -1; background: #F15F2C; }   /* оранжевая линия на всю ширину */
a.social:hover { border-color: transparent; filter: brightness(1.1); }
.social .si {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: #fff;
}
.social .si svg { width: 40px; height: 40px; fill: currentColor; }
.social .t { font-weight: 700; font-size: 18px; }
.social .d { color: rgba(255,255,255,.85); font-size: 14px; }
.page { padding: 56px 0 80px; }
.page h1 { font-size: 36px; margin-bottom: 8px; letter-spacing: -.01em; }
.page .lead { color: var(--muted); margin-bottom: 32px; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }
.rules-list { counter-reset: r; display: grid; gap: 12px; list-style: none; }
.rules-list li {
  counter-increment: r; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 20px 16px 60px; position: relative;
}
.rules-list li::before {
  content: counter(r); position: absolute; left: 18px; top: 14px; width: 28px; height: 28px;
  border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  color: #1a1206; background: var(--grad);
}
.rules-tools { display: flex; justify-content: flex-end; }
.chip { font-family: var(--font-ui); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; transition: .15s; }
.chip:hover { color: var(--text); border-color: rgba(227,177,47,.5); }
.rules-sec { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 84px; transition: border-color .15s; }
.rules-sec:hover, .rules-sec[open] { border-color: rgba(227,177,47,.4); }
.rules-sec summary { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; user-select: none; }
.rules-sec summary::-webkit-details-marker { display: none; }
.rules-sec summary h2 { flex: 1; font-size: 16px; }
.rules-sec .cnt { color: var(--muted); font: 500 14px var(--font-alt); white-space: nowrap; }
.rules-sec .chev { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.rules-sec[open] .chev { transform: rotate(180deg); }
.rules-sec .rules-grid { padding: 0 16px 16px; }
.rules-sec .rules-grid > li { background: var(--bg-2); }
.rules-grid { list-style: none; display: grid; gap: 10px; }
.rules-grid > li { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.rn { flex: none; align-self: flex-start; min-width: 44px; text-align: center; padding: 2px 8px; border-radius: 8px; font-family: var(--font-alt); font-weight: 700; font-size: 14px; color: #1a1206; background: var(--grad); }
.rt { min-width: 0; overflow-wrap: anywhere; }
.rt p + p, .rt ul { margin-top: 8px; }
.rt ul { padding-left: 18px; color: var(--muted); }
.map-box {
  height: 520px; border: 1px dashed var(--line); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; color: var(--muted); background: var(--bg-2); padding: 20px;
}
.map-box strong { display: block; color: var(--text); font-size: 20px; margin-bottom: 4px; }
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #1a1206; background: var(--grad); }
.profile-head .name { font-size: 22px; font-weight: 700; }
.profile-head .did { color: var(--muted); font-size: 14px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.rows { border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row > span:first-child { color: var(--muted); }
.row-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); }
.stack > .card + .card { margin-top: 16px; }
.modal {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 16px; overflow-y: auto; background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  animation: fade .15s ease;
}
.modal-panel {
  position: relative; width: min(660px, 100%); background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: pop .18s ease;
}
.modal-panel h2 { font-size: 26px; margin-bottom: 6px; }
.modal-panel .lead { color: var(--muted); margin-bottom: 24px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); border-color: #3a3a42; }
.login-prompt { text-align: center; padding: 12px 0 4px; }
.login-prompt .login-ico {
  width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 18px; display: grid; place-items: center;
  background: #5865F2; color: #fff;
}
.login-prompt .login-ico svg { width: 40px; height: 40px; fill: currentColor; }
.login-prompt .lead { max-width: 380px; margin: 0 auto 26px; }
.btn-discord { background: #5865F2; border-color: transparent; color: #fff; }
.btn-discord:hover { background: #5865F2; border-color: transparent; filter: brightness(1.1); }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98) } }
form { display: grid; gap: 22px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 2px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.age-box { display: flex; align-items: stretch; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: ns-resize; transition: .15s; }
.age-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,177,47,.15); }
.age-box:has(input:user-invalid) { border-color: #7a2d2d; }
.age-box input.age { flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: center; padding: 14px 8px; font-family: var(--font-h); font-weight: 700; font-size: 24px; letter-spacing: .02em; cursor: ns-resize; }
.age-box input.age::placeholder { color: var(--muted); opacity: .5; }
.age-box input.age:focus { border: 0; box-shadow: none; }
.age-btn { flex: none; width: 64px; border: 0; background: transparent; color: var(--muted); font: 500 26px var(--font-ui); cursor: pointer; transition: .15s; }
.age-btn:first-child { border-right: 1px solid var(--line); }
.age-btn:last-child { border-left: 1px solid var(--line); }
.age-btn:hover { color: var(--gold); background: rgba(227,177,47,.08); }
.notice a { color: var(--gold); text-decoration: underline; }
textarea, input[type=text] {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font: inherit; resize: vertical; transition: .15s;
}
textarea { min-height: 92px; }
input[type=text]:user-invalid { border-color: #7a2d2d; }
textarea:focus, input[type=text]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,177,47,.15); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--orange); flex: none; }
.check a { color: var(--gold); text-decoration: underline; }
.notice { padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(227,177,47,.4); background: rgba(227,177,47,.07); margin-bottom: 20px; }
.footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
h1, h2 { font-family: var(--font-h); font-weight: 700; letter-spacing: 0; }
h3, .btn, .nav a, .member .nm, .social .t, .modal-close, .more { font-family: var(--font-ui); font-synthesis: none; }
.badge, .member .rl, .row > span:first-child, .social .d { font-family: var(--font-alt); font-synthesis: none; }
.page h1 { font-size: 30px; }
.section h2 { font-size: 24px; }
.modal-panel h2 { font-size: 22px; }
@media (max-width: 900px) {
  .team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .features, .socials { grid-template-columns: 1fr; }
  .features .card { min-height: 0; }
  .nav { margin-left: 4px; }
  .nav a { padding: 8px 10px; }
  .hero { padding: 44px 0 0; }
  .pair { grid-template-columns: 1fr; }
  .modal-panel { padding: 24px 18px; }
}
@media (max-width: 480px) {
  .team { grid-template-columns: 1fr; }
  .btn-label-hide { display: none; }
  .header .container { gap: 8px; }
  .brand { gap: 8px; font-size: 18px; }
  .nav { margin-left: 0; gap: 2px; }
  .nav a { padding: 8px; }
  .header .btn { padding: 10px 12px; }
}
.footer .credit { justify-content: center; margin-top: 14px; text-align: center; }

/* ===== Выбор IP на главной ===== */

.ip-wrap { position: relative; display: inline-block; margin-top: 28px; }
.ip-wrap .ip { margin-top: 0; gap: 10px; }

.ip-chev { color: var(--gold); font-size: 14px; transition: transform .2s; }
.ip[aria-expanded="true"] { border-color: var(--gold); background: rgba(227,177,47,.06); }
.ip[aria-expanded="true"] .ip-chev { transform: rotate(180deg); }

/* Выпадающее меню поверх страницы: ничего не сдвигает */
.ip-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 20;
  width: min(300px, 90vw); display: grid; gap: 6px; padding: 6px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0,0,0,.55);
  animation: ip-in .12s ease;
}
.ip-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 8px; border: 1px solid transparent;
  background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; transition: .15s;
}
.ip-opt:hover, .ip-opt:focus-visible { outline: none; border-color: rgba(227,177,47,.5); background: rgba(227,177,47,.06); }
.ip-lbl { font: 600 14px var(--font-alt); color: var(--muted); }
.ip-addr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; }

@keyframes ip-in { from { opacity: 0; transform: translateX(-50%) translateY(-4px); } }