/* ==========================================
   ClimateKG — Modern Dark Industrial Design
   ========================================== */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Colors */
  --color-bg: #0a0f1c;
  --color-bg-alt: #0f1629;
  --color-bg-card: #141b2d;
  --color-bg-card-hover: #1a2340;
  --color-bg-elevated: #1e2a45;
  --color-surface: #1a2236;

  --color-text: #e8edf5;
  --color-text-secondary: #8b9cc0;
  --color-text-muted: #5a6a8a;

  --color-primary: #FF6B35;
  --color-primary-light: #FF8A5C;
  --color-primary-dark: #E55A25;
  --color-secondary: #F7C948;
  --color-accent: #4ECDC4;

  --color-success: #22C55E;
  --color-error: #EF4444;
  --color-warning: #F59E0B;

  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-light: rgba(255, 255, 255, 0.1);

  --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #F7C948 100%);
  --gradient-hero: linear-gradient(135deg, #0a0f1c 0%, #141b2d 50%, #0f1629 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,107,53,0.05) 0%, rgba(247,201,72,0.02) 100%);
  --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,107,53,0.06), transparent 40%);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 800px;
  --header-height: 80px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(255,107,53,0.15);
  --shadow-glow-lg: 0 0 60px rgba(255,107,53,0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* --- Section --- */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-lg);
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.section-action {
  text-align: center;
  margin-top: var(--space-3xl);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-light);
}

.btn-outline:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(255, 107, 53, 0.05);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* ======================================
   HEADER
   ====================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 15, 28, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(10, 15, 28, 0.95);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-xl);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--color-text);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.logo-name strong {
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* Navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.lang-switch:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
}

.lang-current {
  color: var(--color-primary);
}

.lang-divider {
  color: var(--color-text-muted);
  margin: 0 2px;
}

.header-cta {
  display: none;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ======================================
   HERO
   ====================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary-light);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge svg {
  color: var(--color-primary);
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-text);
  font-family: var(--font-mono);
}

.stat-plus {
  font-size: var(--text-3xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease 0.5s forwards;
  opacity: 0;
}

.hero-3d-card {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
}

.card-content {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
  color: var(--color-text-muted);
}

/* ======================================
   SERVICES SECTION
   ====================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  color: var(--color-text);
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.2);
  box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: rgba(255, 107, 53, 0.15);
  transform: scale(1.05);
}

.service-name {
  position: relative;
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.service-desc {
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  flex: 1;
}

.service-price {
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.service-price strong {
  color: var(--color-secondary);
  font-size: var(--text-lg);
}

.service-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--transition-fast);
}

.service-card:hover .service-link {
  gap: var(--space-md);
}

/* ======================================
   PRODUCTS GRID
   ====================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.15);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-surface);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  color: var(--color-text-muted);
}

.product-placeholder.large {
  min-height: 300px;
}

.product-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary-light);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.product-info {
  padding: var(--space-lg);
}

.product-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.product-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.product-price {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.product-price strong {
  color: var(--color-secondary);
  font-size: var(--text-xl);
  font-weight: 800;
}

.product-actions {
  display: flex;
  gap: var(--space-sm);
}

/* ======================================
   CATEGORIES GRID
   ====================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-base);
}

.category-card:hover {
  color: var(--color-text);
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.2);
  box-shadow: var(--shadow-glow);
}

.category-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.06);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.category-card:hover .category-icon {
  background: rgba(255, 107, 53, 0.12);
  transform: scale(1.1);
}

.category-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.category-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.category-link {
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

.category-card:hover .category-link {
  transform: translateX(4px);
}

/* ======================================
   ADVANTAGES
   ====================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.advantage-card {
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.advantage-card:hover {
  border-color: rgba(255, 107, 53, 0.15);
  transform: translateY(-2px);
}

.advantage-number {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
  opacity: 0.7;
}

.advantage-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.advantage-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ======================================
   CTA SECTION
   ====================================== */
.cta-card {
  position: relative;
  padding: var(--space-4xl);
  background: var(--gradient-card);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.cta-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-ring {
  position: absolute;
  border: 1px solid rgba(255, 107, 53, 0.06);
  border-radius: 50%;
  animation: rotate 30s linear infinite;
}

.cta-ring:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
}

.cta-ring:nth-child(2) {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -50px;
  animation-duration: 25s;
  animation-direction: reverse;
}

.cta-ring:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 20s;
}

