/* OpenClaw Dashboard + Landing Page Styles */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Colors - Light Theme (Default) */
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-hover: #f1f5f9;
  --text: #334155;
  --text-strong: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --accent-light: #fef2f2;
  --primary: #dc2626;
  --color-primary: #dc2626;
  --primary-foreground: #ffffff;
  --ok: #16a34a;
  --ok-light: #dcfce7;
  --ok-text: #15803d;
  --info: #2563eb;
  --focus-ring: rgba(220, 38, 38, 0.4);
  
  /* Typography */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.15);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; letter-spacing: -0.03em; }
h2 { font-size: 2rem; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--text-muted); }

a { color: var(--accent); text-decoration: none; transition: color var(--duration-fast); }
a:hover { color: var(--accent-hover); }
.text-accent { color: var(--accent); }
.muted { color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  border: none;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

.btn-primary { background: var(--accent); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--accent-hover); color: var(--primary-foreground); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25); }
.btn-primary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.btn-outline { background: transparent; color: var(--text-strong); border: 2px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--text-strong); color: var(--text-strong); }
.btn-outline:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.btn-white { background: white; color: var(--accent); }
.btn-white:hover { background: var(--bg-alt); transform: translateY(-2px); }

.btn-full { width: 100%; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.4rem; color: var(--text-strong); }
.logo:hover { color: var(--text-strong); }
.logo-icon { font-size: 1.5rem; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { padding: 8px 16px; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; border-radius: var(--radius-md); transition: all var(--duration-fast); }
.main-nav a:not(.btn):hover { color: var(--text-strong); background: var(--bg-alt); }
.main-nav a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Mobile Navigation */
@media (max-width: 768px) {
  .main-nav { 
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.active { display: flex; }
  .main-nav a { width: 100%; text-align: center; padding: 12px; }
  
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-strong);
    transition: all 0.3s ease;
  }
  .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

@media (min-width: 769px) {
  .mobile-menu-btn { display: none; }
}

/* Hero Section */
.hero {
  padding: 160px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 85vh;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 20px; line-height: 1.1; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-strong); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* Hero Visual */
.hero-visual { display: flex; justify-content: center; }
.hero-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); width: 100%; max-width: 420px; overflow: hidden; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; background: var(--bg-alt); }
.card-dots { display: flex; gap: 6px; }
.card-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.card-dots span:first-child { background: #ef4444; }
.card-dots span:nth-child(2) { background: #eab308; }
.card-dots span:last-child { background: #22c55e; }
.card-title { font-size: 0.85rem; color: var(--text-muted); }
.card-body { padding: 20px; }
.mock-table { font-size: 0.85rem; }
.mock-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mock-row.header { font-weight: 600; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.status-ok { color: var(--ok); font-weight: 500; font-size: 0.8rem; }

/* Sections */
.section { padding: 100px 24px; max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--bg-alt); max-width: 100%; padding-left: 24px; padding-right: 24px; }
.section-alt .section-header, .section-alt .products-grid, .section-alt .services-grid { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 12px; }
.section-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.product-card { 
  background: var(--bg-elevated); 
  border: 1px solid var(--border); 
  border-radius: var(--radius-lg); 
  padding: 28px; 
  transition: all var(--duration-normal) var(--ease-out); 
  display: flex;
  flex-direction: column;
}
.product-card:hover { 
  border-color: var(--accent); 
  box-shadow: var(--shadow-lg); 
  transform: translateY(-4px); 
}
.product-card:focus-within { border-color: var(--accent); }
.product-icon { font-size: 2rem; margin-bottom: 16px; }
.product-card h3 { margin-bottom: 10px; }
.product-card p { font-size: 0.9rem; margin-bottom: 16px; flex-grow: 1; }
.product-link { font-weight: 600; font-size: 0.9rem; margin-top: auto; display: inline-block; }
.product-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; transition: all var(--duration-normal) var(--ease-out); }
.service-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-num { font-size: 3rem; font-weight: 800; color: var(--border-strong); position: absolute; top: 10px; right: 20px; line-height: 1; }
.service-card h3 { margin-bottom: 10px; position: relative; z-index: 1; }
.service-card p { font-size: 0.9rem; position: relative; z-index: 1; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: all var(--duration-normal) var(--ease-out); }
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.testimonial-rating { color: #eab308; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card .quote { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem; }
.author-name { font-weight: 600; color: var(--text-strong); font-size: 0.9rem; }
.author-company { font-size: 0.8rem; color: var(--text-muted); }

/* CTA Section */
.cta-section { 
  background: linear-gradient(135deg, var(--accent) 0%, #991b1b 100%); 
  padding: 80px 24px; 
  text-align: center; 
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { color: white; font-size: 2.25rem; margin-bottom: 12px; }
.cta-content p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; }

/* Form */
.form-container { max-width: 600px; margin: 0 auto; }
.form-header { text-align: center; margin-bottom: 40px; }
.contact-form { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-strong); }
.field input, .field textarea { 
  padding: 12px 16px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-md); 
  font-family: var(--font-body); 
  font-size: 0.95rem; 
  transition: all var(--duration-fast); 
  background: var(--bg); 
  color: var(--text-strong);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.field input:invalid:not(:placeholder-shown), .field textarea:invalid:not(:placeholder-shown) { border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 16px; }

/* Form validation states */
.field .error-message { color: var(--accent); font-size: 0.8rem; display: none; }
.field input:invalid:not(:placeholder-shown) + .error-message { display: block; }

/* Success Message */
.success-message {
  background: var(--bg-elevated);
  border: 1px solid var(--ok);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ok-light);
  color: var(--ok);
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-message h3 {
  color: var(--text-strong);
  margin-bottom: 12px;
}

.success-message p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Footer */
.site-footer { background: var(--text-strong); color: rgba(255,255,255,0.7); padding: 60px 24px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.footer-brand .logo-text { color: white; font-size: 1.7rem; font-weight: 700; display: block; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 { color: white; font-size: 0.9rem; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 10px; transition: color var(--duration-fast); }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 140px 24px 60px; min-height: auto; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 20px; align-items: center; }
  .products-grid, .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: 30px; }
  .main-nav { gap: 4px; }
  .main-nav a { padding: 6px 10px; font-size: 0.8rem; }
}

/* Price items */
.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.85rem;
}
.price-item:last-child {
  border-bottom: none;
}
.price-name {
  flex: 1;
  color: var(--text);
}
.price-value {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  margin-left: 12px;
}

/* Products table */
.products-table-section {
  margin-bottom: 40px;
}
.table-section-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-strong);
}
.products-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.products-table th,
.products-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.products-table th {
  background: var(--bg-alt, #f8f9fa);
  font-weight: 600;
  color: var(--text-strong);
}
.products-table tr:last-child td {
  border-bottom: none;
}
.products-table tr:hover {
  background: #f8f9fa;
}
.price-cell {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.code-cell { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: #666; }
section#products { padding-top: 130px; }

/* ============================================
   Floating CTA Button
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--accent);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  transition: all 0.3s ease;
  animation: float-pulse 2s ease-in-out infinite;
}

.floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(220, 38, 38, 0.5);
}

.floating-btn-icon {
  font-size: 1.2rem;
}

.floating-btn-text {
  font-size: 1rem;
}

@keyframes float-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 4px 32px rgba(220, 38, 38, 0.7); }
}

/* ============================================
   Hero Benefits List
   ============================================ */
.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.benefit-item {
  font-size: 1.05rem;
  color: var(--text-strong);
}

.benefit-item strong {
  color: var(--accent);
}

/* ============================================
   Quick Contact Widget
   ============================================ */
.quick-contact {
  position: fixed;
  bottom: 100px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9998;
}

.quick-contact-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.quick-contact-btn:hover {
  transform: scale(1.1);
}

.quick-contact-telegram {
  background: #0088cc;
  color: white;
}

.quick-contact-whatsapp {
  background: #25D366;
  color: white;
}

/* ============================================
   Trust Section
   ============================================ */
.trust-section {
  padding: 60px 0;
  background: var(--bg-alt);
  text-align: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.trust-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.trust-card h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.trust-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   News Section
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 12px;
}

.news-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

/* ============================================
   News List (новый формат)
   ============================================ */
.news-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.news-item:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.news-item-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.news-item-title {
  font-size: 0.95rem;
  color: var(--text-strong);
  line-height: 1.4;
}

/* ============================================
   News Modal
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999999;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  max-width: 900px;
  width: 95%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-alt);
  color: var(--text-strong);
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-top: 8px;
  line-height: 1.4;
}

.modal-body {
  padding: 20px 24px;
}

.modal-body p {
  color: var(--text);
  line-height: 1.6;
}

.modal-footer {
  padding: 16px 24px 24px;
}

.modal-loading {
  color: var(--text-muted);
  font-style: italic;
}

/* Modal HTML content styling */
.modal-body {
  padding: 20px 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.modal-body p {
  margin-bottom: 16px;
  line-height: 1.7;
  text-indent: 24px;
}

.modal-body h1, .modal-body h2, .modal-body h3, .modal-body h4 {
  margin: 16px 0 10px;
  color: var(--text-strong);
}

.modal-body ul, .modal-body ol {
  margin: 10px 0 10px 20px;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-body a {
  color: var(--accent);
}

.modal-body img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
}

.modal-body br {
  display: block;
  content: "";
  margin: 8px 0;
}

/* Accessibility - Visually Hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
}

/* Testimonials Slider */
.testimonials-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 50px;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.testimonials-slider .testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: calc(33.333% - 16px);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: #fff;
  color: #1f2937;
  font-size: 28px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--accent);
  color: #fff;
}

.slider-prev { left: 0; }
.slider-next { right: 0; }

@media (max-width: 1024px) {
  .testimonials-slider .testimonial-card {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .testimonials-slider {
    padding: 0 40px;
  }
  .testimonials-slider .testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

/* Touch targets for mobile */
@media (max-width: 768px) {
  .btn, .btn-sm, .btn-lg {
    min-height: 44px;
    min-width: 44px;
  }
  
  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .product-link, .service-card, .testimonial-card {
    min-height: 44px;
  }
  
  .floating-btn {
    width: 56px;
    height: 56px;
  }
  
  .quick-contact-btn {
    width: 48px;
    height: 48px;
  }
}

/* Why Us Section */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-us-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.why-us-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.why-us-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.why-us-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-strong);
}

.why-us-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-strong);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.2s;
}

details[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
}

.faq-item {
  transition: border-color 0.2s;
}

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

/* About Section Mobile */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}
