:root {
  --bg: #0f0a1a;
  --bg-cool: #151020;
  --card: rgba(30, 22, 48, 0.6);
  --card-alt: rgba(40, 28, 60, 0.5);
  --text: #f0eef6;
  --muted: #a09ab8;
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --border: rgba(139, 92, 246, 0.2);
  --ok: #7ee081;
  --hero-overlay: rgba(15, 10, 26, 0.8);
  --hex-fill: rgba(139, 92, 246, 0.08);
  --purple: #8b5cf6;
  --purple-dark: #6d28d9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}
body::before {
  content: none;
  display: none;
}
body > * { position: relative; z-index: 1; }

html {
  scroll-behavior: auto;
}

/* Hero block (reference: UNITED DIGITAL style) */
.hero-wrap {
  position: relative;
  z-index: 100;
  min-height: 42vh;
}

/* Единая шапка на всех страницах: шрифт и пункты меню */
.topbar {
  position: relative;
  z-index: 9999;
  isolation: isolate;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
.topbar .brand h1,
.topbar .brand-name {
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.topbar .brand-name {
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.2;
}

.topbar .top-nav a {
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav-below {
  width: 100%;
  justify-content: flex-start;
  gap: 4px 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.top-nav-below a {
  padding: 5px 8px 4px;
  border-radius: 6px;
}
.topbar-overlay .top-nav-below a {
  color: rgba(255, 255, 255, 0.9);
}

.topbar-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9999;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(15, 10, 26, 0.92) 0%, rgba(15, 10, 26, 0.6) 70%, transparent 100%);
  backdrop-filter: blur(12px);
}

.topbar-overlay .brand-name,
.topbar-overlay .top-nav a,
.topbar-overlay .lang-trigger,
.topbar-overlay .lang-select {
  color: #fff;
}
.topbar-overlay .lang-select {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.topbar-overlay .top-nav a {
  padding: 5px 8px 4px;
  border-radius: 6px;
}

.topbar-overlay .top-nav a:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(139, 92, 246, 0.2);
}

.topbar-overlay .top-nav a.active-nav {
  background: var(--accent);
  color: #fff;
}

.topbar-overlay .brand-icon {
  background: #1a0a2e;
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 4px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: background 0.2s, box-shadow 0.2s;
}
.topbar-cta:hover {
  background: var(--purple-dark);
  box-shadow: 0 0 24px var(--accent-glow);
}

.brand-icon .brand-logo {
  width: 52px;
  height: 52px;
  display: block;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.1);
}

.hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 24px;
  overflow: hidden;
}

/* Единый фон на всех страницах: без картинки в hero */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
  background-image: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-hex {
  position: absolute;
  inset: 0;
  background-image: none;
  pointer-events: none;
}

.hero-pill {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.3);
  color: #e9d5ff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.hero-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
  position: relative;
  z-index: 2;
  margin: 12px 0 24px;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 520px;
  line-height: 1.5;
}

/* Подпись под POOL BTC на главной — в одну строку */
#heroTagline {
  display: block;
  white-space: nowrap;
  max-width: none;
}

.hero-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

/* Hero на подстраницах — без визуальной зоны майнинга (только на главной) */
.hero-subpage {
  min-height: 26vh;
  padding: 160px 20px 16px;
}
.hero-wrap-tight .hero-subpage {
  padding-bottom: 4px;
}
.hero-subpage .hero-bg {
  background-image: none !important;
  background: var(--bg);
}
.hero-subpage .hero-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: 0.08em;
  color: #fff;
}
.hero-subpage .hero-tagline {
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.hero-cta-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.hero-cta-primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 6px 28px var(--accent-glow);
  transform: translateY(-1px);
}

.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(139, 92, 246, 0.5);
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.top-banner {
  margin-top: 12px;
  border: 1px solid #2e5f78;
  background: #0f1722;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(95, 209, 255, 0.22);
  overflow: hidden;
}

