/* ============================================
   realnyzarabotok.ru — Global Stylesheet
   Стиль: Authoritative Editorial / Expert Blog
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;800&family=Golos+Text:wght@400;500;600;700&display=swap');

/* ─── Variables ─── */
:root {
  --navy:        #0a1628;
  --navy-mid:    #122240;
  --navy-lt:     #e8edf7;
  --blue:        #1a4080;
  --sky:         #2d6be4;
  --sky-lt:      #eaf0fd;
  --orange:      #f07020;
  --orange-dk:   #c05510;
  --orange-lt:   #fff3eb;
  --gold:        #f5a623;
  --gold-lt:     #fffbee;
  --ink:         #080f1e;
  --body:        #1e2b40;
  --mid:         #5a6880;
  --dust:        #9aaabb;
  --bg:          #f5f7fa;
  --bg-card:     #ffffff;
  --rule:        #dde4ef;
  --shadow-sm:   0 1px 8px rgba(10,22,40,.07);
  --shadow-md:   0 5px 24px rgba(10,22,40,.12);
  --shadow-lg:   0 14px 48px rgba(10,22,40,.18);
  --r:           6px;
  --r-lg:        12px;
  --font-head:   'Unbounded', sans-serif;
  --font-body:   'Golos Text', system-ui, sans-serif;
  --max-w:       1180px;
  --t:           .22s ease;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body);
  line-height: 1.72;
  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; }

/* ─── ADS ─── */
.ad-zone {
  background: #edf0f7;
  border: 1px dashed var(--rule);
  text-align: center;
  padding: 10px;
  margin: 18px 0;
  font-size: .7rem;
  color: var(--dust);
  letter-spacing: .5px;
  border-radius: var(--r);
}
.ad-zone-header { border-radius: 0; margin: 0; border-left: none; border-right: none; }

/* ─── HEADER ─── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.header-top {
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-top-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: rgba(255,255,255,.35);
}
.header-top-inner span { display: flex; align-items: center; gap: 6px; }
.header-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-badge {
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 9px;
  border-radius: var(--r);
  line-height: 1;
  flex-shrink: 0;
}
.logo-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-title {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
  line-height: 1;
}
.logo-title span { color: var(--orange); }
.logo-sub {
  font-size: .6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  color: rgba(255,255,255,.58);
  font-family: var(--font-body);
  font-size: .83rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--r);
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(240,112,32,.18);
  color: #fff;
}

/* ─── HERO ─── */
.hero {
  background: var(--navy);
  overflow: hidden;
  position: relative;
}
/* Diagonal split */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
  position: relative; z-index: 1;
}
/* Background grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.hero-overline::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--orange);
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.13;
  letter-spacing: -.5px;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero h1 strong { color: var(--gold); font-weight: 800; }
.hero-lead {
  color: rgba(255,255,255,.62);
  font-size: 1rem;
  line-height: 1.68;
  max-width: 460px;
  margin-bottom: 34px;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 13px 26px;
  border-radius: var(--r);
  transition: background var(--t), transform var(--t);
  white-space: nowrap;
}
.btn-primary:hover { background: #e06010; transform: translateY(-2px); }
.hero-trust {
  font-size: .78rem;
  color: rgba(255,255,255,.38);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Right panel */
.hero-panel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
}
.panel-title {
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.panel-items { display: flex; flex-direction: column; gap: 14px; }
.panel-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pi-icon {
  width: 40px; height: 40px;
  background: rgba(240,112,32,.15);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pi-val {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.pi-label { font-size: .75rem; color: rgba(255,255,255,.4); }

/* ─── CATEGORIES ─── */
.cats-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.cats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  height: 50px;
  align-items: center;
  gap: 4px;
}
.cats-inner::-webkit-scrollbar { display: none; }
.cats-inner a {
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 600;
  color: var(--mid);
  padding: 7px 16px;
  border-radius: 40px;
  border: 1px solid var(--rule);
  transition: background var(--t), color var(--t), border-color var(--t);
  flex-shrink: 0;
}
.cats-inner a:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ─── SECTION ─── */
.sec { padding: 64px 0; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--navy);
  position: relative;
}
.sec-head::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 60px; height: 3px;
  background: var(--orange);
}
.sec-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}
.sec-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.3px;
  line-height: 1.2;
}
.sec-all {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--sky);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: gap var(--t);
  flex-shrink: 0;
}
.sec-all:hover { gap: 8px; }

/* ─── GRID ─── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.article-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-thumb {
  overflow: hidden;
  height: 198px;
  position: relative;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.article-card:hover .card-thumb img { transform: scale(1.06); }
.card-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}
.card-earn {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(10,22,40,.8);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.card-body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.card-meta { font-size: .72rem; color: var(--dust); margin-bottom: 8px; display: flex; gap: 10px; }
.card-title {
  font-family: var(--font-head);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -.2px;
  transition: color var(--t);
}
.article-card:hover .card-title { color: var(--orange); }
.card-desc { font-size: .86rem; color: var(--mid); line-height: 1.62; flex: 1; margin-bottom: 16px; }
.card-read {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--sky);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--t);
}
.article-card:hover .card-read { gap: 9px; }

/* ─── FEATURED WIDE CARD ─── */
.article-card.wide {
  grid-column: 1 / -1;
  flex-direction: row;
}
.article-card.wide .card-thumb { height: auto; min-height: 260px; width: 420px; flex-shrink: 0; }
.article-card.wide .card-body { padding: 32px 36px; justify-content: center; }
.article-card.wide .card-title { font-size: 1.35rem; }

