/* ═══════════════════════════════════════════════════════════════
   INFORMACIJE CRNA GORA — Design System v3.0
   Mobile-first | #c0392b brand | Inter font
═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --red:      #c0392b;
  --red-d:    #a93226;
  --red-l:    #fef2f2;
  --red-m:    rgba(192,57,43,.1);
  --dk:       #111827;
  --tx:       #1f2937;
  --mid:      #6b7280;
  --faint:    #9ca3af;
  --bg:       #f3f5f7;
  --surf:     #ffffff;
  --bd:       #e5e7eb;
  --bd2:      #f3f4f6;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
  --gap:      16px;
  --r1:       6px;
  --r2:       10px;
  --r3:       14px;
  --rf:       999px;
  --sh1:      0 1px 3px rgba(0,0,0,.07);
  --sh2:      0 4px 14px rgba(0,0,0,.09);
  --sh3:      0 8px 28px rgba(0,0,0,.13);
  --tr:       .18s ease;
  --max:      1380px;
  --nav-h:    62px;
  --top-h:    38px;
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--tx);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
ul, ol { list-style: none; }
input, select, textarea { font-family: var(--font); }

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes ticker-run { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes fade-in { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ─── LAYOUT ────────────────────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}
main { width: 100%; overflow-x: hidden; }

/* ─── BADGES ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 700 10px/1 var(--font);
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r1);
  flex-shrink: 0;
}
.badge-red  { background: var(--red); color: #fff; }
.badge-live { background: var(--red); color: #fff; }
.badge-live::before {
  content: '';
  width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.1s ease infinite;
}
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-dark { background: var(--dk); color: #fff; }

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 13px/1 var(--font);
  padding: 10px 22px;
  border-radius: var(--r1);
  border: none;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-red   { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); }
.btn-dark  { background: var(--dk); color: #fff; }
.btn-dark:hover { background: #1f2937; }
.btn-outline { background: transparent; color: var(--red); border: 1.5px solid var(--red); padding: 8px 20px; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-gold  { background: linear-gradient(135deg,#f1c40f,#f39c12); color: #000; font-weight: 800; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(241,196,15,.4); }

/* ─── SECTION HEADER ────────────────────────────────────────── */
.sec-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 14px;
}
.sec-hd::before {
  content: '';
  width: 4px; height: 20px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}
.sec-hd-title {
  font: 800 14px/1 var(--font);
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--dk);
  white-space: nowrap;
}
.sec-hd-line { flex: 1; height: 1px; background: var(--bd); }
.sec-hd-link {
  font: 700 11px/1 var(--font);
  color: var(--red);
  padding: 4px 10px;
  border: 1.5px solid rgba(192,57,43,.25);
  border-radius: var(--r1);
  white-space: nowrap;
  transition: all var(--tr);
}
.sec-hd-link:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ─── NEWS CARD (universal) ─────────────────────────────────── */
.nc {
  background: var(--surf);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: var(--sh1);
  transition: transform var(--tr), box-shadow var(--tr);
  display: flex;
  flex-direction: column;
}
.nc:hover { transform: translateY(-3px); box-shadow: var(--sh3); }
.nc-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bd2);
  flex-shrink: 0;
}
.nc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .42s ease;
}
.nc:hover .nc-img img { transform: scale(1.05); }
.nc-img .badge { position: absolute; top: 8px; left: 8px; }
.nc-img-placeholder { width: 100%; height: 100%; background: var(--bd2); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.nc-body {
  padding: 13px 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.nc-title {
  font: 700 13.5px/1.42 var(--font);
  color: var(--tx);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--tr);
}
.nc:hover .nc-title, a.nc:hover .nc-title { color: var(--red); }
.nc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 10.5px/1 var(--font);
  color: var(--faint);
  margin-top: auto;
  flex-wrap: wrap;
}
.nc-meta-cat { color: var(--red); font-weight: 700; }
.nc-meta-sep { color: var(--bd); }

/* ─── NEWS ROW (list) ───────────────────────────────────────── */
.nr {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd);
  text-decoration: none;
  color: inherit;
  transition: background var(--tr);
}
.nr:last-of-type { border-bottom: none; }
.nr:hover { background: var(--bd2); }
.nr-img {
  width: 96px; height: 64px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}
