body { font-family: Arial, sans-serif; margin:0; background:#f7f7f7; color:#111; }
.container { max-width: 1100px; margin: auto; padding: 16px; }

.site-header { background:#fff; border-bottom:4px solid #c00; }
.header-wrap { display:flex; gap:14px; align-items:center; }
.logo { width:70px; height:70px; object-fit:contain; }
.title h1 { margin:0; font-size:18px; }
.motto { margin:4px 0 0; font-size:13px; color:#555; }

.menu-btn { margin-left:auto; font-size:22px; background:none; border:0; display:none; cursor:pointer; }

.nav { display:flex; gap:14px; padding-bottom:12px; }
.nav a { text-decoration:none; color:#111; padding:8px 10px; border-radius:8px; }
.nav a:hover { background:#eee; }
.nav-admin { margin-left:auto; background:#c00; color:#fff !important; }

.card { background:#fff; padding:16px; border-radius:14px; box-shadow:0 2px 10px rgba(0,0,0,.06); margin:12px 0; }
.alert { background:#ffd9d9; padding:10px; border-radius:10px; }
.success { background:#d9ffe2; padding:10px; border-radius:10px; }
.btn { display:inline-block; padding:10px 14px; border-radius:10px; background:#111; color:#fff; text-decoration:none; }
.btn.danger { background:#c00; }

.grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; }
.big { font-size:32px; margin:0; }

table { width:100%; border-collapse: collapse; }
th, td { padding:10px; border-bottom:1px solid #eee; text-align:left; }

.grid-posts { display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }
.grid-posts img { width:100%; height:180px; object-fit:cover; border-radius:12px; }
.hero-img { width:100%; max-height:420px; object-fit:cover; border-radius:14px; }

input, textarea { width:100%; padding:10px; border-radius:10px; border:1px solid #ddd; margin:6px 0 12px; }

.site-footer { background:#111; color:#fff; padding:18px 0; margin-top:30px; }

@media(max-width: 850px){
  .grid-posts { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .menu-btn { display:block; }
  .nav { display:none; flex-direction:column; }
  .nav.open { display:flex; }
  .nav-admin { margin-left:0; }
}
