/* ═══════════════════════════════════════════════════
   TechPick v2 — Editorial Dark
   Стиль: газетный редакционный, тёмная тема
   Шрифты: Unbounded (заголовки) + Onest (текст)
═══════════════════════════════════════════════════ */

:root {
  --c-bg:      #0e0e0e;
  --c-bg2:     #161616;
  --c-bg3:     #1e1e1e;
  --c-border:  #2a2a2a;
  --c-border2: #333;
  --c-text:    #e2e2e2;
  --c-muted:   #666;
  --c-muted2:  #888;
  --c-white:   #f5f5f5;
  --c-acc:     #e8ff00;     /* кислотный жёлтый акцент */
  --c-acc2:    #c8dd00;
  --c-phones:  #00c8ff;
  --c-pc:      #ff6b35;
  --ff-head:   'Unbounded', sans-serif;
  --ff-body:   'Onest', sans-serif;
  --r:         8px;
  --r-lg:      16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── NOISE OVERLAY ─────────────────────────── */
.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── CONTAINER ─────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(14,14,14,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 60px;
}

/* LOGO */
.logo {
  display: flex; align-items: center; gap: 2px; flex-shrink: 0;
}
.logo-icon {
  width: 32px; height: 32px;
  background: var(--c-acc);
  color: #000;
  font-family: var(--ff-head);
  font-size: .8rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.logo-text {
  font-family: var(--ff-head);
  font-size: .9rem; font-weight: 700;
  letter-spacing: -.5px;
  color: var(--c-white);
}
.logo-text em { font-style: normal; color: var(--c-acc); }

.nav { display: flex; gap: 0; flex: 1; }
.nav a {
  padding: 0 16px; height: 60px;
  display: flex; align-items: center;
  font-size: .82rem; font-weight: 600; letter-spacing: .3px;
  color: var(--c-muted2);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--c-white); border-bottom-color: var(--c-border2); }

.header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.search-form {
  display: flex; align-items: center;
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-radius: 6px; overflow: hidden;
}
.search-input {
  background: none; border: none; outline: none;
  color: var(--c-text); font-family: var(--ff-body); font-size: .85rem;
  padding: 7px 12px; width: 180px;
}
.search-input::placeholder { color: var(--c-muted); }
.search-btn {
  background: none; border: none; cursor: pointer;
  color: var(--c-muted2); padding: 7px 10px;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s;
}
.search-btn:hover { color: var(--c-acc); }

/* BURGER */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span { display: block; height: 2px; background: var(--c-text); border-radius: 2px; transition: all .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border);
  padding: 16px 20px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.mobile-nav a {
  padding: 14px 16px;
  font-family: var(--ff-head); font-weight: 700; font-size: 1rem;
  color: var(--c-muted2);
  border-radius: var(--r);
  border-left: 3px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.mobile-nav a:hover {
  color: var(--c-acc);
  border-left-color: var(--c-acc);
  background: rgba(232,255,0,.05);
}
.mobile-search {
  display: flex;
  border: 1px solid var(--c-border2); border-radius: var(--r); overflow: hidden;
  background: var(--c-bg3);
}
.mobile-search .search-input { flex: 1; font-size: .95rem; padding: 12px 16px; }
.mobile-search .search-btn { padding: 12px 16px; font-size: 1rem; }

@media (max-width: 768px) {
  .nav { display: none; }
  .search-form { display: none; }
  .burger { display: flex; }
  .header-right { gap: 0; }
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--c-border);
  background: linear-gradient(180deg, #111 0%, var(--c-bg) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px; align-items: center;
}

.hero-kicker {
  font-family: var(--ff-head);
  font-size: .65rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--c-acc); margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.hero-kicker::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--c-acc);
}

.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -2px; color: var(--c-white);
  margin-bottom: 20px;
}
.hero-title em { font-style: normal; color: var(--c-acc); }

.hero-desc { color: var(--c-muted2); font-size: 1rem; max-width: 420px; margin-bottom: 36px; }

