/* ==========================================================================
   ACCSOFT SOLUTIONS - MODERN EUROPEAN DESIGN SYSTEM & STYLESHEET
   Version: 2.8 | Multi-Language: DE, FR, IT, EN | Minimal Red & Slate
   Apple-inspired sleek components, responsive mobile padding, touch drag tabs
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Roboto Slab', Georgia, Cambria, 'Times New Roman', Times, serif;

  /* Primary Accent */
  --primary: #e30613;
  --primary-hover: #c0040f;
  --primary-dark: #99000a;
  --primary-soft: rgba(227, 6, 19, 0.06);
  --primary-border: rgba(227, 6, 19, 0.18);

  /* Deep Slate & Neutrals */
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #141f36;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-150: #edf2f7;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Border Colors */
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-card: rgba(15, 23, 42, 0.07);
  --border-hover: rgba(15, 23, 42, 0.15);

  /* Semantic Accents */
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Layout & Elevations */
  --max-width: 1200px;
  --max-width-narrow: 860px;
  --header-height: 74px;
  
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05), 0 1px 3px 0 rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.07), 0 2px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 14px 28px -6px rgba(15, 23, 42, 0.09);

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s 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);
  background-color: var(--slate-50);
  color: var(--slate-700);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--primary-soft);
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1, h2 {
  font-family: var(--font-serif);
}

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-sm {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.bg-white { background-color: var(--white); }
.bg-slate-50 { background-color: var(--slate-50); }
.bg-slate-100 { background-color: var(--slate-100); }
.bg-dark { background-color: var(--slate-900); color: var(--slate-300); }
.bg-dark-alt { background-color: var(--slate-950); color: var(--slate-300); }

.border-top { border-top: 1px solid var(--border-subtle); }
.border-bottom { border-bottom: 1px solid var(--border-subtle); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-header {
  text-align: center;
  max-width: 940px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.15rem;
  margin-bottom: 0.75rem;
  color: var(--slate-900);
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.025rem;
  color: var(--slate-600);
  line-height: 1.6;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  line-height: 1.25;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(227, 6, 19, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--slate-800);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--slate-50);
  border-color: var(--border-hover);
  color: var(--slate-900);
  transform: translateY(-1px);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background-color: var(--slate-50);
  transform: translateY(-1px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.btn-block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-red { background-color: var(--primary-soft); color: var(--primary); }
.badge-slate { background-color: var(--slate-100); color: var(--slate-600); }
.badge-green { background-color: var(--success-soft); color: var(--success); }

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  transition: all var(--transition-base);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-badge {
  width: 36px;
  height: 36px;
  background-color: var(--primary);
  color: var(--white);
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.05em;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.15;
  margin: 0;
}

.brand-slogan {
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-serif);
  line-height: 1.2;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: 100%;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-600);
  padding: 0.25rem 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active { color: var(--primary); }

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Dropdown Language Selector */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-700);
  background-color: var(--white);
  transition: all var(--transition-fast);
  cursor: pointer;
  min-height: 38px;
  box-shadow: var(--shadow-xs);
}

.lang-trigger-btn:hover, .lang-dropdown-wrapper.open .lang-trigger-btn {
  border-color: var(--border-hover);
  background-color: var(--slate-50);
  color: var(--slate-900);
}

.lang-chevron {
  font-size: 0.7rem;
  color: var(--slate-400);
  transition: transform var(--transition-fast);
  margin-left: 0.15rem;
}

.lang-dropdown-wrapper.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
  min-width: 165px;
  z-index: 110;
  flex-direction: column;
  gap: 0.25rem;
}

.lang-dropdown-wrapper.open .lang-menu {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: all var(--transition-fast);
}

.lang-option:hover {
  background-color: var(--slate-100);
  color: var(--slate-900);
}

.lang-option.active {
  background-color: var(--slate-100);
  color: var(--slate-900);
  font-weight: 800;
}

.flag-icon {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.burger-menu-btn {
  display: none;
  font-size: 1.35rem;
  color: var(--slate-800);
  padding: 0.5rem;
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-md);
  z-index: 99;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.mobile-nav-drawer.open { display: flex; }

.mobile-nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-800);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--slate-100);
}

.mobile-nav-link.active { color: var(--primary); }

.mobile-cta-wrapper {
  padding-top: 0.5rem;
}

.mobile-lang-row {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
}

.mobile-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--slate-50);
}

.mobile-lang-btn.active {
  border-color: var(--slate-400);
  background: var(--slate-200);
  font-weight: 800;
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, #b9050f 0%, #e30613 45%, #0f172a 100%);
  color: var(--white);
  padding: 4.5rem 0 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content { text-align: left; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-features-bar {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.825rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  flex-wrap: wrap;
}

.hero-features-bar span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-features-bar i { color: #4ade80; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
  box-shadow: var(--shadow-xs);
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.feature-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.feature-title {
  font-size: 1.05rem;
  color: var(--slate-900);
  margin-bottom: 0;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.55;
}

/* Calculator */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: stretch;
}

.calculator-card {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
}

.calc-control-group { margin-bottom: 1.75rem; }

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  user-select: none;
}

.calc-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-900);
}

