:root {
  --bg: #070d18;
  --bg-card: #0f1729;
  --bg-card-hover: #152238;
  --line: #1e3050;
  --text: #e8edf5;
  --muted: #8ba3c7;
  --accent: #f43f5e;
  --accent-dim: #be123c;
  --radius: 14px;
}

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

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

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

.hero-home {
  text-align: center;
  padding: 56px 24px 40px;
  background: radial-gradient(ellipse at 50% 0%, rgba(244, 63, 94, 0.08), transparent 60%);
}

.hero-home img.server-logo {
  width: clamp(140px, 28vw, 220px);
  margin-bottom: 24px;
}

.hero-home h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-home h1 span { color: var(--accent); }

.hero-home p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

.hero-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 24px;
  min-width: 140px;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
}

.stat span { font-size: 0.8rem; color: var(--muted); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.section-title p { color: var(--muted); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent, var(--accent));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: inherit;
}

.service-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--card-accent, var(--accent));
}

.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.service-card .tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
}

.service-card .btn-link {
  margin-top: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--card-accent, var(--accent));
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}

.service-card {
  --card-accent: var(--accent);
}

.phone-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--card-accent, var(--accent));
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 4px;
}

.category-block {
  margin-bottom: 48px;
}

.category-title {
  font-size: 1.35rem;
  margin-bottom: 4px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.category-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  padding-left: 16px;
}

.search-bar {
  margin-bottom: 32px;
}

.search-bar input {
  width: 100%;
  max-width: 480px;
  display: block;
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
}

.empty-search {
  text-align: center;
  color: var(--muted);
  padding: 32px;
}

.emergency-bar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 48px;
  text-align: center;
}

.emergency-bar h3 { margin-bottom: 16px; font-size: 1.1rem; }

.emergency-nums {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.emergency-nums a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.emergency-nums a strong { color: var(--accent); }

.site-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .hero-home { padding-top: 36px; }
}
