
/* Strict [hidden] enforcement to prevent premature success/error alerts */
[hidden] {
  display: none !important;
}
[data-success][hidden],
[data-error][hidden],
.form-success[hidden],
.form-alert--success[hidden],
.success-box[hidden],
.form-alert-success[hidden] {
  display: none !important;
}

/* ==========================================================================
   Card-Prava.sbs — Современный минимализм (Стиль 1)
   Цвета: #ffffff / #f8fafc / #0f172a / #1d4ed8 / #dc2626 / #e2e8f0
   Шрифт: Inter (без курсива в заголовках, font-weight 700-900)
   ========================================================================== */

:root {
  --bg-body: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-inverse: #ffffff;

  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-subtle: #eff6ff;
  --primary-border: #bfdbfe;

  --accent-red: #dc2626;
  --accent-red-hover: #b91c1c;
  --accent-red-subtle: #fef2f2;
  --accent-red-border: #fecaca;

  --accent-green: #16a34a;
  --accent-green-subtle: #f0fdf4;
  --accent-green-border: #bbf7d0;

  --border: #e2e8f0;
  --border-dark: #cbd5e1;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.10);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Typography (No italics on headings, 700-900 weights)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-style: normal;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

p.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-main);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Layout & Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  position: relative;
}

.section--subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background-color: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.875rem;
}

.section-tag--red {
  color: var(--accent-red);
  background-color: var(--accent-red-subtle);
  border-color: var(--accent-red-border);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
}

.nav-desktop {
  display: none;
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.btn-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.btn-burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.btn-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.btn-burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 992px) {
  .btn-burger {
    display: none;
  }
}

/* Mobile Nav Drawer */
.nav-mobile {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 20px 1.75rem;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.nav-mobile-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-xs);
}

.nav-mobile-link.active,
.nav-mobile-link:hover {
  background: var(--primary-subtle);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: var(--border-dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-subtle);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 2rem;
}

.hero-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.hero-highlight-pill svg {
  color: var(--accent-red);
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background-color: #f1f5f9;
}

.hero-image-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: 20px;
  right: 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 576px) {
  .hero-floating-card {
    right: auto;
    bottom: -15px;
    max-width: 340px;
  }
}

/* --------------------------------------------------------------------------
   Badges, Signs & Icons
   -------------------------------------------------------------------------- */