.top-banner-art {
  position: relative;
  padding: 16px 14px;
  background:
    radial-gradient(circle at 80% 40%, rgba(95, 209, 255, 0.35), transparent 35%),
    linear-gradient(100deg, #102233 10%, #1a2f46 55%, #173147 100%);
}

.banner-copy h2 {
  margin: 0;
  font-size: 1.45rem;
  color: #fff;
}

.banner-copy p {
  margin: 8px 0 0;
  color: #bcd2e7;
}

.banner-chips {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.banner-chips span {
  border: 1px solid #4a6e86;
  background: rgba(9, 19, 32, 0.62);
  color: #d7e8f7;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
}

.energy-footer {
  max-width: 1280px;
  margin: 0 auto 34px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.footer-svg-wrap {
  width: 100%;
  aspect-ratio: 1800 / 1100;
  max-height: 360px;
  display: block;
  overflow: hidden;
  background: transparent;
}

.footer-svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  min-height: 200px;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: rgba(5, 10, 18, 0.9);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s, transform 0.15s;
}
.header-social-link:hover {
  color: #fff;
  transform: translateY(-1px);
}
.header-social-link svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}
.topbar .header-social-link {
  color: var(--muted);
}
.topbar .header-social-link:hover {
  color: var(--accent);
}
.topbar-overlay .header-social-link {
  color: rgba(255, 255, 255, 0.8);
}
.topbar-overlay .header-social-link:hover {
  color: #fff;
}

.footer-dyor {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-updated {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.footer-dyor strong {
  color: var(--accent);
  font-weight: 600;
}

.earth-scene {
  width: 180px;
  height: 180px;
  position: relative;
  display: grid;
  place-items: center;
}

.earth {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #84d8ff 0 22%, transparent 24%),
    radial-gradient(circle at 60% 64%, #6acb82 0 20%, transparent 22%),
    linear-gradient(180deg, #1d4d88, #16396b);
  box-shadow: 0 0 22px rgba(72, 170, 255, 0.45);
  animation: spinEarth 14s linear infinite;
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(111, 176, 224, 0.35);
  border-radius: 50%;
  animation: orbitSpin 10s linear infinite;
}

.orbit-two {
  inset: 16px;
  animation-duration: 7s;
  animation-direction: reverse;
}

.orbit-icon {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  filter: drop-shadow(0 0 8px rgba(123, 230, 255, 0.55));
}

.energy-ring {
  position: absolute;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 2px solid rgba(103, 209, 255, 0.25);
  animation: energyPulse 2.6s ease-out infinite;
}

@keyframes spinEarth {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes energyPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

@keyframes electricFlow {
  from {
    transform: translateX(-18%) translateY(-10%);
  }
  to {
    transform: translateX(18%) translateY(10%);
  }
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand a {
  display: inline-flex;
  line-height: 0;
}

.brand h1,
.brand-name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.brand-logo {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 6px;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}

.topbar-overlay .brand-logo {
  filter: brightness(1.5) contrast(1.15);
}

/* фон логотипа тёмно-фиолетовый на всех страницах */
.topbar .brand .brand-logo,
.topbar .brand-icon {
  background: #1a0a2e;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.topbar-overlay .brand .brand-logo {
  background: #1a0a2e;
  border-color: rgba(139, 92, 246, 0.35);
}

.top-nav {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.top-nav a {
  white-space: nowrap;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding-bottom: 2px;
  padding-top: 1px;
}

.top-nav a:hover {
  color: var(--text);
}

.subtitle {
  margin: 8px 0 1em;
  color: var(--muted);
  font-size: clamp(1rem, 4vw, 21px);
}

#pageSubtitle {
  display: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  position: relative;
  z-index: 1001;
}

/* Подпись «Язык» у переключателя языка скрыта везде */
#languageLabel,
#langCaptionBlog {
  display: none;
}

.lang-label-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-trigger {
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 1px solid var(--border);
  background: #0f141b;
  color: #e6eef8;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 210px;
  display: none;
  background: #121b2b;
  border: 1px solid #29374d;
  border-radius: 10px;
  padding: 6px;
  z-index: 10001;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  isolation: isolate;
}

.lang-menu.open {
  display: grid;
  gap: 4px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #eef3fb;
  text-align: left;
  border-radius: 8px;
  padding: 8px 9px;
  cursor: pointer;
  font-size: 0.92rem;
}

.lang-option:hover,
.lang-option.active {
  background: #1a2a43;
}

.lang-flag-img {
  width: 24px;
  height: 18px;
  min-width: 24px;
  min-height: 18px;
  border-radius: 2px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
  pointer-events: none;
}

.lang-label {
  white-space: nowrap;
}

/* Блок курсов валют под шапкой: высота блока = высоте анимации (без лишних отступов) */
.ticker-block {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 0;
  height: 42px;
  display: flex;
  align-items: center;
}

.ticker-block .ticker-wrap {
  padding: 0 20px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding-bottom: 0;
}

.ticker-block .ticker-track {
  flex: 1;
  min-height: 0;
  align-self: stretch;
}

.ticker-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

/* === WEB (desktop): шапка, тикер, отступы === */
@media (min-width: 769px) {
  /* Отступ сверху = высота шапки, чтобы тикер и hero шли ниже topbar-overlay */
  .hero-wrap {
    padding-top: 100px;
  }
  .hero-wrap .ticker-block {
    display: flex !important;
    visibility: visible;
    min-height: 42px;
    margin-top: 10px;
    padding: 6px 0 0;
  }
  .hero-wrap .ticker-block .ticker-wrap {
    display: flex;
    padding: 0 24px;
  }
  .topbar {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }
  /* Длинный заголовок на подстраницах не ломает шапку */
  .topbar-row-main .brand {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }
  .topbar-row-main .brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  .topbar-right {
    flex-shrink: 0;
  }
  .ticker-block .ticker-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
  /* Отступ между тикером и блоком POOL BTC — 4px */
  .hero-wrap .hero {
    min-height: 24vh;
    padding-top: 4px;
    padding-bottom: 12px;
  }
  .container {
    margin-top: 0;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 8px;
    padding-bottom: 48px;
  }
  .energy-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  /* Названия пулов — крупнее на десктопе */
  .pool-name,
  .pool-rect .pool-title .pool-name {
    font-size: calc(1.05rem + 5px);
  }
  .other-pools-list .pool-row .pool-name,
  .other-pools-list .pool-row .pool-title .pool-name {
    font-size: calc(1.05rem + 5px);
  }
  .winner .pool-name,
  .winner .pool-title .pool-name {
    font-size: 1.85rem;
    color: #22c55e;
  }
  .winner-name-wrap .pool-title .pool-name {
    font-size: calc(1.38rem + 20px);
  }
}

.ticker-track {
  border-radius: 10px;
  background: transparent;
  color: #b6c8dc;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 9px 14px;
  font-size: 13px;
  animation: ticker 80s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 10px;
}

.ticker-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-content: center;
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 700;
}

.ticker-sep {
  color: #597086;
  margin-right: 10px;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 20px 40px;
  display: grid;
  gap: 18px;
}

/* Страницы кошельков и криптокарт: отступ между шапкой/hero и первым блоком */
.container-tight-top {
  padding-top: 0;
}
/* Блог: та же ширина контента, что и на остальных страницах */
.blog-page main.container {
  max-width: 1280px;
}
/* Страница кошельков: убрать пустое место между тикером и контентом (нет блока hero) */
.wallets-page .hero-wrap {
  min-height: 0;
}
.container-tight-top > .wallets-hero-section.card:first-child {
  margin-top: 20px;
  margin-bottom: 2px;
}
.container-tight-top > .cards-carousel-section.card:first-child {
  margin-top: 20px;
}

.card {
  background: rgba(30, 22, 48, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.card:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

/* Блок нижней анимации (Mining Visual Zone): контур по размеру содержимого */
section.showcase.card {
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.showcase-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(25, 18, 42, 0.5);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.showcase-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}
.showcase-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 5px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(3, 10, 17, 0.05), rgba(3, 10, 17, 0.88));
}

.showcase-overlay h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.showcase-overlay p {
  margin: 0;
  color: #c1d3e3;
  font-size: 0.86rem;
}

.controls-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: 20px;
  align-items: start;
}

@media (max-width: 720px) {
  .controls-inner {
    grid-template-columns: 1fr;
  }
  .calc-asic-wrap {
    min-height: 351px;
    max-height: 586px;
  }
}

.calc-asic-wrap {
  width: 100%;
  min-height: 391px;
  aspect-ratio: 800 / 600;
  max-height: 743px;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 80% at 50% 40%, rgba(45, 38, 70, 0.95), rgba(28, 22, 45, 0.98) 50%, rgba(22, 18, 38, 1));
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.15);
}

.calc-dashboard-svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.controls h2,
.section-head h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #fff;
}
.ranking .section-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

#topSixTitle,
#otherPoolsTitle {
  display: none;
}

