:root {
  color-scheme: light;
  --bg: #f6f2ea;
  --card: #fffaf1;
  --ink: #26211b;
  --muted: #756b5d;
  --line: #e5dac8;
  --accent: #c36a2d;
  --accent-2: #315f4d;
  --shadow: 0 20px 60px rgba(38, 33, 27, .11);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #fff5df 0, transparent 34rem), var(--bg);
  color: var(--ink);
}
.app { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 64px; }
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; font-size: 12px; }
h1 { margin: 0; font-size: clamp(42px, 7vw, 82px); line-height: .92; letter-spacing: -.06em; }
.lead { max-width: 680px; margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats div { min-width: 112px; padding: 16px; background: rgba(255,250,241,.75); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.stats strong { display: block; font-size: 30px; line-height: 1; }
.stats span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.controls { display: grid; grid-template-columns: 1fr 220px 220px; gap: 12px; margin: 24px 0 28px; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 18px; padding: 15px 16px; background: rgba(255,250,241,.92); color: var(--ink); font: inherit; outline: none; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(195,106,45,.14); }
.empty { padding: 36px; border: 1px dashed #cbbba3; border-radius: 28px; background: rgba(255,250,241,.62); color: var(--muted); }
.empty h2 { margin: 0 0 8px; color: var(--ink); }
.hint { margin-bottom: 0; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.photoWrap { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #eadcc8, #fff7e8); display: grid; place-items: center; }
.photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo[src=""] { display: none; }
.photoWrap:has(.photo[src=""])::after { content: "Фото будет здесь"; color: var(--muted); font-weight: 700; }
.cardBody { padding: 18px; }
.cardTop { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.card h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.badge { flex: none; padding: 6px 9px; border-radius: 999px; background: #edf5ef; color: var(--accent-2); font-size: 12px; font-weight: 800; }
.location { margin: 12px 0 8px; color: var(--accent-2); font-weight: 750; }
.contents, .notes { color: var(--muted); line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { padding: 5px 8px; border-radius: 999px; background: #f1e4d0; color: #5d4a34; font-size: 12px; }
@media (max-width: 860px) {
  .hero, .controls { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .app { width: min(100% - 22px, 1120px); padding-top: 26px; }
  .stats, .grid { grid-template-columns: 1fr; }
  .stats div { min-width: 0; }
}
