@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Spectral:wght@500;700&display=swap");

:root {
  --bg0: #0c1210;
  --bg1: #14201a;
  --bg2: #1c2c24;
  --ink: #e8f0ea;
  --muted: #8fa396;
  --line: #2a3d32;
  --accent: #c4a35a;
  --accent2: #3d9b6e;
  --card: #121a16cc;
  --radius: 18px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Spectral", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #1e3a2c55, transparent 60%),
    radial-gradient(900px 500px at 90% 0%, #3a2e1455, transparent 55%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 45%, #0a100e);
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #e0c57a; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }

.topbar {
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(12px);
  background: #0c1210d8;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.brand-text { line-height: 1.05; }
.brand-text > span { color: var(--accent); }
.nav {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 2px;
  min-width: 0; overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}
.nav a:hover, .nav a.is-on {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff0a;
}
.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pill {
  border: 1px solid var(--line);
  background: #16201a;
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.pill:hover { border-color: var(--accent); color: var(--ink); }
.pill-accent { background: var(--accent); color: #0c1210; border-color: var(--accent); }
.pill-accent:hover { color: #0c1210; filter: brightness(1.06); }
.lang {
  display: inline-flex; gap: 2px; margin-left: 4px;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px;
}
.lang a {
  color: var(--muted); padding: 4px 9px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700;
}
.lang a.is-on { color: #0c1210; background: var(--accent); }
.burger {
  display: none; width: 40px; height: 36px;
  border: 1px solid var(--line); border-radius: 10px; background: #16201a;
  position: relative;
}
.burger:before, .burger:after {
  content: ""; position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink);
}
.burger:before { top: 12px; box-shadow: 0 6px var(--ink); }
.burger:after { bottom: 10px; }

.hero { padding: 42px 0 18px; }
.hero.no-bg { background: none; }
.hero.hero-bg {
  position: relative;
  padding: 36px 0 28px;
  isolation: isolate;
  overflow: hidden;
}
.hero.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("/media/brand/hero-slide.jpg") center top / cover no-repeat;
  transform: scale(1.02);
}
.hero.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #0c121028 0%, #0c121018 45%, #0c121088 85%, var(--bg0) 100%);
}
.hero-inner { position: relative; }
.hero-brand {
  margin: 0;
  display: flex;
  justify-content: flex-start;
  grid-column: 1;
  grid-row: 1;
}
.hero-logo {
  width: min(560px, 100%);
  height: auto;
  filter: drop-shadow(0 10px 28px #000000aa);
}
.media-layout {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.7fr);
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 14px;
  align-items: start;
}
.media-showcase {
  min-width: 0;
  grid-column: 1;
  grid-row: 2;
}
.kicker {
  color: var(--accent2); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.75rem; font-weight: 700; margin-bottom: 8px;
}
.page-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 10px;
}
.lead { color: var(--muted); max-width: 54ch; font-size: 1.05rem; }
.media-highlight {
  background: #050807;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px #00000066;
}
.home-aside {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 3;
}
.home-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 4;
}
.home-cta .btn {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  position: relative;
  z-index: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid #000;
}
.home-cta .home-cta-demo,
a.btn.home-cta-demo {
  background: var(--accent2);
  border: 1px solid #000;
  color: #0c1210;
}
.home-cta .home-cta-demo:hover,
a.btn.home-cta-demo:hover {
  color: #0c1210;
  filter: brightness(1.08);
  border: 1px solid #000;
  background: var(--accent2);
}
.home-desc {
  background: #121a16d8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  backdrop-filter: blur(2px);
  box-shadow: 0 18px 50px #00000055;
}
.home-desc-text {
  color: #c5d4c9;
  line-height: 1.55;
  margin: 0 0 16px;
  font-size: 0.98rem;
}
.home-desc-facts {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.home-desc-facts li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.home-desc-facts b {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.home-desc-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}
.home-desc-more:hover { color: var(--accent2); }
.home-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.home-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.home-proof {
  margin: 0 0 16px;
}
.home-proof-card {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  min-width: min(280px, 100%);
}
.home-proof-kicker {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.home-proof-card strong {
  color: var(--accent);
  font-size: 1.15rem;
}
.home-proof-card span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px 20px;
}
.feature-card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--accent);
}
.feature-card p {
  margin: 0;
  color: #c5d4c9;
  line-height: 1.55;
  font-size: 0.95rem;
}
.media-stage { position: relative; aspect-ratio: 16/9; background: #000; }
.media-stage video,
.media-stage .media-shot {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.media-stage:not(.is-video) video { display: none !important; }
.media-stage.is-video .media-shot { display: none !important; }

.media-strip-wrap {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.media-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding: 2px 0 6px;
}
.media-strip::-webkit-scrollbar { height: 6px; }
.media-strip::-webkit-scrollbar-thumb { background: #2a3d32; border-radius: 999px; }
.media-thumb {
  position: relative;
  flex: 0 0 148px;
  height: 84px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #0a100e;
  cursor: pointer;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.78; }
.media-thumb:hover img,
.media-thumb.is-on img { opacity: 1; }
.media-thumb.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.media-play {
  position: absolute; inset: 0; margin: auto;
  width: 36px; height: 36px; border-radius: 50%;
  background: #0c1210cc; border: 1px solid var(--accent);
}
.media-play:before {
  content: "";
  position: absolute; left: 14px; top: 11px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--accent);
}
.media-nav {
  width: 36px; height: 84px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #16201a;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.media-nav:hover { border-color: var(--accent); }
.media-nav-prev:before,
.media-nav-next:before {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 10px; height: 10px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}
.media-nav-prev:before { transform: translateX(2px) rotate(-135deg); }
.media-nav-next:before { transform: translateX(-2px) rotate(45deg); }

.buy-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #0c1210; font-weight: 700;
  padding: 11px 16px; border-radius: 10px; border: 1px solid var(--accent);
}
.btn:hover { color: #0c1210; filter: brightness(1.06); }
.btn-alt {
  background: #16201a; color: var(--ink); border: 1px solid var(--line);
}
.btn-alt:hover { border-color: var(--accent); color: var(--ink); }
.btn.home-cta-demo {
  background: var(--accent2);
  border: 1px solid #000;
  color: #0c1210;
}
.btn.home-cta-demo:hover {
  background: #48b07d;
  border: 1px solid #000;
  color: #0c1210;
  filter: none;
}
.btn.home-cta-buy {
  border: 1px solid #000;
}
.btn.home-cta-buy:hover {
  border: 1px solid #000;
}

.contact-orgs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.contact-card h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--accent);
  margin: 0 0 12px;
}
.contact-card p { margin: 0 0 12px; color: #c5d4c9; line-height: 1.55; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card b {
  display: inline-block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-card a { color: var(--accent); }
.contact-stores-title {
  font-family: var(--display);
  font-size: 1.5rem;
  margin: 28px 0 14px;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.store-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
  min-height: 72px;
}
.store-card:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}
.store-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.store-card strong { font-size: 1rem; line-height: 1.2; color: var(--accent); }
.store-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}
.store-grid-demo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
}
#buy,
#try {
  scroll-margin-top: 88px;
}
.store-mark {
  flex: 0 0 auto;
  width: auto;
  height: 28px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  overflow: visible;
  padding: 0;
}
.store-mark img {
  width: auto;
  height: 28px;
  max-width: 118px;
  display: block;
  object-fit: contain;
  filter: none;
}
.store-steam .store-mark img {
  height: 32px;
  max-width: 32px;
}
.store-egs .store-mark img {
  height: 26px;
  max-width: 26px;
  filter: brightness(0) invert(1);
}
.store-vk .store-mark img {
  height: 28px;
  max-width: 28px;
  filter: none;
  border-radius: 6px;
}
.store-rt .store-mark img {
  height: 28px;
  max-width: 28px;
  filter: none;
}
.social-tgchannel .store-mark,
.social-tgchat .store-mark,
.social-vkgroup .store-mark,
.social-yt .store-mark {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #0a100e;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  overflow: hidden;
}
.social-tgchannel .store-mark,
.social-tgchat .store-mark { background: #14283a; color: #2AABEE; border-color: #1e4a66; }
.social-vkgroup .store-mark { background: #1a2438; color: #4a76a8; border-color: #2a4060; }
.social-yt .store-mark { background: #2a1010; color: #ff4444; border-color: #5a2020; }
.social-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.section { padding: 34px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 0;
}
.section-head a,
.section-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.section-head a:hover,
.section-link:hover { color: var(--accent); }

.news-list { display: grid; gap: 12px; }
.news-card {
  display: grid; grid-template-columns: 210px 1fr; gap: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; color: inherit;
}
.news-card:hover { border-color: #3d5a48; color: inherit; }
.news-card img, .news-ph {
  width: 100%; height: 120px; object-fit: cover; border-radius: 12px; background: #16201a;
}
.news-ph {
  display: grid; place-items: center; color: var(--muted); font-size: 0.78rem; text-align: center; padding: 8px;
}
.news-card time { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; }
.news-card h3 {
  font-family: var(--display); font-size: 1.25rem; margin: 4px 0 8px; color: var(--ink);
}
.news-card p { color: var(--muted); margin: 0; }
.pub-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.pub-tabs { margin-top: 18px; }
.pub-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pub-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.pub-tab:hover { border-color: #3d5a48; color: var(--ink); }
.pub-tab.is-on {
  border-color: var(--accent);
  color: #0c1210;
  background: var(--accent);
}
.pub-panel[hidden] { display: none; }
.pub-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: inherit;
  transition: border-color 0.15s ease;
}
.pub-card:hover { border-color: #3d5a48; color: inherit; }
.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
}
.pub-outlet {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}
.pub-meta time { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; }
.pub-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}
.pub-card p { color: var(--muted); margin: 0 0 10px; line-height: 1.45; }
.pub-open {
  color: var(--accent2);
  font-weight: 600;
  font-size: 0.9rem;
}
.tag {
  display: inline-block; background: #1a2a22; color: var(--accent2);
  border: 1px solid var(--line); font-size: 0.7rem; padding: 2px 7px;
  border-radius: 999px; margin-right: 6px; text-transform: uppercase; font-weight: 700;
}

.hero-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.hero-card {
  display: flex; flex-direction: column; padding: 12px 12px 14px;
  color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); overflow: hidden; min-height: 0;
}
.hero-card-art {
  display: block; aspect-ratio: 3/4; border-radius: 12px; margin-bottom: 12px;
  background: #050807 center bottom / contain no-repeat; border: 1px solid var(--line);
}
.hero-card-meta { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.hero-card strong { font-family: var(--display); font-size: 1.15rem; display: block; margin: 4px 0; color: var(--ink); }
.hero-card em { font-style: normal; color: var(--muted); font-size: 0.85rem; }
.hero-card:hover { border-color: var(--accent); color: var(--ink); }

.portrait-wrap {
  background: #050807;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  position: sticky;
  top: 80px;
}
.portrait {
  width: 100%;
  height: auto;
  max-height: min(68vh, 720px);
  object-fit: contain;
  object-position: center bottom;
  border: 0;
  border-radius: 10px;
  background: #050807;
  display: block;
  margin: 0 auto;
}
.traits { margin: 8px 0 14px 1.1em; color: #c5d4c9; }
.traits li { margin: 6px 0; }
.quote { color: var(--accent); margin-top: 18px; }

.about-prose {
  max-width: none;
  width: 100%;
}
.about-prose p { margin: 0 0 14px; color: #c5d4c9; line-height: 1.65; }
.about-prose .about-lead { font-size: 1.08rem; color: var(--ink); }
.about-prose .about-lead + p { margin-bottom: 0; }
.about-more { margin-top: 14px; }
.about-prose h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  margin: 26px 0 12px;
}
.about-party,
.about-features {
  margin: 8px 0 18px 1.15em;
  color: #c5d4c9;
}
.about-party li,
.about-features li { margin: 8px 0; }
.about-close { color: var(--accent) !important; font-size: 1.1rem; }
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tech-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.tech-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--accent);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tech-spec {
  margin: 0;
  display: grid;
  gap: 10px;
}
.tech-row {
  display: grid;
  grid-template-columns: 11.5em 1fr;
  gap: 12px;
  align-items: start;
}
.tech-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.tech-row dd {
  margin: 0;
  color: #d5e3da;
  line-height: 1.45;
  font-size: 0.95rem;
}
.tech-line {
  display: block;
}
@media (max-width: 520px) {
  .tech-row { grid-template-columns: 1fr; gap: 2px; }
}

.gal-page { padding-top: 28px; }
.gal-page .page-title { margin-bottom: 18px; }
.gal-viewer {
  display: grid;
  gap: 12px;
}
.gal-stage {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #050807;
  cursor: zoom-in;
  aspect-ratio: 16 / 9;
}
.gal-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transition: transform 0.45s ease;
}
.gal-stage:hover img { transform: scale(1.015); }
.gal-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0c1210cc;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.gal-strip-wrap {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 8px;
  align-items: center;
}
.gal-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding: 2px 0 6px;
}
.gal-strip::-webkit-scrollbar { height: 6px; }
.gal-strip::-webkit-scrollbar-thumb { background: #2a3d32; border-radius: 999px; }
.gal-thumb {
  flex: 0 0 156px;
  height: 88px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #0a100e;
  cursor: pointer;
}
.gal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.2s ease, transform 0.35s ease;
}
.gal-thumb:hover img,
.gal-thumb.is-on img { opacity: 1; }
.gal-thumb.is-on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.gal-thumb:hover img { transform: scale(1.04); }
.gal-nav {
  width: 40px;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #16201a;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.gal-nav:hover { border-color: var(--accent); }
.gal-nav-prev:before,
.gal-nav-next:before,
.gal-lb-prev:before,
.gal-lb-next:before,
.gal-lb-close:before,
.gal-lb-close:after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}
.gal-nav-prev:before,
.gal-nav-next:before {
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}
.gal-nav-prev:before { transform: translateX(2px) rotate(-135deg); }
.gal-nav-next:before { transform: translateX(-2px) rotate(45deg); }

.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
}
.gal-lightbox[hidden] { display: none !important; }
body.gal-lb-open { overflow: hidden; }
.gal-lb-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #050807e8;
  cursor: zoom-out;
}
.gal-lb-frame {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}
.gal-lb-frame img {
  max-width: 100%;
  max-height: calc(100vh - 72px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #000;
  box-shadow: 0 24px 80px #00000088;
}
.gal-lb-close,
.gal-lb-prev,
.gal-lb-next {
  position: absolute;
  border: 1px solid var(--line);
  background: #121a16ee;
  color: var(--ink);
  cursor: pointer;
  border-radius: 12px;
}
.gal-lb-close {
  top: -6px;
  right: -6px;
  width: 42px;
  height: 42px;
  z-index: 2;
}
.gal-lb-close:before,
.gal-lb-close:after {
  width: 16px;
  height: 2px;
  background: var(--ink);
}
.gal-lb-close:before { transform: rotate(45deg); }
.gal-lb-close:after { transform: rotate(-45deg); }
.gal-lb-prev,
.gal-lb-next {
  top: 50%;
  width: 44px;
  height: 64px;
  transform: translateY(-50%);
}
.gal-lb-prev { left: -8px; }
.gal-lb-next { right: -8px; }
.gal-lb-prev:before,
.gal-lb-next:before {
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}
.gal-lb-prev:before { transform: translateX(3px) rotate(-135deg); }
.gal-lb-next:before { transform: translateX(-3px) rotate(45deg); }
.gal-lb-count {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.gallery { display: none; }

article.legal, article.post, article.hero-page {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px;
}
article.legal h1, article.post h1 { font-family: var(--display); color: var(--accent); }
article.legal h2 { font-family: var(--display); font-size: 1.35rem; margin-top: 26px; color: var(--ink); }
article.legal p, article.post p, article.hero-page p { margin: 10px 0; color: #c5d4c9; }
article.legal ul { margin: 10px 0 10px 1.2em; color: #c5d4c9; }
.news-img { display: block; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }

.back-row {
  margin: 28px 0 0;
  text-align: center;
}
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.back-link:hover { color: var(--accent); }

.hero-page .cols { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 28px; align-items: start; }
.meta-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; }
.meta-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.meta-table td:first-child { color: var(--muted); width: 42%; }
.stat { display: grid; grid-template-columns: 7.5em 1fr 2em; gap: 8px; align-items: center; margin: 8px 0; }
.stat i { height: 8px; background: #0a100e; display: block; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stat b { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.stat em { color: var(--accent); font-style: normal; font-size: 0.85rem; text-align: right; }
.hero-stats-title { margin: 18px 0 8px; font-size: 1rem; }
.hero-stats { margin: 0 0 8px; }

.foot {
  background: #0a100ecc; border-top: 1px solid var(--line);
  padding: 28px 0; color: var(--muted); font-size: 0.88rem; margin-top: 24px;
}
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot strong { color: var(--ink); }
.foot p { margin-top: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.admin {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; max-width: 760px; margin: 40px auto;
}
.admin-wide { max-width: 1100px; }
.admin h1 { font-family: var(--display); margin-top: 0; }
.admin-hint { color: var(--muted); margin: 0 0 14px; }
.admin label { display: block; margin: 12px 0 4px; color: var(--muted); font-size: 0.85rem; }
.admin input, .admin textarea, .admin select {
  width: 100%; background: #0a100e; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit;
}
.admin textarea {
  min-height: 280px;
  line-height: 1.5;
  resize: vertical;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.admin-cover-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.admin-text-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 4px;
}
.admin-text-head label { margin: 0; }
.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.admin button:disabled { opacity: 0.6; cursor: wait; }
.admin-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 16px !important;
  color: var(--ink) !important;
  font-size: 0.95rem !important;
}
.admin-check input { width: auto; }
.admin-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.admin-help {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}
.admin-help summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.admin-help ul { margin: 10px 0 4px 1.1em; }
.admin-help code {
  background: #0a100e;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--ink);
  font-size: 0.85em;
}
.admin table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin td, .admin th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
.err { color: #ff8f8f; }

article.post .body h2,
article.post .body h3,
article.post .body h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 22px 0 10px;
}
article.post .body h2 { font-size: 1.35rem; }
article.post .body h3 { font-size: 1.15rem; }
article.post .body ul,
article.post .body ol { margin: 10px 0 10px 1.2em; color: #c5d4c9; }
article.post .body li { margin: 6px 0; }
article.post .body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
article.post .body a { color: var(--accent); }

@media (max-width: 980px) {
  .about-grid, .hero-page .cols, .news-card, .hero-cards, .media-layout, .admin-grid, .contact-orgs, .store-grid, .tech-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero-brand,
  .media-showcase,
  .home-aside { grid-column: 1; grid-row: auto; }
  .store-grid { grid-template-columns: 1fr 1fr; }
  .media-thumb { flex-basis: 120px; height: 68px; }
  .media-nav { height: 68px; }
  .gal-thumb { flex-basis: 120px; height: 68px; }
  .gal-nav { height: 68px; }
  .gal-lb-prev { left: 4px; }
  .gal-lb-next { right: 4px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  body.menu-open .nav {
    display: flex; flex-direction: column; position: absolute;
    left: 0; right: 0; top: 64px; background: #0c1210f2;
    border-bottom: 1px solid var(--line); padding: 12px 16px;
  }
  .burger { display: block; }
  .topbar-inner { position: relative; }
}