#calcTitle.calc-title-main {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}
#calcTitle:not(.calc-title-main) {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.hashrate-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select {
  width: 100%;
  background: #0d1116;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hint-row {
  margin-top: 6px;
}

.calc-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
  color: #c9d7e6;
  font-size: 0.85rem;
}

code {
  color: #c2f0ff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.section-head .section-label {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.section-head h2 {
  color: #fff;
  font-weight: 700;
}

.section-head .section-subtitle,
.section-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0.25rem 0 0;
  display: block;
}

.card h1,
.card h2,
.card h3 {
  color: #fff;
}

.updated {
  color: var(--muted);
  font-size: 0.85rem;
}

#winnerCard.winner {
  display: block;
}

.winner {
  position: relative;
  border-color: #2a7a4f;
  background: linear-gradient(145deg, #143d2a, #152a22 45%, #1a3328);
  box-shadow: 0 0 0 1px rgba(67, 186, 139, 0.45), 0 14px 34px rgba(34, 140, 90, 0.22);
  padding: 20px 20px 3px;
}

.winner::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(88, 255, 179, 0.28), rgba(72, 200, 140, 0.12));
}

.winner.trustpool-winner {
  border-color: #6fd9ff;
  box-shadow:
    0 0 0 1px rgba(88, 230, 255, 0.45),
    0 10px 30px rgba(64, 162, 255, 0.3),
    inset 0 0 28px rgba(26, 101, 150, 0.26);
}

.winner.trustpool-winner::before {
  background: linear-gradient(100deg, rgba(92, 239, 255, 0.24), rgba(103, 198, 255, 0.12));
}

.winner.trustpool-winner::after {
  content: none;
}

