:root {
  --bg: #090a14;
  --bg-deep: #05060c;
  --text: #eaeaff;
  --text-sub: #a0a8d0;
  --accent: #00f0ff;
  --accent-pulse: rgba(0, 240, 255, 0.2);
  --grid-line: rgba(0, 180, 255, 0.08);
  --card-bg: rgba(20, 22, 40, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-deep);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

#bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1; opacity: 0.4;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }

/* ?? Header ?? */
header {
  padding: 16px 0;
  position: fixed; width: 100%; top: 0; z-index: 100;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(9, 10, 20, 0.88);
  border-bottom: 1px solid rgba(0, 200, 255, 0.12);
}

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

.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }

.logo-icon {
  width: 36px; height: 36px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L90 50 L50 90 L10 50 Z" fill="none" stroke="%2300f0ff" stroke-width="3"/><circle cx="50" cy="50" r="20" fill="none" stroke="%2300f0ff" stroke-width="2" stroke-dasharray="5,5"/></svg>') no-repeat center/contain;
}

.nav { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--text-sub); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.nav-link:hover { color: var(--accent); }
.nav-phone { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-phone:hover { color: var(--accent); }

/* ?? Buttons ?? */
.btn {
  display: inline-block; padding: 12px 28px;
  background: var(--accent); color: var(--bg-deep);
  font-weight: 700; border-radius: 10px; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 1, 0.2, 1);
  position: relative; overflow: hidden; border: none;
  font-size: 15px; letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(0, 200, 255, 0.2); cursor: pointer;
}

.btn::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(0, 240, 255, 0.4); }
.btn:hover::before { left: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: none;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(0, 240, 255, 0.08); }
.btn-full { width: 100%; margin-top: 16px; }

/* ?? Hero ?? */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; padding-top: 80px;
}

.hero-content {
  max-width: 720px; position: relative; z-index: 2;
  animation: fadeInUp 1s forwards 0.3s; opacity: 0; transform: translateY(20px);
}

.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 20px; font-size: 0.85rem; color: var(--accent);
  margin-bottom: 24px; letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3.5rem; line-height: 1.1; font-weight: 800;
  margin-bottom: 20px; text-shadow: 0 0 20px var(--accent-pulse);
}

.hero p { font-size: 1.2rem; color: var(--text-sub); margin-bottom: 32px; max-width: 600px; }

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

/* ?? Stats ?? */
.stats-bar {
  padding: 40px 0; border-top: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
  background: rgba(9, 10, 20, 0.6);
}

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

.stat-number {
  font-size: 2.2rem; font-weight: 800; color: var(--accent);
  margin-bottom: 4px;
}

.stat-label { font-size: 0.9rem; color: var(--text-sub); }

/* ?? Section titles ?? */
.section-title {
  font-size: 2.2rem; margin-bottom: 16px;
  background: linear-gradient(90deg, var(--accent), #7a00ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.section-sub { color: var(--text-sub); max-width: 650px; margin-bottom: 48px; font-size: 1.05rem; }

/* ?? Features ?? */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px;
}

.feature-card {
  background: var(--card-bg); border: 1px solid var(--grid-line);
  border-radius: 16px; padding: 32px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  min-width: 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card.revealed { opacity: 1; transform: translateY(0); }
.feature-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(0, 200, 255, 0.12); }
.feature-card.revealed:hover { transform: translateY(-6px); }

.feature-icon { color: var(--accent); margin-bottom: 20px; }
.feature-card h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--text); }
.feature-card p { color: var(--text-sub); font-size: 0.95rem; line-height: 1.7; }

/* ?? Process ?? */
.process-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px;
}

.process-step {
  padding: 28px; border-radius: 16px;
  background: var(--card-bg); border: 1px solid var(--grid-line);
  position: relative; min-width: 0;
}

.process-num {
  font-size: 3rem; font-weight: 800; color: rgba(0, 240, 255, 0.1);
  line-height: 1; margin-bottom: 12px;
}

.process-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.process-step p { color: var(--text-sub); font-size: 0.9rem; }

/* ?? Industries ?? */
.industries-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
}

.industry-card {
  display: flex; align-items: center; gap: 12px;
  padding: 20px; border-radius: 12px;
  background: var(--card-bg); border: 1px solid var(--grid-line);
  font-size: 0.95rem; transition: border-color 0.3s; min-width: 0;
}

.industry-card:hover { border-color: rgba(0, 240, 255, 0.3); }
.industry-icon { font-size: 1.5rem; }

/* ?? CTA ?? */
.cta {
  text-align: center; background: var(--card-bg);
  border-radius: 20px; padding: 60px 30px;
  margin: 60px auto; max-width: 1232px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--grid-line);
}

