/* ============================================================
   uniq.down-web.com - compact header, donate card, drop zone
   v20260925. Loaded after styles.css and dwx.css; everything is
   scoped to the new .uh-* markup, so removing this file and the
   markup restores the previous look.
   ============================================================ */

:root {
  --uh-navy: #0f2a4a;
  --uh-ink: #1e293b;
  --uh-muted: #64748b;
  --uh-blue: #2563eb;
  --uh-blue-soft: #eef4ff;
  --uh-line: rgba(15, 23, 42, 0.09);
  --uh-coral: #ff7a45;
  --uh-coral-soft: #fff1ea;
}

/* ── Header: one compact row ─────────────────────────────── */
.site-header.uh {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--uh-line);
  box-shadow: 0 10px 28px -24px rgba(15, 23, 42, 0.55);
}

.uh-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}

.uh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--uh-navy);
  text-decoration: none;
}
.uh-brand:hover { color: var(--uh-navy); text-decoration: none; }

.uh-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(140deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 8px 16px -8px rgba(37, 99, 235, 0.7);
}
.uh-mark svg { width: 19px; height: 19px; }

.uh-name {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.uh-name small {
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--uh-muted);
}

/* The family menu: the same five services on every site, the current one
   highlighted. uniq-ui.js / dw-ui.js tighten it step by step when it gets
   crowded (.uh-bar--tight, --noicons) and fold it only as a last resort. */
.uh-nav {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  min-width: 0;
}
.uh-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #334155;
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.uh-nav a i { color: var(--uh-blue); font-size: 0.85em; }
.uh-nav a:hover { background: #f1f6ff; color: #1d4ed8; text-decoration: none; }
.uh-nav a.is-active {
  background: var(--uh-blue-soft);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}
.uh-bar--tight { gap: 12px; }
.uh-bar--tight .uh-nav { gap: 0; }
.uh-bar--tight .uh-nav a { padding: 7px 9px; font-size: 0.84rem; }
.uh-bar--noicons .uh-nav a i { display: none; }
.uh-bar--compact .uh-nav { display: none; }
.uh-bar--compact .uh-more { display: block; }

.uh-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Dropdowns (language, other services): <details>, no library. */
.uh-dd { position: relative; }
.uh-dd > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--uh-line);
  border-radius: 10px;
  background: #fff;
  color: var(--uh-navy);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.uh-dd > summary::-webkit-details-marker { display: none; }
