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

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:   #1A73E8;
  --blue2:  #1558C0;
  --header: #2C2C2C;
  --dark:   #1A1A1A;
  --mid:    #555555;
  --light:  #F5F6F8;
  --border: #E4E6EA;
  --white:  #FFFFFF;
}

html { font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ===================== TAGS ===================== */
.tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.tag-blue   { background: #E3EFFD; color: #1A73E8; }
.tag-green  { background: #EAF3DE; color: #2D7D46; }
.tag-red    { background: #FCEBEB; color: #A32D2D; }
.tag-amber  { background: #FAEEDA; color: #854F0B; }
.tag-gray   { background: #F0EEEB; color: #666; }

/* ===================== HEADER ===================== */
.site-header {
  background: var(--header);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 54px;
}
.logo {
  display: flex; align-items: center; gap: 2px;
  font-family: 'Inter', sans-serif; font-size: 20px;
  font-weight: 800; color: #fff; letter-spacing: -.5px;
}
.logo-4 { color: var(--blue); }
.logo-dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; margin: 0 1px 1px; flex-shrink: 0; }

.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links a {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.6); letter-spacing: .02em; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* ===================== DATE BAR ===================== */
.date-bar { background: var(--light); border-bottom: 1px solid var(--border); padding: 7px 0; }
.date-bar-inner { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.date-str   { color: var(--mid); font-weight: 500; }
.trend-line { color: var(--blue); font-weight: 700; letter-spacing: .04em; }

/* ===================== AD SLOTS ===================== */
.ad-slot {
  background: var(--light); border: 1px dashed var(--border);
  border-radius: 6px; text-align: center; position: relative;
  margin: 0 0 28px;
}
.ad-slot-banner { padding: 14px; min-height: 70px; display: flex; align-items: center; justify-content: center; }
.ad-slot-square { padding: 14px; min-height: 260px; display: flex; align-items: center; justify-content: center; }
.ad-label {
  position: absolute; top: 5px; left: 10px;
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #aaa;
}
.ad-placeholder { font-size: 12px; color: #bbb; font-weight: 500; }

/* ===================== HERO ===================== */
.hero { position: relative; overflow: hidden; }
.hero-img { width: 100%; height: 460px; object-fit: cover; filter: brightness(.65); }
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 48px 0 36px;
  background: linear-gradient(transparent, rgba(10,6,3,.88));
}
.hero-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 3px; margin-bottom: 14px;
}
.hero-h1 {
  font-family: 'Inter', sans-serif; font-size: 36px; font-weight: 800;
  color: #fff; line-height: 1.15; max-width: 620px; margin-bottom: 12px;
}
.hero-sub { font-size: 15px; color: rgba(255,255,255,.75); max-width: 500px; line-height: 1.6; margin-bottom: 20px; }
.hero-meta { display: flex; align-items: center; gap: 14px; }
.hero-btn {
  font-size: 13px; font-weight: 700; padding: 10px 22px;
  background: var(--blue); color: #fff; border-radius: 4px; transition: background .2s;
}
.hero-btn:hover { background: var(--blue2); }
.hero-time { font-size: 12px; color: rgba(255,255,255,.5); }

/* ===================== THREE MINI CARDS ===================== */
.three-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px; background: var(--border);
  border-bottom: 1px solid var(--border);
}
.sc { background: var(--white); overflow: hidden; transition: background .2s; }
.sc:hover { background: var(--light); }
.sc-img-wrap { overflow: hidden; height: 140px; }
.sc-img { width: 100%; height: 140px; object-fit: cover; transition: transform .35s ease; }
.sc:hover .sc-img { transform: scale(1.06); }
.sc-body { padding: 14px 16px 16px; }
.sc-cat { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.sc-title { font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.sc-min { font-size: 11px; color: #999; }

/* ===================== SECTION HEADER ===================== */
.sec { padding: 28px 0 0; }
.sec-hdr {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--dark);
}
.sec-h { font-size: 20px; font-weight: 800; }
.sec-more { font-size: 12px; font-weight: 700; color: var(--blue); }
.sec-more:hover { text-decoration: underline; }

/* ===================== FEATURE ===================== */
.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 28px;
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.feature-kicker { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.feature-title { font-size: 22px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.feature-desc { font-size: 14px; color: var(--mid); line-height: 1.65; margin-bottom: 18px; }
.feature-btn {
  display: inline-block; align-self: flex-start;
  font-size: 13px; font-weight: 700; padding: 10px 20px;
  background: var(--blue); color: #fff; border-radius: 4px; transition: background .2s;
}
.feature-btn:hover { background: var(--blue2); }

/* ===================== CARDS GRID ===================== */
.cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.c {
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; background: var(--white); transition: box-shadow .2s;
}
.c:hover { box-shadow: 0 6px 20px rgba(0,0,0,.09); }
.c-img-wrap { overflow: hidden; height: 160px; }
.c-img { width: 100%; height: 160px; object-fit: cover; transition: transform .35s; }
.c:hover .c-img { transform: scale(1.06); }
.c-body { padding: 14px 16px 16px; }
.c-cat { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.c-title { font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.c-desc { font-size: 13px; color: var(--mid); line-height: 1.55; margin-bottom: 10px; }
.c-min { font-size: 11px; color: #aaa; }

/* ===================== TOOLS STRIPE ===================== */
.tools-bg {
  background: var(--light); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 28px 0 32px; margin-bottom: 28px;
}
.tools-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 18px; }
.tool {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 12px; text-align: center; transition: border-color .2s;
}
.tool:hover { border-color: var(--blue); }
.tool-ico { width: 38px; height: 38px; border-radius: 10px; margin: 0 auto 9px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.tool-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.tool-desc { font-size: 11px; color: var(--mid); line-height: 1.4; }
.tool-link { display: block; font-size: 11px; color: var(--blue); font-weight: 700; margin-top: 7px; }

/* ===================== LIST ARTICLES ===================== */
.list-art { margin-bottom: 28px; }
.la {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: center;
}
.la:last-child { border-bottom: none; }
.la:hover .la-title { color: var(--blue); }
.la-img { width: 90px; height: 64px; object-fit: cover; border-radius: 6px; }
.la-cat { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.la-title { font-size: 14px; font-weight: 600; line-height: 1.4; transition: color .2s; }
.la-min { font-size: 11px; color: #aaa; margin-top: 4px; }

/* ===================== CASES ===================== */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.case { border-radius: 10px; overflow: hidden; position: relative; height: 180px; }
.case img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); transition: filter .3s; }
.case:hover img { filter: brightness(.45); }
.case-over { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; }
.case-cat { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 6px; }
.case-title { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.25; }
.case-time { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 5px; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--header); padding: 36px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.footer-logo { margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.6; max-width: 200px; }
.fc-title { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 12px; }
.fc a { display: block; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 7px; }
.fc a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px;
}
.footer-copy { color: rgba(255,255,255,.3); }

/* ===================== AFFILIATE (FOOTER BLOCK) ===================== */
.affiliate {
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
}
.affiliate-title { font-size: 12px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.affiliate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.affiliate-card {
  display: block;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.10);
  transition: border-color .2s, transform .15s;
}
.affiliate-card:hover { border-color: rgba(26,115,232,.7); transform: translateY(-1px); }
.affiliate-name { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.affiliate-desc { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.45; }
.affiliate-cta { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; color: rgba(26,115,232,.95); }

/* ===================== BREADCRUMB ===================== */
.breadcrumb { padding: 12px 0; font-size: 12px; color: #aaa; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 6px; }

/* ===================== ARTICLE ===================== */
.article-header { padding: 32px 0 0; }
.article-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; margin-bottom: 40px; }
.article-hero-img { width: 100%; height: 400px; object-fit: cover; border-radius: 10px; margin-bottom: 28px; }
.article-kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.article-title { font-size: 34px; font-weight: 800; line-height: 1.18; margin-bottom: 14px; max-width: 700px; }
.article-lead { font-size: 17px; color: var(--mid); line-height: 1.65; max-width: 680px; margin-bottom: 18px; }
.article-meta { display: flex; gap: 14px; align-items: center; font-size: 12px; color: #aaa; margin-bottom: 28px; }

.article-body h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.article-body p { font-size: 15px; line-height: 1.75; margin-bottom: 18px; color: #333; }
.article-body ul { margin: 0 0 18px 20px; }
.article-body ul li { font-size: 15px; line-height: 1.75; color: #333; margin-bottom: 6px; }
.article-body .highlight {
  background: #EEF4FD; border-left: 3px solid var(--blue);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 20px 0;
  font-size: 15px; line-height: 1.65;
}

/* Article sidebar */
.article-sidebar { position: sticky; top: 72px; }
.sidebar-widget { border: 1px solid var(--border); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.sidebar-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sidebar-links a { display: block; font-size: 13px; color: var(--mid); padding: 6px 0; border-bottom: 1px solid var(--border); }
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--blue); }

/* ===================== RELATED ===================== */
.related { padding: 32px 0 40px; border-top: 1px solid var(--border); margin-top: 40px; }
.related-title { font-size: 20px; font-weight: 800; margin-bottom: 20px; }

/* ===================== CATEGORY PAGE ===================== */
.cat-header { background: var(--header); color: #fff; padding: 36px 0; margin-bottom: 0; }
.cat-h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.cat-desc { font-size: 15px; color: rgba(255,255,255,.6); }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; padding: 28px 0; }

/* ===================== TEMPLATES ===================== */
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 28px 0; }
.tpl-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 20px;
  display: flex; align-items: center; gap: 16px; transition: border-color .2s;
}
.tpl-card:hover { border-color: var(--blue); }
.tpl-ico { width: 44px; height: 44px; border-radius: 10px; background: #EEF4FD; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.tpl-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.tpl-desc { font-size: 12px; color: var(--mid); }
.tpl-btn { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--blue); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1000px) {
  .article-wrap { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 900px) {
  /* Keep navigation accessible on mobile (scrollable row) */
  .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  .header-inner nav { width: 100%; }
  .nav-links {
    display: flex;
    gap: 14px;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .nav-links li { flex: 0 0 auto; }
  .hero-h1 { font-size: 26px; }
  .three-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-img { height: 320px; }
  .article-title { font-size: 24px; }
  .tpl-grid { grid-template-columns: 1fr; }
  .date-bar-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .trend-line { line-height: 1.35; }
  .footer-bottom { flex-wrap: wrap; gap: 10px; }
  .affiliate-grid { grid-template-columns: 1fr; }
}

/* ===================== STATS STRIP ===================== */
.stats-strip {
  background: var(--dark);
  padding: 0;
  border-bottom: 3px solid var(--blue);
}
.stats-strip-inner {
  display: flex;
  align-items: stretch;
}
.stat-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background .2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,.04); }
.stat-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.stat-num {
  font-size: 20px; font-weight: 800; color: #fff; line-height: 1;
  margin-bottom: 2px;
}
.stat-num.up   { color: #4CAF50; }
.stat-num.down { color: #F44336; }
.stat-num.warn { color: #FFC107; }
.stat-label { font-size: 11px; color: rgba(255,255,255,.5); font-weight: 500; line-height: 1.3; }

@media (max-width: 600px) {
  .stats-strip-inner { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ===================== 6-TILE GRID ===================== */
.cards-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 900px) { .cards-6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards-6 { grid-template-columns: 1fr; } }

/* ===================== CALCULATORS ===================== */
.calc-input {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; font-family: 'Inter', sans-serif;
  transition: border-color .2s; outline: none;
}
.calc-input:focus { border-color: var(--blue); }
.calc-result {
  background: #EEF4FD; border: 2px solid var(--blue);
  border-radius: 12px; padding: 24px;
}
.calc-result-num {
  font-size: 32px; font-weight: 800; color: var(--dark); line-height: 1.1;
}
@media (max-width:760px) {
  .calc-grid { grid-template-columns: 1fr !important; }
}
/* =========================================================
   RSS LIVE LINE
========================================================= */

.rss-live-line{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  max-width:860px;
  padding:10px 14px;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  backdrop-filter:blur(4px);
  font-size:13px;
  line-height:1.5;
  color:#fff;
}

.rss-live-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ff6b00;
  flex:0 0 auto;
  box-shadow:0 0 10px rgba(255,107,0,.7);
}

.rss-live-title{
  font-weight:700;
  color:#ffb36b;
}

@media (max-width:768px){

  .rss-live-line{
    font-size:12px;
    gap:8px;
    padding:9px 12px;
  }

}
