:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --primary: #1f4f8f;
  --primary-dark: #163a6b;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 24px 16px 32px;
}

.card,
.profile-card,
.link-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 26px 18px 22px;
  text-align: center;
}

.logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 22px;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--border);
}

.subtitle {
  margin: 16px 0 4px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
}

.description {
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 34ch;
}

.links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.link-card:active { transform: scale(0.98); }
.link-card:hover { border-color: var(--primary); }

.link-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: var(--primary);
  font-size: 1.3rem;
  flex: 0 0 auto;
}

.link-text { flex: 1; min-width: 0; }
.link-title { display: block; font-weight: 800; }
.link-desc { display: block; margin-top: 2px; color: var(--muted); font-size: 0.9rem; }
.link-arrow { color: var(--muted); font-weight: 900; }

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 24px;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.error-card {
  width: min(100%, 420px);
  padding: 28px 22px;
  text-align: center;
}

.error-card p { color: var(--muted); line-height: 1.5; }

@media (max-width: 360px) {
  .app-shell { padding-inline: 12px; }
  h1 { font-size: 1.55rem; }
  .link-card { padding: 13px 14px; }
}

.link-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.icon-whatsapp {
  background: #e9f8ef;
}