.nr-noimg {
  width: 96px; height: 64px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--bd);
  flex-shrink: 0;
}
.nr-body { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.nr-title {
  font: 700 13.5px/1.38 var(--font);
  color: var(--tx);
  transition: color var(--tr);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nr:hover .nr-title { color: var(--red); }
.nr-meta { display: flex; align-items: center; gap: 6px; font: 600 11px/1 var(--font); color: var(--faint); flex-wrap: wrap; }
.nr-cat { color: var(--red); font-weight: 700; }
.nr-sep { color: var(--bd); }

/* ─── SIDEBAR ───────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.sw {
  background: var(--surf);
  border-radius: var(--r2);
  box-shadow: var(--sh1);
  overflow: hidden;
}
.sw-hd {
  background: var(--dk);
  color: #fff;
  padding: 10px 14px;
  font: 700 10.5px/1 var(--font);
  letter-spacing: .8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sw-bd { padding: 10px 14px; }
.sp-item {
  display: flex;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--bd);
  text-decoration: none;
  color: inherit;
}
.sp-item:last-child { border-bottom: none; padding-bottom: 0; }
.sp-item img { width: 60px; height: 44px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.sp-item-body { display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.sp-item-title {
  font: 600 12px/1.38 var(--font);
  color: var(--tx);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--tr);
}
.sp-item:hover .sp-item-title { color: var(--red); }
.sp-item-date { font: 500 11px/1 var(--font); color: var(--faint); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-cloud a {
  font: 600 11px/1 var(--font);
  background: var(--bg);
  color: var(--tx);
  padding: 5px 10px;
  border-radius: var(--r1);
  border: 1px solid var(--bd);
  transition: all var(--tr);
}
.tag-cloud a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.wc {
  background: var(--bg);
  border-radius: 6px;
  padding: 8px 10px;
  font: 500 11.5px/1.2 var(--font);
  color: var(--mid);
}
.wc b { display: block; font: 800 18px/1 var(--font); color: var(--dk); margin-top: 3px; }
.ph-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--bd);
  font: 500 13px/1 var(--font);
  color: var(--mid);
}
.ph-item:last-child { border-bottom: none; }
.ph-num { font: 800 15px/1 var(--font); color: var(--red); text-decoration: none; }
.ph-num:hover { text-decoration: underline; }
.sw-oglasi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 18px 14px;
  background: linear-gradient(135deg,#1e293b,#0f172a);
  border: 2px solid #f1c40f;
  border-radius: var(--r2);
  text-decoration: none;
  transition: transform var(--tr);
}
.sw-oglasi:hover { transform: translateY(-2px); }
.sw-oglasi .ico { font-size: 26px; }
.sw-oglasi .ttl { color: #f1c40f; font: 900 14px/1 var(--font); text-transform: uppercase; letter-spacing: 1px; }
.sw-oglasi .sub { color: #94a3b8; font: 600 10px/1 var(--font); text-transform: uppercase; }
.sw-link { display: block; margin-top: 10px; font: 700 12px/1 var(--font); color: var(--red); }
.sw-link:hover { text-decoration: underline; }

/* ─── PAGINATION ────────────────────────────────────────────── */
.pager {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 28px 0;
}
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 12px;
  border-radius: var(--r1);
  font: 700 13px/1 var(--font);
  background: var(--surf);
  border: 1px solid var(--bd);
  color: var(--tx);
  text-decoration: none;
  transition: all var(--tr);
}
.pager a:hover { border-color: var(--red); color: var(--red); }
.pager span.current { background: var(--red); border-color: var(--red); color: #fff; }
.pager span.dots { background: transparent; border-color: transparent; color: var(--faint); }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: var(--r1); font: 700 13px/1 var(--font); background: var(--surf); border: 1px solid var(--bd); color: var(--tx); text-decoration: none; transition: all var(--tr); margin: 0 2px; }
.page-numbers:hover { border-color: var(--red); color: var(--red); }
.page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
.page-numbers.dots { background: transparent; border-color: transparent; color: var(--faint); }

/* ─── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font: 500 12px/1 var(--font);
  color: var(--faint);
  padding: 14px 0 10px;
}
.breadcrumb a { color: var(--mid); transition: color var(--tr); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { color: var(--bd); font-size: 11px; }
.breadcrumb-current { color: var(--tx); font-weight: 600; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── TICKER ────────────────────────────────────────────────── */
.ticker {
  background: var(--red);
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
}
.ticker-lbl {
  flex-shrink: 0;
  background: rgba(0,0,0,.22);
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font: 800 9.5px/1 var(--font);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.12);
  gap: 5px;
}
.ticker-track { flex: 1; overflow: hidden; }
.ticker-inner {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: ticker-run 60s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-inner a {
  color: rgba(255,255,255,.88);
  font: 500 12.5px/1 var(--font);
  padding: 0 32px 0 0;
  transition: color var(--tr);
}
.ticker-inner a::before { content: '▶ '; opacity: .5; }
.ticker-inner a:hover { color: #fff; text-decoration: underline; }

/* ─── HEADER ────────────────────────────────────────────────── */
.hdr-top {
  background: #111827;
  color: rgba(255,255,255,.7);
  height: var(--top-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.hdr-top-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hdr-top-left { display: flex; align-items: center; gap: 14px; }
.hdr-date { font: 500 11.5px/1 var(--font); color: rgba(255,255,255,.5); }
.hdr-flag { font: 600 12px/1 var(--font); color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 4px; }
.hdr-top-right { display: flex; align-items: center; gap: 7px; }
.hdr-top-right a { color: rgba(255,255,255,.58); font: 500 11.5px/1 var(--font); transition: color var(--tr); }
.hdr-top-right a:hover { color: #fff; }
.hdr-top-sep { color: rgba(255,255,255,.18); margin: 0 2px; }
.hdr-login-btn {
  background: var(--red);
  color: #fff !important;
  padding: 4px 12px;
  border-radius: var(--r1);
  font: 600 11px/1 var(--font);
  transition: background var(--tr) !important;
}
.hdr-login-btn:hover { background: var(--red-d) !important; }
.hdr-user-name { font-weight: 600 !important; color: rgba(255,255,255,.8) !important; }

.hdr-main {
  background: #fff;
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 900;
  transition: box-shadow .25s;
}
.hdr-main.scrolled { box-shadow: 0 4px 22px rgba(0,0,0,.11); }
.hdr-main-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.hdr-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.hdr-logo-text { font: 900 20px/1 var(--font); color: var(--dk); letter-spacing: -.5px; }
.hdr-logo-text em { font-style: normal; color: var(--red); }
.hdr-logo .custom-logo-link { display: flex; align-items: center; }
.hdr-logo .custom-logo { max-height: 46px !important; width: auto !important; }
.hdr-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: flex-end; }
.hdr-nav ul { display: flex; align-items: center; gap: 1px; list-style: none; }
.hdr-nav ul li a {
  display: block;
  padding: 7px 12px;
  font: 600 13.5px/1 var(--font);
  color: #374151;
  border-radius: var(--r1);
  transition: background var(--tr), color var(--tr);
  white-space: nowrap;
}
.hdr-nav ul li a:hover { background: var(--bd2); color: var(--red); }
.hdr-nav ul .current-menu-item > a,
.hdr-nav ul .current_page_item > a { color: var(--red); background: var(--red-m); }
.hdr-search-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--r1);
  color: #6b7280;
  display: flex;
  align-items: center;
  transition: background var(--tr), color var(--tr);
  flex-shrink: 0;
}
.hdr-search-btn:hover { background: var(--bd2); color: var(--red); }
.hdr-search-drawer {
  display: none;
  background: #f9fafb;
  border-top: 1px solid var(--bd);
  padding: 12px 18px;
}
.hdr-search-drawer.open { display: block; }
.hdr-search-form {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}
.hdr-search-form input {
  flex: 1;
  padding: 9px 14px;
  border: 2px solid var(--bd);
  border-radius: var(--r1);
  font: 400 14px/1 var(--font);
  outline: none;
  transition: border-color var(--tr);
  background: #fff;
}
.hdr-search-form input:focus { border-color: var(--red); }
.hdr-search-form button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--r1);
  font: 700 13px/1 var(--font);
  transition: background var(--tr);
}
.hdr-search-form button:hover { background: var(--red-d); }
.hdr-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--bd);
  border-radius: var(--r1);
  padding: 7px 9px;
  flex-shrink: 0;
}
.hdr-burger span { display: block; width: 19px; height: 2px; background: #374151; border-radius: 1px; transition: all .22s; }
.hdr-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr-burger.open span:nth-child(2) { opacity: 0; }
.hdr-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hdr-mobile {
  display: none;
  background: #fff;
  border-top: 1px solid var(--bd);
  padding: 10px 18px 14px;
}
.hdr-mobile.open { display: block; }
.hdr-mobile ul { display: flex; flex-direction: column; gap: 2px; }
.hdr-mobile ul li a {
  display: block;
  padding: 11px 13px;
  font: 600 15px/1 var(--font);
  color: var(--tx);
  border-radius: 6px;
  transition: background var(--tr);
}
.hdr-mobile ul li a:hover { background: var(--bd2); color: var(--red); }
.hdr-mobile ul .current-menu-item > a { color: var(--red); }
.hdr-mobile-cta {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bd);
}
.hdr-mobile-cta a {
  display: block;
  background: linear-gradient(135deg,#f1c40f,#f39c12);
  color: #000 !important;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font: 800 13px/1 var(--font);
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* ─── MOBILE BOTTOM NAV ─────────────────────────────────────── */
.mob-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 850;
  background: #fff;
  border-top: 1px solid var(--bd);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom, 4px);
}
.mob-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 56px;
}
.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  text-decoration: none;
  color: var(--mid);
  border-radius: 6px;
  font: 600 9.5px/1 var(--font);
  min-width: 48px;
  transition: color var(--tr);
}
.mob-nav-item svg { width: 22px; height: 22px; }
.mob-nav-item.active { color: var(--red); }
.mob-nav-item.active svg { stroke: var(--red); }

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,.6);
  margin-top: 24px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 44px 0 30px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo-text {
  font: 800 18px/1 var(--font);
  color: #fff;
  letter-spacing: -.3px;
  margin-bottom: 12px;
  display: block;
  text-decoration: none;
}
.footer-logo-text em { font-style: normal; color: var(--red); }
.footer-logo .custom-logo-link { display: block; margin-bottom: 12px; }
.footer-logo .custom-logo { max-height: 38px !important; width: auto !important; }
.footer-tagline { font: 400 13px/1.65 var(--font); color: rgba(255,255,255,.45); margin-bottom: 18px; max-width: 260px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  transition: background var(--tr), color var(--tr);
}
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-col h4 {
  font: 700 11px/1 var(--font);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.85);
  margin-bottom: 15px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font: 400 13px/1 var(--font); color: rgba(255,255,255,.45); transition: color var(--tr); }