.hero-cats { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cat {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: var(--c-bg3);
  border: 1px solid var(--c-border2);
  border-radius: var(--r); font-weight: 600; font-size: .88rem;
  transition: border-color .2s, background .2s;
}
.hero-cat:hover { border-color: var(--c-acc); color: var(--c-white); }
.hero-cat-ico { font-size: 1.2rem; }

/* FEATURED CARD */
.hero-featured {
  display: block;
  background: var(--c-bg2); border: 1px solid var(--c-border2);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .2s, transform .3s;
}
.hero-featured:hover { border-color: var(--c-acc); transform: translateY(-4px); }
.hero-featured-img {
  height: 260px;
  background-size: cover; background-position: center;
}
.hero-featured-body { padding: 24px; }
.hero-featured-body h2 {
  font-family: var(--ff-head);
  font-size: 1.1rem; font-weight: 700; line-height: 1.3;
  margin: 10px 0 8px;
}
.hero-featured-body p { font-size: .88rem; color: var(--c-muted2); }
.hero-featured-meta {
  display: flex; gap: 16px; margin-top: 14px;
  font-size: .78rem; color: var(--c-muted);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-featured { display: none; }
}

/* ══════════════════════════════════════════════
   TAGS BAR
══════════════════════════════════════════════ */
.tags-bar {
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg2);
  padding: 14px 0;
}
.tags-scroll {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
}
.tags-scroll::-webkit-scrollbar { display: none; }
.tags-label { font-size: .75rem; font-weight: 600; color: var(--c-muted); white-space: nowrap; }

.tag-pill {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  background: var(--c-bg3); border: 1px solid var(--c-border2);
  border-radius: 20px; font-size: .78rem; font-weight: 500;
  white-space: nowrap; color: var(--c-muted2);
  transition: all .15s; cursor: pointer;
}
.tag-pill:hover, .tag-pill--active {
  background: var(--c-acc); border-color: var(--c-acc);
  color: #000; font-weight: 600;
}

/* ══════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════ */
.section { padding: 56px 0; }
.section--alt { background: var(--c-bg2); }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}
.section-title {
  font-family: var(--ff-head);
  font-size: 1.1rem; font-weight: 700; letter-spacing: -.3px;
}
.section-line { flex: 1; height: 1px; background: var(--c-border); margin: 0 20px; }
.see-all { font-size: .82rem; font-weight: 600; color: var(--c-acc); white-space: nowrap; }
.see-all:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   ARTICLE CARDS
══════════════════════════════════════════════ */
.grid-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.article-card {
  display: flex; flex-direction: column;
  background: var(--c-bg2); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .2s, transform .25s;
}
.article-card:hover { border-color: var(--c-border2); transform: translateY(-3px); }

.article-card-img {
  position: relative; height: 200px;
  background: var(--c-bg3) center/cover;
  overflow: hidden;
}
.article-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%);
}
.article-card-img .tag { position: absolute; top: 12px; left: 12px; z-index: 1; }
.img-placeholder {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center; font-size: 2.5rem;
}

.article-card-body {
  padding: 20px; flex: 1;
  display: flex; flex-direction: column; gap: 8px;
}
.article-card-body h3 {
  font-family: var(--ff-head);
  font-size: .95rem; font-weight: 700; line-height: 1.35;
  flex: 1;
}
.article-card-body p { font-size: .83rem; color: var(--c-muted2); line-height: 1.5; }
.article-card-meta {
  display: flex; justify-content: space-between;
  font-size: .75rem; color: var(--c-muted); margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--c-border);
}

/* ── SMALL CARDS ───────────────────────────── */
.grid-small {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.small-card {
  display: flex; gap: 14px; align-items: center;
  padding: 14px;
  background: var(--c-bg2); border: 1px solid var(--c-border);
  border-radius: var(--r); transition: border-color .2s;
}
.small-card:hover { border-color: var(--c-border2); }
.small-card-img {
  width: 72px; height: 72px; flex-shrink: 0;
  background: var(--c-bg3) center/cover;
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.small-card-body { flex: 1; min-width: 0; }
.small-card-body h3 {
  font-family: var(--ff-head);
  font-size: .82rem; font-weight: 700; line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── POPULAR ───────────────────────────────── */
.popular-grid { display: flex; flex-direction: column; gap: 2px; }
.popular-card {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--c-border);
  transition: opacity .2s;
}
.popular-card:hover { opacity: .8; }
.popular-num {
  font-family: var(--ff-head); font-size: 2rem; font-weight: 900;
  color: var(--c-border2); line-height: 1; flex-shrink: 0; width: 48px;
}
.popular-info { flex: 1; }
.popular-info h3 {
  font-family: var(--ff-head); font-size: .9rem; font-weight: 700;
  margin-bottom: 4px;
}
.popular-thumb {
  width: 80px; height: 60px; flex-shrink: 0;
  background: var(--c-bg3) center/cover;
  border-radius: var(--r);
}

/* ── TAGS ──────────────────────────────────── */
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-micro {
  font-size: .7rem; font-weight: 500; padding: 3px 8px;
  background: var(--c-bg3); border: 1px solid var(--c-border);
  border-radius: 4px; color: var(--c-muted2);
}

/* ── CATEGORY TAG BADGES ───────────────────── */
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 4px;
  font-size: .7rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.tag--phones { background: rgba(0,200,255,.12); color: var(--c-phones); border: 1px solid rgba(0,200,255,.2); }
.tag--pc     { background: rgba(255,107,53,.12); color: var(--c-pc);     border: 1px solid rgba(255,107,53,.2); }

/* ══════════════════════════════════════════════
   ARTICLE PAGE
══════════════════════════════════════════════ */
.article-page { padding: 40px 0 80px; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px; align-items: start;
}
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
}

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: .78rem; color: var(--c-muted);
  margin-bottom: 28px;
}
.breadcrumb a:hover { color: var(--c-acc); }
.breadcrumb span { color: var(--c-border2); }

