/* ==========================================================================
   ООО «РидНЧ» 3PL Logistics — Modern Design System (Late 2026 Edition)
   Infographics, Bento-Grids, High-Precision Supply Chain & Elementor Pro Engine
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Typography */
  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Surfaces & Canvas */
  --color-bg: #faf7f7;
  --color-surface: #ffffff;
  --color-surface-soft: #f7f1f2;
  --color-surface-card: #ffffff;
  --color-border: #e9dedf;
  --color-border-subtle: #f2e9ea;

  /* Obsidian Tech Dark Theme (Warm Wine Obsidian) */
  --color-dark-canvas: #120d0f;
  --color-dark-surface: #1a1316;
  --color-dark-card: #241b20;
  --color-dark-card-hover: #2e2329;
  --color-dark-border: rgba(255, 255, 255, 0.09);
  --color-dark-border-subtle: rgba(255, 255, 255, 0.05);

  /* Brand Primary: Corporate Deep Burgundy & Carmine Wine (РИД-НЧ) */
  --color-primary: #742e34;
  --color-primary-hover: #5a2025;
  --color-primary-light: #fbf2f3;
  --color-primary-glow: #9e3d46;
  --color-cyan-glow: #b8434f;

  /* Operations & Status Accent: Signal Warm Terracotta / Amber */
  --color-accent: #c45b26;
  --color-accent-hover: #a84b1d;
  --color-accent-light: #fdf3ed;
  --color-accent-glow: rgba(196, 91, 38, 0.35);

  /* Live SLA & Verified Emerald */
  --color-emerald: #10b981;
  --color-emerald-light: #ecfdf5;
  --color-emerald-glow: rgba(16, 185, 129, 0.3);

  /* Typography Colors */
  --color-text-main: #1c1516;
  --color-text-muted: #5e5153;
  --color-text-light: #9c8e90;
  --color-text-inverse: #ffffff;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px 0 rgb(30 20 22 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(30 20 22 / 0.07), 0 2px 4px -2px rgb(30 20 22 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(30 20 22 / 0.08), 0 4px 6px -4px rgb(30 20 22 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(30 20 22 / 0.09), 0 8px 10px -6px rgb(30 20 22 / 0.03);
  --shadow-glow: 0 0 35px rgba(116, 46, 52, 0.25);
  --shadow-accent-glow: 0 0 30px rgba(196, 91, 38, 0.3);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Smooth Motion (Design-Motion-Principles) */
  --transition-fast: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --max-width: 1280px;
}

/* ==================== BASE RESET ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--color-text-main);
}

p {
  color: var(--color-text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-normal);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #742e34, #8b3840);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(116, 46, 52, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a2025, #742e34);
  box-shadow: 0 6px 20px rgba(116, 46, 52, 0.45);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-main);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background: var(--color-surface-soft);
  border-color: var(--color-text-muted);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-emblem-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  background: #ffffff;
}

.logo-emblem-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #1c1516, #742e34);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-text-main);
  padding: 0.5rem;
}

/* ==================== HEADER DROPDOWN NAVIGATION ==================== */
.has-dropdown {
  position: relative;
}

.has-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.has-dropdown:hover .dropdown-chevron,
.has-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

/* Hover bridge so mouse movement doesn't flicker */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.dropdown-item:hover {
  background: var(--color-surface-soft);
  transform: translateX(3px);
}

.dropdown-item.active {
  background: var(--color-primary-light);
}

.dropdown-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.dropdown-text {
  display: flex;
  flex-direction: column;
}

.dropdown-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-text-main);
  line-height: 1.25;
  transition: color 0.15s ease;
}

.dropdown-item:hover .dropdown-title {
  color: var(--color-primary);
}

.dropdown-desc {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  line-height: 1.25;
  margin-top: 2px;
}


