body,
.site-body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fi {
  line-height: 1;
  vertical-align: middle;
}

.coin-hero-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) {
  .coin-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(260px, 380px); align-items: start; gap: 2.5rem; }
}

.hero-compact { padding: 1.25rem !important; }
@media (min-width: 768px) {
  .hero-compact { padding: 1.5rem 1.75rem !important; }
}

.es-ticker { overflow: hidden; }
.es-ticker-track {
  display: flex;
  width: max-content;
  animation: es-ticker 32s linear infinite;
}
.es-ticker:hover .es-ticker-track { animation-play-state: paused; }
@keyframes es-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.nav-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chip-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Светлый сайт */
.site-body {
  background-color: #f8fafc;
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(16, 185, 129, 0.06), transparent);
  color: #0f172a;
}

.site-body ::selection {
  background-color: rgba(16, 185, 129, 0.2);
  color: #064e3b;
}

.hero-glow::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 45%;
  height: 70%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

.market-tab.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}
.market-panel { display: none; }
.market-panel.active { display: block; }

.blog-card {
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.12);
}
.blog-card-featured:hover {
  transform: none;
}

/* Превью карточки 19:6; object-position center - заголовок в центре 16:9 кадра */
.blog-card-media {
  aspect-ratio: 19 / 6;
  width: 100%;
}
.blog-card-media img {
  object-position: center center;
}

.rates-ticker {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rates-ticker::-webkit-scrollbar {
  display: none;
}

#mobile-nav:not(.hidden) .mobile-nav-panel {
  animation: mobileNavSlideIn 0.28s ease-out;
}

@media (max-width: 767px) {
  .site-swap-btn {
    transform: rotate(90deg);
  }
}

@media (pointer: coarse) {
  .site-body input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
  }
  .site-body input[type="number"]::-webkit-outer-spin-button,
  .site-body input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
}
@keyframes mobileNavSlideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* --- Blog article (must load AFTER Tailwind preflight) --- */
.blog-article {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.85;
  max-width: 42rem;
}

.blog-article > *:first-child {
  margin-top: 0 !important;
}

.blog-article > *:last-child {
  margin-bottom: 0 !important;
}

.blog-article p {
  margin: 0 0 1.35em !important;
  padding: 0;
  color: #334155;
}

.blog-article h2 {
  margin: 2.1rem 0 1rem !important;
  padding: 0 0 0.5rem !important;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.blog-article h3 {
  margin: 1.75rem 0 0.75rem !important;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.blog-article a {
  color: #059669 !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-decoration-line: underline !important;
  text-decoration-style: solid !important;
  text-decoration-color: rgba(5, 150, 105, 0.65) !important;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease, background 0.15s ease;
}

.blog-article a:hover {
  color: #047857 !important;
  text-decoration-color: #047857 !important;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 0.2em;
}

.blog-article strong {
  font-weight: 700;
  color: #0f172a;
}

.blog-article em {
  font-style: italic;
  color: #475569;
}

.blog-article ul,
.blog-article ol {
  margin: 0 0 1.6em !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.blog-article ul > li,
.blog-article ol > li {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  line-height: 1.5;
}

/* Link rows: full-width clickable chips */
.blog-article ul > li > a {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem 0.75rem 1.15rem !important;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #047857 !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(5, 150, 105, 0.65) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.blog-article ul > li > a::before {
  content: '';
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.blog-article ul > li > a:hover {
  background: #ecfdf5 !important;
  border-color: #6ee7b7;
  text-decoration-color: #047857 !important;
  box-shadow: 0 4px 12px -6px rgba(16, 185, 129, 0.35);
}

.blog-article ul > li > a strong {
  color: inherit;
  font-weight: 700;
}

/* Non-link list items still look like cards */
.blog-article ul > li:not(:has(> a)) {
  padding: 0.7rem 1rem 0.7rem 2.15rem !important;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.blog-article ul > li:not(:has(> a))::before {
  content: '';
  position: absolute;
  left: 0.95rem;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.blog-article ol {
  counter-reset: blog-ol;
}

.blog-article ol > li {
  counter-increment: blog-ol;
  padding: 0.7rem 1rem 0.7rem 2.7rem !important;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.blog-article ol > li::before {
  content: counter(blog-ol);
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.45rem;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.blog-article code {
  font-size: 0.875em;
  font-weight: 600;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 0.35rem;
  padding: 0.12em 0.4em;
}

.blog-article blockquote {
  margin: 1.5em 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid #10b981;
  border-radius: 0 0.75rem 0.75rem 0;
  background: #f0fdf4;
  color: #334155;
  font-style: italic;
}

.blog-article hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.blog-article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
}

.blog-article-shell {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.6rem 1.4rem 1.85rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

@media (min-width: 640px) {
  .blog-article-shell {
    padding: 2.15rem 2.35rem 2.4rem;
  }
  .blog-article {
    font-size: 1.125rem;
    line-height: 1.9;
  }
  .blog-article h2 {
    font-size: 1.4rem;
  }
  .blog-article p {
    margin-bottom: 1.5em !important;
  }
}