/* ======================================
   BREADCRUMBS
   ====================================== */
.breadcrumbs {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-md);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-sm);
  color: var(--color-text-muted);
  opacity: 0.4;
}

.breadcrumb-list a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--color-primary);
}

/* ======================================
   PAGE HEADER
   ====================================== */
.page-header-section {
  padding-top: var(--space-xl);
  padding-bottom: 0;
}

.page-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.page-title {
  font-size: var(--text-4xl);
  font-weight: 900;
  margin-bottom: var(--space-md);
}

.page-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

/* ======================================
   CATALOG FILTERS
   ====================================== */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  justify-content: center;
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.filter-btn:hover {
  color: var(--color-text);
  border-color: var(--color-border-light);
}

.filter-btn.active {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
}

/* ======================================
   PRODUCT DETAIL
   ====================================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.product-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.product-detail-image img {
  width: 100%;
  height: auto;
}

.product-detail-category {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: var(--space-md);
}

.product-detail-name {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-lg);
}

.product-detail-price {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.product-detail-price strong {
  font-size: var(--text-3xl);
  color: var(--color-secondary);
  font-weight: 800;
}

.product-detail-desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.product-specs {
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.product-specs h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.product-detail-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.related-products {
  margin-top: var(--space-4xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--color-border);
}

.related-products .section-title {
  margin-bottom: var(--space-2xl);
}

/* ======================================
   SERVICES LIST
   ====================================== */
.service-list-card {
  display: flex;
  gap: var(--space-2xl);
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  transition: all var(--transition-base);
}

.service-list-card:hover {
  border-color: rgba(255, 107, 53, 0.15);
  box-shadow: var(--shadow-md);
}

.service-list-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.06);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
}

.service-list-content {
  flex: 1;
}

.service-list-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.service-list-desc {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.service-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.service-list-price {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.service-list-price strong {
  color: var(--color-secondary);
  font-size: var(--text-2xl);
  font-weight: 800;
}

.service-list-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Service detail */
.service-detail-header {
  margin-bottom: var(--space-2xl);
}

.service-detail-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.service-detail-header .lead {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

.service-detail-body {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-2xl);
}

.service-detail-content {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.sidebar-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.sidebar-price {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.sidebar-price strong {
  display: block;
  font-size: var(--text-3xl);
  color: var(--color-secondary);
}

.sidebar-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.params-list {
  list-style: none;
}

.params-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.params-list li:last-child {
  border-bottom: none;
}

/* ======================================
   CALCULATOR
   ====================================== */
.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.calculator-form-wrapper,
.calculator-result-wrapper {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.calculator-result-wrapper {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
}

/* Forms */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238b9cc0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-message {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Calculator result */
.result-header h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
}

.result-breakdown {
  margin-bottom: var(--space-lg);
}

.result-line {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.result-total {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
  border-top: 2px solid var(--color-primary);
  margin-top: var(--space-md);
}

.result-total-label {
  font-size: var(--text-lg);
  font-weight: 600;
}

.result-total-amount {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-secondary);
  font-family: var(--font-mono);
}

.result-total-currency {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.result-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: var(--space-md) 0 var(--space-lg);
}

/* ======================================
   CONTACT
   ====================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-form-wrapper {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.contact-info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.06);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.contact-info-item h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-item p,
.contact-info-item a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.quick-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.quick-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--transition-base);
}

.quick-contact.whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.quick-contact.whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  color: #25D366;
}

.quick-contact.telegram {
  background: rgba(38, 165, 232, 0.1);
  color: #26A5E4;
  border: 1px solid rgba(38, 165, 232, 0.2);
}

.quick-contact.telegram:hover {
  background: rgba(38, 165, 232, 0.2);
  color: #26A5E4;
}

/* ======================================
   ABOUT
   ====================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-3xl);
  align-items: start;
}

.about-content .lead {
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.about-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.about-content p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.about-list {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.about-list li {
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-xl);
  color: var(--color-text-secondary);
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
}

.about-stats-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.about-stat:last-child {
  border-bottom: none;
}

.about-stat-number {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
}

/* ======================================
   BLOG
   ====================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.15);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-surface);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: var(--space-lg);
}

.blog-date {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.blog-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.blog-title a {
  color: var(--color-text);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--color-primary);
}

.blog-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.blog-read-more:hover {
  gap: var(--space-md);
}

/* Article */
.article-header {
  text-align: center;
  padding-top: var(--space-xl);
}

.article-date {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.article-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.article-author {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.article-hero-image {
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-hero-image img {
  width: 100%;
  height: auto;
}

.article-content {
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: var(--text-lg);
}

.article-content h2 {
  font-size: var(--text-2xl);
  margin: var(--space-2xl) 0 var(--space-md);
  color: var(--color-text);
}

.article-content h3 {
  font-size: var(--text-xl);
  margin: var(--space-xl) 0 var(--space-md);
  color: var(--color-text);
}

.article-content p {
  margin-bottom: var(--space-lg);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-2xl) 0;
}

.tag {
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 107, 53, 0.06);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-primary-light);
}

.article-back {
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2xl);
}

/* ======================================
   ERROR PAGES
   ====================================== */
.error-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
}

.error-content {
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 8rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-lg);
}

.error-content h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.error-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
}

/* ======================================
   EMPTY STATE
   ====================================== */
.empty-state {
  text-align: center;
  padding: var(--space-4xl);
  color: var(--color-text-muted);
}

.empty-state p {
  margin-top: var(--space-md);
  font-size: var(--text-lg);
}

/* ======================================
   FOOTER
   ====================================== */
.site-footer {
  position: relative;
  background: var(--color-bg-alt);
  padding-top: var(--space-4xl);
  margin-top: auto;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  color: var(--color-bg);
  line-height: 0;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-md);
  text-decoration: none;
  color: var(--color-text);
}