/* ==================== HERO 2026 SECTION ==================== */
.hero {
  position: relative;
  background: radial-gradient(100% 85% at 50% 0%, #1c1417 0%, #120d0f 100%);
  color: #ffffff;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--color-dark-border);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  pointer-events: none;
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #d49b9f;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-live 2s infinite ease-in-out;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-size: 3.25rem;
  line-height: 1.12;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.4rem;
  letter-spacing: -0.035em;
}

.gradient-text {
  background: linear-gradient(135deg, #f08266 0%, #d94b58 50%, #9e3d46 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}

/* Bento Stats */
.hero-stats-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
}

.hero-stat-val {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hero-stat-val span {
  font-size: 1.1rem;
  color: var(--color-accent);
}

.hero-stat-lbl {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

/* Hero Visual Showcase */
.hero-visual {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 30px rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-image-frame img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual:hover .hero-image-frame img {
  transform: scale(1.03);
}

.hero-telemetry-badge {
  position: absolute;
  bottom: -22px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.telemetry-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #b8434f;
  flex-shrink: 0;
}

.telemetry-info h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.telemetry-info p {
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 0;
}

/* ==================== 2026 INFOGRAPHIC 1: TELEMETRY BAR ==================== */
.telemetry-banner-section {
  position: relative;
  z-index: 10;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

.telemetry-bar-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.4rem 2rem;
  box-shadow: var(--shadow-xl);
}

.tele-metric {
  display: flex;
  flex-direction: column;
}

.tele-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: 0.35rem;
}

.tele-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.55rem;
  font-variant-numeric: tabular-nums;
}

.tele-progress-wrap {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tele-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #742e34, #b8434f);
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

/* ==================== SECTIONS COMMON ==================== */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background-color: var(--color-surface-soft);
}

.section-dark {
  background: var(--color-dark-surface);
  color: #ffffff;
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: #ffffff;
}

.section-dark p {
  color: #94a3b8;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.section-dark .section-tag {
  background: rgba(37, 99, 235, 0.2);
  color: #d49b9f;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ==================== 2026 INFOGRAPHIC 2: DIGITAL 3PL PIPELINE ==================== */
.pipeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 2rem;
}

.pipeline-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  position: relative;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pipeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #d49b9f;
}

.pipeline-card-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pipeline-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.pipeline-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  flex-grow: 1;
}

.pipeline-specs {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==================== 2026 BENTO SERVICES GRID ==================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.bento-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #d49b9f;
}

.bento-card.bento-col-2 {
  grid-column: span 2;
}

.bento-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.bento-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-card:hover .bento-img-wrap img {
  transform: scale(1.04);
}

.bento-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  letter-spacing: 0.04em;
}

.bento-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bento-rate-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bento-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.bento-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.bento-features-list {
  list-style: none;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bento-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bento-features-list li::before {
  content: '✓';
  color: var(--color-emerald);
  font-weight: 800;
}

.bento-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

.bento-link:hover {
  color: var(--color-primary-hover);
  transform: translateX(4px);
}

/* ==================== LIVE CARGO TRACKER SIMULATOR ("The Live Thing") ==================== */
.tracker-section {
  background: var(--color-dark-surface);
  color: #ffffff;
  padding: 5rem 0;
  border-top: 1px solid var(--color-dark-border);
  border-bottom: 1px solid var(--color-dark-border);
}

.tracker-wrap {
  background: var(--color-dark-card);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.tracker-form-wrap {
  display: flex;
  gap: 0.8rem;
  width: 100%;
  max-width: 520px;
}

.tracker-input {
  flex-grow: 1;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-normal);
}

.tracker-input:focus {
  border-color: #b8434f;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.sample-tracks-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.sample-track-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #b8434f;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-fast);
}

.sample-track-btn:hover {
  background: rgba(56, 189, 248, 0.2);
}

.tracker-live-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
  position: relative;
}

.track-step-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  position: relative;
  transition: var(--transition-normal);
}

.track-step-box.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.track-step-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #10b981;
  margin-bottom: 0.6rem;
}