/* Шрифты в блоке «лучший пул»: на 1px больше */
.winner .winner-title {
  font-size: calc(0.85rem + 1px);
}
.winner .pool-meta {
  font-size: 0.92rem;
}
.winner .pool-name,
.winner .pool-title .pool-name {
  font-size: 1.65rem;
  color: #22c55e;
}
.winner .pool-profit-label {
  font-size: calc(0.78rem + 1px);
}
.winner .pool-profit-values {
  font-size: calc(0.875rem + 1px);
  color: #34e084;
}
.winner .coin-badge {
  font-size: calc(0.75rem + 1px);
}

.winner > * {
  position: relative;
  z-index: 1;
}

.winner-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.winner-link:hover {
  text-decoration: none;
}

/* Единый ритм отступов: 6px между всеми блоками внутри «лучший пул» */
.winner-link > * {
  margin: 0 0 6px 0;
}
.winner-link > *:last-child {
  margin-bottom: 0;
}

.winner-title {
  font-size: 0.85rem;
  color: #22c55e;
}

.winner-name {
  margin: 0;
  font-size: calc(1.35rem + 20px);
  color: #22c55e;
}

.winner-name-wrap {
  margin: 0;
}

.winner-name-wrap .pool-title .pool-name {
  font-size: calc(1.32rem + 20px);
  color: #22c55e;
}