.article-header-meta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 16px;
}
.meta-views, .meta-date { font-size: .78rem; color: var(--c-muted); }

.article-title {
  font-family: var(--ff-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -1px;
  color: var(--c-white); margin-bottom: 16px;
}
.article-lead { font-size: 1.05rem; color: var(--c-muted2); line-height: 1.6; }

.article-cover {
  width: 100%; height: 420px; margin: 32px 0;
  background: var(--c-bg3) center/cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
}
@media (max-width: 640px) { .article-cover { height: 220px; } }

.article-body {
  font-size: 1.03rem; line-height: 1.85; color: #c0c0c0;
  max-width: 720px;
}
.article-body h2 {
  font-family: var(--ff-head);
  font-size: 1.2rem; font-weight: 700;
  color: var(--c-white); margin: 40px 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--c-acc);
  display: inline-block;
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 16px 0 16px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--c-white); }

/* PRODUCTS */
.products-block { margin-top: 56px; }
.products-title {
  font-family: var(--ff-head);
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}
.products-title-line { display: block; width: 4px; height: 22px; background: var(--c-acc); border-radius: 2px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--c-bg2); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .2s;
}
.product-card:hover { border-color: var(--c-border2); }
.product-img {
  height: 160px; background: var(--c-bg3) center/cover;
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}
.product-body { padding: 16px; }
.product-name { font-weight: 600; font-size: .9rem; margin-bottom: 6px; line-height: 1.3; }
.product-price {
  font-family: var(--ff-head);
  font-size: 1.15rem; font-weight: 700; color: var(--c-acc);
  margin-bottom: 14px;
}
.btn-buy {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px;
  background: var(--c-acc); color: #000;
  border-radius: var(--r); font-size: .82rem; font-weight: 700;
  font-family: var(--ff-head); letter-spacing: .2px;
  transition: background .15s; border: none; cursor: pointer;
}
.btn-buy:hover { background: var(--c-acc2); }

/* SIDEBAR */
.article-sidebar { position: sticky; top: 80px; }
.sidebar-block {
  background: var(--c-bg2); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px;
}
.sidebar-title {
  font-family: var(--ff-head); font-size: .85rem; font-weight: 700;
  color: var(--c-acc); margin-bottom: 16px; letter-spacing: .5px; text-transform: uppercase;
}
.related-card {
  display: flex; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--c-border);
}
.related-card:last-child { border-bottom: none; padding-bottom: 0; }
.related-card:hover p { color: var(--c-acc); }
.related-img {
  width: 60px; height: 50px; flex-shrink: 0;
  background: var(--c-bg3) center/cover;
  border-radius: 6px;
}
.related-body p { font-size: .82rem; font-weight: 500; line-height: 1.35; margin-bottom: 4px; transition: color .15s; }
.related-body span { font-size: .72rem; color: var(--c-muted); }
.sidebar-cta { text-align: center; }
.sidebar-cta p { font-family: var(--ff-head); font-size: .82rem; font-weight: 700; color: var(--c-white); }
.sidebar-cta-sub { font-size: .78rem; color: var(--c-muted); margin-top: 8px !important; font-family: var(--ff-body) !important; font-weight: 400 !important; }

