* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; background: #f8fafc; color: #0f172a; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
body { line-height: 1.5; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid #e2e8f0; }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; }
.brand { display: inline-block; font-size: 1.4rem; font-weight: 800; }
.tagline { font-size: .9rem; color: #64748b; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav a { padding: 10px 14px; border-radius: 999px; background: white; border: 1px solid #e2e8f0; font-weight: 600; }
.nav a.active { background: #0f172a; color: white; border-color: #0f172a; }
.main-content { padding: 24px 0 48px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; background: linear-gradient(135deg,#ffedd5,#fff7ed,#ffffff); padding: 24px; border-radius: 28px; box-shadow: 0 10px 30px rgba(15,23,42,.06); border: 1px solid #fed7aa; }
.hero h1 { font-size: clamp(2rem, 4vw, 4rem); margin: 0 0 12px; line-height: 1.05; }
.hero p { margin: 0 0 16px; color: #475569; }
.badge { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: white; border: 1px solid #fdba74; color: #9a3412; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; padding: 12px 16px; border-radius: 16px; font-weight: 700; font-size: .96rem; }
.btn-dark { background: #0f172a; color: white; }
.btn-light { background: white; color: #0f172a; border: 1px solid #cbd5e1; }
.hero-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-gallery img { height: 100%; min-height: 220px; object-fit: cover; border-radius: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.card { background: white; border: 1px solid #e2e8f0; border-radius: 24px; padding: 20px; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.card h2, .card h3 { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.list { display: grid; gap: 16px; }
.event-card, .price-card, .image-card, .admin-block { background: white; border: 1px solid #e2e8f0; border-radius: 24px; padding: 18px; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.event-head, .price-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.muted { color: #64748b; }
.price-tag { white-space: nowrap; background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; padding: 8px 12px; border-radius: 16px; font-weight: 800; }
.section-title { margin: 0 0 16px; font-size: 1.6rem; }
.form-grid { display: grid; gap: 16px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid #cbd5e1; background: white; color: #0f172a; font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.flash { margin-bottom: 18px; padding: 14px 16px; border-radius: 18px; font-weight: 700; }
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.flash-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.login-box { width: min(520px, 100%); margin: 0 auto; }
.table-tools { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.admin-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.small { font-size: .9rem; }
.footer { border-top: 1px solid #e2e8f0; padding: 22px 0 36px; background: white; }
.footer-grid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #475569; }
.inline-form { display: inline; }
.table-like { display: grid; gap: 12px; }
.preview-image { width: 100%; max-width: 180px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 1px solid #e2e8f0; }
.notice { background: #eff6ff; color: #1d4ed8; border: 1px solid #93c5fd; padding: 14px 16px; border-radius: 18px; }
.danger { color: #b91c1c; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3, .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .nav-wrap, .event-head, .price-head, .admin-header, .table-tools { flex-direction: column; align-items: stretch; }
  .nav { width: 100%; }
  .nav a { text-align: center; }
}