.winner-meta {
  color: #2dd472;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Сочно зелёный в карточке «Лучший пул» */
.winner .pool-meta {
  color: #2dd472;
}

.winner .pool-profit-label {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
}

.winner-meta.winner-profit-line {
  line-height: 1.35;
}

.winner-profit-line .winner-profit-label {
  display: block;
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
  margin-bottom: 2px;
}

.winner-profit-line .winner-profit-values {
  display: block;
  margin: 0;
  color: #34e084;
}

.winner-actions {
  position: absolute;
  right: 14px;
  bottom: 12px;
  margin-top: 0;
  z-index: 2;
}

.mine-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #22c55e;
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  color: #dcfce7;
  background: linear-gradient(180deg, #166534, #14532d);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.28);
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  transform: translateY(-125%);
  margin-bottom: -1.375em;
}

.mine-btn:hover {
  transform: translateY(calc(-125% - 1px));
  border-color: #4ade80;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.4);
}

.top-six-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pool-rect {
  display: grid;
  gap: 8px;
  background: #10151b;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 155px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.profit-tone {
  --profit: 0.5;
  --rank-border: rgb(95, 209, 255);
  --rank-badge-bg: rgb(22, 28, 35);
  --rank-text: rgb(225, 232, 241);
  border-color: var(--rank-border);
  box-shadow: inset 0 0 0 1px var(--rank-border);
}

.profit-tone .rank-badge,
.profit-tone .rank {
  border-color: var(--rank-border);
  background: var(--rank-badge-bg);
  color: var(--rank-text);
}

.profit-tone .net {
  color: var(--rank-border);
}

.profit-tone.force-red {
  --rank-border: rgb(255, 74, 74) !important;
  --rank-badge-bg: rgb(50, 19, 19) !important;
  --rank-text: rgb(255, 222, 222) !important;
}

.pool-rect:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.pool-mine-btn {
  display: inline-block;
  margin-top: auto;
  justify-self: end;
  align-self: end;
  font-size: 0.7rem;
  font-weight: 600;
  color: #dcfce7;
  padding: 4px 10px;
  border: 1px solid #22c55e;
  border-radius: 8px;
  background: linear-gradient(180deg, #166534, #14532d);
  text-decoration: none;
  line-height: 1.3;
  flex-shrink: 0;
  min-width: 0;
  transform: translateY(-125%);
  margin-bottom: -1.375em;
}
.pool-mine-btn:hover {
  border-color: #4ade80;
  color: #dcfce7;
}
.winner-link {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}
.winner-link .pool-mine-btn {
  margin-top: auto;
  align-self: flex-end;
}
.pool-row .pool-mine-btn {
  align-self: end;
}

.pool-rect-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pool-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pool-logo-wrap {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #3a4e62;
  display: grid;
  place-items: center;
  background: #0d141d;
  flex: 0 0 auto;
}

.pool-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pool-logo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 0.72rem;
  color: #cfe3f8;
}

.rank-badge {
  background: #0b1016;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px 8px;
  color: #b8c8da;
  font-size: 0.8rem;
  font-weight: 700;
}

.coins {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.btc-metrics {
  display: grid;
  gap: 6px;
  color: #b8c8da;
  font-size: 0.8rem;
}

.btc-metrics strong {
  color: var(--text);
}

.pool-profit-row {
  display: block;
  margin-top: 2px;
}

.pool-profit-label {
  display: block;
  color: #88c9a8;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.pool-profit-values {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.other-pools-list {
  display: grid;
  gap: 10px;
}

/* Шрифты в «остальных пулах» — как в пулах BTC (топ-6) */
.other-pools-list .pool-row .pool-name,
.other-pools-list .pool-row .pool-title .pool-name {
  font-size: calc(0.92rem + 5px);
}
.other-pools-list .pool-row .pool-meta {
  font-size: 0.78rem;
  line-height: 1.35;
}
.other-pools-list .pool-row .pool-profit-label {
  font-size: 0.78rem;
}
.other-pools-list .pool-row .pool-profit-values {
  font-weight: 600;
}
.other-pools-list .pool-row .rank {
  font-size: 0.86rem;
}

.pool-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  background: #10151b;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.pool-row:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.rank {
  display: grid;
  place-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #0b1016;
  border: 1px solid var(--border);
  color: #b8c8da;
  font-size: 0.86rem;
  font-weight: 700;
}

.pool-name {
  margin: 0;
  font-size: calc(0.92rem + 5px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pool-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.coin-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #0c1218;
  color: #c6d4e5;
  font-size: 0.78rem;
}

.coin-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.net {
  font-weight: 700;
  color: var(--ok);
}

.leader {
  box-shadow: inset 0 0 0 1px rgba(90, 255, 90, 0.32), 0 8px 24px rgba(56, 201, 88, 0.24);
}

.cards-carousel-section {
  overflow: hidden;
  background: transparent;
  border: none;
  padding: 12px 0;
  margin-top: -50px;
}
.cards-carousel-section.card {
  background: transparent;
  box-shadow: none;
}

.cards-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 1024 / 350;
  max-height: 280px;
  min-height: 200px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1528;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 20px rgba(95, 209, 255, 0.08),
    inset 0 0 40px rgba(95, 209, 255, 0.03);
  animation: cards-carousel-frame 4s ease-in-out infinite alternate;
}

@keyframes cards-carousel-frame {
  0% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 0 20px rgba(95, 209, 255, 0.08),
      inset 0 0 40px rgba(95, 209, 255, 0.03);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 28px rgba(95, 209, 255, 0.14),
      inset 0 0 50px rgba(95, 209, 255, 0.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cards-carousel-wrap {
    animation: none;
  }
}

.cards-carousel-wrap object {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.35);
  transform-origin: center center;
}

.wallets-hero-section {
  overflow: hidden;
  padding: 12px 0;
}

.wallets-hero-section.card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.wallets-hero-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 800 / 600;
  max-height: 420px;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallets-hero-wrap object {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wallets-video-section {
  margin-top: 24px;
}

.wallets-video-wrap {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0c10;
}

.wallets-video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.home-video-section {
  margin-top: 4px;
}

.home-video-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0c10;
}

.home-video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.altcoin-pools-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.altcoin-pool-rect {
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.altcoin-pool-rect .pool-mine-btn {
  justify-self: end;
  align-self: end;
}

.altcoin-pool-rect:hover {
  border-color: rgba(34, 197, 94, 0.6);
}

.alt-badge {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 8px;
  padding: 2px 8px;
  color: #22c55e;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cards-market {
  scroll-margin-top: 20px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.cards-info-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cards-info-table th,
.cards-info-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.cards-info-table th {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  background: rgba(139, 92, 246, 0.12);
}

.cards-info-table td {
  color: var(--muted, rgba(255, 255, 255, 0.75));
}

.cards-info-table tbody tr:hover td {
  background: rgba(139, 92, 246, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

.cards-ranking-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cards-ranking-table th,
.cards-ranking-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.cards-ranking-table th {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  background: rgba(139, 92, 246, 0.12);
}

.cards-ranking-table td {
  color: var(--muted, rgba(255, 255, 255, 0.75));
}

.cards-ranking-table td:first-child {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.cards-ranking-table tbody tr:hover td {
  background: rgba(139, 92, 246, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

/* FAQ — ответы на вопросы */
.faq {
  scroll-margin-top: 20px;
}

.faq-subtitle {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(46, 59, 73, 0.8);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 14px 12px 14px 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-question::-webkit-details-marker,
.faq-question::marker {
  display: none;
}

.faq-question::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::before {
  transform: rotate(-135deg);
}

.faq-answer {
  margin: 0 0 14px 14px;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-note {
  margin: 0 0 12px;
  color: #8fa5ba;
  font-size: 0.84rem;
}

/* Страница Обмен: шрифты на 1px больше */
.exchange-page .hero-subpage .hero-title {
  font-size: calc(clamp(1.5rem, 4vw, 2.2rem) + 1px);
}
.exchange-page .hero-subpage .hero-tagline {
  font-size: calc(0.95rem + 1px);
}
.exchange-page .market-note {
  font-size: calc(0.84rem + 1px);
}
.exchange-page .section-head h2 {
  font-size: calc(1rem + 1px);
}
.exchange-page .market-meta {
  font-size: calc(0.75rem + 1px);
}
.exchange-page .market-content h3 {
  font-size: calc(1rem + 1px);
}
.exchange-page .market-sub,
.exchange-page .market-content ul {
  font-size: calc(0.84rem + 1px);
}
.exchange-page .faq-question {
  font-size: calc(0.95rem + 1px);
}
.exchange-page .faq-answer {
  font-size: calc(0.9rem + 1px);
}
.exchange-page .faq .section-head h2 {
  font-size: calc(1rem + 1px);
}

.market-card {
  border: 1px solid #2e3b49;
  border-radius: 12px;
  background: #0f151c;
  padding: 10px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
}

.market-thumb-wrap {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #334658;
  background: #0b1118;
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  box-sizing: border-box;
}

#walletsGrid .market-thumb-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
#walletsGrid .market-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 6px;
  box-sizing: border-box;
}

/* Ledger: логотип с белыми контурами */
#walletsGrid .market-card-ledger .market-thumb {
  filter: brightness(0) invert(1);
}

/* BitBox02: логотип желтым */
#walletsGrid .market-card-bitbox .market-thumb {
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(35deg);
}

/* SafePal: размер как у остальных карточек */
#walletsGrid .market-card-safepal {
  grid-column: auto;
  justify-self: stretch;
  max-width: none;
}

.market-thumb-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #d4e6f8;
  font-size: 1.3rem;
  font-weight: 700;
}

.market-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: #8fa5ba;
}
.market-meta .market-cashback { white-space: nowrap; }
.market-meta .market-fee { white-space: nowrap; }
.market-meta .market-kyc { white-space: nowrap; }
.market-meta .market-kyc.kyc-light { color: #10b981; }
.market-meta .market-kyc.kyc-required { color: #f59e0b; }

.market-extra {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(143, 165, 186, 0.2);
  font-size: 0.75rem;
  color: #8fa5ba;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.market-extra .market-regions,
.market-extra .market-commissions { max-width: 100%; word-break: break-word; }

.market-content h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.market-sub {
  margin: 4px 0 8px;
  color: #9eb2c6;
  font-size: 0.84rem;
}

.market-content ul {
  margin: 0;
  padding-left: 16px;
  color: #bbccdd;
  font-size: 0.84rem;
  display: grid;
  gap: 4px;
}

/* Кнопка «Заказать» в правом нижнем углу карточки (страница криптокарт) */
#cardsGrid .market-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#cardsGrid .market-link-wrap {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 10px;
}
#cardsGrid .market-link {
  margin-top: 0;
}
#cardsGrid .market-link-primary {
  font-weight: 600;
}
#cardsGrid .market-link-secondary {
  opacity: 0.9;
}

/* Кнопка в правом нижнем углу карточки (страница криптокошельков) */
#walletsGrid .market-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#walletsGrid .market-content .market-link {
  margin-top: auto;
  align-self: flex-end;
}

/* Кнопка в правом нижнем углу карточки (страница обмена) */
#exchangeGrid .market-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#exchangeGrid .market-content .market-link {
  margin-top: auto;
  align-self: flex-end;
}

.market-link {
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
  color: #89d3ff;
  border: 1px solid #2d5770;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.market-link:hover {
  color: #d8f2ff;
  border-color: #5fd1ff;
}

/* Планшет: единые отступы */
@media (max-width: 1024px) {
  .topbar,
  .ticker-wrap,
  .container,
  .energy-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-six-list,
  .altcoin-pools-list,
  .market-grid {
    grid-template-columns: 1fr;
  }
}

/* MOB1 — фиксированный мобильный вид (снапшот: snapshots/MOB1/) */
/* Мобильные: единый вид всех страниц, те же блоки и пропорции что и на десктопе */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  body {
    min-width: 0;
  }
  .topbar,
  .ticker-wrap,
  .container,
  .energy-footer {
    padding-left: 12px;
    padding-right: 12px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
    margin-top: 0;
    padding-top: 6px;
    max-width: 100%;
    min-width: 0;
  }
  .ticker-wrap {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 0;
    max-width: 100%;
    min-width: 0;
  }
  .subtitle {
    font-size: 1rem;
    margin: 8px 0 0.75em;
  }
  .hero-subpage {
    padding-top: 56px;
    padding-left: 12px;
    padding-right: 12px;
    min-height: 0;
  }
  .hero-wrap-tight .hero-subpage {
    padding-bottom: 2px;
  }
  .hero-subpage .hero-title {
    font-size: calc(1.35rem - 4px);
  }
  .hero-subpage .hero-tagline {
    font-size: 0.9rem;
  }
  .card {
    padding: 12px;
  }
  .section-head h2,
  .controls h2 {
    font-size: calc(1.05rem - 4px);
  }
  .ranking .section-head h2 {
    font-size: calc(1.2rem - 4px);
  }
  .controls-inner {
    grid-template-columns: 1fr;
  }
  /* В шапке моб: скрыть значки соцсетей на всех страницах */
  .header-social {
    display: none;
  }
  /* Шапка в потоке, чтобы тикер шёл сразу под ней без пустого разрыва */
  .hero-wrap .topbar-overlay {
    position: relative;
  }
  /* Скрыть hero — сразу после шапки идёт курс валют */
  .hero-wrap .hero {
    display: none;
  }
  /* Блок курсов валют под шапкой: всегда видим на всех страницах моб */
  .hero-wrap .ticker-block {
    display: block !important;
    min-height: 44px;
    padding: 0;
    margin-top: 0;
    visibility: visible !important;
    overflow: visible;
  }
  .hero-wrap .ticker-block .ticker-wrap {
    padding: 0 12px;
    padding-bottom: 0;
    display: block !important;
    overflow: visible;
  }
  .hero-wrap .ticker-block .ticker-track {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  /* Скрыть визуальную зону майнинга (Mining Visual Zone) на мобильных */
  section.showcase.card {
    display: none;
  }
  /* Обмен: в моб показывать блок бирж (переопределить общее скрытие showcase) */
  .exchange-page section.showcase.card {
    display: block;
  }
  .showcase-grid,
  .market-grid {
    grid-template-columns: 1fr;
  }
  /* Криптокарты: блок по ширине не выходит за край, таблицу и рейтинг не показывать */
  main:has(#cardsGrid) {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  #cardsGrid {
    max-width: 100%;
    min-width: 0;
  }
  #cardsTableSection,
  #cardsRankingSection {
    display: none;
  }
  /* Криптокарты: мета и «Стоимость в год» переносятся, без горизонтального скролла */
  .market-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .market-thumb-wrap {
    width: 100%;
    max-width: 88px;
    height: 72px;
  }
  .market-meta {
    flex-wrap: wrap;
    word-break: break-word;
  }
  .market-meta .market-fee,
  .market-meta .market-cashback,
  .market-meta .market-kyc {
    white-space: normal;
  }
  /* Криптокошельки: SafePal по ширине как остальные карточки */
  #walletsGrid .market-card-safepal {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
  .top-six-list,
  .altcoin-pools-list {
    grid-template-columns: 1fr;
  }
  .footer-bar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero-wrap {
    min-height: 0;
  }
  .hero .hero-title {
    font-size: calc(clamp(1.4rem, 6vw, 2rem) - 4px);
  }
  .hero .hero-tagline {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
  }
  .ticker-track {
    font-size: 12px;
    padding: 8px 12px;
    animation-duration: 40s; /* в 2 раза быстрее (80s → 40s) на моб */
  }
  .ticker-icon {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }
  .top-nav {
    flex-wrap: nowrap;
    gap: 6px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .top-nav a {
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
  }
  .topbar-overlay .top-nav a,
  .top-nav-below a {
    padding-top: 6px;
    padding-bottom: 4px;
  }
  .inputs {
    grid-template-columns: 1fr;
  }
  .hashrate-row {
    grid-template-columns: 1fr 80px;
  }
  .pool-row {
    grid-template-columns: 1fr;
  }
  .pool-row .net {
    justify-self: start;
    margin-top: 6px;
  }
  .miners-rank-page .hero-subpage {
    padding-top: 72px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .miners-rank-page .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* П.1: таблицы рейтинга пулов — без обрезания и горизонтального скролла страницы */
  .top-six-list,
  .other-pools-list,
  .altcoin-pools-list {
    min-width: 0;
  }
  .pool-rect {
    min-width: 0;
    overflow: hidden;
  }
  .pool-rect .pool-title {
    min-width: 0;
  }
  .pool-rect .pool-name {
    white-space: normal;
    word-break: break-word;
  }
  .pool-rect .pool-meta {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .pool-row {
    min-width: 0;
  }
  .pool-row > * {
    min-width: 0;
  }
  .pool-row .pool-title {
    min-width: 0;
  }
  .pool-row .pool-name {
    white-space: normal;
    word-break: break-word;
  }
  .pool-row .pool-meta {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* П.2: шапка (topbar) — на всех страницах одинаково: длинный заголовок не ломает верстку */
  .topbar {
    padding-top: 12px;
    padding-bottom: 8px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .topbar-row-main {
    min-width: 0;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .topbar-row-main .brand {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .topbar-row-main .brand .brand-icon,
  .topbar-row-main .brand .brand-logo,
  .topbar-row-main .brand a .brand-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
  }
  /* Моб: в шапке только «POOL BTC», убираем название раздела */
  .topbar-row-main .brand-name {
    font-size: 0 !important;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .topbar-row-main .brand-name::before {
    content: "POOL BTC" !important;
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: inherit;
  }
  .topbar-right {
    flex-shrink: 0;
    min-width: 0;
  }
  .topbar .header-social-link {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
  .topbar .header-social-link svg {
    width: 18px;
    height: 18px;
  }
  .lang-trigger {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .top-nav-below a {
    padding: 5px 6px;
    font-size: 0.65rem;
  }
  #navEquip,
  #navRank {
    display: none;
  }
  /* Блог в моб версии показывать */

  /* П.3: футер — SVG и ссылки не вылезают, удобный тап */
  .footer-svg-wrap {
    min-height: 0;
    max-height: 280px;
    overflow: hidden;
  }
  .footer-svg-wrap object,
  .footer-svg-wrap svg {
    max-height: 280px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .footer-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  .footer-nav a {
    padding: 10px 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
  }
  .footer-dyor {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 4px;
  }

  /* П.4: страница «Криптокошельки» — без горизонтального скролла, адекватная высота */
  .wallets-defi-wrap,
  .wallets-orbit-wrap {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .wallets-defi-wrap {
    min-height: 180px;
    max-height: 42vh;
  }
  .wallets-orbit-wrap {
    min-height: 200px;
    max-height: 38vh;
  }
  .wallets-hero-section.card {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  /* Криптокошельки: главная картинка по ширине блоков, увеличенный размер в моб версии */
  .wallets-page .container-tight-top > .wallets-hero-section.card:first-child {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .wallets-page .wallets-hero-figure {
    border-radius: 12px;
    min-height: 220px;
  }
  .wallets-page .wallets-hero-image {
    width: 100%;
    min-height: 200px;
    height: auto;
  }
  .container-tight-top {
    max-width: 100%;
    min-width: 0;
  }
  /* Блог: по ширине экрана телефона, текст не выходит за край */
  .blog-page main.container,
  .blog-page .container-tight-top {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
    overflow-x: hidden;
  }
  .blog-page .blog-grid,
  .blog-page .blog-card,
  .blog-page .blog-article,
  .blog-page .blog-article-img,
  .blog-page .article-body {
    max-width: 100%;
    min-width: 0;
  }
  .blog-page .blog-article-img {
    max-width: 100%;
  }
  /* Текст в статьях блога не выходит за край экрана на телефоне */
  .blog-page .blog-article,
  .blog-page .article-body,
  .blog-page .article-body p,
  .blog-page .article-body h2,
  .blog-page .article-body h3,
  .blog-page .article-body li,
  .blog-page .article-body a,
  .blog-page .article-body pre,
  .blog-page .article-body code {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
  }
  .blog-page .article-body pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .blog-page .article-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .blog-page .article-body table th,
  .blog-page .article-body table td {
    word-break: break-word;
  }
  /* Криптокарты и кошельки: меньше отступ между тикером и блоком анимации */
  .container-tight-top > .wallets-hero-section.card:first-child,
  .container-tight-top > .cards-carousel-section.card:first-child {
    margin-top: 3px;
  }

  /* П.5: калькулятор — крупные поля и подписи для мобильных */
  #calcSection,
  #calcSection .controls-inner,
  #calcSection .controls-form {
    max-width: 100%;
    min-width: 0;
  }
  #calcSection .controls h2 {
    font-size: 1.05rem;
    margin-bottom: 5px;
  }
  #calcTitle.calc-title-main {
    font-size: 1.35rem;
  }
  #calcTitle:not(.calc-title-main) {
    font-size: 0.85rem;
  }
  #calcSection .inputs label {
    font-size: 1rem;
  }
  #calcSection .hashrate-row {
    grid-template-columns: 1fr 90px;
    gap: 10px;
  }
  #calcSection .hashrate-row input,
  #calcSection .hashrate-row select {
    min-height: 44px;
    padding: 12px 14px;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
  }
  #calcSection .hint,
  #calcSection .hint code {
    font-size: 0.9rem;
    margin-top: 10px;
  }
  #calcSection .hint-row {
    margin-top: 8px;
  }
  #calcSection .calc-asic-wrap {
    min-height: 200px;
    max-height: 45vh;
    overflow: hidden;
  }

  /* Кнопка «Майнить!» не заходит на текст — в потоке под контентом */
  .winner {
    padding-bottom: 16px;
  }
  .winner-actions {
    position: static;
    margin-top: 16px;
    margin-bottom: 0;
  }
  .mine-btn {
    display: inline-flex;
  }
}

/* В альбомной ориентации (горизонт) — те же блоки скрыты, сразу после шапки курс валют */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-wrap .hero {
    display: none;
  }
  section.showcase.card {
    display: none;
  }
  .hero-wrap .ticker-block {
    margin-top: 12px;
    padding: 6px 0 0;
  }
  .hero-wrap .ticker-block .ticker-wrap {
    padding-bottom: 0;
  }
}

@media (max-width: 860px) {
  .pool-row {
    grid-template-columns: 1fr;
  }

  .pool-row .net {
    justify-self: start;
    margin-top: 6px;
  }
}

/* Доп. правки для узких экранов (всё основное уже в 768px) */
@media (max-width: 480px) {
  .winner.trustpool-winner {
    padding: 20px 16px 3px;
  }
}