.footer-logo .logo-name {
  font-size: var(--text-2xl);
}

.footer-desc {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(255, 107, 53, 0.05);
}

.footer-heading {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.footer-contact a {
  color: var(--color-text-secondary);
}

.footer-contact a:hover {
  color: var(--color-primary);
}

.footer-contact svg {
  flex-shrink: 0;
  color: var(--color-primary);
  opacity: 0.6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-bottom a {
  color: var(--color-text-muted);
}

.footer-bottom a:hover {
  color: var(--color-primary);
}

/* ======================================
   SCROLL TO TOP
   ====================================== */
.scroll-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ======================================
   ANIMATIONS
   ====================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Animate elements */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="stagger"] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate="stagger"].animated > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
[data-animate="stagger"].animated > *:nth-child(1) { transition-delay: 0.05s; }
[data-animate="stagger"].animated > *:nth-child(2) { transition-delay: 0.1s; }
[data-animate="stagger"].animated > *:nth-child(3) { transition-delay: 0.15s; }
[data-animate="stagger"].animated > *:nth-child(4) { transition-delay: 0.2s; }
[data-animate="stagger"].animated > *:nth-child(5) { transition-delay: 0.25s; }
[data-animate="stagger"].animated > *:nth-child(6) { transition-delay: 0.3s; }
[data-animate="stagger"].animated > *:nth-child(7) { transition-delay: 0.35s; }
[data-animate="stagger"].animated > *:nth-child(8) { transition-delay: 0.4s; }

