:root {
  --bg: #e4e8ee;
  --surface: #ffffff;
  --surface-soft: #f1f5fa;
  --ink: #101a2a;
  --muted: #4f6078;
  --line: #cfd8e5;
  --line-strong: #afbed2;
  --brand: #0f766e;
  --brand-dark: #0b3740;
  --danger: #b83535;
  --shadow-sm: 0 10px 28px rgba(8, 24, 45, 0.1);
  --shadow-md: 0 20px 48px rgba(8, 24, 45, 0.17);
}

* { box-sizing: border-box; }

.site-preloader {
  position: fixed;
  inset: 0;
  background: #000000;
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 320ms ease, visibility 320ms ease;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  width: min(460px, 82vw);
  display: grid;
  justify-items: center;
  gap: 16px;
}

.preloader-trading {
  width: min(360px, 78vw);
  height: 88px;
  border: 1px solid #1a2330;
  border-radius: 10px;
  background:
    linear-gradient(to top, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
    #070c14;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 12px;
  gap: 8px;
}

.preloader-trading span {
  width: 12px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #6cd3b2, #2f7f77);
  animation: preloader-candle 1.1s ease-in-out infinite;
}

.preloader-trading span:nth-child(1) { height: 24px; animation-delay: 0ms; }
.preloader-trading span:nth-child(2) { height: 44px; animation-delay: 100ms; }
.preloader-trading span:nth-child(3) { height: 30px; animation-delay: 200ms; }
.preloader-trading span:nth-child(4) { height: 56px; animation-delay: 300ms; }
.preloader-trading span:nth-child(5) { height: 36px; animation-delay: 400ms; }
.preloader-trading span:nth-child(6) { height: 62px; animation-delay: 500ms; }
.preloader-trading span:nth-child(7) { height: 40px; animation-delay: 600ms; }
.preloader-trading span:nth-child(8) { height: 52px; animation-delay: 700ms; }

.preloader-trading i {
  position: absolute;
  left: -20%;
  bottom: 18px;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d0a86e, transparent);
  animation: preloader-trend 1.2s linear infinite;
}

.preloader-logo {
  width: min(360px, 72vw);
  height: auto;
  object-fit: contain;
}

.preloader-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #1a1a1a;
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7e8aa0, #d7e1ef);
  animation: preloader-slide 1s ease-in-out infinite;
}

@keyframes preloader-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

@keyframes preloader-candle {
  0%, 100% { transform: scaleY(0.75); opacity: 0.65; }
  50% { transform: scaleY(1.1); opacity: 1; }
}

@keyframes preloader-trend {
  0% { transform: translateX(0); }
  100% { transform: translateX(340%); }
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% -20%, rgba(52, 95, 152, 0.14), transparent 35%),
    radial-gradient(circle at -10% 20%, rgba(18, 112, 126, 0.11), transparent 30%),
    var(--bg);
}

.container {
  width: min(1220px, 94vw);
  margin: 0 auto;
}

.topbar {
  background: #000000;
  border-bottom: 1px solid #171717;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.nav-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 470px 1fr;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #f8fafc;
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 360px;
  height: 66px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  mix-blend-mode: normal;
  filter: none;
}

.logo-text {
  display: none;
}

