/* ============================================
   techvybor.ru — Global Stylesheet
   Стиль: Dark Tech Media / Gadget Review
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ─── Variables ─── */
:root {
  --bg:          #0d0f14;
  --bg-2:        #13161e;
  --bg-3:        #1a1e2a;
  --bg-4:        #212535;
  --bg-card:     #171b26;
  --cyan:        #00d4ff;
  --cyan-dk:     #0099bb;
  --cyan-lt:     rgba(0,212,255,.08);
  --cyan-glow:   rgba(0,212,255,.15);
  --violet:      #7b61ff;
  --violet-lt:   rgba(123,97,255,.1);
  --green:       #00e676;
  --green-lt:    rgba(0,230,118,.08);
  --orange:      #ff6b35;
  --orange-lt:   rgba(255,107,53,.08);
  --red:         #ff4444;
  --text:        #e8ecf4;
  --text-mid:    #8890a8;
  --text-dim:    #555e78;
  --rule:        rgba(255,255,255,.07);
  --shadow-glow: 0 0 24px rgba(0,212,255,.12);
  --shadow-md:   0 6px 28px rgba(0,0,0,.4);
  --shadow-lg:   0 16px 52px rgba(0,0,0,.6);
  --r:           6px;
  --r-lg:        12px;
  --r-xl:        20px;
  --font-head:   'Space Grotesk', system-ui, sans-serif;
  --font-mono:   'Space Mono', monospace;
  --max-w:       1200px;
  --t:           .2s ease;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-head);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── AD ZONES ─── */
.ad-zone {
  background: var(--bg-2);
  border: 1px dashed rgba(255,255,255,.08);
  text-align: center;
  padding: 10px;
  margin: 18px 0;
  font-size: .7rem;
  color: var(--text-dim);
  letter-spacing: .5px;
  border-radius: var(--r);
}
.ad-zone-header { border-radius: 0; margin: 0; }

/* ─── HEADER ─── */
.site-header {
  background: rgba(13,15,20,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--cyan);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0,212,255,.4);
}
.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
}
.logo-text span { color: var(--cyan); }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  color: var(--text-mid);
  font-size: .84rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--r);
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.site-nav a:hover, .site-nav a.active {
  background: var(--cyan-lt);
  color: var(--cyan);
}

/* ─── HERO ─── */
.hero {
  background: var(--bg-2);
  padding: 0 0 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
/* Animated grid background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--cyan);
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 18px;
  color: var(--text);
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero h1 strong { color: var(--text); }
.hero-sub {
  color: var(--text-mid);
  font-size: .98rem;
  line-height: 1.68;
  max-width: 440px;
  margin-bottom: 32px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tag {
  background: var(--bg-3);
  border: 1px solid var(--rule);
  color: var(--text-mid);
  font-size: .76rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 40px;
  transition: border-color var(--t), color var(--t);
}
.hero-tag:hover { border-color: var(--cyan); color: var(--cyan); }

/* Hero device panel */
.hero-device-panel {
  position: relative;
}
.device-showcase {
  background: var(--bg-3);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.device-showcase::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.ds-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ds-label::after { content: '●'; font-size: .5rem; color: var(--green); }
.top-picks { display: flex; flex-direction: column; gap: 12px; }
.top-pick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-4);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  transition: border-color var(--t), background var(--t);
  cursor: pointer;
}
.top-pick-item:hover { border-color: var(--cyan); background: var(--bg-3); }
.tpi-rank {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--cyan);
  font-weight: 700;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.tpi-icon { font-size: 1.4rem; flex-shrink: 0; }