/* ======================================
   RESPONSIVE DESIGN
   ====================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 3.5rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --header-height: 70px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .service-detail-body {
    grid-template-columns: 1fr;
  }

  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .calculator-result-wrapper {
    position: static;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--space-2xl);
  }

  .header-cta {
    display: inline-flex;
  }

  /* 2 columns for grids on tablets */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --text-6xl: 2.2rem;
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.35rem;
    --text-2xl: 1.2rem;
    --space-4xl: 3rem;
    --space-3xl: 2rem;
    --space-5xl: 4rem;
    --header-height: 64px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  /* ---- Mobile Header ---- */
  .logo-tagline {
    display: none;
  }

  .logo-name {
    font-size: var(--text-lg);
  }

  .logo-icon svg {
    width: 34px;
    height: 34px;
  }

  .logo {
    gap: var(--space-sm);
  }

  /* Mobile navigation overlay */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 15, 28, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    padding: var(--space-2xl);
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    text-align: center;
    width: 100%;
    max-width: 300px;
  }

  .nav-link {
    font-size: var(--text-lg);
    padding: var(--space-md) var(--space-lg);
    display: block;
    border-radius: var(--radius-md);
    color: var(--color-text);
  }

  .nav-link:hover,
  .nav-link:active {
    background: rgba(255, 107, 53, 0.08);
    color: var(--color-primary);
  }

  .nav-link.active {
    background: rgba(255, 107, 53, 0.1);
    color: var(--color-primary);
  }

  .nav-link.active::after {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    position: relative;
    z-index: 10000;
  }

  .header-cta {
    display: none;
  }

  .lang-switch {
    padding: var(--space-sm);
  }

  /* ---- Hero mobile ---- */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-2xl);
  }

  .hero .container {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .hero-badge {
    font-size: var(--text-xs);
    padding: 6px var(--space-md);
    margin-bottom: var(--space-lg);
  }

  .hero-title {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: var(--space-2xl);
    gap: var(--space-sm);
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem var(--space-lg);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
    justify-content: center;
  }

  .stat {
    flex: 0 0 auto;
    min-width: 80px;
    text-align: center;
  }

  .stat-number {
    font-size: var(--text-2xl);
  }

  .stat-plus {
    font-size: var(--text-2xl);
  }

  .stat-label {
    font-size: var(--text-xs);
  }

  .hero-scroll-indicator {
    display: none;
  }

  /* ---- Section headers ---- */
  .section-header {
    margin-bottom: var(--space-xl);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .section-subtitle {
    font-size: var(--text-sm);
  }

  .section-tag {
    font-size: var(--text-xs);
    margin-bottom: var(--space-sm);
  }

  /* ---- Grids mobile: 2 columns ---- */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* ---- Product cards mobile ---- */
  .product-card {
    border-radius: var(--radius-md);
  }

  .product-card:hover {
    transform: none;
  }

  .product-image {
    aspect-ratio: 1/1;
  }

  .product-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    top: var(--space-sm);
    left: var(--space-sm);
  }

  .product-info {
    padding: var(--space-md);
  }

  .product-name {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-desc {
    display: none;
  }

  .product-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .product-price {
    font-size: var(--text-xs);
  }

  .product-price strong {
    font-size: var(--text-base);
  }

  .product-actions {
    width: 100%;
    flex-direction: column;
    gap: 4px;
  }

  .product-actions .btn {
    width: 100%;
    font-size: var(--text-xs);
    padding: 6px var(--space-sm);
    text-align: center;
    justify-content: center;
  }

  /* ---- Service cards mobile ---- */
  .service-card {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
  }

  .service-card:hover {
    transform: none;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
  }

  .service-icon svg {
    width: 28px;
    height: 28px;
  }

  .service-name {
    font-size: var(--text-base);
  }

  .service-desc {
    font-size: var(--text-xs);
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .service-price {
    font-size: var(--text-xs);
  }

  .service-price strong {
    font-size: var(--text-base);
  }

  .service-link {
    font-size: var(--text-xs);
  }

  /* ---- Catalog filters: horizontal scroll ---- */
  .catalog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-xl);
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .catalog-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 8px var(--space-md);
    font-size: var(--text-xs);
    white-space: nowrap;
  }

  /* ---- Catalog page ---- */
  .page-header-section {
    padding-top: var(--space-md);
    padding-bottom: 0;
  }

  .page-title {
    font-size: var(--text-2xl);
  }

  .page-subtitle {
    font-size: var(--text-sm);
  }

  /* ---- Breadcrumbs mobile ---- */
  .breadcrumbs {
    padding-top: calc(var(--header-height) + var(--space-md));
    padding-bottom: var(--space-sm);
  }

  .breadcrumb-list {
    font-size: var(--text-xs);
    gap: 4px;
  }

  .breadcrumb-list li:not(:last-child)::after {
    margin-left: 4px;
  }

  /* ---- Product detail mobile ---- */
  .product-detail {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .product-detail-image {
    border-radius: var(--radius-md);
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    border-radius: 0;
  }

  .product-detail-name {
    font-size: var(--text-2xl);
  }

  .product-detail-price strong {
    font-size: var(--text-2xl);
  }

  .product-detail-actions {
    flex-direction: column;
  }

  .product-detail-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .related-products {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
  }

  .related-products .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ---- Service list mobile ---- */
  .service-list-card {
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
  }

  .service-list-icon {
    width: 56px;
    height: 56px;
  }

  .service-list-name {
    font-size: var(--text-lg);
  }

  .service-list-desc {
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
  }

  .service-list-footer {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .service-list-actions {
    flex-direction: column;
  }

  .service-list-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* ---- Service detail ---- */
  .service-detail-header h1 {
    font-size: var(--text-2xl);
  }

  /* ---- Advantages mobile ---- */
  .advantage-card {
    padding: var(--space-lg);
  }

  .advantage-number {
    font-size: var(--text-2xl);
  }

  .advantage-title {
    font-size: var(--text-base);
  }

  .advantage-text {
    font-size: var(--text-xs);
  }

  /* ---- CTA section mobile ---- */
  .cta-card {
    padding: var(--space-xl) var(--space-lg);
  }

  .cta-title {
    font-size: var(--text-xl);
  }

  .cta-subtitle {
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* ---- Calculator mobile ---- */
  .calculator-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .calculator-form-wrapper,
  .calculator-result-wrapper {
    padding: var(--space-lg);
  }

  .result-total-amount {
    font-size: var(--text-2xl);
  }

  /* ---- Contact mobile ---- */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .contact-form-wrapper {
    padding: var(--space-lg);
  }

  .contact-info-card {
    padding: var(--space-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quick-contacts {
    grid-template-columns: 1fr 1fr;
  }

  /* ---- About mobile ---- */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-content .lead {
    font-size: var(--text-base);
  }

  /* ---- Footer mobile ---- */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-desc {
    font-size: var(--text-xs);
  }

  .footer-heading {
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
  }

  .footer-links a {
    font-size: var(--text-xs);
  }

  .footer-contact li {
    font-size: var(--text-xs);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    font-size: var(--text-xs);
  }

  .footer-wave svg {
    height: 30px;
  }

  .site-footer {
    padding-top: var(--space-2xl);
  }

  /* ---- Blog mobile ---- */
  .article-title {
    font-size: var(--text-2xl);
  }

  .article-content {
    font-size: var(--text-base);
  }

  /* ---- Error page ---- */
  .error-code {
    font-size: 5rem;
  }

  /* ---- Buttons mobile ---- */
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: var(--text-sm);
  }

  .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: var(--text-xs);
  }

  /* ---- Scroll top ---- */
  .scroll-top {
    width: 40px;
    height: 40px;
    bottom: var(--space-md);
    right: var(--space-md);
  }

  /* Disable hover effects on touch */
  .product-card:hover .product-image img,
  .blog-card:hover .blog-card-image img {
    transform: none;
  }

  .category-card:hover,
  .advantage-card:hover {
    transform: none;
  }
}

/* Small mobile (< 480px) */
@media (max-width: 480px) {
  :root {
    --text-6xl: 1.75rem;
    --text-5xl: 1.5rem;
    --text-4xl: 1.35rem;
    --text-3xl: 1.2rem;
    --text-2xl: 1.1rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  /* 2-col products stay but tighter */
  .products-grid {
    gap: var(--space-sm);
  }

  .product-info {
    padding: var(--space-sm);
  }

  .product-name {
    font-size: var(--text-xs);
  }

  .product-price strong {
    font-size: var(--text-sm);
  }

  .product-actions .btn {
    font-size: 0.65rem;
    padding: 5px 6px;
  }

  /* Service cards single column */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Categories single column */
  .categories-grid {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero-title {
    font-size: var(--text-6xl);
  }

  .hero-stats {
    gap: var(--space-md);
  }

  .stat {
    min-width: 70px;
  }

  .stat-number {
    font-size: var(--text-xl);
  }

  .stat-plus {
    font-size: var(--text-xl);
  }

  /* Footer single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-about {
    grid-column: auto;
  }

  /* CTA */
  .cta-card {
    padding: var(--space-lg) var(--space-md);
  }

  /* Quick contacts stack */
  .quick-contacts {
    grid-template-columns: 1fr;
  }

  /* Catalog filters smaller */
  .catalog-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 10px;
    font-size: 0.65rem;
  }

  /* Breadcrumbs */
  .breadcrumbs {
    padding-top: calc(var(--header-height) + var(--space-sm));
  }
}

/* ======================================
   PRINT STYLES
   ====================================== */
@media print {
  .site-header,
  .site-footer,
  .scroll-top,
  .hero-visual,
  .cta-section {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding: 1rem 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