/* ?? FAQ ?? */
.faq-list { max-width: 720px; }

.faq-item {
  border-bottom: 1px solid var(--grid-line);
}

.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; background: none; border: none; color: var(--text);
  font-size: 1.05rem; font-weight: 600; cursor: pointer; text-align: left;
}

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

.faq-arrow { transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.active .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  padding: 0 0 20px; color: var(--text-sub); font-size: 0.95rem; line-height: 1.7;
}

/* ?? Form ?? */
.lead-form { max-width: 540px; margin: 0 auto; text-align: left; }

.form-group { margin: 14px 0; }

input, textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(10, 12, 25, 0.7); border: 1px solid var(--grid-line);
  border-radius: 12px; color: white; font-size: 16px; transition: all 0.3s;
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-pulse);
}

.form-note { font-size: 0.82rem; color: var(--text-sub); margin-top: 6px; }
.form-privacy { font-size: 0.8rem; color: var(--text-sub); margin-top: 12px; text-align: center; }

#result { margin-top: 16px; font-weight: 600; font-size: 0.95rem; text-align: center; }

.success { color: #00ffaa; }
.error { color: #ff6a6a; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

[x-cloak] { display: none !important; }

#contact { padding: 80px 0; }

/* ?? Footer ?? */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 24px; margin-top: 40px;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px;
}

.footer-col h4 { color: var(--text); margin-bottom: 12px; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-sub); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-sub); font-size: 0.85rem;
}

/* ?? Animations ?? */
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ?? Page Hero (inner pages) ?? */
.page-hero {
  padding: 140px 0 60px;
}

/* ?? About ?? */
.about-card {
  background: var(--card-bg); border: 1px solid var(--grid-line);
  border-radius: 16px; padding: 32px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ?? Services ?? */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px;
}

.service-card {
  background: var(--card-bg); border: 1px solid var(--grid-line);
  border-radius: 16px; padding: 32px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  min-width: 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card.revealed { opacity: 1; transform: translateY(0); }
.service-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(0, 200, 255, 0.12); }
.service-card.revealed:hover { transform: translateY(-6px); }

.service-icon { color: var(--accent); margin-bottom: 20px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text); }
.service-card p { color: var(--text-sub); font-size: 0.95rem; line-height: 1.7; }

/* ?? Language Switcher ?? */
.lang-switch {
  padding: 4px 12px; border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px; font-size: 0.8rem !important; font-weight: 600;
  letter-spacing: 0.5px;
}
.lang-switch:hover { border-color: var(--accent); }

/* ?? Admin ?? */
.page-admin { background: var(--bg-deep); }

.admin-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left; padding: 12px 16px;
  background: rgba(0, 240, 255, 0.08); color: var(--accent);
  font-weight: 600; border-bottom: 2px solid var(--grid-line);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--grid-line);
  color: var(--text-sub); vertical-align: top;
}

.admin-table tbody tr:hover { background: rgba(0, 240, 255, 0.04); }

.admin-table a { color: var(--accent); text-decoration: none; }
.admin-table a:hover { text-decoration: underline; }

.admin-msg { max-width: 240px; word-break: break-word; }

.admin-lang-badge {
  display: inline-block; padding: 2px 8px;
  background: rgba(0, 240, 255, 0.1); border-radius: 4px;
  font-size: 0.8rem; color: var(--accent); text-transform: uppercase;
}

/* ?? Burger ?? */
.burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 110; position: relative;
}
.burger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all 0.3s ease;
}
.burger span + span { margin-top: 6px; }
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ?? Responsive ?? */
@media (max-width: 768px) {
  .burger { display: block; }

  .nav {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(9, 10, 20, 0.96); -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px); border-bottom: 1px solid var(--grid-line);
    padding: 16px 24px;
  }
  .nav.open { display: flex; }

  .nav .nav-link, .nav .nav-phone { padding: 12px 0; font-size: 1rem; }
  .nav .btn { text-align: center; margin-top: 8px; }
  .nav .nav-phone { order: -1; }

  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .section-title { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.6rem; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  .admin-table thead { display: none; }
  .admin-table tbody tr {
    display: block; padding: 16px; margin-bottom: 16px;
    border: 1px solid var(--grid-line); border-radius: 12px;
    background: var(--card-bg);
  }
  .admin-table td {
    display: flex; justify-content: space-between; padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .admin-table td::before {
    content: attr(data-label); font-weight: 600;
    color: var(--text); margin-right: 16px;
  }
  .admin-table td:last-child { border-bottom: none; }
}