/* ══════════════════════════════════════════════
   PAGE HERO (category, search, etc.)
══════════════════════════════════════════════ */
.page-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg2);
}
.page-title {
  font-family: var(--ff-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900; letter-spacing: -1px; color: var(--c-white);
}
.page-sub { color: var(--c-muted2); margin-top: 8px; font-size: .9rem; }

/* ══════════════════════════════════════════════
   SEARCH PAGE
══════════════════════════════════════════════ */
.search-big {
  display: flex; gap: 12px; max-width: 600px;
}
.search-big-input {
  flex: 1; padding: 12px 18px;
  background: var(--c-bg3); border: 1px solid var(--c-border2);
  border-radius: var(--r); color: var(--c-text); font-family: var(--ff-body);
  font-size: 1rem; outline: none; transition: border-color .2s;
}
.search-big-input:focus { border-color: var(--c-acc); }

/* ══════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════ */
.about-body {
  max-width: 680px; padding: 8px 0;
  font-size: 1.03rem; line-height: 1.8; color: #bbb;
}
.about-body h2 {
  font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700;
  color: var(--c-white); margin: 36px 0 12px;
}
.about-body p { margin-bottom: 16px; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand p { color: var(--c-muted2); font-size: .88rem; line-height: 1.6; margin-top: 14px; }
.footer-ref { font-size: .75rem !important; color: var(--c-muted) !important; margin-top: 12px !important; }

.footer-links h4 {
  font-family: var(--ff-head); font-size: .72rem; font-weight: 700;
  color: var(--c-muted); letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-links a {
  display: block; font-size: .88rem; color: var(--c-muted2);
  margin-bottom: 10px; transition: color .15s;
}
.footer-links a:hover { color: var(--c-acc); }

.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--c-border);
  font-size: .78rem; color: var(--c-muted);
}

/* ══════════════════════════════════════════════
   MISC
══════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 80px 0;
  color: var(--c-muted); font-size: 1rem;
}
.empty-state a { color: var(--c-acc); }

.flash {
  padding: 12px 16px; margin: 16px 0;
  background: rgba(232,255,0,.08); border: 1px solid rgba(232,255,0,.2);
  border-radius: var(--r); font-size: .88rem; color: var(--c-acc);
}
.flash--error {
  background: rgba(255,80,80,.08); border-color: rgba(255,80,80,.2); color: #ff8080;
}

/* ══════════════════════════════════════════════
   ADMIN
══════════════════════════════════════════════ */
.admin-body { background: #080808; min-height: 100vh; }

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-box {
  width: 100%; max-width: 360px;
  background: var(--c-bg2); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 40px;
}
.login-logo {
  font-family: var(--ff-head); font-size: 1.4rem; font-weight: 900; margin-bottom: 8px;
}
.login-logo em { font-style: normal; color: var(--c-acc); }
.login-box h2 { font-size: .9rem; color: var(--c-muted); margin-bottom: 28px; font-family: var(--ff-body); font-weight: 400; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--c-bg2); border-right: 1px solid var(--c-border);
  padding: 28px 16px; display: flex; flex-direction: column;
}
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a {
  padding: 9px 14px; border-radius: 6px;
  font-size: .85rem; font-weight: 500; color: var(--c-muted2);
  transition: background .15s, color .15s;
}
.admin-nav a:hover, .admin-nav a.active { background: var(--c-bg3); color: var(--c-white); }

.admin-main { flex: 1; padding: 40px; overflow-x: auto; max-width: 900px; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.admin-topbar h1 { font-family: var(--ff-head); font-size: 1.4rem; font-weight: 700; }

.admin-stats { display: flex; gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--c-bg2); border: 1px solid var(--c-border);
  border-radius: var(--r); padding: 16px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-family: var(--ff-head); font-size: 1.8rem; font-weight: 900; color: var(--c-acc); }
.stat-label { font-size: .78rem; color: var(--c-muted); }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th {
  text-align: left; padding: 10px 14px;
  background: var(--c-bg3); color: var(--c-muted);
  font-size: .72rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  border-bottom: 1px solid var(--c-border);
}
.admin-table td {
  padding: 13px 14px; border-bottom: 1px solid var(--c-border); color: var(--c-text);
}
.admin-table td a { color: var(--c-acc); }
.admin-table td a:hover { text-decoration: underline; }
.admin-table tr:hover td { background: var(--c-bg3); }
.admin-actions { display: flex; gap: 8px; align-items: center; }

/* FORM */
.input {
  width: 100%; padding: 10px 13px;
  background: var(--c-bg3); border: 1px solid var(--c-border);
  border-radius: 6px; color: var(--c-text); font-size: .88rem;
  font-family: var(--ff-body); outline: none; transition: border-color .2s;
}
.input:focus { border-color: var(--c-acc); }
.textarea { resize: vertical; min-height: 180px; }
select.input { cursor: pointer; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .78rem; font-weight: 600; color: var(--c-muted); margin-bottom: 6px; letter-spacing: .3px; }
.form-row { display: flex; gap: 16px; }
@media (max-width: 600px) { .form-row { flex-direction: column; } }

.edit-form { max-width: 800px; }

.product-row {
  background: var(--c-bg3); border: 1px solid var(--c-border);
  border-radius: var(--r); padding: 16px; margin-bottom: 12px;
}
.product-row .input { margin-bottom: 0; }

.tag-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-hint {
  font-size: .72rem; padding: 3px 8px;
  background: var(--c-bg3); border: 1px solid var(--c-border);
  border-radius: 4px; color: var(--c-muted2); cursor: pointer;
  transition: all .15s;
}
.tag-hint:hover { border-color: var(--c-acc); color: var(--c-acc); }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px;
  background: var(--c-acc); color: #000;
  border: none; border-radius: 6px;
  font-size: .85rem; font-weight: 700; font-family: var(--ff-head);
  cursor: pointer; transition: background .15s; white-space: nowrap;
}
.btn-primary:hover { background: var(--c-acc2); }

