/* ============================================================
   Hi-News.com Theme Styles v2
   Exact match to hi-news.ru (101media theme)
   ============================================================ */

:root {
  --color-brand: #48d900;
  --color-brand-dark: #3cb800;
  --color-orange: #ff5500;
  --color-orange-border: rgba(255, 85, 0, 0.35);
  --color-black: #000000;
  --color-dark: #080808;
  --color-text: #1a1a1a;
  --color-text-secondary: #666666;
  --color-border: #e5e5e5;
  --color-bg: #ffffff;
  --color-bg-light: #f5f5f5;
  --color-white: #ffffff;
  --font: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1080px;
  --sidebar-w: 300px;
  --gap: 30px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--color-text); background: var(--color-bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-brand); }
ul, ol { list-style: none; }
.wrapper { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.main { min-height: 60vh; }

/* ========== HEADER ========== */
.site-header { padding: 18px 0; background: var(--color-bg); }
.site-header .wrapper { display: flex; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 40px; height: 46px; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-name { display: flex; align-items: baseline; font-size: 36px; line-height: 1; }
.logo-name-green { color: var(--color-brand); font-weight: 600; }
.logo-name-dash { color: var(--color-black); font-weight: 300; margin: 0 1px; }
.logo-name-black { color: var(--color-black); font-weight: 300; }

/* ========== DARK ZONE (Nav + Hero) ========== */
.dark-zone { background: var(--color-black); max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.header__nav { padding: 0; }
.header__nav .wrapper { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.header__nav .wrapper::-webkit-scrollbar { display: none; }
.header__nav a { display: block; padding: 16px 22px; color: var(--color-white); font-size: 18px; font-weight: 400; white-space: nowrap; transition: color 0.2s; }
.header__nav a:hover { color: var(--color-brand); }

/* ========== HERO POST ========== */
.hero-post { display: flex; gap: var(--gap); padding: 20px 0 30px; }
.hero-post .hero-image { flex: 0 0 52%; overflow: hidden; }
.hero-post .hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }
.hero-post .hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10px 0; }
.hero-post .hero-title { font-size: 34px; font-weight: 700; line-height: 1.2; margin-bottom: 18px; color: var(--color-white); }
.hero-post .hero-title a { color: inherit; }
.hero-post .hero-title a:hover { opacity: 0.85; }
.hero-post .hero-excerpt { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.hero-post .read-more-btn { display: block; text-align: center; padding: 16px 24px; border: 1.5px solid var(--color-orange-border); border-radius: 30px; color: var(--color-white); font-size: 18px; font-weight: 500; transition: all 0.25s; }
.hero-post .read-more-btn:hover { border-color: var(--color-orange); color: var(--color-orange); }

/* ========== CONTENT + SIDEBAR ========== */
.content-layout { display: flex; gap: var(--gap); padding-top: 36px; }
.content-area { flex: 1; min-width: 0; }
.sidebar { width: var(--sidebar-w); flex-shrink: 0; }

/* ========== POST LIST ========== */
.post-item { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--color-border); }
.post-item:last-child { border-bottom: none; }
.post-item .post__title { font-size: 32px; font-weight: 700; line-height: 1.2; margin-bottom: 10px; }
.post-item .post__title a { color: var(--color-black); }
.post-item .post__title a:hover { color: var(--color-brand); }
.post-item .post-meta { display: flex; align-items: center; gap: 6px; font-size: 16px; color: var(--color-text); margin-bottom: 18px; }
.post-item .post-cover { margin-bottom: 18px; overflow: hidden; }
.post-item .post-cover img { width: 100%; height: auto; display: block; }
.post-item .post__text { font-size: 20px; line-height: 1.6; color: var(--color-text); margin-bottom: 20px; }
.post-item .read-more-link { display: block; text-align: center; padding: 16px 24px; border: 1.5px solid var(--color-orange-border); border-radius: 30px; color: var(--color-orange); font-size: 20px; font-weight: 500; transition: all 0.25s; }
.post-item .read-more-link:hover { border-color: var(--color-orange); background: var(--color-orange); color: var(--color-white); }

/* ========== SINGLE POST ========== */
.single-post-header { margin-bottom: 14px; }
.single-post-header .post__title { font-size: 54px; font-weight: 700; line-height: 1; color: var(--color-black); margin-bottom: 15px; }
.post-meta { display: flex; align-items: center; gap: 6px; font-size: 19px; color: var(--color-text); margin-bottom: 10px; flex-wrap: wrap; }
.post-meta .author-link { color: #E04D00; font-weight: 600; }
.post-meta .author-link:hover { text-decoration: underline; }
.post-meta .sep { color: var(--color-text-secondary); }
.post-meta .date-updated { color: var(--color-text-secondary); }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--color-text-secondary); margin-bottom: 28px; }
.breadcrumbs a { color: var(--color-text-secondary); }
.breadcrumbs a:hover { color: var(--color-brand); }
.breadcrumbs .sep { color: #ccc; }
.breadcrumbs .bc-icon { width: 13px; height: 13px; background: var(--color-brand); border-radius: 2px; display: inline-block; }

.post-content { font-size: 20px; line-height: 1.5; color: var(--color-black); }
.post-content p { margin-bottom: 15px; }
.post-content h2 { font-size: 38px; font-weight: 700; margin: 50px 0 16px; color: var(--color-black); line-height: 1.1; }
.post-content h3 { font-size: 28px; font-weight: 700; margin: 36px 0 14px; color: var(--color-black); }
.post-content h4 { font-size: 22px; font-weight: 700; margin: 24px 0 10px; }
.post-content img { max-width: 100%; height: auto; margin: 24px 0; }
.post-content figure { margin: 28px 0; }
.post-content figcaption { font-size: 14px; color: var(--color-text-secondary); margin-top: 8px; text-align: center; }
.post-content a { color: var(--color-orange); }
.post-content a:hover { text-decoration: underline; }
.post-content blockquote { border-left: 3px solid var(--color-brand); padding: 14px 22px; margin: 28px 0; background: var(--color-bg-light); font-style: italic; }
.post-content ul, .post-content ol { margin: 18px 0; padding-left: 24px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }
.post-content strong { font-weight: 700; }

/* "Read also" callout box */
.callout-box, .post-content code.large-text {
  display: block; background: rgba(255, 85, 0, 0.07); padding: 30px; border-radius: 3px;
  margin: 24px 0; font-size: 26px; line-height: 1.35; font-family: var(--font);
}
.callout-box a, .post-content code.large-text a { color: var(--color-orange); }

.related-posts { border-top: 1px solid var(--color-border); padding-top: 40px; margin-top: 30px; }
.related-posts .widget-title { font-size: 32px; border-bottom: none; padding-bottom: 0; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.related-item { display: block; }
.related-item img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 12px; }
.related-item h4 { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--color-text); }
.related-item:hover h4 { color: var(--color-brand); }

.post-tags { padding-bottom: 17px; margin-bottom: 25px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags .tag { display: inline-block; padding: 11px 15px; background: rgba(172, 182, 191, 0.08); border-radius: 12px; font-size: 13px; color: #959ea6; transition: all 0.2s; }
.post-tags .tag:hover { background: var(--color-brand); color: var(--color-white); }

.archive-header { margin-bottom: 30px; }
.archive-header .post__title { font-size: 36px; }
.archive-description { font-size: 17px; color: var(--color-text-secondary); margin-top: 8px; }

/* ========== PAGINATION ========== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px 0; border-top: 1px solid var(--color-border); margin-top: 20px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 4px 12px; font-size: 17px; border-radius: 50%; color: var(--color-text); transition: color 0.2s; }
.pagination a:hover { color: var(--color-brand); }
.pagination .current { background: var(--color-brand); color: var(--color-white); font-weight: 700; }
.pagination .next { border-radius: 3px; text-transform: uppercase; font-size: 14px; letter-spacing: 0.5px; }

/* ========== SIDEBAR ========== */
.widget { margin-bottom: 24px; }
.widget-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--color-brand); }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { font-size: 15px; }
.widget ul li a:hover { color: var(--color-brand); }

.sidebar-banner { background: #f0f0f0; border: 1px solid var(--color-border); padding: 20px; text-align: center; margin-bottom: 24px; min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; border-radius: 4px; }
.sidebar-banner .banner-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #bbb; margin-bottom: 8px; }
.sidebar-banner .banner-size { font-size: 16px; color: #999; font-weight: 500; }

.telegram-widget { background: var(--color-black); color: var(--color-white); padding: 24px; border-radius: 4px; text-align: left; margin-bottom: 24px; }
.telegram-widget .tg-title { font-size: 20px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.5px; }
.telegram-widget .tg-subtitle { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.telegram-widget .tg-icon { font-size: 48px; float: right; margin-left: 10px; }

/* ========== FOOTER ========== */
.site-footer { background: var(--color-black); color: var(--color-white); padding: 30px 0; margin-top: 40px; }
.footer-categories { display: flex; flex-wrap: wrap; gap: 10px 30px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-categories a { color: var(--color-white); font-size: 16px; transition: color 0.2s; }
.footer-categories a:hover { color: var(--color-brand); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-name { font-size: 26px; }
.footer-logo .logo-name-green { color: var(--color-brand); font-weight: 600; }
.footer-logo .logo-name-dash, .footer-logo .logo-name-black { color: var(--color-white); font-weight: 300; }
.footer-year { color: rgba(255,255,255,0.5); font-size: 14px; margin-left: 10px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-links a:hover { color: var(--color-white); }
.footer-links .sep { color: rgba(255,255,255,0.3); }

/* ========== COMMENTS ========== */
.comments-area { margin-top: 40px; }
.comment-list { margin: 20px 0; }
.comment-list li { padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.no-results { padding: 60px 0; text-align: center; }
.no-results h2 { font-size: 32px; margin-bottom: 16px; }
.no-results p { font-size: 18px; color: var(--color-text-secondary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-post { flex-direction: column; }
  .hero-post .hero-image { flex: none; }
  .hero-post .hero-title { font-size: 28px; }
  .hero-post .hero-content { padding: 16px 0; }
  .content-layout { flex-direction: column; }
  .sidebar { width: 100%; display: flex; gap: 20px; flex-wrap: wrap; }
  .sidebar > * { flex: 1; min-width: 250px; }
  .single-post-header .post__title { font-size: 42px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .wrapper { padding: 0 16px; }
  .site-header { padding: 14px 0; }
  .logo-name { font-size: 26px; }
  .logo-icon { width: 32px; height: 37px; }
  .header__nav a { padding: 12px 16px; font-size: 15px; }
  .hero-post .hero-title { font-size: 24px; }
  .hero-post .hero-excerpt { font-size: 15px; }
  .hero-post .read-more-btn { font-size: 16px; padding: 14px 20px; }
  .post-item .post__title { font-size: 24px; }
  .post-item .post__text { font-size: 17px; }
  .post-item .post-meta { font-size: 14px; }
  .post-item .read-more-link { font-size: 17px; padding: 14px 20px; }
  .single-post-header .post__title { font-size: 32px; line-height: 1.1; }
  .post-meta { font-size: 16px; }
  .post-content { font-size: 18px; line-height: 1.5; }
  .post-content h2 { font-size: 28px; }
  .post-content h3 { font-size: 22px; }
  .callout-box, .post-content code.large-text { font-size: 20px; padding: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-categories { gap: 8px 20px; }
}
@media (max-width: 480px) {
  .logo-name { font-size: 22px; }
  .logo-icon { width: 28px; height: 32px; }
  .hero-post .hero-title { font-size: 20px; }
  .post-item .post__title { font-size: 21px; }
  .post-item .post__text { font-size: 16px; }
  .post-item .read-more-link { font-size: 16px; padding: 12px 16px; }
  .single-post-header .post__title { font-size: 26px; }
  .post-content { font-size: 17px; }
  .header__nav a { padding: 10px 12px; font-size: 14px; }
}
@media print {
  .site-header, .dark-zone, .sidebar, .site-footer, .pagination { display: none; }
  .content-layout { display: block; }
  .post-content { font-size: 12pt; }
}

.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
img[loading="lazy"] { background: var(--color-bg-light); }
