/* ============================================
   LINKODIUM - Liquid Glass Design System
   Light, Modern, Elegant
   ============================================ */

:root {
  /* Colors */
  --bg-gradient-1: #f8faff;
  --bg-gradient-2: #eef4ff;
  --bg-gradient-3: #e8f4f8;
  
  --glass: rgba(255, 255, 255, 0.55);
  --glass-hover: rgba(255, 255, 255, 0.75);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  
  --text: #1a2b4a;
  --text-secondary: #4a5e80;
  --text-muted: #7a8ba8;
  
  --accent: #6366f1;
  --accent-light: rgba(99, 102, 241, 0.12);
  --accent-glow: rgba(99, 102, 241, 0.25);
  
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.12);
  --success-glow: rgba(16, 185, 129, 0.25);
  
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.12);
  
  --border: rgba(0, 0, 0, 0.06);
  --border-light: rgba(255, 255, 255, 0.5);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 8px 32px var(--accent-glow);
  
  /* Spacing & Layout */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-width: 1200px;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s 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;
}

body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: 
    radial-gradient(ellipse 120% 80% at 10% 0%, rgba(99, 102, 241, 0.15), transparent 50%),
    radial-gradient(ellipse 100% 70% at 90% 10%, rgba(16, 185, 129, 0.12), transparent 45%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(99, 102, 241, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 50%, var(--bg-gradient-3) 100%);
  background-attachment: fixed;
}

/* Animated Background Orbs */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

body::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
  top: -200px;
  left: -100px;
}

body::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.02); }
}

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

/* Container */
.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 
    var(--shadow-sm),
    inset 0 1px 0 var(--border-light);
}

.btn:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
  box-shadow: 
    var(--shadow-md),
    inset 0 1px 0 var(--border-light);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-color: transparent;
  color: white;
  box-shadow: 
    var(--shadow-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #5558e8, #7c7ff5);
  box-shadow: 
    0 12px 40px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn.green {
  background: linear-gradient(135deg, var(--success), #34d399);
  border-color: transparent;
  color: white;
  box-shadow: 
    0 8px 32px var(--success-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.green:hover {
  background: linear-gradient(135deg, #0ea573, #2fcf8e);
  box-shadow: 
    0 12px 40px var(--success-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn.small {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn.small.active,
.nav-actions .btn[aria-current="page"] {
  background: var(--accent-light);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--accent);
}

/* ============================================
   CHIPS & BADGES
   ============================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.chip:hover {
  background: var(--glass-hover);
  border-color: var(--accent-light);
}

.chip[aria-pressed="true"] {
  background: var(--accent-light);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 100px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.dot.green {
  background: var(--success);
  box-shadow: 0 0 8px var(--success-glow);
}

.dot.warn {
  background: var(--warning);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  color: var(--text);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--success));
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.2), transparent 50%);
}

header nav {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  justify-content: center;
}

nav a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

nav a:hover {
  color: var(--text);
  background: var(--glass);
}

nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-actions .btn:not(.burger) {
  display: none;
}

@media (min-width: 1100px) {
  .nav-actions .btn:not(.burger) {
    display: inline-flex;
  }
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  place-items: center;
  transition: all var(--transition-fast);
}

.burger:hover {
  background: var(--glass-hover);
}

.burger svg {
  width: 22px;
  height: 22px;
}

/* Mobile Menu */
.mobile {
  display: none;
  padding: 16px 0 24px;
  border-top: 1px solid var(--border);
}

.mobile a {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile a:hover {
  color: var(--text);
  background: var(--glass);
}

.mobile a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-light);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.mobile-actions .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 80px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Glass Cards */
.card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.card::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-light), transparent 70%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card.green::after {
  background: radial-gradient(circle, var(--success-light), transparent 70%);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
}

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kpi {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.kpi:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
}

.kpi b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.kpi span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 60px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-head p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

/* Service Cards */
.service {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--glass-hover);
}

.service .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.service h3 {
  font-size: 17px;
  font-weight: 600;
}

.service p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service ul {
  margin-top: 16px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.service li {
  margin: 8px 0;
  line-height: 1.5;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--glass);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.service:hover .icon {
  background: var(--accent-light);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Service icon with image */
.icon.icon-img {
  background: transparent;
  border: none;
  padding: 2px;
  width: 48px;
  height: 48px;
}

.icon.icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.service:hover .icon.icon-img {
  background: transparent;
  border-color: transparent;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  background: var(--glass-hover);
  border-color: rgba(99, 102, 241, 0.15);
}

.product-icon {
  --product-color: var(--accent);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--product-color) 15%, transparent),
    color-mix(in srgb, var(--product-color) 5%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--product-color) 20%, transparent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all var(--transition-smooth);
}

.product-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--product-color);
  transition: all var(--transition-fast);
}

.product-card:hover .product-icon {
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--product-color) 25%, transparent),
    color-mix(in srgb, var(--product-color) 12%, transparent)
  );
  transform: scale(1.05);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--product-color) 25%, transparent);
}

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

