:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --accent-light: #e0f2fe;
  --accent-lighter: #f0f9ff;
  --bg-main: #ffffff;
  --bg-section: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --text-dark: #0f172a;
  --text-heading: #0f172a;
  --text-body: #475569;
  --text-light: #94a3b8;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav { display: flex; align-items: center; gap: 32px; }

.nav a:not(.btn-primary) {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: -0.1px;
}

.nav a:hover { color: var(--text-dark); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: -0.1px;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14,165,233,0.3);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 1px;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HERO ===== */
.hero {
  padding: 96px 24px 80px;
  background: var(--bg-main);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-visual {
  flex: 0 0 400px;
  padding-top: 24px;
}

.hero-infographic {
  width: 100%;
  height: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -1.8px;
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 680px;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 640px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -1px;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
  font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
}

.section--alt {
  background: var(--bg-section);
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 620px;
}

.section-header {
  margin-bottom: 56px;
}

/* ===== ARTICLE CONTENT ===== */
.article {
  padding: 80px 24px;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 64px 0 20px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.4px;
  line-height: 1.3;
  margin: 48px 0 16px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 16px 0 24px 0;
  padding-left: 0;
  list-style: none;
}

.article-content ol {
  counter-reset: item;
}

.article-content li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 12px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.article-content ol li {
  counter-increment: item;
}

.article-content ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  width: 22px;
  text-align: center;
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--border);
  max-width: 760px;
  margin: 0 auto;
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0 36px;
  font-size: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table thead th {
  background: var(--bg-section);
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  line-height: 1.5;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  width: 200px;
}

.comparison-table tbody td:nth-child(3) {
  color: var(--accent-dark);
  font-weight: 500;
}

/* ===== CALLOUT ===== */
.callout {
  background: var(--accent-lighter);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 32px 0;
}

.callout p {
  color: var(--primary-light);
  font-size: 15px;
  margin-bottom: 0;
}

/* ===== ARCHITECTURE DIAGRAM ===== */
.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 40px 24px;
  margin: 36px 0;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.arch-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: center;
  min-width: 0;
  flex-shrink: 1;
}

.arch-block--core {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  padding: 20px 24px;
  min-width: 0;
}

.arch-block-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.arch-block-sub {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
  line-height: 1.4;
}

.arch-arrow {
  font-size: 20px;
  color: var(--text-light);
  padding: 0 12px;
  flex-shrink: 0;
}

/* ===== METRIC STRIP ===== */
.metric-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 24px;
  margin: 36px 0;
  background: var(--primary);
  border-radius: var(--radius-md);
  color: white;
  flex-wrap: wrap;
}