.tpi-info { flex: 1; }
.tpi-name { font-size: .88rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.tpi-cat { font-size: .72rem; color: var(--text-dim); margin-top: 1px; }
.tpi-score {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

/* ─── TICKER ─── */
.ticker {
  background: var(--bg-3);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.ticker-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 46px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
}
.ticker-inner::-webkit-scrollbar { display: none; }
.ticker-inner a {
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 6px 14px;
  border-radius: 40px;
  border: 1px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t);
  flex-shrink: 0;
}
.ticker-inner a:hover {
  background: var(--cyan-lt);
  color: var(--cyan);
  border-color: rgba(0,212,255,.2);
}

/* ─── SECTION ─── */
.sec { padding: 60px 0; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.sec-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
  font-family: var(--font-mono);
}
.sec-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
}
.sec-all {
  font-size: .77rem;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: gap var(--t);
  font-family: var(--font-mono);
}
.sec-all:hover { gap: 9px; }

/* ─── CARDS ─── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,212,255,.25);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 20px rgba(0,212,255,.06);
}
.card-thumb {
  overflow: hidden;
  height: 192px;
  position: relative;
  background: var(--bg-3);
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  opacity: .9;
}
.article-card:hover .card-thumb img { transform: scale(1.06); opacity: 1; }
.card-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--cyan);
  color: var(--bg);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
  font-family: var(--font-mono);
}
.card-score {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(13,15,20,.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rule);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--r);
}
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-meta { font-size: .7rem; color: var(--text-dim); margin-bottom: 8px; display: flex; gap: 10px; font-family: var(--font-mono); }
.card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 9px;
  letter-spacing: -.2px;
  transition: color var(--t);
}
.article-card:hover .card-title { color: var(--cyan); }
.card-desc { font-size: .84rem; color: var(--text-mid); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.card-read {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--t);
  font-family: var(--font-mono);
}
.article-card:hover .card-read { gap: 9px; }

/* ─── ARTICLE PAGE ─── */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px 24px 72px;
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 44px;
  align-items: start;
}
.article-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.a-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cyan-lt);
  color: var(--cyan);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 40px;
  margin-bottom: 14px;
  border: 1px solid rgba(0,212,255,.2);
  font-family: var(--font-mono);
}
.a-score-badge {
  float: right;
  background: var(--bg-3);
  border: 1px solid var(--green);
  border-radius: var(--r);
  padding: 8px 16px;
  text-align: center;
  margin: 0 0 16px 16px;
}
.a-score-badge .score-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.a-score-badge .score-label {
  font-size: .62rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: 2px;
}
.article-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.4px;
  color: var(--text);
  margin-bottom: 14px;
}
.article-title em { font-style: normal; color: var(--cyan); }
.article-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: .74rem; color: var(--text-dim);
  flex-wrap: wrap; font-family: var(--font-mono);
}

/* ─── BODY ─── */
.article-body { font-size: .98rem; line-height: 1.8; color: var(--text-mid); }
.article-body > p:first-of-type { font-size: 1.05rem; color: var(--text); font-weight: 400; }
.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 14px;
  letter-spacing: -.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-body h2::before {
  content: '';
  width: 3px; height: 22px;
  background: var(--cyan);
  display: block;
  flex-shrink: 0;
}
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol {
  margin: 14px 0 20px;
  display: flex; flex-direction: column; gap: 9px;
}
.article-body ul li { padding-left: 22px; position: relative; }
.article-body ul li::before {
  content: '▹';
  position: absolute; left: 0;
  color: var(--cyan); font-size: .8rem; top: 2px;
}
.article-body ol { counter-reset: li; }
.article-body ol li { padding-left: 36px; position: relative; counter-increment: li; }
.article-body ol li::before {
  content: counter(li);
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px;
  background: var(--cyan-lt);
  border: 1px solid rgba(0,212,255,.3);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.article-img { margin: 24px 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--rule); }
.article-img img { width: 100%; height: 360px; object-fit: cover; }
.article-img figcaption { font-size: .75rem; color: var(--text-dim); padding: 10px 14px; font-family: var(--font-mono); border-top: 1px solid var(--rule); }