.uh-dd > summary:hover { border-color: #b8cbeb; background: #fbfdff; }
.uh-dd[open] > summary,
.uh-dd > summary:focus-visible {
  outline: none;
  border-color: #93b4f5;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.uh-dd > summary svg { width: 16px; height: 16px; }
.uh-dd > summary .uh-chev { width: 14px; height: 14px; color: var(--uh-muted); transition: transform 0.15s ease; }
.uh-dd[open] > summary .uh-chev { transform: rotate(180deg); }
.uh-dd > summary img {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}

.uh-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  min-width: 220px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--uh-line);
  border-radius: 14px;
  box-shadow: 0 22px 44px -16px rgba(15, 23, 42, 0.35);
}
.uh-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--uh-ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.uh-menu a:hover { background: #f3f7ff; color: #1d4ed8; }
.uh-menu a.is-active { background: var(--uh-blue-soft); color: #1d4ed8; }
.uh-menu a i { width: 18px; text-align: center; color: var(--uh-blue); }
.uh-menu img {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}
.uh-menu .uh-code { margin-left: auto; font-size: 0.72rem; font-weight: 800; color: var(--uh-muted); }

.uh-more { display: none; }

.uh-tools .theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border-color: var(--uh-line);
  background: #fff;
}

/* Page title: the H1 scrolls with the page instead of riding in the bar. */
.uh-title { padding-top: 22px; text-align: center; }
.uh-title h1 {
  max-width: 30ch;
  margin: 0 auto;
  color: var(--uh-navy);
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 641px) {
  .uh-title h1 { max-width: 44ch; }
}

/* The Telegram card sits right under the title and right above the banner:
   an empty message line and stacked margins left ~55 px of blank space. */
#dwAuthMessage:empty { display: none; }
.site-header.uh ~ #dw-auth-gate { margin-top: 14px; margin-bottom: 0; }
.site-header.uh ~ .site-content .banner_head { margin-top: 16px; }

@media (max-width: 959.98px) {
  .uh-nav { display: none; }
  .uh-more { display: block; }
}

@media (max-width: 640px) {
  .uh-bar { min-height: 56px; gap: 10px; }
  .uh-mark { width: 30px; height: 30px; border-radius: 9px; }
  .uh-mark svg { width: 17px; height: 17px; }
  .uh-name { font-size: 1rem; }
  .uh-tools { gap: 6px; }
  .uh-dd > summary { height: 36px; padding: 0 8px; }
  .uh-tools .theme-toggle-btn { width: 36px; height: 36px; }
  .uh-menu { min-width: 200px; }
  .uh-title { padding-top: 16px; }
  .uh-title h1 { max-width: 22ch; font-size: 1.28rem; line-height: 1.22; }
}

@media (max-width: 359.98px) {
  .uh-name small { display: none; }
}

/* ── Donate card ─────────────────────────────────────────── */
.uh-donate {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 18px;
  border: 1px solid #fbe0d2;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 122, 69, 0.09) 0%, rgba(255, 122, 69, 0) 55%),
    linear-gradient(180deg, #fffdfb 0%, #ffffff 100%);
}
.uh-donate__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.uh-donate__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--uh-coral);
  background: var(--uh-coral-soft);
}
.uh-donate__icon svg { width: 20px; height: 20px; }
.uh-donate__title {
  margin: 1px 0 4px;
  color: var(--uh-navy);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
}
.uh-donate__text { margin: 0; color: #475569; font-size: 0.88rem; line-height: 1.5; }

.uh-wallets { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.uh-wallet {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 8px;
  border: 1px solid #e6edf7;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.uh-wallet:hover { border-color: #cddcf2; box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.35); }

.uh-net {
  display: inline-flex;
  justify-content: center;
  padding: 4px 0;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.uh-net--trc20 { background: #fdecec; color: #b42318; }
.uh-net--bep20 { background: #fdf3dc; color: #9a6700; }
.uh-net--erc20 { background: #ebedff; color: #4338ca; }
.uh-net--sol { background: #e3f7f3; color: #0f766e; }

.uh-wallet .copy-addr {
  display: block;
  min-width: 0;
  padding: 0;
  background: none;
  color: #1e3a5f;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}

.uh-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #d7e3f5;
  border-radius: 9px;
  background: #f7faff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.uh-copy svg { width: 15px; height: 15px; }
.uh-copy .uh-ico-done { display: none; }
.uh-copy:hover { background: var(--uh-blue-soft); border-color: #b8cbeb; }
.uh-copy.is-done { background: #ecfdf3; border-color: #a7e3bf; color: #15803d; }
.uh-copy.is-done .uh-ico-copy { display: none; }
.uh-copy.is-done .uh-ico-done { display: inline; }

@media (max-width: 480px) {
  .uh-donate { padding: 14px; }
  /* icon + title on one line, the text below at full width */
  .uh-donate__head { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 8px; }
  .uh-donate__head > div { display: contents; }
  .uh-donate__title { margin: 0; }
  .uh-donate__text { grid-column: 1 / -1; }
  .uh-wallet { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px; }
  .uh-copy { padding: 0 9px; }
  .uh-copy .uh-copy__label { display: none; }
}

/* ── Drop zone ───────────────────────────────────────────── */
.drop-zone.uh-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 124px;
  padding: 18px 14px;
  border: 2px dashed #c7d6ec;
  border-radius: 14px;
  background: #f8fbff;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.uh-drop:hover { border-color: #7aa2ee; background: #f3f7ff; }
.uh-drop:focus-within { border-color: var(--uh-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.drop-zone.uh-drop.drag-over { border-color: #22c55e; background: rgba(34, 197, 94, 0.07); }
.uh-drop #customFile {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.uh-drop__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 12px;
  color: var(--uh-blue);
  background: #e8f0ff;
}
.uh-drop__icon svg { width: 22px; height: 22px; }
.uh-drop__cta { color: #1d4ed8; font-size: 0.98rem; font-weight: 800; }
.uh-drop__sub { color: var(--uh-muted); font-size: 0.82rem; }
.uh-drop__picked { display: none; margin-top: 2px; color: #15803d; font-size: 0.82rem; font-weight: 700; }
.uh-drop.has-files .uh-drop__picked { display: block; }

/* ── Dark theme (the site has a toggle) ──────────────────── */
[data-bs-theme="dark"] .site-header.uh {
  background: rgba(13, 17, 23, 0.9);
  border-bottom-color: rgba(48, 54, 61, 0.9);
}
[data-bs-theme="dark"] .uh-brand,
[data-bs-theme="dark"] .uh-title h1 { color: #e6edf3; }
[data-bs-theme="dark"] .uh-nav a { color: #c9d1d9; }
[data-bs-theme="dark"] .uh-nav a:hover,
[data-bs-theme="dark"] .uh-nav a.is-active { background: rgba(56, 139, 253, 0.12); color: #79c0ff; box-shadow: none; }
[data-bs-theme="dark"] .uh-dd > summary,
[data-bs-theme="dark"] .uh-tools .theme-toggle-btn {
  background: #161b22;
  border-color: #30363d;
  color: #e6edf3;
}
[data-bs-theme="dark"] .uh-menu { background: #161b22; border-color: #30363d; }
[data-bs-theme="dark"] .uh-menu a { color: #c9d1d9; }
[data-bs-theme="dark"] .uh-menu a:hover,
[data-bs-theme="dark"] .uh-menu a.is-active { background: rgba(56, 139, 253, 0.12); color: #79c0ff; }
[data-bs-theme="dark"] .uh-donate {
  background: #161b22;
  border-color: #3b2a22;
}
[data-bs-theme="dark"] .uh-donate__title { color: #e6edf3; }
[data-bs-theme="dark"] .uh-donate__text { color: #8b949e; }
[data-bs-theme="dark"] .uh-donate__icon { background: rgba(255, 122, 69, 0.14); }
[data-bs-theme="dark"] .uh-wallet { background: #0d1117; border-color: #30363d; }
[data-bs-theme="dark"] .uh-wallet .copy-addr { color: #79c0ff; }
[data-bs-theme="dark"] .uh-copy { background: #161b22; border-color: #30363d; color: #79c0ff; }
[data-bs-theme="dark"] .drop-zone.uh-drop { background: #0d1117; border-color: #30363d; }
[data-bs-theme="dark"] .uh-drop__icon { background: rgba(56, 139, 253, 0.14); color: #79c0ff; }
[data-bs-theme="dark"] .uh-drop__cta { color: #79c0ff; }

/* ── down-web.com / gen.down-web.com additions (v20260925) ── */

/* Own container: down-web's .container has 2rem padding and flex:1. */
.uh-wrap {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* down-web styles every <header> as a 100px blue flex bar; the new bar
   opts out of all of it. */
header.site-header.uh {
  display: block;
  height: auto;
  padding: 0;
  margin: 0;
  color: inherit;
  text-align: left;
  flex-direction: row;
  width: 100%;
  box-sizing: border-box;
}
header.site-header.uh * { box-sizing: border-box; }
.uh-title h1 { font-family: inherit; text-shadow: none; animation: none; }

/* A donate card that stands on its own between two page cards. */
.uh-donate--standalone { margin-top: 24px; margin-bottom: 8px; }

/* Brand line under the name can be a word, not only "down-web". */
.uh-name small { white-space: nowrap; }

/* ── 3D-значок «Объёмная иконка» (v20261007) ────────────────────
   Светлая плитка, иконка выдавлена в 3D: 7 копий SVG друг за другом по оси Z.
   Сам по себе: плитка покачивается, раз в 9 с иконка делает оборот «монеткой»,
   у иконки своя микро-анимация. С мышью ещё и поворот за курсором (uniq-ui.js / dw-ui.js).
   Работает только на новой разметке с .uh-mark--3d; старая остаётся плоской. */
.uh-mark.uh-mark--3d {
  --s: 34px;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  font-size: var(--s);
  border-radius: 0;
  background: none;
  box-shadow: none;
  perspective: 3.4em;
}
.uh-mark--3d .uh-mark__body,
.uh-mark--3d .uh-mark__float,
.uh-mark--3d .uh-mark__glyph { position: absolute; inset: 0; transform-style: preserve-3d; }
.uh-mark--3d .uh-mark__body { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.uh-mark--3d .uh-mark__float { animation: uhm-float 6s ease-in-out infinite; }
/* ось вращения проходит через середину толщины иконки, а не через плитку */
.uh-mark--3d .uh-mark__glyph { transform-origin: 50% 50% .11em; animation: uhm-coin 9s cubic-bezier(.65, 0, .35, 1) infinite; }
.uh-mark--3d .uh-mark__face,
.uh-mark--3d .uh-mark__side { position: absolute; inset: 0; border-radius: .3em; }
.uh-mark--3d .uh-mark__side { background: #c9d8f8; transform: translateZ(-.06em); }
.uh-mark--3d .uh-mark__face {
  background: linear-gradient(150deg, #ffffff 0%, #e2ecff 100%);
  box-shadow: inset 0 0 0 .03em rgba(37, 99, 235, .22), inset 0 .04em 0 #fff;
}
.uh-mark--3d .uh-mark__glyph svg { position: absolute; left: 50%; top: 50%; width: .56em; height: .56em; margin: -.28em 0 0 -.28em; overflow: visible; }
.uh-mark--3d .uh-mark__icon { color: #3b82f6; transform: translateZ(.2em); }
.uh-mark--3d .uh-mark__ext { color: hsl(224 72% calc(46% - var(--i) * 4%)); transform: translateZ(calc(.2em - var(--i) * .026em)); }
.uh-mark--3d .x1 { --i: 1; } .uh-mark--3d .x2 { --i: 2; } .uh-mark--3d .x3 { --i: 3; } .uh-mark--3d .x4 { --i: 4; }
.uh-mark--3d .x5 { --i: 5; } .uh-mark--3d .x6 { --i: 6; } .uh-mark--3d .x7 { --i: 7; }
/* тень на «полу» не вращается вместе с плиткой */
.uh-mark--3d::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -.16em;
  height: .18em;
  border-radius: 50%;
  background: rgba(37, 99, 235, .3);
  filter: blur(.07em);
  animation: uhm-ground 6s ease-in-out infinite;
}
@keyframes uhm-float { 0%, 100% { transform: rotateX(12deg) rotateY(-24deg); } 50% { transform: rotateX(-8deg) rotateY(24deg); } }
@keyframes uhm-coin { 0%, 80% { transform: rotateY(0deg); } 96%, 100% { transform: rotateY(360deg); } }
@keyframes uhm-ground { 0%, 100% { transform: translateX(-8%) scaleX(.9); opacity: .75; } 50% { transform: translateX(8%) scaleX(1); opacity: .9; } }

/* микро-анимации: стрелка падает в лоток, квадраты расходятся, искра поворачивается */
.uh-mark--3d .i-arrow { animation: uhm-drop 5s cubic-bezier(.5, 0, .3, 1) infinite; }
.uh-mark--3d .i-tray { transform-box: fill-box; transform-origin: center; animation: uhm-tray 5s ease-in-out infinite; }
.uh-mark--3d .i-back { animation: uhm-back 5s ease-in-out infinite; }
.uh-mark--3d .i-front { transform-box: fill-box; transform-origin: center; animation: uhm-front 5s ease-in-out infinite; }
.uh-mark--3d .i-star { transform-box: fill-box; transform-origin: center; animation: uhm-star 5.5s ease-in-out infinite; }
.uh-mark--3d .i-spark { transform-box: fill-box; transform-origin: center; animation: uhm-spark 2.75s ease-in-out infinite; }
@keyframes uhm-drop { 0%, 64% { transform: translateY(0); opacity: 1; } 72% { transform: translateY(5px); opacity: 0; } 73% { transform: translateY(-7px); opacity: 0; } 82%, 100% { transform: translateY(0); opacity: 1; } }
@keyframes uhm-tray { 0%, 66% { transform: scaleX(1); } 72% { transform: scaleX(1.2); } 80%, 100% { transform: scaleX(1); } }
@keyframes uhm-back { 0%, 45% { transform: translate(0, 0); } 60%, 75% { transform: translate(-2px, -2px); } 90%, 100% { transform: translate(0, 0); } }
@keyframes uhm-front { 0%, 45% { transform: translate(0, 0) rotate(0deg); } 60%, 75% { transform: translate(1.5px, 1.5px) rotate(6deg); } 90%, 100% { transform: translate(0, 0) rotate(0deg); } }
@keyframes uhm-star { 0%, 40% { transform: rotate(0deg) scale(1); } 55% { transform: rotate(45deg) scale(.84); } 70%, 100% { transform: rotate(90deg) scale(1); } }
@keyframes uhm-spark { 0%, 100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.15); opacity: 1; } }

[data-bs-theme="dark"] .uh-mark--3d .uh-mark__face {
  background: linear-gradient(150deg, rgba(56, 139, 253, .22), rgba(56, 139, 253, .08));
  box-shadow: inset 0 0 0 .03em rgba(121, 192, 255, .35);
}
[data-bs-theme="dark"] .uh-mark--3d .uh-mark__side { background: rgba(56, 139, 253, .18); }
[data-bs-theme="dark"] .uh-mark--3d .uh-mark__icon { color: #79c0ff; }
[data-bs-theme="dark"] .uh-mark--3d .uh-mark__ext { color: hsl(214 85% calc(52% - var(--i) * 5%)); }
[data-bs-theme="dark"] .uh-mark--3d::after { background: rgba(56, 139, 253, .35); }

@media (max-width: 640px) {
  .uh-mark.uh-mark--3d { --s: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .uh-mark--3d *, .uh-mark--3d::after { animation: none !important; transition: none !important; }
  .uh-mark--3d .uh-mark__float { transform: rotateX(8deg) rotateY(-16deg); }
}
