/* ══ ARTICLES ════════════════════════════════════════════════════════════════ */

/* ── Listing page head ───────────────────────────────────────────────────── */
.art-page-head { margin-bottom: var(--sp-l); }
.art-page-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -.45px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.art-page-title i { color: var(--accent); font-size: .85em; }
.art-page-sub { font-size: 15px; color: var(--text2); }

/* ── Articles grid ───────────────────────────────────────────────────────── */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: var(--sp-l);
}

/* ── Article card ────────────────────────────────────────────────────────── */
.art-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: background var(--t);
}
.art-card:hover { background: var(--surface2); }

.art-card-cover {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg3);
  position: relative;
  flex-shrink: 0;
}
.art-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.art-card-cover-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 36px;
  color: var(--text3);
}

.art-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.art-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.art-card-date,
.art-card-time {
  font-size: 11.5px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.art-card-date i, .art-card-time i { font-size: 10px; }
.art-card-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.15px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-card-excerpt {
  font-size: 12.5px;
  color: var(--text2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.art-card-read {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  padding-top: 4px;
}
.art-card-read i { font-size: 10px; }

/* ── Single article hero ─────────────────────────────────────────────────── */
.art-hero {
  padding: 52px 0 42px;
  margin-bottom: var(--sp-l);
  background: var(--surface);
}
.art-hero-img { position: relative; overflow: hidden; }
.art-hero-bg { position: absolute; inset: 0; z-index: 0; }
.art-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(2px) brightness(.4);
  transform: scale(1.04);
}
.art-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.72) 100%);
  z-index: 1;
}
.art-hero-content { position: relative; z-index: 2; }
.art-hero-img .art-hero-content { color: #fff; }
.art-hero-img .art-breadcrumb { color: rgba(255,255,255,.55); }
.art-hero-img .art-breadcrumb a { color: rgba(255,255,255,.7); }
.art-hero-img .art-breadcrumb a:hover { color: #fff; }

.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text3);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.art-breadcrumb a { color: var(--text2); transition: color var(--t); }
.art-breadcrumb a:hover { color: var(--accent); }
.art-breadcrumb i { font-size: 9px; }

.art-hero-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.12;
  margin-bottom: 14px;
}
.art-hero-img .art-hero-title { color: #fff; }
.art-hero-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.art-hero-meta span { display: flex; align-items: center; gap: 5px; color: var(--text3); }
.art-hero-meta i { font-size: 11px; }
.art-hero-img .art-hero-meta span { color: rgba(255,255,255,.6); }

/* ── Article layout ──────────────────────────────────────────────────────── */
.art-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding-bottom: var(--sp-l);
}

/* ── Article content ─────────────────────────────────────────────────────── */
.art-excerpt {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 18px;
  font-size: 15px;
  font-style: italic;
  color: var(--text2);
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.art-excerpt i { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.art-content {
  font-size: 15px;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 32px;
}
.art-content h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.3px;
  margin: 32px 0 12px;
  color: var(--text);
}
.art-content h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.2px;
  margin: 24px 0 10px;
  color: var(--text);
}
.art-content p { margin-bottom: 16px; }
.art-content ul,
.art-content ol { padding-left: 24px; margin-bottom: 16px; }
.art-content li { margin-bottom: 6px; }
.art-content strong { font-weight: 700; color: var(--text); }
.art-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.art-content a:hover { opacity: .8; }
.art-content img {
  max-width: 100%;
  border-radius: var(--r);
  margin: 16px 0;
}
.art-content blockquote {
  background: var(--bg2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text2);
}
.art-content hr {
  border: none;
  border-top: 1px solid var(--bg3);
  margin: 28px 0;
}
.art-content pre {
  background: var(--bg3);
  border-radius: var(--r);
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  margin: 16px 0;
}
.art-content code {
  background: var(--bg3);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 13px;
}

/* ── Mentioned apps ──────────────────────────────────────────────────────── */
.art-mentioned {
  background: var(--surface);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 28px;
}
.art-mentioned-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text);
}
.art-mentioned-title i { color: var(--accent); font-size: 14px; }
.art-mentioned-grid { display: flex; flex-direction: column; gap: 6px; }

