/* pasternak.me — industrial authority design */
:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #1f2937;
  --border: #30363d;
  --accent: #c9a227;
  --accent-dim: #8a6e1a;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #586069;
  --link: #c9a227;
  --link-hover: #e8c247;
  --radius: 6px;
  --max-w: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-brand span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8rem !important;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--link-hover) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  padding: 0.5rem;
}

/* ─── HERO ─── */
.hero {
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem 4rem;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge::before { content: '◆'; font-size: 0.55rem; }
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}
.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.55em;
  letter-spacing: 0.01em;
  margin-top: 0.2rem;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 1.5rem 0 2rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: var(--link-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }

.hero-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.portrait-frame {
  width: 240px;
  height: 300px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait-initial {
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}
.stat-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-align: center;
}
.stat-block .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-block .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── SECTIONS ─── */
.section { padding: 4rem 1.5rem; border-bottom: 1px solid var(--border); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* ─── EXPERTISE GRID ─── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, background 0.2s;
}
.expertise-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
}
.expertise-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
}
.expertise-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.expertise-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── ARTICLES GRID ─── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.article-card-body { padding: 1.5rem; flex: 1; }
.article-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.article-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
.article-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.article-card-footer {
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.article-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.article-arrow {
  color: var(--accent);
  font-size: 1rem;
  transition: transform 0.2s;
}
.article-card:hover .article-arrow { transform: translateX(4px); }

.section-footer { margin-top: 2.5rem; text-align: center; }

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-body p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}
.credentials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.cred-icon {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.fact-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.fact-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.fact-desc strong { color: var(--text); display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }

/* ─── CTA SECTION ─── */
.cta-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, #0d1117 0%, #1a1d26 100%);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.cta-inner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-actions a { font-size: 1rem; padding: 0.8rem 2rem; }

/* ─── FOOTER ─── */
.footer {
  padding: 3rem 1.5rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .footer-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-brand .footer-name span { color: var(--accent); }
.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ─── ARTICLE LAYOUT ─── */
.article-header {
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #161b22 0%, var(--bg) 100%);
}
.article-header-inner {
  max-width: 800px;
  margin: 0 auto;
}
.article-header .breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-dim); }
.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.article-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.article-meta-row span { display: flex; align-items: center; gap: 0.4rem; }

.article-body {
  padding: 3rem 1.5rem;
}
.article-content {
  max-width: 800px;
  margin: 0 auto;
}
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.article-content h2:first-child { padding-top: 0; border-top: none; margin-top: 0; }
.article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
}
.article-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 0.975rem;
}
.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}
.article-content li {
  margin-bottom: 0.5rem;
  font-size: 0.975rem;
  line-height: 1.7;
}
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--link-hover); }
.article-content strong { color: var(--text); }
.article-content em { color: var(--accent); font-style: normal; font-weight: 600; }

.callout {
  background: rgba(201,162,39,0.07);
  border: 1px solid rgba(201,162,39,0.25);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.75rem 0;
}
.callout p { margin-bottom: 0; }

.data-table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 0.875rem; }
.data-table th {
  background: var(--bg-card);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.data-table tr:hover td { background: var(--bg-card); }

/* ─── FAQ ─── */
.faq-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.faq-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: var(--bg-card);
  border: none;
  color: var(--text);
  text-align: left;
  padding: 1.1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--bg-card-hover); }
.faq-q .faq-icon { font-size: 1.1rem; color: var(--accent); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 1.5rem 1.25rem;
  background: var(--bg-card);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-a a { color: var(--accent); }
.faq-item.open .faq-a { display: block; }

/* ─── ARTICLE SIDEBAR ─── */
.article-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}
.sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.sidebar-card h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.sidebar-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.sidebar-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-card a:hover { color: var(--link-hover); }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 0.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.sidebar-links a:hover { color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 1rem; }
  .nav-toggle { display: block; }

  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-portrait { order: -1; }
  .portrait-frame { width: 160px; height: 200px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }

  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .article-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 600px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .section { padding: 3rem 1.5rem; }
}
