/* ---------- шрифты (свои файлы, без Google Fonts) ---------- */
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/Manrope-400-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/Manrope-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/Manrope-600-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/Manrope-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/Manrope-800-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/Manrope-800-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Russo One';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/RussoOne-400-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Russo One';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/RussoOne-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* DynamiteMc landing — dark theme, brand red #fa5252 (как в донат-магазине) */
:root {
  --bg: #121212;
  --bg-2: #1a1a1a;
  --card: #1f1f1f;
  --line: #2c2c2c;
  --text: #ececec;
  --muted: #a3a3a3;
  --red: #fa5252;
  --red-2: #ff7a7a;
  --red-dark: #c92a2a;
  --red-btn: #e03131; /* кнопки: белый текст читается (контраст 4.5:1) */
  --gold: #ffc66b;
  --discord: #5865f2;
  --radius: 14px;
  --head: 'Russo One', 'Arial Black', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red-2); text-decoration: none; }
a:hover { text-decoration: underline; }
p a, li a, .cookie a { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; margin: 0; line-height: 1.15; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 820px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; cursor: pointer;
  font: 800 15px/1 var(--body); letter-spacing: .2px;
  padding: 14px 22px; color: #fff; text-decoration: none !important;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--red-btn); box-shadow: 0 6px 22px rgba(250, 82, 82, .35); }
.btn--primary:hover { background: var(--red-dark); }
.btn--light { background: #fff; color: #161616; }
.btn--light:hover { background: #ffe3e3; }
.btn--discord { background: var(--discord); }
.btn--discord:hover { background: #6d78f5; }
.btn--tg { background: #0f7bbd; }
.btn--tg:hover { background: #0b6aa3; }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--red); color: #fff; }
.btn--sm { padding: 9px 14px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: 17px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 18, 18, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar__in { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--head); font-size: 20px; text-decoration: none !important; }
.brand img { border-radius: 8px; }
.brand b { color: var(--red); font-weight: 400; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: #fff; text-decoration: none; }
/* IP в шапке: появляется на ПК, когда главный блок с IP ушёл за экран */
.topbar__ip {
  display: none; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 9px; cursor: pointer;
  background: #0b0b0b; border: 1px solid var(--line); color: #fff; font: 400 15px/1 var(--head);
}
.topbar__ip b { padding: 6px 10px; border-radius: 6px; background: var(--red-btn); font: 800 13px/1 var(--body); }
.topbar__ip:hover b { background: var(--red-dark); }
.ip-out .topbar__ip { display: inline-flex; animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; text-align: center; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, .35) 0%, rgba(18, 18, 18, .55) 55%, var(--bg) 100%),
    url('../img/hero.webp') center 40% / cover no-repeat;
  transform: scale(1.03);
}
.hero__in { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: 112px; height: 112px; border-radius: 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, .55); }
.hero__title {
  margin-top: 18px; font-size: clamp(44px, 8vw, 84px); color: #fff;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 10px 40px rgba(0, 0, 0, .6);
}
.hero__title span { color: var(--red); }
.hero__lead {
  max-width: 640px; margin-top: 12px; font-size: clamp(16px, 2.2vw, 20px); font-weight: 600;
  color: #f4f4f4; text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
}
.hero__modes { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 22px 0 0; }
.hero__modes a {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  font-family: var(--head); font-size: 17px; text-decoration: none;
}
.hero__modes a:hover { border-color: var(--red); }
.hero__modes a.is-active { border-color: var(--red); background: rgba(250, 82, 82, .22); }
.hero__modes small { font-family: var(--body); font-weight: 600; font-size: 13px; color: var(--muted); }

.ipbox {
  margin-top: 26px; width: 100%; max-width: 520px; padding: 18px 18px 14px;
  background: rgba(16, 16, 16, .78); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ipbox__label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); text-align: left; }
.ipbox__row { display: flex; gap: 10px; margin-top: 8px; }
.ipbox__ip {
  flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 16px; border-radius: 10px;
  background: #0b0b0b; border: 1px solid var(--line); color: #fff;
  font: 400 clamp(17px, 3.6vw, 22px)/1 var(--head); letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis;
}
.ipbox__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ipbox__meta span::before { content: '•'; margin-right: 6px; color: var(--red); }
.ipbox__meta .online::before { content: none; }
.online { display: inline-flex; align-items: center; gap: 6px; color: #b6f3c4; }
.online i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc6c; box-shadow: 0 0 0 0 rgba(61, 220, 108, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 108, .6); } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 108, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 108, 0); } }
.ipbox__mobile { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); text-align: left; font-size: 14px; color: #d6d6d6; }
.ipbox__mobile b { color: #fff; }
.ipbox__mobile-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ipbox__mobile-btns .btn { flex: 1 1 140px; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .04); }
.h2 { font-size: clamp(30px, 4.6vw, 42px); color: #fff; text-align: center; }
.sub { margin: 10px auto 0; max-width: 620px; text-align: center; color: var(--muted); }

/* ---------- modes ---------- */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
.mode { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 80px; }
.mode__img { height: 210px; background: #222 center / cover no-repeat; position: relative; }
.mode__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(31, 31, 31, .95)); }
.mode__img--anti { background-image: url('../img/mode-antiutopia.webp'), url('../img/hero-mobile.webp'); }
.mode__img--grief { background-image: url('../img/mode-grief.webp'), url('../img/hero-mobile.webp'); }
.mode__body { padding: 20px 22px 24px; }
.mode__tag { display: inline-block; padding: 5px 10px; border-radius: 6px; background: rgba(250, 82, 82, .14); color: var(--red-2); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.mode__tag--alt { background: rgba(255, 198, 107, .14); color: var(--gold); }
.mode__name { margin-top: 10px; font-size: 30px; color: #fff; }
.mode__body > p { margin-top: 10px; color: #d6d6d6; }
.mode__ver { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mode__ver b { color: #fff; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: #e2e2e2; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 10px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
/* карточка режима из рекламы — первой и с подсветкой */
[data-mode="anti"] #mode-anti, [data-mode="grief"] #mode-grief { order: -1; border-color: rgba(250, 82, 82, .55); box-shadow: 0 0 0 1px rgba(250, 82, 82, .25), 0 14px 40px rgba(0, 0, 0, .35); }
.mode--soon {
  min-height: 180px; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #171717 0 14px, #1b1b1b 14px 28px);
  border: 2px dashed #333; color: #5d5d5d; font-family: var(--head); font-size: 20px;
}

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.why__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.why__ico { font-size: 30px; line-height: 1; }
.why__item h3 { margin-top: 14px; font-size: 20px; color: #fff; }
.why__item p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.step__n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--red); color: #fff; font-family: var(--head); font-size: 20px; }
.step h3 { margin-top: 14px; font-size: 20px; color: #fff; }
.step p { margin-top: 8px; color: var(--muted); }
.step b { color: #fff; }
.ipchip { display: inline-block; margin-top: 4px; padding: 4px 10px; border-radius: 6px; border: 1px dashed var(--red); background: rgba(250, 82, 82, .1); color: #fff; font: 400 15px/1.4 var(--head); cursor: pointer; }
.ipchip:hover { background: rgba(250, 82, 82, .22); }

/* ---------- gallery ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.tabs button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 400 16px/1 var(--head); cursor: pointer; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: var(--red-btn); border-color: var(--red-btn); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.gallery__item { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; cursor: zoom-in; }
.gallery__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: rgba(0, 0, 0, .9); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.lightbox p { color: #ddd; font-weight: 600; text-align: center; }

/* ---------- faq ---------- */
.faq { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq:first-of-type { margin-top: 32px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 800; position: relative; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 400 24px/1 var(--head); color: var(--red); }
.faq[open] summary::after { content: '–'; }
.faq p { padding: 0 18px 18px; color: #cfcfcf; }

/* ---------- community ---------- */
.social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.social__item {
  display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: #fff; text-decoration: none !important;
  transition: transform .15s ease, border-color .15s ease;
}
.social__item:hover { transform: translateY(-3px); }
.social__item b { font-family: var(--head); font-weight: 400; font-size: 20px; }
.social__item span { color: var(--muted); font-size: 14px; }
.social__item--discord { border-top: 3px solid var(--discord); }
.social__item--tg { border-top: 3px solid #2aabee; }
.social__item--vk { border-top: 3px solid #0077ff; }
.final { margin-top: 44px; text-align: center; }
.final p { font-family: var(--head); font-size: 24px; color: #fff; margin-bottom: 16px; }

/* ---------- footer ---------- */
.footer { padding: 34px 0 40px; border-top: 1px solid var(--line); background: #0e0e0e; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 18px; color: #fff; }
.footer__brand img { border-radius: 6px; }
.age { font-family: var(--body); font-weight: 800; font-size: 12px; padding: 2px 7px; border: 1px solid #555; border-radius: 6px; color: #bbb; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.footer__links a { color: var(--muted); font-weight: 600; font-size: 14px; }
.footer__note { width: 100%; color: #858585; font-size: 13px; }

/* ---------- toast + cookie ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 10px; background: #fff; color: #161616; font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.cookie-on .toast { bottom: 104px; } /* не налезать на плашку cookie */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
  background: #202020; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 14px; color: #d0d0d0;
}

/* ---------- нижняя полоса с IP (телефоны) ---------- */
.mbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(18, 18, 18, .94);
  border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mbar code { flex: 1; min-width: 0; font: 400 17px/1 var(--head); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- privacy / 404 ---------- */
.doc { padding: 48px 0 64px; }
.doc h1 { font-size: 34px; color: #fff; }
.doc h2 { font-size: 22px; color: #fff; margin-top: 28px; }
.doc p, .doc li { color: #cfcfcf; margin-top: 10px; }
.nf { min-height: calc(100vh - 61px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 16px; text-align: center; }
.nf__code { font: 400 clamp(72px, 18vw, 140px)/1 var(--head); color: var(--red); text-shadow: 0 8px 40px rgba(250, 82, 82, .35); }
.nf h1 { font-size: 28px; color: #fff; }
.nf p { color: var(--muted); max-width: 420px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .topbar .btn { margin-left: auto; }
  .hero { padding: 48px 0 44px; }
  .hero__bg { background-image: linear-gradient(180deg, rgba(18, 18, 18, .35) 0%, rgba(18, 18, 18, .6) 55%, var(--bg) 100%), url('../img/hero-mobile.webp'); }
  .hero__logo { width: 88px; height: 88px; }
  .modes, .steps { grid-template-columns: minmax(0, 1fr); }
  .mode--soon { min-height: 110px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 56px 0; }
  .footer__links { margin-left: 0; }
  .topbar__ip { display: none !important; }
  .ip-out:not(.cookie-on) .mbar { display: flex; animation: pop .2s ease; }
  .ip-out:not(.cookie-on) .footer { padding-bottom: 96px; }
  .ip-out:not(.cookie-on) .toast { bottom: 84px; }
}
@media (max-width: 1020px) and (min-width: 761px) {
  .ip-out .nav { display: none; }
  .ip-out .topbar__ip { margin-left: auto; }
}
@media (max-width: 460px) {
  .ipbox__row { flex-direction: column; }
  .ipbox__ip { padding: 14px; justify-content: center; }
  .why, .social { grid-template-columns: minmax(0, 1fr); }
  .cookie { left: 8px; right: 8px; bottom: 8px; gap: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.45; }
  .cookie .btn { padding: 9px 12px; }
  .hero { padding: 28px 0 36px; }
  .hero__logo { width: 64px; height: 64px; border-radius: 14px; }
  .hero__title { margin-top: 10px; }
  .hero__modes { gap: 8px; margin-top: 16px; }
  .hero__modes a { padding: 8px 12px; font-size: 15px; gap: 6px; }
  .hero__modes small { font-size: 12px; }
  .ipbox { margin-top: 18px; }
  .hero__cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .online i { animation: none; }
  .btn, .social__item, .toast { transition: none; }
  .ip-out .topbar__ip, .mbar { animation: none !important; }
}