/* ─── 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: 26px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--rule);
}
.a-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-lt);
  color: var(--orange-dk);
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 40px;
  margin-bottom: 14px;
  border: 1px solid rgba(240,112,32,.2);
}
.a-earn-badge {
  float: right;
  background: var(--gold-lt);
  border: 1px solid var(--gold);
  color: var(--orange-dk);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r);
  margin: 0 0 14px 14px;
}
.article-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.4px;
  color: var(--ink);
  margin-bottom: 16px;
}
.article-title em { font-style: normal; color: var(--orange); }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: .78rem; color: var(--dust); flex-wrap: wrap; }

/* ─── BODY ─── */
.article-body { font-size: 1rem; line-height: 1.8; color: var(--mid); }
.article-body > p:first-of-type { font-size: 1.07rem; color: var(--body); font-weight: 500; }
.article-body h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 14px;
  padding-left: 16px;
  border-left: 4px solid var(--orange);
  letter-spacing: -.2px;
}
.article-body h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--body);
  margin: 24px 0 10px;
  letter-spacing: -.1px;
}
.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(--orange);
  font-size: .6rem; top: 5px;
}
.article-body ol { counter-reset: li; }
.article-body ol li { padding-left: 38px; position: relative; counter-increment: li; }
.article-body ol li::before {
  content: counter(li);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r);
}
.article-img { margin: 26px 0; border-radius: var(--r-lg); overflow: hidden; }
.article-img img { width: 100%; height: 360px; object-fit: cover; }
.article-img figcaption { font-size: .78rem; color: var(--dust); padding: 10px 0 4px; font-style: italic; }

/* Инфо-блоки */
.earn-box {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin: 24px 0;
  color: #fff;
}
.earn-box-title {
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.earn-box p { color: rgba(255,255,255,.75); font-size: .92rem; margin: 0; line-height: 1.65; }
.earn-box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.ebg-item { text-align: center; }
.ebg-val {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.ebg-label { font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 3px; }
.step-box {
  background: var(--bg-card);
  border: 2px solid var(--rule);
  border-top: 4px solid var(--orange);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 20px 22px;
  margin: 22px 0;
}
.step-box-title {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.warn-box {
  background: #fff8f5;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: .9rem;
}
.warn-box strong { color: var(--orange-dk); }
.calc-box {
  background: var(--navy-mid);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin: 22px 0;
  font-family: 'Courier New', monospace;
  font-size: .9rem;
  color: #7dd4b0;
  line-height: 1.9;
}
.calc-box .cl { font-family: var(--font-body); font-size: .65rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 8px; }

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

/* ─── SIDEBAR ─── */
.sidebar { position: sticky; top: 82px; }
.sw {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.sw-title {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 11px 18px;
  display: flex; align-items: center; gap: 7px;
}
.sw-links { padding: 6px 0; }
.sw-links a {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 18px;
  border-left: 3px solid transparent;
  transition: background var(--t), border-color var(--t);
  font-size: .84rem; color: var(--mid); line-height: 1.38;
}
.sw-links a:hover { background: var(--navy-lt); border-left-color: var(--orange); color: var(--ink); }
.sw-links a .n { flex-shrink: 0; font-family: var(--font-head); font-size: .78rem; font-weight: 800; color: var(--orange); margin-top: 1px; min-width: 22px; }
.sw-earn { flex-shrink: 0; font-family: var(--font-head); font-size: .68rem; font-weight: 700; color: var(--gold); background: var(--gold-lt); padding: 2px 7px; border-radius: 3px; white-space: nowrap; margin-top: 2px; }
.sw-inner { padding: 16px 18px; }
.sw-rating { display: flex; flex-direction: column; gap: 0; }
.sw-rate-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
  font-size: .83rem;
}
.sw-rate-item:last-child { border-bottom: none; }
.sw-rate-item strong { font-family: var(--font-head); color: var(--orange); }

/* ─── FOOTER ─── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.38); 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 rgba(255,255,255,.07);
}
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 280px; margin-top: 14px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: .65rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--orange); 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: #fff; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; font-size: .76rem; flex-wrap: wrap; gap: 8px;
}
.footer-disc { color: rgba(255,255,255,.2); font-size: .73rem; max-width: 580px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .article-card.wide { flex-direction: column; }
  .article-card.wide .card-thumb { width: 100%; height: 240px; }
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .article-card.wide { grid-column: 1; }
  .site-nav a { font-size: .76rem; padding: 7px 8px; }
  .footer-top { grid-template-columns: 1fr; }
  .earn-box-grid { grid-template-columns: 1fr 1fr; }
}