.track-step-box h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.track-step-box p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.track-step-time {
  font-size: 0.75rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

/* ==================== 3PL CALCULATOR SECTION ==================== */
.calc-section {
  background: var(--color-bg);
  padding: 5.5rem 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.calc-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.calc-group {
  margin-bottom: 2rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.calc-label-row label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.calc-val-display {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.15rem;
}

.calc-range {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.calc-select, .calc-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition-fast);
}

.calc-select:focus, .calc-input:focus {
  border-color: var(--color-primary);
  background: #ffffff;
}

.calc-checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.calc-checkbox-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.calc-checkbox-card:hover {
  background: #ffffff;
  border-color: #d49b9f;
}

.calc-checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.calc-summary-panel {
  background: linear-gradient(145deg, #0f172a, #131d33);
  color: #ffffff;
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-xl);
}

.calc-summary-panel h3 {
  color: #ffffff;
  font-size: 1.45rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: #94a3b8;
}

.summary-row span:last-child {
  font-weight: 600;
  color: #ffffff;
}

.summary-total-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-bottom: 2rem;
  text-align: center;
}

.summary-total-label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.summary-total-val {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.summary-total-val span {
  font-size: 1.25rem;
  color: #ffffff;
}

/* ==================== FOOTER ==================== */
.footer {
  background: #070b14;
  color: #ffffff;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-name {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: initial;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 1.2rem 0;
  max-width: 380px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #b8434f;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}



/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #d49b9f;
}
.service-card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-media img {
  transform: scale(1.06);
}
.service-rate-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  border-left: 3px solid var(--color-accent);
}
.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.service-card-body p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.service-features-list {
  list-style: none;
  margin-bottom: 1.5rem;
}
.service-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-slate-700);
  margin-bottom: 0.4rem;
}
.service-features-list li::before {
  content: '✓';
  color: #10b981;
  font-weight: bold;
}
.service-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* Section Common */
.section {
  padding: 5.5rem 0;
  position: relative;
}
.section-alt {
  background-color: var(--color-surface);
}
.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
  border: 1px solid var(--color-border);
}
.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.12rem;
  color: var(--color-text-muted);
}



/* ==========================================================================
   Calculator Section
   ========================================================================== */
.calc-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
}
.calc-form {
  padding: 2.75rem;
}
.calc-summary {
  background: linear-gradient(135deg, var(--color-slate-900), var(--color-obsidian));
  color: white;
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calc-group {
  margin-bottom: 1.8rem;
}
.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.calc-val-badge {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.05rem;
}
.calc-range {
  width: 100%;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.calc-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.calc-pill-label {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: block;
}
.calc-pill-radio {
  display: none;
}
.calc-pill-radio:checked + .calc-pill-label {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 800;
}
.calc-result-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}
.calc-result-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: #fb923c;
  line-height: 1.1;
}
.calc-result-title {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}
.calc-result-details {
  list-style: none;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-top: 1rem;
  padding: 0;
}
.calc-result-details li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-slate-700);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  color: var(--color-text-main);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: #b8434f;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}



/* ==========================================================================
   ELEMENTOR PRO VISUAL EDITOR (Late 2026 Edition)
   ========================================================================== */
/* Persistent Trigger Pill at Bottom-Right */
#elementor-trigger-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 99990;
}
.elementor-float-pill {
  background: linear-gradient(135deg, #742e34, #742e34);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45), 0 0 20px rgba(56, 189, 248, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 0.92rem;
  transition: var(--transition);
}
.elementor-float-pill:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.6);
}
.pulse-sparkle {
  display: inline-block;
  animation: pulseRotate 2s infinite ease-in-out;
}
@keyframes pulseRotate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* Docked Bottom Toolbar */
#elementor-docked-toolbar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  animation: dockIn 0.35s ease;
}
@keyframes dockIn {
  from { opacity: 0; transform: translate(-50%, 25px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.elementor-dock-inner {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(37, 99, 235, 0.4);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: white;
}
.dock-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #b8434f;
}
.dock-live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}
.dock-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
}
.dock-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.dock-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.dock-btn.active {
  background: #16a34a;
  border-color: #22c55e;
}
.dock-btn-save {
  background: linear-gradient(135deg, #742e34, #742e34);
  border-color: #b8434f;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}
.dock-btn-save:hover {
  background: linear-gradient(135deg, #742e34, #742e34);
}
.dock-btn-close {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Edit Mode Visual Outlines */
body.elementor-edit-mode [data-editable="text"] {
  outline: 2px dashed rgba(56, 189, 248, 0.6) !important;
  outline-offset: 4px;
  border-radius: 4px;
  cursor: text;
  transition: all 0.2s;
}
body.elementor-edit-mode [data-editable="text"]:hover,
body.elementor-edit-mode [data-editable="text"]:focus {
  outline: 2px solid #742e34 !important;
  background-color: rgba(56, 189, 248, 0.08);
}
body.elementor-edit-mode [data-editable="image"] {
  position: relative;
  outline: 2px dashed rgba(249, 115, 22, 0.7) !important;
  cursor: pointer !important;
}
body.elementor-edit-mode [data-editable="image"]:hover::after {
  content: '📷 Заменить изображение';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f97316;
  color: white;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

/* Section Order Controls */
body.elementor-edit-mode [data-section-id] {
  position: relative;
}
.elementor-sec-handle {
  display: none;
}
body.elementor-edit-mode .elementor-sec-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 0.6rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 800;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.sec-act-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}
.sec-act-btn:hover {
  background: #742e34;
}

/* Modals */
.elementor-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFade 0.2s ease;
}
@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.elementor-modal-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.elementor-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #64748b;
}
.modal-icon-badge {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  color: #742e34;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100010;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast {
  background: var(--color-slate-900);
  color: white;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  border-left: 4px solid var(--color-primary);
  animation: toastIn 0.3s ease;
}
.toast.toast-success { border-left-color: #10b981; }
.toast.toast-error { border-left-color: #ef4444; }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}



/* ==========================================================================
   Subpages Infrastructure & Features Layout Components
   ========================================================================== */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #b8434f;
}

.infra-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.infra-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}
.infra-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.infra-image:hover img {
  transform: scale(1.03);
}

.infra-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}
.infra-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.infra-item:hover {
  border-color: #d49b9f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.infra-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.infra-item span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #b8434f;
}
.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
}
.feature-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-group.full {
  grid-column: 1 / -1;
}

