:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* ===== HEADER ===== */
.header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff;
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none;
}
.header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
  position: relative;
}
.header p {
  font-size: 1.2rem;
  opacity: .85;
  font-weight: 400;
  position: relative;
}

/* ===== NAV ===== */
nav {
  background: var(--bg-card);
  padding: .875rem 2rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.95);
}
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: .5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem 1.25rem;
  border-radius: 8px;
  transition: all var(--transition);
}
nav a:hover {
  color: var(--primary);
  background: rgba(37,99,235,.06);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* ===== SECTIONS ===== */
.section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.section h2 {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  position: relative;
  padding-bottom: .75rem;
}
.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ===== CARDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
}
.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.card p {
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary);
  color: #fff;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  padding: .25rem .65rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 500;
  margin: .2rem .2rem .2rem 0;
}

/* ===== SERVICES ===== */
.service-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: all var(--transition);
}
.service-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.service-item h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: .4rem;
}
.service-item p {
  color: var(--text-secondary);
  font-size: .9rem;
}
.price {
  display: inline-block;
  margin-top: .75rem;
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--text);
  color: var(--text-light);
  font-size: .9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header { padding: 3.5rem 1.5rem 3rem; }
  .header h1 { font-size: 2rem; }
  .header p { font-size: 1rem; }
  nav ul { gap: .25rem; flex-wrap: wrap; }
  nav a { font-size: .85rem; padding: .4rem .9rem; }
  .container { padding: 1.5rem 1rem; }
  .section { padding: 1.5rem; }
  .grid { grid-template-columns: 1fr; }
}