.calc-value-badge {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #e2e8f0;
  outline: none;
  border: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: grab;
  margin: 10px 0;
  padding: 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.range-slider:active {
  cursor: grabbing;
}

.range-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: grab;
  background: #e2e8f0;
  border-radius: 9999px;
  border: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
  cursor: grab;
  margin-top: -8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.range-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
}

.range-slider::-moz-range-track {
  width: 100%;
  height: 8px;
  cursor: grab;
  background: #e2e8f0;
  border-radius: 9999px;
  border: none;
}

.range-slider::-moz-range-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: grab;
}

.range-slider::-moz-range-thumb:active {
  cursor: grabbing;
}

.type-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.calc-type-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--slate-700);
  text-align: left;
  transition: all var(--transition-fast);
}

.calc-type-btn:hover {
  border-color: var(--border-hover);
  background: var(--slate-50);
}

.calc-type-btn.active {
  background: var(--slate-100);
  border-color: var(--slate-400);
  color: var(--slate-900);
}

.calc-type-btn i {
  font-size: 1.15rem;
  color: var(--slate-500);
}

.calc-type-btn.active i { color: var(--primary); }

.calc-result-panel {
  background: var(--slate-900);
  border: 1px solid var(--slate-800);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  box-shadow: var(--shadow-md);
}

.calc-res-tag {
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ff6b75;
  letter-spacing: 0.08em;
}

.calc-res-title {
  font-size: 1.3rem;
  color: var(--white);
  margin-top: 0.4rem;
  margin-bottom: 0.65rem;
}

.calc-res-desc {
  font-size: 0.85rem;
  color: var(--slate-400);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.calc-price-block {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  margin-bottom: 1.75rem;
}

.calc-price-label {
  font-size: 0.7rem;
  color: var(--slate-400);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.calc-price-figure {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-top: 0.25rem;
}

.calc-price-note {
  font-size: 0.775rem;
  color: var(--slate-400);
  margin-top: 0.4rem;
}

/* Touch & Drag Filter Tabs Bar (No Scrollbar) */
.filter-tabs-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 0.35rem 0.25rem 0.85rem 0.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
  cursor: grab;
  user-select: none;
}

.filter-tabs-bar::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.filter-tabs-bar:active {
  cursor: grabbing;
}

.filter-tab-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-600);
  white-space: nowrap;
  transition: all var(--transition-fast);
  background: var(--white);
  border: 1px solid var(--border-card);
  flex-shrink: 0;
}

.filter-tab-btn:hover {
  color: var(--primary);
  border-color: var(--primary-border);
}

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

.article-card {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.article-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.article-date {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--slate-400);
}

.article-cat-link {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.03em;
}

.article-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.45rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-title a:hover { color: var(--primary); }

.article-card-excerpt {
  font-size: 0.84rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 1.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  border-top: 1px solid var(--slate-100);
  padding-top: 0.85rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.article-read-more i {
  font-size: 0.725rem;
  display: inline-flex;
  align-items: center;
  transform: translateY(0);
  transition: transform var(--transition-fast);
}

.article-read-more:hover i {
  transform: translateX(2px);
}

.tags-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--primary);
  background: #fef2f2;
  border: none;
  padding: 0.1rem 0.35rem;
  line-height: 1.2;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  text-decoration: none;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-badge:hover {
  background: var(--primary);
  color: var(--white);
}

.tag-badge.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.tag-filter-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border-card);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-800);
  box-shadow: var(--shadow-xs);
}

.tag-filter-notice .reset-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* News Cards */
.news-card {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.news-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.news-card-img-placeholder {
  height: 110px;
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-900) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.2);
}

.news-card-body {
  padding: 1.15rem 1.25rem 0.5rem 1.25rem;
}

.news-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.45rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-title a:hover { color: var(--primary); }

.news-card-excerpt {
  font-size: 0.84rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 1.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  border-top: 1px solid var(--slate-100);
  padding: 0.65rem 1.25rem;
  background: var(--slate-50);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Rich Detail View & Typography */
.breadcrumb-trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
  margin-bottom: 1.5rem;
}

.breadcrumb-trail a { color: var(--slate-600); }
.breadcrumb-trail a:hover { color: var(--primary); }

.article-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
  text-align: left;
}

.article-page-title {
  font-size: 1.95rem;
  line-height: 1.3;
  color: var(--slate-900);
  margin-bottom: 0.85rem;
  font-family: var(--font-serif);
  font-weight: 800;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: 0.825rem;
  color: var(--slate-500);
}