.metric-strip-item {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

.metric-strip-dot {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== FLOW DIAGRAM ===== */
.flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 28px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.flow-step {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}

.flow-arrow {
  font-size: 16px;
  color: var(--text-light);
  padding: 0 8px;
}

/* ===== STEPS ===== */
.steps {
  margin: 36px 0;
}

.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.article-content .step-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.step-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 0;
}

/* ===== BENEFITS GRID ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 48px;
}

.benefit-card {
  background: white;
  padding: 36px 28px;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-dark);
}

.benefit-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.benefit-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ===== CTA ===== */
.cta-section {
  padding: 96px 24px;
  background: var(--bg-dark);
  color: white;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-inner p {
  font-size: 16px;
  line-height: 1.75;
  color: #94a3b8;
  margin-bottom: 40px;
}

.cta-inner .btn-primary {
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 10px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 80px 24px;
  background: var(--bg-section);
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.contact-inner > p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}

.contact-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.contact-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-handle {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-contact:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-contact.btn-telegram {
  background: #0088cc;
}

.btn-contact.btn-telegram:hover {
  background: #006daa;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 80px 24px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 40px 24px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  position: relative;
  font-family: inherit;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-light);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

/* ===== FOOTER ===== */
.footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 13px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-dark); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; gap: 40px; }
  .hero-visual { flex: none; width: 100%; max-width: 420px; }
  .hero h1 { font-size: 42px; }
  .hero-stats { gap: 32px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-menu-btn { display: block; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .hero { padding: 64px 24px 56px; }
  .hero h1 { font-size: 34px; letter-spacing: -1.2px; }
  .hero-subtitle { font-size: 15px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero-stat-value { font-size: 24px; }

  .section { padding: 56px 24px; }
  .section-title { font-size: 28px; }

  .article { padding: 56px 24px; }
  .article-content h2 { font-size: 24px; margin-top: 48px; }
  .article-content h3 { font-size: 19px; margin-top: 36px; }

  .comparison-table { font-size: 13px; }
  .comparison-table thead th { padding: 12px 14px; }
  .comparison-table tbody td { padding: 12px 14px; }
  .comparison-table tbody td:first-child { width: auto; }

  .arch-diagram { flex-direction: column; gap: 0; padding: 24px 16px; }
  .arch-arrow { transform: rotate(90deg); padding: 8px 0; }

  .benefits-grid { grid-template-columns: 1fr; }

  .cta-inner h2 { font-size: 28px; }

  .contact-cards { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links { gap: 16px; }
}

@media (max-width: 480px) {
  .header-inner { height: 56px; }
  .logo { font-size: 14px; }
  .logo-icon { width: 28px; height: 28px; }

  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 28px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 14px; }
  .hero-stats { gap: 20px; }
  .hero-stat-value { font-size: 22px; }
  .hero-stat-label { font-size: 12px; }

  .section { padding: 40px 16px; }
  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 14px; }

  .article { padding: 40px 16px; }
  .article-content h2 { font-size: 22px; }
  .article-content h3 { font-size: 18px; }
  .article-content p { font-size: 15px; }
  .article-content li { font-size: 15px; }

  .metric-strip { gap: 16px; padding: 20px 16px; }
  .metric-strip-item { font-size: 13px; }

  .step { gap: 14px; padding: 20px 0; }

  .benefit-card { padding: 28px 20px; }

  .cta-section { padding: 64px 16px; }
  .cta-inner h2 { font-size: 24px; }
  .cta-inner p { font-size: 14px; }

  .contact-section { padding: 56px 16px; }
  .contact-card { padding: 28px 20px; }

  .faq-question { font-size: 15px; }
  .faq-answer p { font-size: 14px; }

  .footer { padding: 20px 16px; }
  .footer-links { gap: 12px; flex-wrap: wrap; justify-content: center; }
}

/* ===== NAV ACTIVE ===== */
.nav a.active:not(.btn-primary) { color: var(--text-dark); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 72px 24px 56px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.page-hero--wide .page-hero-inner { max-width: 1120px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--text-dark); }

.breadcrumb span { color: var(--border); }

.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 700px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
}

.article-meta span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== ARTICLE EXTRAS ===== */
.article-content a {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(2,132,199,0.3);
  transition: border-color 0.2s;
}

.article-content a:hover { border-color: var(--accent-dark); }

.article-content .lead {
  font-size: 18px;
  color: var(--primary-light);
}

.example-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 28px 0 32px;
}

.example-box div {
  background: white;
  padding: 20px;
  text-align: center;
}

.example-box strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.8px;
}

.example-box small {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 32px;
}

.role-card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}

.role-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.role-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== PROVIDERS ===== */
.providers-section { padding: 56px 24px 88px; }

.providers-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.provider-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: white;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover { border-color: var(--text-light); color: var(--text-dark); }

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.provider-search {
  position: relative;
  min-width: 260px;
}

.provider-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

.provider-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.provider-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.provider-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.provider-tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.provider-tile.hidden { display: none; }

.provider-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.provider-tile[data-cat="live"] .provider-mark { background: #7c3aed; }
.provider-tile[data-cat="crash"] .provider-mark { background: var(--accent-dark); }
.provider-tile[data-cat="table"] .provider-mark { background: #0f766e; }
.provider-tile[data-cat="virtual"] .provider-mark { background: #b45309; }

.provider-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.provider-cat {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 2px;
}

.providers-empty {
  display: none;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.providers-empty.visible { display: block; }

.providers-note {
  margin-top: 32px;
  font-size: 13.5px;
  color: var(--text-light);
  text-align: center;
}

/* ===== BLOG ===== */
.blog-section { padding: 56px 24px 88px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
}

.blog-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.4px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
}

.blog-card-more {
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-dark);
}

.related-section {
  padding: 64px 24px;
  background: var(--bg-section);
  border-top: 1px solid var(--border);
}

.related-section .section-header { margin-bottom: 32px; }

/* ===== RESPONSIVE (inner pages) ===== */
@media (max-width: 1024px) {
  .providers-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .page-hero { padding: 48px 24px 40px; }
  .page-hero h1 { font-size: 32px; letter-spacing: -1px; }
  .page-hero p { font-size: 15px; }
  .providers-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .provider-search { min-width: 0; width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .example-box { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .page-hero { padding: 40px 16px 32px; }
  .page-hero h1 { font-size: 26px; }
  .providers-section, .blog-section { padding: 32px 16px 64px; }
  .providers-grid { grid-template-columns: 1fr; }
  .provider-tile { padding: 14px 16px; }
  .blog-card { padding: 22px; }
}