.btn-edit {
  display: inline-flex; align-items: center;
  padding: 7px 13px;
  background: var(--c-bg3); border: 1px solid var(--c-border2);
  border-radius: 6px; font-size: .8rem; font-weight: 500;
  color: var(--c-text); cursor: pointer; font-family: var(--ff-body);
  transition: border-color .15s; white-space: nowrap;
}
.btn-edit:hover { border-color: var(--c-acc); color: var(--c-acc); }

.btn-del {
  display: inline-flex; align-items: center;
  padding: 7px 13px;
  background: rgba(255,60,60,.08); border: 1px solid rgba(255,60,60,.2);
  border-radius: 6px; font-size: .8rem; font-weight: 500;
  color: #ff6060; cursor: pointer; font-family: var(--ff-body);
  transition: background .15s; white-space: nowrap;
}
.btn-del:hover { background: rgba(255,60,60,.18); }

/* ══════════════════════════════════════════════
   MOBILE — полная адаптация
══════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* контейнер */
  .container { padding: 0 16px; }

  /* герой */
  .hero { padding: 40px 0 36px; }
  .hero-title { font-size: 2rem; letter-spacing: -1px; }
  .hero-desc { font-size: .9rem; margin-bottom: 24px; }
  .hero-cats { gap: 8px; }
  .hero-cat { padding: 10px 14px; font-size: .82rem; }

  /* секции */
  .section { padding: 36px 0; }
  .section-head { margin-bottom: 20px; padding-bottom: 14px; }
  .section-title { font-size: .95rem; }

  /* карточки статей */
  .grid-articles { grid-template-columns: 1fr; gap: 12px; }
  .article-card-img { height: 180px; }
  .article-card-body { padding: 14px; }
  .article-card-body h3 { font-size: .88rem; }

  /* маленькие карточки */
  .grid-small { grid-template-columns: 1fr; gap: 10px; }
  .small-card { padding: 12px; }
  .small-card-img { width: 60px; height: 60px; }
  .small-card-body h3 { font-size: .78rem; }

  /* популярное */
  .popular-card { gap: 12px; padding: 14px 0; }
  .popular-num { font-size: 1.4rem; width: 36px; }
  .popular-info h3 { font-size: .82rem; }
  .popular-thumb { width: 60px; height: 48px; }

  /* статья */
  .article-page { padding: 20px 0 48px; }
  .article-title { font-size: 1.4rem; letter-spacing: -.5px; }
  .article-lead { font-size: .95rem; }
  .article-cover { height: 200px; margin: 20px 0; border-radius: var(--r); }
  .article-body { font-size: .95rem; line-height: 1.75; }
  .article-body h2 { font-size: 1rem; }
  .breadcrumb { font-size: .72rem; gap: 5px; margin-bottom: 16px; }

  /* товары */
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-img { height: 120px; }
  .product-body { padding: 10px; }
  .product-name { font-size: .8rem; }
  .product-price { font-size: .95rem; }
  .btn-buy { font-size: .72rem; padding: 8px; }

  /* поиск */
  .search-big { flex-direction: column; }
  .search-big .btn-primary { width: 100%; }

  /* страница категории */
  .page-hero { padding: 28px 0 20px; }
  .page-title { font-size: 1.4rem; }

  /* футер */
  .footer { padding: 36px 0 24px; }
  .footer-grid { gap: 24px; }

  /* админка мобайл */
  .admin-sidebar { display: none; }
  .admin-main { padding: 20px 16px; }
  .admin-topbar h1 { font-size: 1.1rem; }
  .admin-stats { flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 120px; padding: 12px 16px; }
  .stat-num { font-size: 1.4rem; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 1.7rem; }
  .products-grid { grid-template-columns: 1fr; }
}