.article-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--slate-700);
  text-align: left;
}

.article-body p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.article-body h1,
.article-body h2 {
  font-size: 1.45rem;
  line-height: 1.35;
  margin-top: 2.25rem;
  margin-bottom: 0.95rem;
  color: var(--slate-900);
  font-family: var(--font-serif);
  font-weight: 800;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.article-body h1:first-child,
.article-body h2:first-child {
  margin-top: 0.5rem;
}

.article-body h1 i,
.article-body h2 i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.article-body h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--slate-900);
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.article-body h3 i {
  color: var(--primary);
  font-size: 0.95rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.article-body h4 {
  font-size: 1rem;
  line-height: 1.4;
  margin-top: 1.35rem;
  margin-bottom: 0.55rem;
  color: var(--slate-800);
  font-weight: 700;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  line-height: 1.75;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.6rem; padding-left: 0.25rem; }

.article-body ul ul, .article-body ol ul {
  margin: 0.5rem 0 0.5rem 1.25rem;
  list-style: circle;
}

/* Pleasant, Non-Intrusive Link Styling */
.article-body a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: all var(--transition-fast);
}

.article-body a:hover {
  color: #1d4ed8;
  text-decoration-color: #1d4ed8;
}

.article-body a i.fa-arrow-up-right-from-square {
  font-size: 0.7em;
  color: #64748b;
  margin-left: 0.25rem;
  opacity: 0.85;
  display: inline-block;
  vertical-align: 0.05em;
}

/* Modern Article Tables */
.article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  margin: 2.25rem 0;
}

.article-body th {
  background: var(--slate-900);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.95rem 1.15rem;
  text-align: left;
  letter-spacing: 0.02em;
}

.article-body td {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.88rem;
  color: var(--slate-700);
  line-height: 1.55;
  vertical-align: top;
}

.article-body tbody tr:nth-child(even) td {
  background: var(--slate-50);
}

.article-body tbody tr:last-child td {
  border-bottom: none;
}

.article-body tbody tr:hover td {
  background: #f1f5f9;
}

/* Math Cards & Inline Math */
.math-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.math-formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: 0.02em;
}

.math-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-weight: 600;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  padding: 0.05rem 0.28rem;
  border-radius: 4px;
  font-size: 0.88em;
  white-space: nowrap;
}

/* Article Mockup Illustrations */
.article-mockup-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 2.5rem 0;
}

.mockup-header {
  background: var(--slate-900);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-badge {
  color: var(--slate-300);
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: auto;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mockup-body {
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-900) 100%);
  padding: 2.5rem 1.5rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.mockup-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.mockup-text {
  font-size: 1rem;
  font-weight: 600;
  max-width: 600px;
  color: var(--slate-200);
  line-height: 1.5;
  margin: 0;
}

.mockup-caption {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--slate-500);
  font-style: italic;
}

/* TOC & Callout */
.article-toc {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-xs);
}

.article-toc h3, .article-toc h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-top: 0;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.article-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-toc li {
  margin-bottom: 0.45rem;
  padding-left: 0;
  font-size: 0.85rem;
}

.article-toc a {
  color: var(--slate-700);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: inline-block;
}

.article-toc a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.article-callout {
  background: var(--slate-100);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.35rem 1.65rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  color: var(--slate-800);
  line-height: 1.65;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.75rem 0;
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--slate-600);
  flex-shrink: 0;
}

.author-info h4 { font-size: 1rem; color: var(--slate-900); }
.author-info p { font-size: 0.825rem; color: var(--slate-500); margin-top: 0.25rem; }

.social-share-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--slate-100);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.share-btn:hover { background: var(--primary); color: var(--white); }

/* Pricing Cards */
.billing-toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.billing-switch {
  background: var(--slate-100);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  display: inline-flex;
  gap: 0.25rem;
}

.billing-btn {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--slate-600);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.billing-btn.active {
  background: var(--white);
  color: var(--slate-900);
  box-shadow: var(--shadow-xs);
}

.discount-pill {
  background: var(--success);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-xs);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 3.5rem;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  position: relative;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
  border-top: 3px solid var(--slate-400);
}

.pricing-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
  border-color: rgba(227, 6, 19, 0.35);
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
  z-index: 2;
}

.pricing-card.featured:hover { transform: scale(1.02) translateY(-2px); }

.pricing-card.dark {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-800);
  border-top: 3px solid var(--primary);
}

.plan-ribbon {
  position: absolute;
  top: -10px;
  right: 18px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
}

.plan-name {
  font-size: 0.825rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
}

.featured .plan-name { color: var(--primary); }
.dark .plan-name { color: var(--slate-400); }

.plan-price-row { margin: 0.85rem 0; }

.plan-price {
  font-size: 2.35rem;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1;
}