.product-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  transition: color var(--transition-fast);
}

.product-card:hover .product-content h3 {
  color: var(--accent);
}

.product-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.product-card:hover .product-link {
  color: var(--accent);
}

.arrow-icon {
  transition: transform var(--transition-fast);
}

.product-card:hover .arrow-icon {
  transform: translateX(4px);
}

/* Product icon with image */
.product-icon-img {
  background: transparent;
  border: none;
  padding: 4px;
}

.product-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.product-card:hover .product-icon-img {
  background: transparent;
  box-shadow: none;
}

/* ============================================
   WORK FEED (Cases & News)
   ============================================ */
.workbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab:hover {
  background: var(--glass-hover);
}

.tab[aria-selected="true"] {
  background: var(--accent-light);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--accent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  user-select: none;
}

.switch {
  width: 48px;
  height: 28px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--glass);
  position: relative;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.switch[data-on="true"] {
  background: var(--success-light);
  border-color: rgba(16, 185, 129, 0.3);
}

.switch[data-on="true"]::after {
  left: 23px;
  background: var(--success);
  box-shadow: 0 2px 8px var(--success-glow);
}

/* Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-smooth);
  min-height: 180px;
}

.work::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.work:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  background: var(--glass-hover);
  border-color: rgba(99, 102, 241, 0.2);
}

.work .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.work .meta .badge {
  font-size: 11px;
  padding: 6px 10px;
}

.work h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-right: 40px;
}

.work p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.work .arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--glass);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.work:hover .arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translate(2px, -2px);
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-smooth);
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.step:hover {
  transform: translateY(-4px);
  background: var(--glass-hover);
  box-shadow: var(--shadow-md);
}

.step b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.step span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   CLIENTS / TRUST
   ============================================ */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.logo-pill {
  height: 120px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.logo-pill img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.logo-pill:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
}

.logo-pill:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 80% at 0% 0%, var(--accent-light), transparent 50%),
    radial-gradient(ellipse 50% 60% at 100% 100%, var(--success-light), transparent 50%);
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cta p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 550px;
  line-height: 1.6;
}

.cta .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.foot .brand {
  margin-bottom: 16px;
}

.foot p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.foot h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.foot a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.foot a:hover {
  color: var(--accent);
}

.small {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 20, 40, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

/* Legacy support for [open] attribute */
.modal[open] {
  opacity: 1;
  visibility: visible;
}

.modal .panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.65) 0%, 
    rgba(255, 255, 255, 0.85) 100%
  );
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 8px 32px rgba(31, 38, 135, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  position: relative;
}

