/* ==========================================
   AlmatyNews.kz — Главные стили
   ========================================== */

:root {
  --primary: #1a3a6b;
  --primary-light: #2756a3;
  --accent: #e8340a;
  --accent2: #f5a623;
  --green: #16a34a;
  --teal: #0891b2;
  --purple: #7c3aed;
  --pink: #db2777;
  --dark: #0f172a;
  --dark2: #1e293b;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --gray-border: #e2e8f0;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --shadow-md: 0 8px 32px rgba(0,0,0,.15);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.18);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: #f8fafc;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ==========================================
   TICKER BAR
   ========================================== */
.ticker-bar {
  background: linear-gradient(135deg, var(--accent), #c0290a);
  color: #fff;
  padding: 8px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ticker-label {
  background: rgba(0,0,0,.2);
  padding: 4px 14px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ticker-wrap { flex: 1; overflow: hidden; margin-left: 12px; }
.ticker-move {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 8px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.header-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { font-size: 2rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: -0.03em; }
.logo-sub  { font-size: 0.72rem; color: rgba(255,255,255,.65); font-weight: 400; letter-spacing: 0.05em; }
.header-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.8);
}
.header-social { display: flex; gap: 8px; }
.social-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-btn.tg { background: #0088cc; }
.social-btn.ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-btn.yt { background: #ff0000; }
.social-btn:hover { transform: scale(1.15); }

.main-nav { position: relative; }
.main-nav ul {
  display: flex;
  gap: 2px;
  padding: 6px 0;
  flex-wrap: wrap;
}
.nav-link {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.menu-toggle {
  display: none;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
}

/* ==========================================
   SEARCH CAPTURE
   ========================================== */
.search-capture {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  padding: 24px 0;
  color: #fff;
}
.search-inner { text-align: center; }
.search-capture h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
  opacity: .9;
}
.search-form {
  display: flex;
  max-width: 640px;
  margin: 0 auto 14px;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.search-form input {
  flex: 1;
  border: none;
  padding: 14px 22px;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}
.search-form button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 14px 28px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.search-form button:hover { background: #c0290a; }
.search-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.search-tags span { opacity: .7; }
.stag {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: var(--transition);
}
.stag:hover { background: rgba(255,255,255,.3); }

/* ==========================================
   SECTION LABELS & HEADERS
   ========================================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.breaking-label { background: var(--accent); color: #fff; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-border);
}
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.economy-title  { color: var(--primary); }
.politics-title { color: var(--dark2); }
.transport-title{ color: var(--teal); }
.ecology-title  { color: var(--green); }
.society-title  { color: var(--purple); }
.center-title   { text-align: center; margin-bottom: 12px; justify-content: center; }

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.see-all {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.economy-link  { color: var(--primary); border: 1.5px solid var(--primary); }
.politics-link { color: var(--dark2); border: 1.5px solid var(--dark2); }
.transport-link{ color: var(--teal); border: 1.5px solid var(--teal); }
.ecology-link  { color: var(--green); border: 1.5px solid var(--green); }
.society-link  { color: var(--purple); border: 1.5px solid var(--purple); }
.see-all:hover { opacity: .8; }

/* ==========================================
   HERO SECTION
   ========================================== */
.breaking-hero {
  background: #fff;
  padding: 40px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.hero-main {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 4px;
  z-index: 2;
}
.hero-img-placeholder {
  width: 100%;
  height: 300px;
  position: relative;
}
.hero-img-1 {
  background: linear-gradient(135deg, #1a3a6b 0%, #2756a3 40%, #3b82f6 70%, #60a5fa 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.hero-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.hero-category {
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-block;
}
.hero-content { padding: 24px; }
.hero-content h1 {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 12px;
}
.hero-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.hero-meta {
  display: flex;
  gap: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.hero-meta i { margin-right: 4px; }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.side-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  transition: var(--transition);
}
.side-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.side-card-img {
  width: 110px;
  flex-shrink: 0;
  min-height: 90px;
}
.side-img-2 { background: linear-gradient(135deg, #16a34a, #4ade80); }
.side-img-3 { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.side-img-4 { background: linear-gradient(135deg, #dc2626, #f87171); }
.side-card-body { padding: 14px; flex: 1; }
.side-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.economy-cat  { background: #dbeafe; color: var(--primary); }
.transport-cat{ background: #cffafe; color: var(--teal); }
.sport-cat    { background: #fee2e2; color: #dc2626; }
.side-card-body h2 {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 8px;
}
.side-card-body time { font-size: 0.72rem; color: var(--text-muted); }

/* ==========================================
   CAPTURE BLOCKS
   ========================================== */
.capture-block { padding: 28px 0; }
.capture-blue  { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; }
.capture-red   { background: linear-gradient(135deg, var(--accent), #f97316); color: #fff; }
.capture-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.capture-icon { font-size: 2.5rem; flex-shrink: 0; }
.capture-text h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.capture-text p  { font-size: 0.85rem; opacity: .88; }
.capture-text { flex: 1; min-width: 200px; }
.capture-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.capture-form input {
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  outline: none;
  min-width: 220px;
  font-family: inherit;
}
.capture-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}
.capture-blue .btn-primary { color: #1d4ed8; }
.capture-red  .btn-primary { color: var(--accent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.btn-large { padding: 14px 32px; font-size: 1rem; }

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: inherit;
  transition: var(--transition);
}
.btn-ghost:hover { background: rgba(255,255,255,.15); }

.btn-secondary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-secondary:hover { background: var(--primary-light); transform: translateY(-1px); }

/* ==========================================
   NEWS GRID
   ========================================== */
.news-section { padding: 48px 0; }
.news-dark { background: var(--gray-light); }

.news-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card-img {
  height: 160px;
  position: relative;
  overflow: hidden;
}
.nc-img-1 { background: linear-gradient(135deg, #1e3a5f, #2756a3, #3b82f6); }
.nc-img-2 { background: linear-gradient(135deg, #065f46, #059669, #34d399); }
.nc-img-3 { background: linear-gradient(135deg, #4c1d95, #7c3aed, #a78bfa); }
.nc-img-4 { background: linear-gradient(135deg, #92400e, #d97706, #fbbf24); }
.card-badge {
  position: absolute;
  bottom: 10px; left: 12px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.news-card-body { padding: 18px; }
.news-card-body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 10px;
}
.news-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.card-meta i { margin-right: 3px; }

/* ==========================================
   STATISTICS SECTION
   ========================================== */
.stats-section {
  padding: 56px 0;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #fff;
}
.stats-section .section-title { color: #fff; }
.stats-section .section-desc  { color: rgba(255,255,255,.7); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.stat-card {
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: inherit;
}
.stat-orange { background: linear-gradient(135deg, rgba(234,88,12,.8), rgba(249,115,22,.6)); }
.stat-blue   { background: linear-gradient(135deg, rgba(37,99,235,.8), rgba(59,130,246,.6)); }
.stat-green  { background: linear-gradient(135deg, rgba(22,163,74,.8), rgba(34,197,94,.6)); }
.stat-purple { background: linear-gradient(135deg, rgba(124,58,237,.8), rgba(167,139,250,.6)); }
.stat-number { font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 8px; }
.stat-label  { font-size: 0.82rem; color: rgba(255,255,255,.75); font-weight: 500; margin-bottom: 10px; }
.stat-trend  { font-size: 0.75rem; background: rgba(255,255,255,.15); padding: 4px 10px; border-radius: 20px; display: inline-block; }

/* DATA TABLES */
.table-wrapper {
  overflow-x: auto;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255,255,255,.08);
  margin-top: 8px;
}
.table-wrapper h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.data-table caption {
  caption-side: bottom;
  font-size: 0.72rem;
  color: rgba(255,255,255,.45);
  padding-top: 10px;
  text-align: left;
}
.data-table th {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
}
.data-table tr:hover td { background: rgba(255,255,255,.05); }
.rating-high { color: #4ade80; font-weight: 700; }
.rating-mid  { color: #fbbf24; font-weight: 700; }

/* ==========================================
   POLITICS SECTION
   ========================================== */
.politics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.politics-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.politics-img { height: 220px; }
.p-img-1 { background: linear-gradient(135deg, #0f172a, #1e3a5f, #2756a3); }
.politics-body { padding: 24px; }
.pol-tag {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.politics-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 12px;
}
.politics-body p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.read-more-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}
.read-more-btn:hover { background: var(--primary-light); }
.politics-list { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.pol-list-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-border);
  align-items: flex-start;
}
.pol-list-item:last-child { border-bottom: none; }
.pol-num {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pol-list-item h4 { font-size: 0.88rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; line-height: 1.4; }
.pol-list-item time { font-size: 0.72rem; color: var(--text-muted); }

/* ==========================================
   TRANSPORT SECTION
   ========================================== */
.transport-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}
.transport-visual {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  height: 100%;
}
.metro-scheme h4 { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 20px; }
.metro-lines { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.metro-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--gray-light);
  font-size: 0.83rem;
  font-weight: 600;
}
.line-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.line-1 .line-dot { background: #dc2626; }
.line-2 .line-dot { background: #2563eb; }
.line-3 .line-dot { background: #16a34a; }
.metro-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.ms-item {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  text-align: center;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.4;
}
.ms-item strong { font-size: 1.1rem; font-weight: 800; display: block; margin-bottom: 2px; }
.transport-news { display: flex; flex-direction: column; gap: 16px; }
.t-news-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: var(--transition);
}
.t-news-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.t-icon { font-size: 1.8rem; flex-shrink: 0; }
.t-news-item h4 { font-size: 0.88rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; line-height: 1.4; }
.t-news-item p  { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.t-news-item time { font-size: 0.72rem; color: var(--text-muted); }

/* ==========================================
   ECOLOGY SECTION
   ========================================== */
.ecology-section {
  padding: 48px 0;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}
.ecology-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.air-quality-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border-left: 4px solid var(--green);
}
.air-quality-block h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.aqi-display { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.aqi-value {
  font-size: 3rem;
  font-weight: 900;
  border-radius: var(--radius);
  width: 90px; height: 90px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.aqi-moderate { background: #fef3c7; color: #d97706; }
.aqi-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; color: #d97706; margin-bottom: 8px; }
.aqi-info { flex: 1; }
.aqi-info p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }
.aqi-bars { display: flex; flex-direction: column; gap: 6px; }
.aqi-bar {
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
}
.aqi-good { background: #16a34a; }
.aqi-mod  { background: #d97706; }
.aqi-low  { background: #0891b2; }
.ecology-article {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.ecology-article h3 { font-size: 1.05rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.ecology-article p  { font-size: 0.87rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 10px; }
.eco-news-list {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.eco-news-list h4 { font-size: 0.95rem; font-weight: 800; color: var(--dark); margin-bottom: 18px; }
.eco-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-border);
  align-items: flex-start;
}
.eco-item:last-child { border-bottom: none; }
.eco-icon { font-size: 1.5rem; flex-shrink: 0; }
.eco-item h5 { font-size: 0.85rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; line-height: 1.35; }
.eco-item time { font-size: 0.72rem; color: var(--text-muted); }

/* ==========================================
   TWO COLUMN SECTION
   ========================================== */
.two-col-section { padding: 48px 0; background: var(--gray-light); }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.col-block { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  color: #fff;
}
.sport-header  { background: linear-gradient(135deg, #b91c1c, #dc2626); }
.culture-header{ background: linear-gradient(135deg, #5b21b6, #7c3aed); }
.col-header h2 { font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.col-all { font-size: 0.78rem; background: rgba(255,255,255,.2); padding: 5px 12px; border-radius: 6px; color: #fff; }
.col-all:hover { background: rgba(255,255,255,.35); }
.col-news-item {
  display: flex;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--gray-border);
  align-items: flex-start;
}
.col-news-item:last-child { border-bottom: none; }
.col-item-num {
  font-size: 1.3rem;
  font-weight: 900;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  margin-top: 2px;
}
.sport-num   { color: #dc2626; }
.culture-num { color: #7c3aed; }
.col-item-body h4 { font-size: 0.88rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; line-height: 1.4; }
.col-item-body p  { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.col-item-body time { font-size: 0.72rem; color: var(--text-muted); }

/* ==========================================
   SOCIETY SECTION
   ========================================== */
.society-section { padding: 48px 0; }
.society-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.society-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.society-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.society-img { height: 160px; }
.s-img-1 { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.s-img-2 { background: linear-gradient(135deg, #065f46, #059669); }
.s-img-3 { background: linear-gradient(135deg, #9d174d, #db2777); }
.soc-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin: 14px 16px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.society-card:nth-child(1) .soc-tag { background: #ede9fe; color: #7c3aed; }
.society-card:nth-child(2) .soc-tag { background: #dcfce7; color: #16a34a; }
.society-card:nth-child(3) .soc-tag { background: #fce7f3; color: #db2777; }
.society-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
  padding: 0 16px;
  margin-bottom: 10px;
  line-height: 1.4;
}
.society-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0 16px;
  margin-bottom: 14px;
  line-height: 1.65;
}
.read-link {
  display: inline-block;
  margin: 0 16px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}
.read-link:hover { color: var(--accent); }

/* ==========================================
   TEXT CONTENT SECTION
   ========================================== */
.text-content-section { padding: 56px 0; background: #fff; }
.text-content-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
.text-main-col h2 { font-size: 1.4rem; font-weight: 900; color: var(--dark); margin-bottom: 18px; line-height: 1.3; }
.text-main-col h3 { font-size: 1.05rem; font-weight: 800; color: var(--primary); margin: 24px 0 12px; }
.text-main-col p  { font-size: 0.92rem; color: var(--text); line-height: 1.8; margin-bottom: 14px; }
.text-widget {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.widget-orange { background: linear-gradient(135deg, #fff7ed, #fef3c7); }
.text-widget h4 { font-size: 0.95rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.city-facts li {
  display: flex;
  gap: 8px;
  font-size: 0.83rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: var(--text-muted);
}
.city-facts li:last-child { border-bottom: none; }
.city-facts li strong { color: var(--dark); font-weight: 600; min-width: 120px; flex-shrink: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
  background: #fff;
  border: 1px solid var(--gray-border);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 20px;
  transition: var(--transition);
}
.tag-item:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==========================================
   COMPARE TABLE
   ========================================== */
.compare-section { padding: 56px 0; background: var(--gray-light); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-table caption {
  caption-side: bottom;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-top: 10px;
  text-align: left;
}
.compare-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  text-align: left;
  font-size: 0.82rem;
}
.compare-table .highlight-col {
  background: linear-gradient(135deg, var(--accent), #f97316);
}
.compare-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--gray-border);
  color: var(--text);
}
.compare-table td.highlight-col {
  background: #fff7ed;
  font-weight: 600;
  color: var(--accent);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--gray-light); }
.compare-table tr:hover td.highlight-col { background: #fef3c7; }
.compare-section .table-wrapper {
  background: transparent;
  border: none;
  padding: 0;
}
.compare-section .table-wrapper { overflow-x: auto; }

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section { padding: 56px 0; background: #fff; }
.faq-grid { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 0 auto 32px; }
.faq-item {
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-q {
  width: 100%;
  background: #fff;
  border: none;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  text-align: left;
  gap: 16px;
  transition: var(--transition);
}
.faq-q:hover { background: var(--gray-light); }
.faq-q[aria-expanded="true"] { background: var(--primary); color: #fff; }
.faq-q i { flex-shrink: 0; font-size: 0.9rem; transition: transform 0.3s; }
.faq-q[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 18px 22px;
  background: #f8fafc;
  border-top: 1px solid var(--gray-border);
}
.faq-a.open { display: block; animation: fadeIn 0.3s ease; }
.faq-a p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; }
.faq-more { text-align: center; }
@keyframes fadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }

/* ==========================================
   USEFUL LINKS
   ========================================== */
.useful-section { padding: 56px 0; background: var(--gray-light); }
.useful-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 16px;
}
.useful-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
}
.useful-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.useful-gov     { border-top-color: var(--primary); }
.useful-trans   { border-top-color: var(--teal); }
.useful-health  { border-top-color: #dc2626; }
.useful-edu     { border-top-color: var(--purple); }
.useful-eco     { border-top-color: var(--green); }
.useful-tour    { border-top-color: var(--accent2); }
.useful-card i { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.useful-gov i     { color: var(--primary); }
.useful-trans i   { color: var(--teal); }
.useful-health i  { color: #dc2626; }
.useful-edu i     { color: var(--purple); }
.useful-eco i     { color: var(--green); }
.useful-tour i    { color: var(--accent2); }
.useful-card h4 { font-size: 0.85rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.useful-card p  { font-size: 0.75rem; color: var(--text-muted); }

/* ==========================================
   FOOTER CAPTURE
   ========================================== */
.footer-capture {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #fff;
  padding: 56px 0;
}
.footer-capture-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.fc-left h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }
.fc-left p  { font-size: 0.9rem; opacity: .8; margin-bottom: 20px; }
.fc-benefits { display: flex; flex-direction: column; gap: 8px; }
.fc-benefits li { font-size: 0.85rem; opacity: .85; }
.fc-form { display: flex; flex-direction: column; gap: 14px; }
.fc-form input {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.fc-form input::placeholder { color: rgba(255,255,255,.5); }
.fc-form input:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.15); }
.fc-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.fc-check input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.fc-check span { font-size: 0.78rem; opacity: .75; line-height: 1.5; }
.fc-check a { color: #60a5fa; text-decoration: underline; }
.fc-form .btn-primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
  justify-content: center;
  padding: 14px;
}
.fc-form .btn-primary:hover { background: #c0290a; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: #0a0f1e;
  color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-about p { font-size: 0.83rem; line-height: 1.75; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.fsoc {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
}
.fsoc:hover { transform: translateY(-2px); color: #fff; }
.fsoc.tg:hover { background: #0088cc; }
.fsoc.ig:hover { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
.fsoc.yt:hover { background: #ff0000; }
.fsoc.fb:hover { background: #1877f2; }
.fsoc.vk:hover { background: #4680c2; }
.footer-nav h4 { font-size: 0.85rem; font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: 0.04em; }
.footer-nav ul { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { font-size: 0.83rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-nav a:hover { color: #fff; padding-left: 4px; }
.footer-contacts h4 { font-size: 0.85rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.footer-contacts address { font-style: normal; }
.footer-contacts p { font-size: 0.83rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-contacts i { color: var(--accent); width: 16px; flex-shrink: 0; }
.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,.4); line-height: 1.7; }
.footer-disclaimer { margin-top: 6px; }

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: none; }
.back-to-top:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ==========================================
   TOAST
   ========================================== */
.toast {
  position: fixed;
  bottom: 80px; right: 24px;
  background: var(--dark);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 9999;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: none; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1100px) {
  .news-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .useful-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid       { grid-template-columns: 1fr; }
  .politics-grid   { grid-template-columns: 1fr; }
  .transport-grid  { grid-template-columns: 1fr; }
  .ecology-grid    { grid-template-columns: 1fr; }
  .two-col-grid    { grid-template-columns: 1fr; }
  .society-grid    { grid-template-columns: 1fr; }
  .text-content-grid{ grid-template-columns: 1fr; }
  .footer-capture-inner { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav ul { display: none; }
  .main-nav ul.open { display: flex; flex-direction: column; background: var(--dark2); padding: 12px; border-radius: var(--radius-sm); margin-top: 8px; }
  .menu-toggle { display: block; }
  .header-meta .header-date, .header-temp { display: none; }
  .news-grid-4 { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .useful-grid { grid-template-columns: repeat(2,1fr); }
  .capture-inner { flex-direction: column; }
  .hero-content h1 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .useful-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta   { gap: 10px; }
  .search-form { flex-direction: column; border-radius: var(--radius-sm); }
  .search-form input, .search-form button { border-radius: var(--radius-sm); }
}

/* ==========================================
   PAGE: PRIVACY / TERMS / FAQ
   ========================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 12px; }
.page-hero p  { font-size: 1rem; opacity: .8; }
.page-content { padding: 56px 0; background: #fff; }
.page-content .container { max-width: 860px; }
.page-content h2 { font-size: 1.3rem; font-weight: 800; color: var(--dark); margin: 32px 0 14px; padding-top: 8px; border-top: 2px solid var(--gray-border); }
.page-content h2:first-child { border-top: none; margin-top: 0; }
.page-content p  { font-size: 0.92rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 14px; }
.page-content ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.page-content ul li { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 6px; }
.page-content strong { color: var(--dark); }
.page-content a { color: var(--primary); text-decoration: underline; }
.info-box {
  background: var(--gray-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
