@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800&display=swap');
:root {
  --ink: #1e293b;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.09);
  --brand: #0284c7;
  --brand-deep: #0369a1;
  --bg: #f8fafc;
  --card-bg: #ffffff;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: Nunito, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.hero {
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 50%, #fef3c7 100%);
  border-bottom: 2px solid rgba(2, 132, 199, 0.18);
}
.hero-row {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hero-intro {
  display: flex;
  gap: 16px;
  align-items: center;
}
.hero-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  border: 2px solid #bae6fd;
}
.eyebrow {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #7dd3fc;
  color: #0369a1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero h1 {
  margin: 0 0 4px;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.hero .lead {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
}
.hero-aside {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #334155;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
  max-width: 340px;
}
.hero-aside strong {
  color: #0284c7;
  display: block;
  margin-bottom: 2px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: #0284c7;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.btn-back:hover {
  background: #f0f9ff;
  border-color: #0284c7;
}

.chips-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.chip {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover, .chip.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.help-card {
  background: var(--card-bg);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.help-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
  border-color: #7dd3fc;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.card-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.badge-emergency {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.badge-family {
  background: #fdf4ff;
  color: #86198f;
  border-color: #f5d0fe;
}
.badge-erziehung {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}
.badge-sucht {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.card-title {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.card-sub {
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 8px;
}
.card-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 14px;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.card-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}

.card-details {
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
  margin-top: auto;
  font-size: 12px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-row svg {
  width: 14px;
  height: 14px;
  color: #0284c7;
  flex-shrink: 0;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.btn-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  transition: all 0.15s ease;
  text-align: center;
}
.btn-phone {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}
.btn-phone:hover {
  filter: brightness(1.08);
}
.btn-phone.emergency {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
}
.btn-email {
  background: #ffffff;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
}
.btn-email:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

@media (max-width: 640px) {
  .hero-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-aside {
    max-width: 100%;
    width: 100%;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
}
