:root {
  --vk: #2787f5;
  --bg: #f5f6f8;
  --card: #fff;
  --text: #000;
  --muted: #818c99;
}

* { box-sizing: border-box; }

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

#app { max-width: 640px; margin: 0 auto; padding: 16px; }

/* Приветствие */
.greeting {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: 14px; padding: 16px; margin-bottom: 16px;
}
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #e3e6ea; }
.hello { font-size: 20px; font-weight: 600; }
.subtitle { color: var(--muted); font-size: 14px; }

/* Плитки */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.tile {
  display: flex; flex-direction: column;
  background: var(--card); border-radius: 12px; overflow: hidden;
  text-decoration: none; color: var(--text);
}
.tile:active { opacity: .7; }
.tile-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.tile-cap { padding: 10px 12px; font-weight: 600; font-size: 14px; }

/* Форма */
.lead { background: var(--card); border-radius: 14px; padding: 16px; }
.lead h2 { margin: 0 0 12px; font-size: 17px; }
.lead form { display: flex; flex-direction: column; gap: 10px; }
.lead input, .lead textarea {
  border: 1px solid #dce1e6; border-radius: 10px; padding: 11px; font-size: 15px; font-family: inherit;
}
.lead textarea { min-height: 64px; resize: vertical; }
.lead button, .admin button {
  background: var(--vk); color: #fff; border: 0; border-radius: 10px;
  padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.lead button:active, .admin button:active { opacity: .8; }
.status { color: var(--muted); font-size: 14px; min-height: 18px; }

/* Админ */
.admin { margin-top: 16px; background: var(--card); border-radius: 14px; padding: 16px; }

@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
}