.art-app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--bg2);
  text-decoration: none;
  color: var(--text);
  transition: background var(--t);
}
.art-app-card:hover { background: var(--bg3); }
.art-app-icon-wrap { position: relative; flex-shrink: 0; }
.art-app-icon { width: 46px; height: 46px; border-radius: var(--r); object-fit: cover; display: block; }
.art-app-icon-ph {
  width: 46px;
  height: 46px;
  border-radius: var(--r);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 18px;
}
.art-app-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: .4px;
  line-height: 1.4;
}
.art-app-badge.mod { background: var(--green); color: #fff; }
.art-app-info { flex: 1; min-width: 0; }
.art-app-name {
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 3px;
}
.art-app-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.art-app-ver { font-size: 11px; background: var(--bg3); border-radius: 4px; padding: 1px 6px; color: var(--text3); }
.art-app-stars {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 3px;
}
.art-app-stars i { font-size: 10px; }
.art-app-get {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: var(--r);
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.art-app-card:hover .art-app-get { background: var(--accent); color: #fff; }

/* ── Share ───────────────────────────────────────────────────────────────── */
.art-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--bg2);
  border-radius: var(--r);
}
.art-share-label { font-size: 13px; font-weight: 700; color: var(--text2); }
.art-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 700;
  transition: opacity var(--t);
}
.art-share-btn i { font-size: 14px; }
.art-share-btn:hover { opacity: .85; }
.art-share-btn.tg { background: #229ed9; color: #fff; }
.art-share-btn.vk { background: #0077ff; color: #fff; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.art-sidebar { display: flex; flex-direction: column; gap: 12px; }
.art-widget {
  background: var(--surface);
  border-radius: var(--r);
  padding: 18px;
}
.art-widget-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--text);
}
.art-widget-title i { color: var(--accent); font-size: 13px; }
.art-widget-more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 12px;
  text-decoration: none;
  transition: opacity var(--t);
}
.art-widget-more:hover { opacity: .7; }

.art-related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg3);
  text-decoration: none;
  color: var(--text);
  transition: color var(--t);
}
.art-related-item:last-of-type { border: none; padding-bottom: 0; }
.art-related-item:hover { color: var(--accent); }
.art-related-thumb {
  width: 52px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--r);
  flex-shrink: 0;
  display: block;
}
.art-related-thumb-ph {
  width: 52px;
  height: 36px;
  border-radius: var(--r);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 14px;
  flex-shrink: 0;
}
.art-related-info { flex: 1; min-width: 0; }
.art-related-name {
  font-size: 12.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  margin-bottom: 3px;
}
.art-related-date { font-size: 11px; color: var(--text3); }

/* Telegram promo widget */
.art-tg-promo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #006eff, #0055cc);
  padding: 16px;
  border-radius: var(--r);
  cursor: pointer;
  transition: opacity var(--t);
}
.art-tg-promo:hover { opacity: .88; }
.art-tg-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.art-tg-title { font-family: var(--font-head); font-size: 14px; font-weight: 800; margin-bottom: 3px; }
.art-tg-sub { font-size: 12px; opacity: .75; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: var(--sp-l); flex-wrap: wrap; }
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text2);
  text-decoration: none;
  transition: background var(--t), color var(--t);
}
.page-btn:hover { background: var(--bg3); color: var(--text); }
.page-btn.active { background: var(--accent); color: #fff; }

/* ══ HOMEPAGE ARTICLES BLOCK ═════════════════════════════════════════════════ */
.home-articles-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 12px;
  align-items: start;
}

/* Main big card */
.home-art-main {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  position: relative;
  min-height: 280px;
  transition: opacity var(--t);
}
.home-art-main:hover { opacity: .92; }

.home-art-main-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.home-art-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-art-img-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #06080f, #101830);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,.15);
}
.home-art-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.04) 100%);
  z-index: 1;
}
.home-art-main-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  height: 100%;
  min-height: 280px;
  justify-content: flex-end;
}
.home-art-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 4px;
}
.home-art-label i { font-size: 10px; }
.home-art-main-title {
  font-family: var(--font-head);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 800;
  letter-spacing: -.25px;
  line-height: 1.25;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-art-main-desc {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-art-main-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
.home-art-main-meta span { display: flex; align-items: center; gap: 4px; }
.home-art-main-meta i { font-size: 10px; }

/* Side cards */
.home-art-side {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  height: 100%;
}
.home-art-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  transition: background var(--t);
  border-bottom: 1px solid var(--bg3);
  flex: 1;
}
.home-art-side-item:last-of-type { border-bottom: none; }
.home-art-side-item:hover { background: var(--bg2); }
.home-art-side-thumb {
  width: 64px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg3);
}
.home-art-side-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-art-side-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text3);
}
.home-art-side-info { flex: 1; min-width: 0; }
.home-art-side-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.home-art-side-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--text3);
}
.home-art-side-meta span { display: flex; align-items: center; gap: 3px; }
.home-art-side-meta i { font-size: 9px; }

/* "All articles" button */
.home-art-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: background var(--t);
  border-top: 1px solid var(--bg3);
}
.home-art-all-btn i { font-size: 11px; }
.home-art-all-btn:hover { background: var(--accent-bg); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .art-layout { grid-template-columns: 1fr; }
  .art-sidebar { order: -1; }
}
@media (max-width: 860px) {
  .home-articles-grid { grid-template-columns: 1fr; }
  .home-art-main { min-height: 220px; }
  .home-art-side { height: auto; }
  .home-art-side-item { flex: none; }
}
@media (max-width: 560px) {
  .art-grid { grid-template-columns: 1fr; }
  .art-hero { padding: 36px 0 30px; }
  .art-content { font-size: 14.5px; }
  .art-mentioned-grid { gap: 6px; }
  .home-art-main { min-height: 180px; }
  .home-art-main-body { padding: 16px; }
  .home-art-main-title { font-size: 16px; }
  .home-art-side-thumb { width: 58px; height: 42px; }
}