.topbar-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}



/* ==========================================================================
   ELEMENTOR PRO COMPLETE SIDEBAR & INSPECTOR SYSTEM
   ========================================================================== */

/* Page layout shift when sidebar is open */
body.elementor-sidebar-active {
  padding-left: 340px !important;
  transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sidebar Container */
#elementor-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 340px;
  background: #0f172a;
  color: #f8fafc;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
  border-right: 1px solid rgba(56, 189, 248, 0.3);
  font-family: var(--font-body);
  user-select: none;
  animation: sidebarSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sidebarSlideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Sidebar Header */
.el-side-head {
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #090e1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.el-side-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: #b8434f;
}
.el-side-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.el-side-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Sidebar Nav Tabs */
.el-side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #090e1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.el-side-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 0.25rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.el-side-tab-btn:hover {
  color: white;
}
.el-side-tab-btn.active {
  color: #b8434f;
  border-bottom-color: #b8434f;
  background: rgba(56, 189, 248, 0.08);
}

/* Sidebar Body / Tab Panes */
.el-side-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}
.el-tab-pane {
  display: none;
}
.el-tab-pane.active {
  display: block;
}

/* Widgets Grid in Sidebar */
.el-widgets-category-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 800;
  margin: 1.25rem 0 0.6rem;
}
.el-widgets-category-title:first-child {
  margin-top: 0;
}
.el-widgets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.el-widget-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.el-widget-item:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #b8434f;
  transform: translateY(-2px);
}
.el-widget-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}
.el-widget-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
}