.logo span { color: #40e7b4; }

.menu {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.menu a {
  color: #eaf0f9;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: #d7dce3;
}

.ticker-wrap {
  background: linear-gradient(90deg, #e0e5ec, #ebf0f6);
  border-bottom: 1px solid #c7d3e2;
}

.market-strip-wrap {
  background: #020816;
  border-bottom: 1px solid #112139;
}

.market-strip {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}

.market-loading {
  margin: 0;
  color: #afc1d8;
  font-weight: 700;
}

.quote-chip {
  flex: 0 0 auto;
  min-width: 190px;
  border-radius: 12px;
  border: 1px solid #183454;
  background: linear-gradient(180deg, #0d1d34, #08172b);
  color: #dfe9f7;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.quote-symbol {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.quote-price {
  font-weight: 700;
  color: #dbe6f5;
}

.quote-change {
  font-weight: 800;
}

.quote-change.up { color: #4ad8a6; }
.quote-change.down { color: #ff6b86; }
.quote-change.flat { color: #aebfd6; }

.ticker {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 56px;
}

.ticker strong {
  background: #0f172a;
  color: #e9edf5;
  border-radius: 10px;
  text-align: center;
  padding: 8px 0;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ticker-track {
  overflow: hidden;
  position: relative;
}

.ticker-content {
  margin: 0;
  white-space: nowrap;
  color: #2b3a4f;
  font-weight: 700;
  animation: ticker-slide 38s linear infinite;
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.hero-news {
  background:
    linear-gradient(130deg, rgba(9, 23, 43, 0.97), rgba(17, 58, 93, 0.93)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 2px, transparent 2px 18px);
  border-radius: 18px;
  color: #f8fdff;
  padding: 30px;
  border: 1px solid #21445f;
  box-shadow: var(--shadow-md);
}

.tag {
  display: inline-block;
  background: #d8b46a;
  color: #1e1510;
  font-weight: 800;
  border-radius: 8px;
  padding: 7px 10px;
}

.hero-news h1 {
  font-family: "Sora", sans-serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 2.6vw, 2.45rem);
  margin: 12px 0;
}

.hero-news p {
  color: #d9e9f6;
  margin-bottom: 18px;
  max-width: 68ch;
}

.hero-link {
  display: inline-block;
  text-decoration: none;
  background: #fff;
  color: #0f2238;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-link:hover,
.hero-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 37, 62, 0.26);
}

.blog { margin-top: 18px; }

.category-block {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.section-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 6px 0 16px;
  color: var(--muted);
}

.archive-stats {
  margin: 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-weight: 700;
  color: #2e3f56;
  white-space: nowrap;
}

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

.post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, transform 180ms ease;
}

.post:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.thumb-wrap {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 220ms ease;
}

.post:hover .thumb {
  transform: scale(1.03);
}

.post time {
  color: var(--danger);
  font-weight: 800;
  font-size: 0.82rem;
}

.post h3 {
  margin: 8px 0;
  font-size: 1.04rem;
  line-height: 1.35;
}

.post-link {
  color: var(--ink);
  text-decoration: none;
}

.post-link:hover,
.post-link:focus-visible {
  color: #0f5d66;
}

.post p {
  color: var(--muted);
  margin: 0;
  line-height: 1.52;
}

.read-more {
  display: inline-block;
  margin-top: 11px;
  font-weight: 800;
  color: #0f5d66;
  text-decoration: none;
}

.read-more:hover,
.read-more:focus-visible {
  color: #0c4c52;
}

.side-feed {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.side-feed h3 {
  margin: 2px 0 12px;
  font-family: "Sora", sans-serif;
}

.side-posts {
  display: grid;
  gap: 0;
}

.side-item {
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #111b2c, #1f3a56);
  color: #f2f8ff;
}

.side-item h4 {
  margin: 8px 0 0;
  line-height: 1.35;
}

.side-item a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.side-item a:hover,
.side-item a:focus-visible {
  text-decoration: underline;
}

.side-item time {
  font-size: 0.78rem;
  color: #9de8cc;
  font-weight: 700;
}

.widget {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.widget h4 { margin: 2px 0 8px; }
.widget ul { margin: 0; padding-left: 18px; color: var(--muted); }
.widget li { margin-bottom: 6px; }

.footer {
  margin-top: 34px;
  background: #000000;
  color: #d7e1ef;
  border-top: 1px solid #101010;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 30px 0 20px;
}

.footer-grid h4,
.footer-grid h5 {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.01em;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-logo {
  width: 240px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-grid h4 {
  font-size: 1.2rem;
  color: #ffffff;
}

.footer-grid p {
  margin: 0;
  color: #aebbd0;
  line-height: 1.6;
  max-width: 46ch;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: #d7e1ef;
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #e4c487;
}

.footer-bottom {
  min-height: 64px;
  border-top: 1px solid #1b2940;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8fa2bd;
  font-size: 0.92rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 320px;
  gap: 24px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.article-card {
  background:
    radial-gradient(circle at 100% 0, rgba(17, 161, 230, 0.08), transparent 32%),
    var(--surface);
  border: 1px solid #c8d4e3;
  border-radius: 20px;
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-md);
}

.article-cover {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #b9cae0;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.article-topline {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 10px;
  color: #f7fffb;
  background: linear-gradient(90deg, #0f5d66, #19808c);
}

.pill-soft {
  color: #2b3d52;
  background: #e8f1fb;
}

.article-card h1 {
  font-family: "Sora", sans-serif;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 10px 0 12px;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
}

.article-lead {
  color: #253349;
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.62;
}

.article-body p {
  color: #3f4d62;
  line-height: 1.78;
  font-size: 1.02rem;
}

.detail-side {
  height: fit-content;
  display: grid;
  gap: 12px;
  position: sticky;
  top: 94px;
}

.detail-panel {
  background: var(--surface);
  border: 1px solid #ccd8e7;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.detail-panel h4 {
  margin: 2px 0 10px;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.01em;
}

.detail-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pulse-grid {
  display: grid;
  gap: 8px;
}

.pulse-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  border-radius: 10px;
  padding: 10px;
  background: #f3f8ff;
  border: 1px solid #d8e3f0;
}

.pulse-grid span {
  color: #475971;
  font-weight: 700;
}

.pulse-grid strong {
  color: #11243a;
  font-size: 0.9rem;
}

.detail-panel-cta {
  background: linear-gradient(145deg, #101f35, #1d3550);
  border-color: #324d6d;
}

.detail-panel-cta h4,
.detail-panel-cta p {
  color: #e7f5ff;
}

.panel-link {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #0e1a2a;
  background: #d8b46a;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 800;
}

.panel-link:hover,
.panel-link:focus-visible {
  background: #e4c487;
}

.random-posts {
  display: grid;
  gap: 0;
}

.random-item {
  border-radius: 10px;
  border: 1px solid #dbe5f1;
  background: #f6f9fc;
  padding: 10px;
}

.random-item time {
  display: block;
  font-size: 0.76rem;
  color: #5d708a;
  margin-bottom: 4px;
  font-weight: 700;
}

.random-item a {
  color: #19283b;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.35;
}

.random-item a:hover,
.random-item a:focus-visible {
  color: #0f766e;
}

@media (max-width: 980px) {
  .nav-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0;
  }

  .logo-mark {
    width: min(88vw, 340px);
    height: 56px;
  }

  .menu {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .posts {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0 16px;
  }

  .footer-bottom {
    min-height: auto;
    padding: 12px 0 18px;
    display: grid;
    gap: 6px;
  }

  .ticker {
    grid-template-columns: 1fr;
    padding: 10px 0;
  }

  .ticker-content {
    animation-duration: 30s;
  }

  .section-head {
    display: block;
  }

  .archive-stats {
    margin-top: 0;
    white-space: normal;
    display: inline-block;
  }

  .category-block {
    margin-top: 20px;
    padding-top: 14px;
  }
}