.dark .plan-price { color: var(--white); }

.plan-period {
  font-size: 0.775rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
  font-weight: 500;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.dark .plan-desc { color: var(--slate-400); }

.turnkey-badge {
  background-color: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-xs);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.plan-features-list {
  border-top: 1px solid var(--slate-100);
  padding-top: 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.85rem;
}

.dark .plan-features-list { border-top-color: rgba(255, 255, 255, 0.1); }

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--slate-700);
  line-height: 1.4;
}

.dark .plan-features-list li { color: var(--slate-300); }

.plan-features-list i.fa-check {
  color: var(--success);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.plan-features-list i.fa-xmark {
  color: var(--slate-300);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Optimized Fits-in-Width Comparison Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  margin-bottom: 3.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: auto;
}

.comparison-table th, .comparison-table td {
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--slate-100);
}

.comparison-table th:first-child, .comparison-table td:first-child {
  width: 40%;
  text-align: left;
}

.comparison-table th:not(:first-child), .comparison-table td:not(:first-child) {
  width: 20%;
  text-align: center;
}

.comparison-table thead tr {
  background: var(--slate-50);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th { font-weight: 800; color: var(--slate-900); }
.comparison-table th.text-center, .comparison-table td.text-center { text-align: center; }

.comparison-table tbody tr:hover { background-color: var(--slate-50); }
.comparison-table tbody tr:last-child td { border-bottom: none; }

.check-icon {
  width: 20px;
  height: 20px;
  background: var(--success-soft);
  color: var(--success);
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.cross-icon {
  width: 20px;
  height: 20px;
  background: var(--slate-100);
  color: var(--slate-400);
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* Accordion */
.faq-accordion { display: flex; flex-direction: column; gap: 0.85rem; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
  font-size: 0.8rem;
  color: var(--slate-400);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--primary); }

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.6;
  border-top: 1px solid var(--slate-100);
  padding-top: 1rem;
}

.faq-item.active .faq-answer { display: block; }

/* Forms & Contacts */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.form-group { margin-bottom: 1.15rem; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.form-label {
  display: block;
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--white);
  color: var(--slate-900);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.form-success-box {
  background: var(--success-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  color: #065f46;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  text-align: left;
  box-shadow: var(--shadow-xs);
}

.contact-item-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.contact-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* Pagination with Smart Ellipsis */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--white);
  color: var(--slate-700);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.page-btn:hover { border-color: var(--border-hover); background: var(--slate-50); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

.page-dots {
  min-width: 28px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--slate-400);
  user-select: none;
}

/* Footer */
.site-footer {
  background-color: var(--slate-900);
  color: var(--slate-400);
  border-top: 1px solid var(--slate-800);
  padding-top: 4rem;
  padding-bottom: 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  text-align: left;
}

.site-footer .brand-badge {
  background: var(--white);
  color: var(--slate-900);
  box-shadow: none;
}

.footer-col-title {
  color: var(--white);
  font-size: 0.825rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.85rem;
}

.footer-links-list a { color: var(--slate-400); transition: color var(--transition-fast); }
.footer-links-list a:hover { color: var(--white); text-decoration: underline; }

.footer-social-bar { display: flex; gap: 0.55rem; margin-top: 1.15rem; }

.footer-social-link {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  color: var(--slate-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social-link:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.footer-bottom-bar {
  border-top: 1px solid var(--slate-800);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--slate-500);
}

.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-base);
  z-index: 90;
}

.back-to-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background: var(--primary-hover); }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-features-bar { justify-content: center; }
  .grid-3, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-2px); }
  .calculator-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Header clean state */
  .main-nav { display: none; }
  .header-actions .btn-primary { display: none; } /* Hide CTA in mobile header */
  .header-actions .lang-dropdown-wrapper { display: none; } /* Hide lang button in mobile header, already in drawer */
  .burger-menu-btn { display: block; margin-left: auto; }
  
  /* Reduced padding for maximum screen real-estate */
  .container, .container-narrow {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  
  .section {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  /* Compact card inner padding */
  .feature-card, 
  .article-card, 
  .news-card-body,
  .pricing-card, 
  .calculator-card, 
  .calc-result-panel, 
  .form-card, 
  .contact-info-card {
    padding: 1.15rem;
  }

  .comparison-table th, .comparison-table td {
    padding: 0.55rem 0.45rem;
    font-size: 0.775rem;
  }

  .grid-3, .grid-2, .pricing-grid { grid-template-columns: 1fr; }
  .form-row, .type-buttons-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-bar { flex-direction: column; gap: 0.75rem; text-align: center; }
  .contact-layout-grid { grid-template-columns: 1fr !important; }

  .page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 0.775rem;
    padding: 0 0.35rem;
  }
  
  .page-dots {
    min-width: 20px;
    height: 32px;
    font-size: 0.75rem;
  }
}