.footer-col ul li a:hover { color: #fff; }
.footer-viber-text { font: 400 12.5px/1.55 var(--font); color: rgba(255,255,255,.45); margin-bottom: 14px; }
.footer-viber-btn {
  display: inline-block;
  background: #7360f2;
  color: #fff;
  font: 700 11.5px/1 var(--font);
  padding: 9px 16px;
  border-radius: var(--r1);
  letter-spacing: .3px;
  transition: background var(--tr);
}
.footer-viber-btn:hover { background: #5c4bd6; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  font: 400 12px/1 var(--font);
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom strong { color: rgba(255,255,255,.55); }
.footer-legal { display: flex; gap: 14px; }
.footer-legal a { color: rgba(255,255,255,.3); transition: color var(--tr); }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 75px;
  width: 40px; height: 40px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  z-index: 700;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--red-d); }

/* ─── HOMEPAGE ──────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 62% 38%;
  gap: 3px;
  background: #000;
}
.hero-main { position: relative; height: 520px; overflow: hidden; }
.hero-main > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: transform .5s;
}
.hero-main:hover > img { transform: scale(1.02); }
.hero-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.38) 45%, transparent 100%); }
.hero-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 24px; }
.hero-ttl {
  font: 800 clamp(18px,2.2vw,30px)/1.22 var(--font);
  color: #fff;
  margin: 10px 0 8px;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.hero-meta { font: 500 12px/1 var(--font); color: rgba(255,255,255,.5); }
.hero-stack { display: flex; flex-direction: column; gap: 3px; height: 520px; }
.hero-sm { position: relative; flex: 1; overflow: hidden; }
.hero-sm > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .76;
  transition: transform .45s;
}
.hero-sm:hover > img { transform: scale(1.04); }
.hero-sm-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.28) 65%, transparent 100%); }
.hero-sm-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 13px 14px; }
.hero-sm-ttl { font: 700 13.5px/1.32 var(--font); color: #fff; margin: 6px 0 4px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero-sm-meta { font: 500 11px/1 var(--font); color: rgba(255,255,255,.47); }

/* Card strip (4 columns) */
.card-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 0 4px; }

/* Main layout (content + sidebar) */
.main-layout { display: grid; grid-template-columns: 1fr 288px; gap: 22px; padding-bottom: 48px; }
.nlist { background: var(--surf); border-radius: var(--r2); box-shadow: var(--sh1); overflow: hidden; }
.nlist-foot { padding: 12px 16px; border-top: 1px solid var(--bd); text-align: center; }