/* Spec table */
.spec-table {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 22px 0;
}
.spec-table-title {
  background: var(--bg-3);
  color: var(--cyan);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 11px 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  display: flex; align-items: center; gap: 8px;
}
.spec-row {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .86rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--text-dim); width: 160px; flex-shrink: 0; font-family: var(--font-mono); font-size: .78rem; }
.spec-val { color: var(--text); font-weight: 500; }
.spec-val.good { color: var(--green); }
.spec-val.ok { color: var(--orange); }
.spec-val.bad { color: var(--red); }

/* Verdict */
.verdict-box {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--cyan);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 22px 24px;
  margin: 26px 0;
}
.verdict-title {
  font-size: .68rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 10px;
  font-family: var(--font-mono); display: flex; align-items: center; gap: 8px;
}
.verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.verdict-col-title {
  font-size: .72rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 8px; font-family: var(--font-mono);
}
.verdict-col-title.plus { color: var(--green); }
.verdict-col-title.minus { color: var(--red); }
.verdict-list { display: flex; flex-direction: column; gap: 6px; }
.verdict-list li { font-size: .84rem; padding-left: 18px; position: relative; color: var(--text-mid); }
.verdict-list.plus li::before { content: '+'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.verdict-list.minus li::before { content: '−'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* Comparison */
.compare-box {
  background: var(--bg-3);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin: 22px 0;
}
.compare-title { font-size: .68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; font-family: var(--font-mono); }
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cg-item { text-align: center; }
.cg-val { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; color: var(--cyan); line-height: 1; }
.cg-label { font-size: .7rem; color: var(--text-dim); margin-top: 3px; }

/* Note */
.note-box {
  background: var(--orange-lt);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: .88rem;
}
.note-box strong { color: var(--orange); }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  max-width: var(--max-w); margin: 0 auto; padding: 16px 24px 0;
  display: flex; align-items: center; gap: 8px;
  font-size: .76rem; color: var(--text-dim); flex-wrap: wrap;
  font-family: var(--font-mono);
}
.breadcrumb a { color: var(--text-mid); transition: color var(--t); }
.breadcrumb a:hover { color: var(--cyan); }

/* ─── SIDEBAR ─── */
.sidebar { position: sticky; top: 80px; }
.sw {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 18px;
}
.sw-title {
  background: var(--bg-3);
  color: var(--text-mid);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  color: var(--cyan);
}
.sw-links { padding: 6px 0; }
.sw-links a {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 16px;
  border-left: 2px solid transparent;
  transition: background var(--t), border-color var(--t);
  font-size: .83rem; color: var(--text-mid); line-height: 1.38;
}
.sw-links a:hover { background: var(--cyan-lt); border-left-color: var(--cyan); color: var(--text); }
.sw-links a .n { flex-shrink: 0; font-family: var(--font-mono); font-size: .75rem; font-weight: 700; color: var(--cyan); margin-top: 2px; min-width: 22px; opacity: .7; }
.sw-inner { padding: 14px 16px; }
.sw-score-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--rule);
  font-size: .82rem;
}
.sw-score-row:last-child { border-bottom: none; }
.sw-score-row strong { font-family: var(--font-mono); color: var(--green); }
.score-bar {
  height: 4px;
  background: var(--bg-4);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 2px;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  color: var(--text-dim);
  margin-top: 72px;
}
.footer-top {
  max-width: var(--max-w); margin: 0 auto;
  padding: 52px 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px;
  border-bottom: 1px solid var(--rule);
}
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 280px; margin-top: 14px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .65rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .83rem; transition: color var(--t); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; font-size: .74rem;
  flex-wrap: wrap; gap: 8px; font-family: var(--font-mono);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .device-showcase { display: none; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .verdict-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .site-nav a { font-size: .75rem; padding: 7px 8px; }
  .footer-top { grid-template-columns: 1fr; }
  .spec-key { width: 110px; }
}