.sign-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.road-icon-sign {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.badge-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-tag--blue {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge-tag--green {
  background: var(--accent-green-subtle);
  color: var(--accent-green);
  border: 1px solid var(--accent-green-border);
}

.badge-tag--red {
  background: var(--accent-red-subtle);
  color: var(--accent-red);
  border: 1px solid var(--accent-red-border);
}

/* --------------------------------------------------------------------------
   Cards & Grids
   -------------------------------------------------------------------------- */
.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.card-category {
  padding: 0;
  overflow: hidden;
}

.card-category-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  background: #f1f5f9;
}

.card-category-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-price-row {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.card-price {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.card-term {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* Feature card */
.feature-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-box-icon--red {
  background: var(--accent-red-subtle);
  color: var(--accent-red);
}

/* --------------------------------------------------------------------------
   Order Form (Includes order-form.php)
   -------------------------------------------------------------------------- */
.form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-label span.req {
  color: var(--accent-red);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.form-policy {
  font-size: 0.775rem;
  color: var(--text-dim);
  margin-top: 1rem;
  line-height: 1.45;
  text-align: center;
}

/* Form success message */
.form-success {
  background: var(--accent-green-subtle);
  border: 1px solid var(--accent-green-border);
  color: #166534;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-error {
  background: var(--accent-red-subtle);
  border: 1px solid var(--accent-red-border);
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Steps & Timeline
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Tables (Clean Minimalist)
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.table-custom th {
  background: #f8fafc;
  color: var(--text-main);
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-custom td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.table-custom tr:last-child td {
  border-bottom: none;
}

.table-custom tr:hover td {
  background: #f8fafc;
}

.table-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   FAQ Accordions
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-toggle {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.faq-toggle:hover {
  background-color: var(--bg-subtle);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
  color: var(--primary);
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.faq-item.is-open .faq-content {
  display: block;
}

/* --------------------------------------------------------------------------
   Guarantee / Trust Banner
   -------------------------------------------------------------------------- */
.trust-banner {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1.5rem 0;
}

.trust-banner--red {
  border-left-color: var(--accent-red);
}

.trust-banner-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--primary);
}

.trust-banner--red .trust-banner-icon {
  color: var(--accent-red);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding-top: 4rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-heading {
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f8fafc;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #64748b;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-disclaimer {
  max-width: 800px;
  line-height: 1.5;
}

/* =====================================================================
   ENHANCED ARTICLE & TABLE STYLES (Card-Prava Minimalist)
   ===================================================================== */
.article-section {
  padding: 4rem 0;
  background: #f8fafc;
}
.article-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.article-content {
  background: #ffffff;
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
}
@media (max-width: 768px) {
  .article-content {
    padding: 1.75rem 1.25rem;
  }
}
.article-content h2.article-h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  letter-spacing: -0.02em;
}
.article-content h2.article-h2--main {
  font-size: 2.25rem;
  border-bottom: 3px solid #2563eb;
  margin-top: 0;
}
@media (max-width: 768px) {
  .article-content h2.article-h2--main { font-size: 1.65rem; }
  .article-content h2.article-h2 { font-size: 1.4rem; }
}
.article-content h3.article-h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}
.article-content h4.article-h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2563eb;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.article-content p.article-p {
  margin-bottom: 1.25rem;
  color: #334155;
  line-height: 1.75;
}
.article-content ul.article-list, .article-content ol.article-list {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.article-content ul.article-list li, .article-content ol.article-list li {
  margin-bottom: 0.6rem;
  color: #334155;
  line-height: 1.65;
}
.article-content hr.article-divider {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 3rem 0;
}

/* Callouts */
.article-content blockquote.article-callout {
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
  color: #1e293b;
}
.callout-header {
  margin-bottom: 0.6rem;
}
.callout-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.callout-badge--tip { background: #dbeafe; color: #1e40af; }
.callout-badge--note { background: #e0e7ff; color: #3730a3; }
.callout-badge--warning { background: #fee2e2; color: #991b1b; }
.callout-badge--important { background: #fef3c7; color: #92400e; }

/* Responsive Modern Tables */
.article-content .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}
.article-content table.article-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
  min-width: 580px;
}
.article-content table.article-table th {
  background: #f1f5f9;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}
.article-content table.article-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.article-content table.article-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}
.article-content table.article-table tbody tr:hover td {
  background: #eff6ff;
}
.article-content table.article-table tr:last-child td {
  border-bottom: none;
}

/* Process Step Cards (replaces Mermaid) */
.article-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.step-card:hover {
  border-color: #2563eb;
  transform: translateX(4px);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body {
  flex: 1;
}
.step-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.step-desc {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.5;
}

/* Category Flow Cards */
.category-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.category-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.category-card--highlight {
  border-color: #2563eb;
  background: #eff6ff;
}
.category-code {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  padding: 0.35rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.category-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 0.35rem;
}
.category-info {
  font-size: 0.875rem;
  color: #64748b;
}

/* Verification Result Mockup */
.verify-mockup {
  background: #ffffff;
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px -2px rgba(34, 197, 94, 0.12);
}
.verify-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}
.verify-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
}
.verify-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
}
.verify-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem 1.5rem;
}
.verify-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.9375rem;
}
.verify-row span { color: #64748b; }
.verify-row strong { color: #0f172a; }
.verify-row strong.text-green { color: #16a34a; }

/* Cost Comparison Grid */
.cost-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.cost-card {
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid;
}
.cost-card--negative {
  background: #fef2f2;
  border-color: #fecaca;
}
.cost-card--negative .cost-card-header {
  color: #991b1b;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.cost-card--positive {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.cost-card--positive .cost-card-header {
  color: #166534;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.cost-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cost-list li {
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.cost-list li:last-child {
  border-bottom: none;
}