/* Category sections */
.cat-sec { margin-bottom: 36px; }
.cat-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 3px; background: #000; border-radius: var(--r2); overflow: hidden; height: 420px; }
.cat-main { position: relative; overflow: hidden; height: 100%; }
.cat-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-main:hover img { transform: scale(1.03); }
.cat-main-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.28) 52%, transparent 100%); }
.cat-main-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 18px; }
.cat-main-ttl { font: 800 clamp(14px,1.5vw,20px)/1.28 var(--font); color: #fff; margin: 8px 0 5px; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.cat-main-meta { font: 500 11px/1 var(--font); color: rgba(255,255,255,.47); }
.cat-stack { display: flex; flex-direction: column; gap: 3px; height: 100%; }
.cat-sm { position: relative; flex: 1; overflow: hidden; min-height: 0; }
.cat-sm img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-sm:hover img { transform: scale(1.05); }
.cat-sm-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 62%, transparent 100%); }
.cat-sm-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px; }
.cat-sm-ttl { font: 700 12.5px/1.33 var(--font); color: #fff; margin-top: 5px; text-shadow: 0 1px 5px rgba(0,0,0,.7); }
.cat-sm-meta { font: 500 10.5px/1 var(--font); color: rgba(255,255,255,.44); margin-top: 3px; }

/* Viber CTA */
.viber-cta {
  background: linear-gradient(135deg,#1a1a2e,#2d1b4e);
  border-radius: var(--r3);
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 8px 0 48px;
  flex-wrap: wrap;
}
.viber-badge {
  display: inline-block;
  background: rgba(115,96,242,.15);
  border: 1px solid rgba(115,96,242,.3);
  color: #a394f8;
  font: 600 10.5px/1 var(--font);
  padding: 4px 11px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.viber-cta h2 { font: 800 clamp(18px,2.3vw,26px)/1.22 var(--font); color: #fff; margin-bottom: 8px; }
.viber-cta h2 span { color: #7360f2; }
.viber-cta p { font: 400 13.5px/1.65 var(--font); color: rgba(255,255,255,.55); margin-bottom: 20px; max-width: 420px; }
.viber-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #7360f2;
  color: #fff;
  font: 700 13.5px/1 var(--font);
  padding: 12px 24px;
  border-radius: 8px;
  transition: background var(--tr);
}
.viber-btn:hover { background: #5c4bd6; }
.viber-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.viber-stat .n { font: 800 26px/1 var(--font); color: #fff; display: block; }
.viber-stat .l { font: 600 10px/1 var(--font); color: rgba(255,255,255,.38); text-transform: uppercase; letter-spacing: .5px; margin-top: 5px; display: block; }

/* ─── SINGLE ARTICLE ────────────────────────────────────────── */
.article-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 60px;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.article-header { margin-bottom: 20px; }
.article-cats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.article-title {
  font: 800 clamp(22px,3vw,36px)/1.22 var(--font);
  color: var(--dk);
  letter-spacing: -.5px;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font: 500 12.5px/1 var(--font);
  color: var(--mid);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bd);
  margin-bottom: 22px;
}
.article-meta-sep { color: var(--bd); }
.article-card {
  background: var(--surf);
  border-radius: var(--r2);
  box-shadow: var(--sh1);
  overflow: hidden;
}
.article-img { line-height: 0; }
.article-img img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.article-img figcaption { font: 400 12px/1.4 var(--font); color: var(--faint); padding: 8px 28px; background: var(--bd2); }
.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  border-bottom: 1px solid var(--bd2);
  font: 600 12px/1 var(--font);
  color: var(--mid);
}
.article-content {
  font: 400 16.5px/1.82 var(--font);
  color: var(--tx);
  padding: 24px 28px;
}
.article-content p { margin-bottom: 1.2em; }
.article-content h2 { font: 700 22px/1.3 var(--font); color: var(--dk); margin: 1.8em 0 .7em; }
.article-content h3 { font: 700 18px/1.3 var(--font); color: var(--dk); margin: 1.5em 0 .6em; }
.article-content a { color: var(--red); }
.article-content a:hover { text-decoration: underline; }
.article-content ul, .article-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.article-content li { margin-bottom: .4em; }
.article-content img { max-width: 100%; border-radius: var(--r1); margin: .5em 0; }
.article-content blockquote {
  border-left: 4px solid var(--red);
  margin: 1.6em 0;
  padding: .8em 1.2em;
  background: var(--red-l);
  border-radius: 0 var(--r1) var(--r1) 0;
  font-style: italic;
  color: #555;
}
.article-content figure { margin: 1em 0; }
.article-content figcaption { font: 400 12px/1.4 var(--font); color: var(--faint); text-align: center; margin-top: 4px; }
.article-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--bd);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.share-label { font: 600 12.5px/1 var(--font); color: var(--mid); }
.share-btns { display: flex; gap: 8px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 12px/1 var(--font);
  padding: 7px 14px;
  border-radius: var(--r1);
  text-decoration: none;
  transition: opacity var(--tr);
}
.share-btn:hover { opacity: .85; }
.share-btn-fb { background: #1877f2; color: #fff; }
.share-btn-vb { background: #7360f2; color: #fff; }
.article-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.related-section { margin-top: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* ─── NEWS ARCHIVE ──────────────────────────────────────────── */
.news-arch-header {
  background: linear-gradient(135deg,#111827,#1a2540);
  border-bottom: 3px solid var(--red);
}
.news-arch-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.news-arch-title-row { display: flex; align-items: center; gap: 12px; }
.news-arch-bar { width: 5px; height: 48px; background: var(--red); border-radius: 3px; flex-shrink: 0; }
.news-arch-title { font: 900 clamp(22px,3.5vw,36px)/1.15 var(--font); color: #fff; letter-spacing: -.5px; }
.news-arch-sub { font: 400 13px/1 var(--font); color: rgba(255,255,255,.45); margin-top: 5px; }
.news-arch-stats { display: flex; gap: 22px; }
.news-arch-stat .n { font: 800 20px/1 var(--font); color: #fff; display: block; }
.news-arch-stat .l { font: 600 10px/1 var(--font); color: rgba(255,255,255,.38); text-transform: uppercase; letter-spacing: .4px; }
.news-arch-cats {
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.18);
  overflow-x: auto;
  scrollbar-width: none;
}
.news-arch-cats::-webkit-scrollbar { display: none; }
.news-arch-cats-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
}
.news-arch-cats-inner a {
  display: block;
  padding: 11px 15px;
  font: 700 12.5px/1 var(--font);
  color: rgba(255,255,255,.52);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--tr), border-color var(--tr);
}
.news-arch-cats-inner a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.3); }
.news-arch-cats-inner a.active { color: #fff; border-bottom-color: var(--red); }
.news-arch-body { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.news-arch-layout { display: grid; grid-template-columns: 1fr 288px; gap: 24px; padding: 22px 0 56px; align-items: start; }

/* Featured article */
.news-featured {
  background: var(--surf);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: var(--sh1);
  margin-bottom: 20px;
  transition: box-shadow var(--tr);
}
.news-featured:hover { box-shadow: var(--sh3); }
.news-featured-link { display: grid; grid-template-columns: 52% 48%; min-height: 260px; text-decoration: none; color: inherit; }
.news-featured-img { position: relative; overflow: hidden; background: var(--bd2); }
.news-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.news-featured:hover .news-featured-img img { transform: scale(1.03); }
.news-featured-body { padding: 24px 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.news-featured-date { font: 500 11.5px/1 var(--font); color: var(--faint); }
.news-featured-title { font: 800 clamp(16px,2vw,21px)/1.3 var(--font); color: var(--dk); letter-spacing: -.3px; }
.news-featured-excerpt { font: 400 13px/1.6 var(--font); color: var(--mid); }
.news-featured-more { font: 700 12px/1 var(--font); color: var(--red); }
.news-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 14px;
  font: 800 12px/1 var(--font);
  text-transform: uppercase; letter-spacing: .7px; color: var(--dk);
}
.news-divider::before { content: ''; width: 4px; height: 16px; background: var(--red); border-radius: 2px; }
.news-divider::after { content: ''; flex: 1; height: 1px; background: var(--bd); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.news-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--bd); }
.news-list-row {
  display: grid; grid-template-columns: 84px 1fr; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--bd);
  text-decoration: none; color: inherit;
}
.news-list-row:nth-child(odd) { padding-right: 14px; }
.news-list-row:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--bd); }
.news-list-row img { width: 84px; height: 58px; object-fit: cover; border-radius: var(--r1); display: block; }
.news-list-noimg { width: 84px; height: 58px; background: var(--bg); border-radius: var(--r1); }
.news-list-body { display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.news-list-cat { font: 700 9.5px/1 var(--font); color: var(--red); text-transform: uppercase; letter-spacing: .5px; }
.news-list-title { font: 700 13px/1.35 var(--font); color: var(--dk); transition: color var(--tr); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list-row:hover .news-list-title { color: var(--red); }
.news-list-date { font: 500 11px/1 var(--font); color: var(--faint); }
.news-empty { background: var(--surf); border: 1px dashed var(--bd); border-radius: var(--r2); padding: 40px; text-align: center; color: var(--mid); }

/* ─── COMPANIES ─────────────────────────────────────────────── */
.co-hero {
  background: linear-gradient(135deg,#111827,#1a2540);
  border-bottom: 3px solid var(--red);
  padding: 36px 0 28px;
}
.co-hero-inner { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.co-title { font: 800 clamp(24px,3.5vw,38px)/1.2 var(--font); color: #fff; letter-spacing: -.5px; margin-bottom: 8px; }
.co-title span { color: var(--red); }
.co-subtitle { font: 400 14px/1.6 var(--font); color: rgba(255,255,255,.5); margin-bottom: 20px; }
.co-body { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.co-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; padding: 18px 0 56px; align-items: start; }
.filter-bar {
  background: var(--surf);
  border-radius: var(--r2);
  box-shadow: var(--sh1);
  padding: 13px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-search {
  flex: 1; min-width: 180px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--bd);
  border-radius: var(--r1);
  padding: 0 12px;
  transition: border-color var(--tr);
}
.filter-search:focus-within { border-color: var(--red); }
.filter-search input { flex: 1; border: none; background: transparent; font: 400 14px/1 var(--font); padding: 9px 0; outline: none; color: var(--tx); }
.filter-search svg { color: var(--faint); flex-shrink: 0; }
.filter-select select {
  border: 1.5px solid var(--bd);
  border-radius: var(--r1);
  padding: 9px 12px;
  font: 500 13px/1 var(--font);
  color: var(--tx);
  background: var(--surf);
  outline: none;
  cursor: pointer;
  transition: border-color var(--tr);
}
.filter-select select:focus { border-color: var(--red); }
.filter-submit { background: var(--red); color: #fff; border: none; padding: 9px 18px; border-radius: var(--r1); font: 700 13px/1 var(--font); transition: background var(--tr); }
.filter-submit:hover { background: var(--red-d); }
.co-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.co-card {
  background: var(--surf);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: var(--sh1);
  transition: transform var(--tr), box-shadow var(--tr);
  display: flex; flex-direction: column;
}
.co-card:hover { transform: translateY(-3px); box-shadow: var(--sh3); }
.co-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.co-card-img { position: relative; height: 140px; overflow: hidden; background: var(--bd2); flex-shrink: 0; }
.co-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.co-card:hover .co-card-img img { transform: scale(1.06); }
.co-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.co-city-tag {
  position: absolute; bottom: 8px; right: 8px;
  font: 700 10px/1 var(--font);
  background: rgba(0,0,0,.72); color: #fff;
  padding: 3px 8px; border-radius: var(--r1);
  backdrop-filter: blur(4px);
}
.co-card-body { padding: 13px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.co-cat-tag { font: 700 10px/1 var(--font); color: #2563eb; background: #dbeafe; padding: 3px 8px; border-radius: var(--rf); display: inline-block; align-self: flex-start; }
.co-card-title { font: 700 14.5px/1.38 var(--font); color: var(--tx); }
.co-card-excerpt { font: 400 12px/1.5 var(--font); color: var(--mid); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-card-footer { padding: 10px 14px; border-top: 1px solid var(--bd2); font: 700 12px/1 var(--font); color: var(--red); display: flex; align-items: center; justify-content: space-between; }
.co-sidebar-cats { display: flex; flex-direction: column; }
.co-side-cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; border-bottom: 1px solid var(--bd);
  text-decoration: none; color: var(--tx);
  font: 500 13px/1 var(--font);
  transition: background var(--tr), color var(--tr);
}
.co-side-cat:last-child { border-bottom: none; }
.co-side-cat:hover { background: var(--bd2); color: var(--red); }
.co-side-cat .cnt { font: 700 12px/1 var(--font); color: var(--faint); }
.co-side-cat-hidden { display: none; }
.co-show-more {
  width: 100%; padding: 10px 14px;
  font: 700 12px/1 var(--font); color: var(--red);
  background: var(--bd2); border: none;
  transition: background var(--tr);
}
.co-show-more:hover { background: var(--bd); }
.co-empty { background: var(--surf); border: 1px dashed var(--bd); border-radius: var(--r2); padding: 40px; text-align: center; color: var(--mid); }
.co-empty h3 { font: 700 18px/1 var(--font); color: var(--dk); margin-bottom: 8px; }
.co-empty-link { display: inline-block; margin-top: 14px; font: 700 13px/1 var(--font); color: var(--red); border: 1.5px solid var(--red); padding: 8px 18px; border-radius: var(--r1); }
.co-empty-link:hover { background: var(--red); color: #fff; }
/* Company Modal */
.co-modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; }
.co-modal.open { display: flex; }
.co-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(3px); }
.co-modal-box { position: relative; background: var(--surf); border-radius: var(--r3); max-width: 600px; width: 94%; max-height: 90vh; overflow-y: auto; box-shadow: var(--sh3); animation: fade-in .2s ease; }
.co-modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--bd); }
.co-modal-hd h2 { font: 700 18px/1 var(--font); color: var(--dk); }
.co-modal-close { background: none; border: none; font-size: 22px; color: var(--mid); line-height: 1; padding: 4px 8px; }
.co-modal-close:hover { color: var(--red); }
.co-modal-bd { padding: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font: 600 12px/1 var(--font); color: var(--dk); }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--bd);
  border-radius: var(--r1);
  padding: 9px 12px;
  font: 400 14px/1 var(--font);
  color: var(--tx);
  outline: none;
  transition: border-color var(--tr);
  background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 80px; }

/* ─── COMPANY SINGLE ────────────────────────────────────────── */
.cs-wrap { max-width: 1280px; margin: 0 auto; padding: 0 18px 60px; }
.cs-breadcrumb { display: flex; align-items: center; gap: 6px; padding: 18px 0 24px; font: 500 12.5px/1 var(--font); color: var(--mid); flex-wrap: wrap; }
.cs-breadcrumb a { color: var(--mid); transition: color var(--tr); }
.cs-breadcrumb a:hover { color: var(--red); }
.cs-bc-sep { color: var(--bd); }
.cs-bc-current { color: var(--tx); font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-grid { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.cs-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cs-pill { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px/1 var(--font); padding: 4px 11px; border-radius: 20px; }
.cs-pill-cat { background: #dbeafe; color: #1d4ed8; }
.cs-pill-city { background: var(--bd2); color: var(--mid); }
.cs-pill svg { width: 11px; height: 11px; flex-shrink: 0; }
.cs-title { font: 800 clamp(24px,3.5vw,36px)/1.2 var(--font); color: var(--dk); letter-spacing: -.4px; margin: 0; }
.cs-featured-img { margin: 22px 0 28px; border-radius: var(--r2); overflow: hidden; line-height: 0; }
.cs-featured-img img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.cs-content { font: 400 16px/1.8 var(--font); color: var(--tx); }
.cs-content p { margin-bottom: 1.2em; }
.cs-content h2 { font: 700 22px/1.3 var(--font); color: var(--dk); margin: 1.6em 0 .6em; }
.cs-content h3 { font: 700 18px/1.3 var(--font); color: var(--dk); margin: 1.4em 0 .5em; }
.cs-content a { color: var(--red); }
.cs-content a:hover { text-decoration: underline; }
.cs-content ul, .cs-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.cs-content li { margin-bottom: .4em; }
.cs-content blockquote { border-left: 4px solid var(--red); margin: 1.5em 0; padding: .75em 1.2em; background: var(--red-l); border-radius: 0 var(--r1) var(--r1) 0; font-style: italic; color: #555; }
.cs-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 22px; }
.cs-contact-card { background: var(--surf); border: 1px solid var(--bd); border-radius: var(--r3); box-shadow: var(--sh2); overflow: hidden; }
.cs-contact-hd { background: var(--red); padding: 14px 18px; }
.cs-contact-hd h3 { font: 700 13px/1 var(--font); color: #fff; text-transform: uppercase; letter-spacing: .4px; margin: 0; }
.cs-contact-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--bd2); text-decoration: none; color: inherit; transition: background var(--tr); }
.cs-contact-item:last-child { border-bottom: none; }
.cs-contact-item:hover { background: var(--bd2); }
.cs-contact-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.cs-contact-icon svg { width: 16px; height: 16px; }
.cs-icon-phone { background: #d1fae5; color: #059669; }
.cs-icon-email { background: #dbeafe; color: #2563eb; }
.cs-icon-web   { background: #ede9fe; color: #7c3aed; }
.cs-icon-addr  { background: #fee2e2; color: var(--red); }
.cs-contact-label { display: block; font: 600 10.5px/1 var(--font); color: var(--faint); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.cs-contact-value { display: block; font: 500 13.5px/1 var(--font); color: var(--tx); word-break: break-word; }
.cs-contact-item:hover .cs-contact-value { color: var(--red); }
.cs-related { max-width: 1280px; margin: 0 auto; padding: 44px 18px 60px; border-top: 1px solid var(--bd); }
.cs-related-title { font: 800 20px/1 var(--font); color: var(--dk); margin: 0 0 24px; display: flex; align-items: center; gap: 10px; }
.cs-related-title::before { content: ''; width: 4px; height: 20px; background: var(--red); border-radius: 2px; }
.cs-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cs-related-card { background: var(--surf); border: 1px solid var(--bd); border-radius: var(--r2); overflow: hidden; transition: box-shadow var(--tr), transform var(--tr); }
.cs-related-card:hover { box-shadow: var(--sh2); transform: translateY(-3px); }
.cs-related-img { height: 130px; overflow: hidden; background: var(--bd2); }
.cs-related-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.cs-related-card:hover .cs-related-img img { transform: scale(1.04); }
.cs-related-body { padding: 12px 14px 14px; }
.cs-related-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }
.cs-related-tag { font: 600 10.5px/1 var(--font); color: #1d4ed8; background: #dbeafe; padding: 2px 7px; border-radius: var(--rf); }
.cs-related-city { font: 500 11px/1 var(--font); color: var(--mid); display: flex; align-items: center; gap: 3px; }
.cs-related-title-text { font: 700 13.5px/1.4 var(--font); color: var(--tx); margin: 0 0 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-related-card:hover .cs-related-title-text { color: var(--red); }
.cs-related-excerpt { font: 400 12px/1.5 var(--font); color: var(--mid); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── CITIES ────────────────────────────────────────────────── */
.cities-page-header {
  background: linear-gradient(135deg, #111827 0%, #1e2d45 100%);
  border-bottom: 3px solid var(--red);
  padding: 30px 0 0;
}
.cities-hero-inner { max-width: var(--max); margin: 0 auto; padding: 0 18px 22px; }
.cities-hero-title-row { display: flex; align-items: center; gap: 14px; margin: 14px 0 12px; }
.cities-hero-bar { width: 4px; height: 44px; background: var(--red); border-radius: 3px; flex-shrink: 0; }
.cities-hero-title { font: 800 clamp(22px,3.5vw,36px)/1.2 var(--font); color: #fff; letter-spacing: -.3px; margin: 0; }
.cities-hero-title span { color: var(--red); }
.cities-hero-sub { font: 400 13px/1 var(--font); color: rgba(255,255,255,.44); margin-top: 5px; }
.cities-hero-stats { display: flex; gap: 24px; margin-top: 4px; }
.cities-hero-stat .n { font: 800 22px/1 var(--font); color: #fff; display: block; }
.cities-hero-stat .l { font: 600 10px/1 var(--font); color: rgba(255,255,255,.36); text-transform: uppercase; letter-spacing: .5px; }
.cities-body { max-width: var(--max); margin: 0 auto; padding: 22px 18px 56px; }
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.city-card {
  background: var(--surf);
  border-radius: var(--r2);
  box-shadow: var(--sh1);
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.city-card:hover { transform: translateY(-4px); box-shadow: var(--sh3); }
.city-card-img {
  height: 140px;
  background: linear-gradient(135deg, #1a2540, #2d3b55);
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}
.city-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 40%, rgba(0,0,0,.15));
}
.city-card-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; padding: 12px;
  text-align: center;
}
.city-card-icon { color: rgba(255,255,255,.6); }
.city-card-icon svg { width: 20px; height: 20px; }
.city-card-name { font: 700 15px/1.2 var(--font); color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.city-card-count { font: 600 11px/1 var(--font); color: rgba(255,255,255,.6); background: rgba(0,0,0,.3); padding: 2px 8px; border-radius: var(--rf); }
.city-card-footer {
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  font: 700 12px/1 var(--font); color: var(--red);
  border-top: 1px solid var(--bd2);
}

/* ─── SEARCH ────────────────────────────────────────────────── */
.search-page-header {
  background: linear-gradient(135deg,#111827,#1a2540);
  border-bottom: 3px solid var(--red);
  padding: 28px 0 24px;
}
.search-header-inner { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.search-title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.search-page-title { font: 800 clamp(18px,2.8vw,28px)/1.25 var(--font); color: #fff; margin: 0; }
.search-query-hl { color: var(--red); }
.search-count-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; background: rgba(192,57,43,.25);
  color: #fca5a5; border-radius: var(--rf);
  font: 700 12px/1 var(--font); white-space: nowrap;
}
.search-body { max-width: var(--max); margin: 0 auto; padding: 22px 18px 56px; }
.search-filter-bar { background: var(--surf); border: 1px solid var(--bd); border-radius: var(--r2); padding: 12px 16px; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; box-shadow: var(--sh1); }
.search-count { font: 600 13px/1 var(--font); color: var(--mid); margin-bottom: 16px; }
.search-count span { color: var(--red); font-weight: 700; }
.search-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.search-card { background: var(--surf); border-radius: var(--r2); border: 1px solid var(--bd); box-shadow: var(--sh1); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--tr), box-shadow var(--tr); }
.search-card:hover { transform: translateY(-3px); box-shadow: var(--sh3); }
.search-card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.search-card-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0; position: relative; background: var(--bd2); }
.search-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.search-card:hover .search-card-img img { transform: scale(1.04); }
.search-card-placeholder {
  width: 100%; height: 100%; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font: 800 32px/1 var(--font); color: #fff;
}
.search-card-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0; }
.search-card-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font: 800 32px/1 var(--font); color: #fff; }
.search-city-tag { font: 500 11.5px/1 var(--font); color: var(--mid); margin-left: auto; display: inline-flex; align-items: center; gap: 3px; }
.search-ph-vijest  { background: linear-gradient(135deg,#c0392b,#e74c3c); }
.search-ph-firma   { background: linear-gradient(135deg,#2980b9,#3498db); }
.search-ph-event   { background: linear-gradient(135deg,#27ae60,#2ecc71); }
.search-ph-blog    { background: linear-gradient(135deg,#8e44ad,#9b59b6); }
.search-ph-forum   { background: linear-gradient(135deg,#d35400,#e67e22); }
.search-ph-default { background: linear-gradient(135deg,#7f8c8d,#95a5a6); }
.search-card-body { padding: 13px 15px 15px; display: flex; flex-direction: column; flex: 1; gap: 5px; }
.search-card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.search-type-badge { font: 700 10.5px/1 var(--font); text-transform: uppercase; letter-spacing: .4px; padding: 3px 8px; border-radius: 4px; }
.search-type-vijest  { background: var(--red-l); color: var(--red); }
.search-type-firma   { background: #eff5ff; color: #2471a3; }
.search-type-event   { background: #edfaf1; color: #1e8449; }
.search-type-blog    { background: #f5eef8; color: #7d3c98; }
.search-type-forum   { background: #fef5e7; color: #d35400; }
.search-cat-pill { font: 500 11.5px/1 var(--font); background: var(--bd2); color: var(--mid); padding: 3px 9px; border-radius: var(--rf); }
.search-city { font: 500 11.5px/1 var(--font); color: var(--mid); margin-left: auto; display: flex; align-items: center; gap: 3px; }
.search-card-title { font: 700 14.5px/1.4 var(--font); color: var(--dk); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-card:hover .search-card-title { color: var(--red); }
.search-card-excerpt { font: 400 12.5px/1.55 var(--font); color: var(--mid); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-card-date { font: 500 11.5px/1 var(--font); color: var(--faint); margin-top: auto; }
.search-empty { text-align: center; padding: 60px 24px; }
.search-empty-icon { width: 68px; height: 68px; background: var(--bd2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--faint); }
.search-empty h2 { font: 700 20px/1 var(--font); color: var(--dk); margin-bottom: 8px; }
.search-empty p { font: 400 14px/1.6 var(--font); color: var(--mid); max-width: 400px; margin: 0 auto 20px; }
.search-empty-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; padding: 10px 22px; border-radius: var(--r1); font: 700 13px/1 var(--font); transition: background var(--tr); }
.search-empty-btn:hover { background: var(--red-d); }

/* ─── PAGE HEADER (generic dark) ───────────────────────────── */
.page-hd-dark {
  background: linear-gradient(135deg,#111827,#1a2540);
  border-bottom: 3px solid var(--red);
  padding: 30px 0;
}
.page-hd-inner { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.page-hd-title { font: 800 clamp(22px,3.5vw,34px)/1.2 var(--font); color: #fff; letter-spacing: -.3px; }
.page-hd-sub { font: 400 13.5px/1 var(--font); color: rgba(255,255,255,.48); margin-top: 6px; }

/* ─── COMMENTS ──────────────────────────────────────────────── */
.comments-area { padding: 32px 28px; border-top: 1px solid var(--bd); margin-top: 8px; }
.comments-title { font: 700 18px/1 var(--font); color: var(--dk); margin-bottom: 22px; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.comment { background: var(--bg); border-radius: var(--r2); padding: 16px; border-left: 3px solid var(--red-m); }
.comment-author { font: 700 13px/1 var(--font); color: var(--dk); margin-bottom: 4px; }
.comment-meta { font: 500 11px/1 var(--font); color: var(--faint); margin-bottom: 8px; }
.comment-content p { font: 400 14px/1.65 var(--font); color: var(--tx); margin: 0; }
.comment-form input, .comment-form textarea {
  width: 100%; border: 1.5px solid var(--bd); border-radius: var(--r1);
  padding: 9px 12px; font: 400 14px/1 var(--font); outline: none; transition: border-color var(--tr); background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--red); }
.comment-form label { font: 600 12px/1 var(--font); color: var(--dk); display: block; margin-bottom: 4px; }
.comment-form .form-submit input { background: var(--red); color: #fff; border: none; padding: 10px 22px; font: 700 13px/1 var(--font); width: auto; cursor: pointer; transition: background var(--tr); }
.comment-form .form-submit input:hover { background: var(--red-d); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .card-strip { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { height: 360px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-arch-layout { grid-template-columns: 1fr 256px; }
  .co-layout { grid-template-columns: 1fr 256px; }
  .co-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
  .cs-related-grid { grid-template-columns: repeat(2, 1fr); }
  .search-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  body { padding-bottom: 60px; }
  .mob-nav { display: block; }
  .hdr-nav { display: none; }
  .hdr-burger { display: flex; }
  .hdr-top { display: none; }
  .back-to-top { bottom: 70px; right: 14px; }
  .hero { grid-template-columns: 1fr; }
  .hero-stack { flex-direction: row; height: 180px; }
  .hero-main { height: 320px; }
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .news-arch-layout { grid-template-columns: 1fr; }
  .news-featured-link { grid-template-columns: 1fr; min-height: auto; }
  .news-featured-img { height: 200px; }
  .news-arch-stats { display: none; }
  .co-layout { grid-template-columns: 1fr; }
  .cs-grid { grid-template-columns: 1fr; }
  .cs-sidebar { position: static; }
  .cs-related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-top .footer-col:last-child { display: none; }
}

@media (max-width: 640px) {
  :root { --nav-h: 54px; }
  .hero-main { height: 260px; }
  .hero-stack { height: 140px; }
  .card-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat-grid { grid-template-columns: 1fr; height: auto; }
  .cat-main { height: 220px; }
  .cat-stack { flex-direction: row; height: 150px; }
  .viber-cta { padding: 24px 16px; }
  .news-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .news-list-grid { grid-template-columns: 1fr; }
  .news-list-row:nth-child(even) { padding-left: 0; border-left: none; }
  .co-grid { grid-template-columns: 1fr; }
  .cs-related-grid { grid-template-columns: 1fr; gap: 12px; }
  .related-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .search-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .article-content, .article-footer, .article-meta-bar { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 12px; }
  .card-strip { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