.modal .panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.1) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.modal.open .panel,
.modal[open] .panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal .head {
  padding: 32px 32px 24px;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.modal .head h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.modal .body {
  padding: 0 32px 32px;
  overflow-y: auto;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.modal .body ul {
  padding-left: 20px;
  margin: 16px 0;
}

.modal .body li {
  margin: 8px 0;
}

.x {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: all var(--transition-smooth);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.x:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cards {
    flex-direction: row;
  }
  
  .hero-cards .card {
    flex: 1;
  }
  
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .logos {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  nav ul {
    display: none;
  }
  
  .burger {
    display: grid;
  }
  
  .mobile[data-open="true"] {
    display: block;
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }
  
  .hero {
    padding: 48px 0 32px;
  }
  
  .hero-cards {
    flex-direction: column;
  }
  
  .kpis {
    grid-template-columns: 1fr;
  }
  
  .grid-2,
  .split {
    grid-template-columns: 1fr;
  }
  
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .workbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
  }
  
  .cta {
    padding: 24px;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .cta p {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .product-icon {
    margin: 0 auto;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .logos {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .lead {
    font-size: 15px;
  }
  
  .section-head h2 {
    font-size: 24px;
  }
}

/* Smooth anchor offset for sticky header */
:target {
  scroll-margin-top: 100px;
}

/* Selection */
::selection {
  background: var(--accent-light);
  color: var(--accent);
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-group .required {
  color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  transition: all var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px var(--accent-light);
  transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Phone Input */
.phone-input-wrapper {
  display: flex;
  position: relative;
}

.country-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 14px;
  font-size: 14px;
  font-family: inherit;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-right: none;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.country-selector:hover {
  background: rgba(255, 255, 255, 0.5);
}

.country-selector .country-flag {
  display: inline-block;
  width: 1.33em;
  line-height: 1em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.country-selector .country-code {
  font-weight: 500;
}

.country-selector svg {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.country-selector.open svg {
  transform: rotate(180deg);
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 200px;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-smooth);
}

.country-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.country-option:hover {
  background: var(--accent-light);
}

.country-option .country-flag {
  display: inline-block;
  width: 1.33em;
  line-height: 1em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.country-option .country-name {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.country-option .country-code {
  font-size: 13px;
  color: var(--text-muted);
}

.phone-input-wrapper input[type="tel"] {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  flex: 1;
}

/* Checkbox */
.checkbox-group {
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 2px solid var(--border);
  background: var(--glass);
  position: relative;
  transition: all var(--transition-fast);
  /*margin-top: 2px;*/
  margin-top: 0px;
}

.checkbox-text {
  flex: 1;
  line-height: 1.5;
}

.checkbox-label:hover .checkmark {
  border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: underline;
}

.checkbox-label a:hover {
  text-decoration: none;
}

/* Form Actions */
.form-actions {
  margin-top: 8px;
}

.form-actions .btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
}

.btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form Message */
.form-message {
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 12px;
}

.form-message.success {
  background: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

/* Contact Modal specific */
#contactModal .panel {
  width: min(520px, 100%);
}

#contactModal .head p {
  margin: 0;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .separator {
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumbs .current {
  color: var(--text);
}

/* ============================================
   ARTICLE PAGE (News)
   ============================================ */
.article {
  padding: 80px 0 100px;
}

.article-header {
  margin-bottom: 32px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--accent);
}

.article-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.article-header .lead {
  font-size: 18px;
  max-width: 100%;
}

.article-image {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 100%;
}

.article-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.article-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 32px 0 16px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
}

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

.article-content li {
  margin: 8px 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.article-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--glass);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
}

.article-content a:hover {
  text-decoration: none;
}

/* Code blocks - TinyMCE codesample */
.article-content .code-block-wrapper {
  position: relative;
  margin: 24px 0;
}

.article-content pre {
  background: #1e1e2e;
  border-radius: 12px;
  padding: 20px;
  margin: 0;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

.article-content pre code {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, 'Courier New', monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  color: #cdd6f4;
}

.article-content code {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, 'Courier New', monospace;
  background: var(--glass);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}

.article-content pre code {
  background: none;
  padding: 0;
  color: #cdd6f4;
}

/* Copy button */
.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  color: #a6adc8;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  opacity: 0;
  z-index: 10;
}

.code-block-wrapper:hover .code-copy-btn {
  opacity: 1;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.code-copy-btn.copied {
  background: #22c55e;
  color: #fff;
}

.code-copy-btn svg {
  width: 14px;
  height: 14px;
}

/* Prism.js syntax highlighting overrides */
.article-content pre[class*="language-"] {
  background: #1e1e2e;
  border-radius: 12px;
  margin: 0;
}

.article-content code[class*="language-"] {
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
}

.article-footer {
  margin-top: 48px;
}

/* ============================================
   PORTFOLIO PAGE
   ============================================ */
.portfolio-page {
  padding: 40px 0 100px;
}

.portfolio-hero {
  position: relative;
  padding: 28px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-md);
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.portfolio-hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.portfolio-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.portfolio-hero .lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 720px;
}

.portfolio-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portfolio-hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.portfolio-selling {
  margin-bottom: 32px;
}

.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--glass-hover);
  color: var(--text);
}

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

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.portfolio-item .portfolio-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--success));
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-item .portfolio-placeholder span {
  font-size: 48px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-title {
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.portfolio-category {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

.empty-portfolio {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-secondary);
}

.empty-portfolio p {
  font-size: 18px;
  margin-bottom: 24px;
}

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-page {
  padding: 40px 0 80px;
}

.privacy-header {
  margin-bottom: 48px;
}

.privacy-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.privacy-header .lead {
  font-size: 17px;
  max-width: 700px;
  margin-bottom: 20px;
}

.privacy-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.privacy-content {
  max-width: 800px;
}

.privacy-section {
  position: relative;
  padding: 28px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-md);
}

.privacy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.privacy-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.privacy-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 12px;
  color: var(--text);
}

.privacy-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

.privacy-section ul,
.privacy-section ol {
  margin: 12px 0;
  padding-left: 24px;
  font-size: 15px;
  color: var(--text-secondary);
}

.privacy-section li {
  margin: 8px 0;
  line-height: 1.6;
}

.privacy-section a {
  color: var(--accent);
  text-decoration: underline;
}

.privacy-section a:hover {
  text-decoration: none;
}

/* Definitions list */
.definitions {
  margin: 0;
}

.definitions dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 16px;
  font-size: 15px;
}

.definitions dt:first-child {
  margin-top: 0;
}

.definitions dd {
  margin: 6px 0 0 0;
  padding-left: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Purpose blocks */
.purpose-block {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.purpose-block:first-of-type {
  margin-top: 0;
}

.purpose-block h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--accent);
}

.purpose-block ul {
  margin: 0;
}

.purpose-block li {
  margin: 10px 0;
}

.purpose-block li strong {
  color: var(--text);
}

/* Contact card */
.contact-card,
.operator-card {
  margin: 16px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.contact-card p,
.operator-card p {
  margin: 8px 0;
}

.contact-card p:first-child,
.operator-card p:first-child {
  margin-top: 0;
}

.contact-card p:last-child,
.operator-card p:last-child {
  margin-bottom: 0;
}

.policy-date {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.privacy-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .privacy-page {
    padding: 24px 0 60px;
  }
  
  .privacy-section {
    padding: 20px;
  }
  
  .privacy-section h2 {
    font-size: 18px;
  }
  
  .purpose-block {
    padding: 16px;
  }
}

/* Case Article Page */
.case-article {
  padding: 80px 0 100px;
}

.case-header {
  margin-bottom: 32px;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.case-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.case-header .lead {
  font-size: 18px;
  max-width: 100%;
}

.case-image {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.case-image img {
  width: 100%;
  height: auto;
  display: block;
}

.case-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.case-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 32px 0 16px;
}

.case-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.case-content p {
  margin-bottom: 16px;
}

.case-content ul,
.case-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.case-content li {
  margin: 8px 0;
}

.case-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.case-footer {
  margin-top: 48px;
}

/* Responsive Portfolio Grid */
@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio-hero {
    padding: 22px;
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  
  .portfolio-overlay {
    padding: 12px;
  }
  
  .portfolio-title {
    font-size: 12px;
  }
  
  .portfolio-category {
    font-size: 10px;
  }

  .portfolio-hero {
    padding: 18px;
  }

  .portfolio-hero h1 {
    font-size: 26px;
  }
}

/* ============================================
   CONTACTS PAGE
   ============================================ */
.contacts-page {
  padding: 40px 0 80px;
}

.contacts-page h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: start;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.contact-phone {
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-phone:hover {
  color: #5558e8;
}

.contact-messengers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.messenger-link:hover {
  color: #5558e8;
}

.messenger-link i {
  font-size: 18px;
}

.contact-address {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-row p {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

.current-time {
  font-weight: 500;
}

.contact-email {
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-email:hover {
  color: #5558e8;
}

.contact-note {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.contact-note p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 12px;
}

.contact-note p:last-child {
  margin-bottom: 0;
}

/* Карта */
.contacts-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: #fff;
  height: 100%;
  min-height: 500px;
}

.contacts-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
}

/* Форма обратной связи */
.contacts-form-section {
  position: relative;
  padding: 48px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-lg);
}

.contacts-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.contacts-form-section h2 {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

/* Форма на странице контактов - использует стандартные стили contact-form */
.contacts-form-section .contact-form {
  max-width: 900px;
  margin: 0 auto;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 0;
}

.contacts-form-section .form-actions {
  margin-top: 24px;
}

.contacts-form-section .btn.primary {
  padding: 16px 48px;
}

/* Responsive */
@media (max-width: 900px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .contacts-map {
    min-height: 400px;
  }
  
  .contacts-map iframe {
    min-height: 400px;
  }
  
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contacts-page {
    padding: 24px 0 60px;
  }
  
  .contact-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .contacts-form-section {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .contact-phone {
    font-size: 24px;
  }
  
  .contacts-form-section h2 {
    font-size: 20px;
  }
}

/* ============================================
   City Selector - Multi-regional support
   ============================================ */

.city-selector {
  position: relative;
  display: flex;
  align-items: center;
}

.city-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.city-selector-btn:hover {
  background: var(--glass-hover);
  border-color: var(--accent);
}

.city-selector-btn svg:first-child {
  color: var(--accent);
  flex-shrink: 0;
}

.city-selector-btn .city-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-selector-btn .city-arrow {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  opacity: 0.6;
}

.city-selector.open .city-arrow {
  transform: rotate(180deg);
}

.city-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-fast);
}

.city-selector.open .city-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.city-option {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.city-option:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.city-option.active {
  background: var(--accent);
  color: white;
}

.city-option.active:hover {
  background: var(--accent);
  color: white;
}

/* Mobile city selector */
.mobile-city-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mobile-city-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.mobile-city-select {
  flex: 1;
  padding: 10px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%234a5e80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.mobile-city-select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Hide city selector on very small screens in header, show only in mobile menu */
@media (max-width: 1100px) {
  .city-selector {
    display: none;
  }
}

@media (min-width: 1101px) {
  .mobile-city-selector {
    display: none;
  }
}

/* ============================================
   PAGE HEADER (Internal pages)
   ============================================ */
.page-header {
  padding: 100px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.page-header .lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.page-header .breadcrumbs {
  justify-content: center;
  margin-bottom: 24px;
}

.breadcrumbs .sep {
  color: var(--text-muted);
  opacity: 0.5;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-intro {
  text-align: center;
  padding: 40px 0;
}

.about-logo-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-card {
  background: var(--bg-card);
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-size: clamp(56px, 8vw, 72px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Video preview hover */
.video-preview:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(99, 102, 241, 1);
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-card {
    padding: 32px 24px;
  }
  
  .stat-number {
    font-size: 48px;
  }
  
  .stat-label {
    font-size: 16px;
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 28px 20px;
  }
  
  .stat-number {
    font-size: 42px;
  }
  
  .about-logo-big {
    flex-direction: column;
    text-align: center;
  }
  
  .about-logo-big > div {
    text-align: center;
  }
}

/* Grid-3 responsive */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: 1fr !important;
  }
}