/* Inspector / Properties Panel */
.el-inspector-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
  font-size: 0.88rem;
}
.el-prop-group {
  margin-bottom: 1.2rem;
}
.el-prop-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.el-prop-control {
  width: 100%;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: white;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  outline: none;
}
.el-prop-control:focus {
  border-color: #b8434f;
}
.el-prop-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.el-color-presets {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.el-color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.el-act-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.el-act-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.el-act-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.el-act-btn.delete {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.el-act-btn.delete:hover {
  background: rgba(239, 68, 68, 0.4);
}

/* Sidebar Footer */
.el-side-foot {
  padding: 1rem 1.25rem;
  background: #090e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.el-btn-publish {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
}
.el-btn-publish:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Selected Element Outline on Page */
body.elementor-sidebar-active .el-selected-target {
  outline: 3px solid #06b6d4 !important;
  outline-offset: 4px;
  position: relative;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}
body.elementor-sidebar-active .el-selected-target::before {
  content: attr(data-el-tag);
  position: absolute;
  top: -24px;
  left: 0;
  background: #06b6d4;
  color: #030712;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 10000;
  pointer-events: none;
}

/* Section Header Bar on Page */
.el-section-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #742e34, #0284c7);
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 6px 6px 0 0;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.el-sec-action-btns {
  display: flex;
  gap: 0.35rem;
}
.el-sec-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 700;
}
.el-sec-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Responsive */
@media (max-width: 1024px) {
  body.elementor-sidebar-active {
    padding-left: 0 !important;
  }
  #elementor-sidebar {
    width: 100%;
    max-width: 360px;
  }
}

  .hero-grid, .reach-bento-grid, .calc-card, .infra-split {
    grid-template-columns: 1fr;
  }
  .pipeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .telemetry-bar-card {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar, .nav { display: none; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .pipeline-grid, .telemetry-bar-card { grid-template-columns: 1fr; }
  .hero-stats-bento { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .infra-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  #elementor-docked-toolbar { width: 95%; }
  .elementor-dock-inner { flex-wrap: wrap; justify-content: center; border-radius: var(--radius-lg); }
}


/* ==================== RESPONSIVE RULES ==================== */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .pipeline-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.bento-col-2 {
    grid-column: span 2;
  }
  .telemetry-bar-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .calc-summary-panel {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 68px;
    gap: 0.5rem;
  }
  .logo-emblem-wrap {
    width: 40px;
    height: 40px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .brand-sub {
    font-size: 0.6rem;
  }
  nav {
    display: none;
  }
  .nav-menu {
    display: none;
  }
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .nav-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1.5rem;
    color: #0f172a;
    cursor: pointer;
    flex-shrink: 0;
  }
  .hero {
    padding: 3.5rem 0 3.5rem;
  }
  .hero h1 {
    font-size: 2.15rem;
  }
  .hero-stats-bento {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .telemetry-bar-card {
    grid-template-columns: 1fr;
  }
  .pipeline-track {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.bento-col-2 {
    grid-column: span 1;
  }
  .tracker-live-flow {
    grid-template-columns: 1fr;
  }
  .tracker-form-wrap {
    flex-direction: column;
  }
  .calc-checkbox-group {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==================== ACCESSIBILITY & PREFERS-REDUCED-MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Robust mobile constraints */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .hero-pill-badge {
    white-space: normal;
    font-size: 0.75rem;
    line-height: 1.4;
  }
  .hero h1 {
    font-size: 1.85rem !important;
    line-height: 1.2;
    overflow-wrap: break-word;
  }
  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.6;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .sample-tracks-row {
    flex-wrap: wrap;
  }
  .sample-tracks-row span {
    width: 100%;
    margin-bottom: 0.2rem;
  }
  .bento-card {
    grid-column: span 1 !important;
  }
  .section-title {
    font-size: 1.85rem !important;
  }
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1080px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
}


/* ==================== SUBPAGES & DROPDOWN RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .nav-menu {
    align-items: flex-start !important;
    text-align: left !important;
    width: 100% !important;
  }
  .nav-menu > li {
    width: 100% !important;
    text-align: left !important;
  }
  .nav-menu .nav-link {
    display: inline-flex !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    padding: 0.5rem 0 !important;
  }
  .has-dropdown {
    width: 100%;
  }
  .has-dropdown > .nav-link {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0.6rem 0 !important;
    font-size: 1.05rem !important;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid #742e34;
    border-radius: 0;
    background: #f8fafc;
    padding: 0.4rem 0.6rem;
    margin-top: 0.25rem;
    gap: 0.4rem;
    min-width: 0;
    display: flex;
  }
  .dropdown-item {
    padding: 0.5rem 0.5rem;
  }
  .dropdown-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .infra-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .infra-image img {
    height: 340px;
  }
  .calc-card {
    grid-template-columns: 1fr;
  }
  .calc-form, .calc-summary {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .infra-split {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .infra-image img {
    height: 260px;
  }
  .infra-list {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }
  .calc-card {
    grid-template-columns: 1fr !important;
  }
  .calc-form, .calc-summary {
    padding: 1.25rem !important;
  }
  .calc-pills {
    grid-template-columns: 1fr !important;
  }
  .services-grid {
    grid-template-columns: 1fr !important;
  }
  .features-grid {
    grid-template-columns: 1fr !important;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Admin Dashboard Elements */
.admin-body {
  background: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-nav {
  background: #0f172a;
  color: white;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}
.tab-btn {
  background: none;
  border: none;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}
.tab-btn.active {
  background: #742e34;
  color: white;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.lead-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* ==========================================================================
   2026 NEWS & ARTICLES ENGINE + RICH VISUAL EDITOR (RID-NCH)
   ========================================================================== */

/* Reading progress bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 10000;
}
.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
  transition: width 0.1s ease;
}

/* News Catalog Hero & Controls */
.news-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(116, 46, 52, 0.25);
  border: 1px solid rgba(196, 91, 38, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fbcfe8;
  margin-bottom: 1rem;
}

.news-controls-bar {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: -2rem;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  position: relative;
  z-index: 20;
}

.news-categories-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-pill {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.category-pill:hover,
.category-pill.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(116, 46, 52, 0.25);
}

.news-search-box {
  position: relative;
  min-width: 280px;
}

.news-search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: 0.9rem;
  outline: none;
  background: var(--color-bg);
  transition: all 0.2s;
}

.news-search-input:focus {
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(116, 46, 52, 0.15);
}

.news-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}

/* News Cards Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-controls-bar {
    margin-top: 0;
    padding: 1rem;
  }
  .news-search-box {
    width: 100%;
  }
}

.news-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(116, 46, 52, 0.18);
  border-color: rgba(116, 46, 52, 0.35);
}

.news-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 58%;
  overflow: hidden;
  background: #1e1b1d;
}

.news-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img {
  transform: scale(1.05);
}

.news-card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.badge-cat {
  background: rgba(18, 13, 15, 0.85);
  backdrop-filter: blur(8px);
  color: #fce7f3;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-reading-time {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.news-card:hover .news-card-title {
  color: var(--color-primary);
}

.news-card-lead {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.news-card-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #475569;
}

.news-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.news-card-read-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.2s;
}

.news-card:hover .news-card-read-more {
  transform: translateX(4px);
}

/* Single Article Reader */
.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.article-breadcrumbs a:hover {
  color: var(--color-primary);
}

.article-breadcrumbs span.sep {
  color: #cbd5e1;
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #64748b;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-dark);
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 2rem;
  }
}

.article-author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  width: fit-content;
  margin-bottom: 2rem;
}

.article-author-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.article-author-name {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--color-dark);
}

.article-author-role {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.article-featured-image-wrap {
  width: 100%;
  max-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.article-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-content {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #334155;
  max-width: 820px;
  margin: 0 auto;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content p.lead-paragraph {
  font-size: 1.28rem;
  line-height: 1.65;
  font-weight: 500;
  color: var(--color-dark);
  border-left: 4px solid var(--color-primary);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.article-content h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-top: 2.75rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 2rem;
  margin-bottom: 0.9rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.6rem;
}

.article-callout {
  background: #fbf2f3;
  border: 1px solid #f3d4d7;
  border-left: 5px solid var(--color-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.article-callout .callout-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.article-callout h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.article-callout p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #475569;
}

.article-content blockquote {
  background: var(--color-bg);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem 1.75rem;
  border-radius: 0 14px 14px 0;
  margin: 2.25rem 0;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.65;
  color: #1e293b;
}

.article-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-table th {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 800;
  padding: 0.9rem 1.2rem;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 2px solid var(--color-border);
}

.article-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.article-table tr.table-highlight {
  background: #fdf2f4;
  font-weight: 700;
  color: var(--color-primary);
}

/* Article Share & Tags */
.article-footer-box {
  max-width: 820px;
  margin: 3.5rem auto 0 auto;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border);
}

.article-tags-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.article-tag {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

.article-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: white;
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.share-buttons {
  display: flex;
  gap: 0.6rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.share-vk { background: #0077ff; color: white; }
.share-tg { background: #229ed9; color: white; }
.share-wa { background: #25d366; color: white; }
.share-copy { background: #475569; color: white; }

.share-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ==========================================================================
   ADMIN WYSIWYG VISUAL EDITOR
   ========================================================================== */
.editor-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.editor-dialog {
  background: white;
  width: 100%;
  max-width: 1100px;
  max-height: 94vh;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border);
}

.editor-header {
  padding: 1.25rem 1.75rem;
  background: #120d0f;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.editor-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.editor-toolbar {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}

.toolbar-btn {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.toolbar-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--color-primary);
}

.toolbar-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.editor-content-area {
  min-height: 340px;
  padding: 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 0 0 12px 12px;
  font-size: 1.05rem;
  line-height: 1.7;
  outline: none;
  background: white;
}

.editor-content-area:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(116, 46, 52, 0.15);
}

/* Auto-SEO Assistant Card in Admin */
.auto-seo-card {
  background: #fdf8f6;
  border: 1px solid #f2ded8;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.serp-preview-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.75rem;
  font-family: Arial, sans-serif;
}

.serp-title {
  color: #1a0dab;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  cursor: pointer;
}

.serp-title:hover {
  text-decoration: underline;
}

.serp-url {
  color: #006621;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.serp-desc {
  color: #4d5156;
  font-size: 0.88rem;
  line-height: 1.45;
}

.og-preview-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  max-width: 480px;
  margin-top: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.og-preview-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e2e8f0;
}

.og-preview-text {
  padding: 0.85rem 1rem;
}

.og-preview-site {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.og-preview-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.og-preview-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}
