:root {
  --bg: #f5f7ff;
  --bg2: #eef2ff;
  --card: #ffffff;
  --ink: #0b1220;
  --muted: rgba(11, 18, 32, 0.62);
  --line: rgba(11, 18, 32, 0.10);
  --shadow: 0 16px 50px rgba(11, 18, 32, 0.12);
  --shadow2: 0 10px 24px rgba(11, 18, 32, 0.10);

  --accent: #00c2a8;
  --accent2: #2d62ff;
  --accent3: #ffb020;
  --danger: #ff3b5c;

  --r1: 28px;
  --r2: 18px;
  --r3: 12px;

  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 18% -10%, rgba(0, 194, 168, 0.22), transparent 58%),
    radial-gradient(900px 600px at 95% 0%, rgba(45, 98, 255, 0.16), transparent 55%),
    radial-gradient(900px 700px at 70% 110%, rgba(255, 176, 32, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 255, 0.75);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(12px 12px at 25% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.2)),
    linear-gradient(135deg, var(--accent) 0%, var(--accent2) 55%, rgba(255, 176, 32, 0.95) 100%);
  box-shadow: 0 10px 20px rgba(45, 98, 255, 0.18);
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.0;
}

.brand-title b { font-weight: 600; }
.brand-title span { font-size: 12px; color: var(--muted); margin-top: 3px; }

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  font-size: 13px;
  color: rgba(11, 18, 32, 0.78);
  border: 1px solid transparent;
  padding: 8px 10px;
  border-radius: 12px;
}

.nav a:hover {
  border-color: var(--line);
  background: rgba(255,255,255,0.55);
}

main { padding: 26px 0 64px; }

.hero {
  padding: 26px 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: stretch;
}

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

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--r1);
  background: rgba(255,255,255,0.65);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 340px;
  height: 340px;
  background:
    radial-gradient(circle at 35% 35%, rgba(0,194,168,0.22), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(45,98,255,0.16), transparent 60%);
  filter: blur(2px);
  transform: rotate(10deg);
  pointer-events: none;
}

.hero-inner { padding: 22px 22px 18px; position: relative; }

.h-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  font-size: 13px;
  color: rgba(11, 18, 32, 0.78);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(0, 194, 168, 0.12);
}

h1 {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.70);
  color: rgba(11, 18, 32, 0.92);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(11, 18, 32, 0.06);
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow2); }
.btn:active { transform: translateY(0px); }

.btn-primary {
  border-color: rgba(0, 194, 168, 0.28);
  background: linear-gradient(135deg, rgba(0, 194, 168, 0.18), rgba(45, 98, 255, 0.10));
}

.btn-dark {
  border-color: rgba(11,18,32,0.12);
  background: rgba(11, 18, 32, 0.92);
  color: rgba(255,255,255,0.92);
}

.btn-danger {
  border-color: rgba(255, 59, 92, 0.28);
  background: rgba(255, 59, 92, 0.08);
  color: rgba(160, 13, 38, 0.95);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: rgba(11,18,32,0.78);
  background: rgba(255,255,255,0.65);
}

.badge.ok { border-color: rgba(0,194,168,0.28); }
.badge.warn { border-color: rgba(255,176,32,0.35); }
.badge.danger { border-color: rgba(255,59,92,0.35); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--r1);
  background: rgba(255,255,255,0.74);
  box-shadow: 0 10px 30px rgba(11,18,32,0.08);
  overflow: hidden;
  position: relative;
}

.card-inner { padding: 16px 16px 14px; }

.card-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(0,194,168,0.10), rgba(45,98,255,0.08));
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(11,18,32,0.10);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 18px rgba(11,18,32,0.10);
}

.kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.kicker .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
}

h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

p { margin: 0 0 10px; color: var(--muted); line-height: 1.55; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r1);
  background: rgba(255,255,255,0.70);
  box-shadow: 0 10px 28px rgba(11,18,32,0.08);
}

.panel-inner { padding: 16px; }

.field { display: grid; gap: 7px; margin-bottom: 12px; }

label { font-size: 13px; color: rgba(11,18,32,0.74); font-weight: 600; }

input, select, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,0.14);
  background: rgba(255,255,255,0.88);
  color: rgba(11,18,32,0.92);
  outline: none;
  font: inherit;
}

textarea { min-height: 92px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: rgba(45, 98, 255, 0.35);
  box-shadow: 0 0 0 5px rgba(45, 98, 255, 0.10);
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.hr {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.event {
  border: 1px solid rgba(11,18,32,0.12);
  border-radius: var(--r2);
  background: rgba(255,255,255,0.82);
  padding: 12px;
  box-shadow: 0 10px 24px rgba(11,18,32,0.06);
}

.event-top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.event-title {
  font-weight: 700;
  color: rgba(11,18,32,0.92);
}

.event-meta {
  font-size: 13px;
  color: rgba(11,18,32,0.62);
}

.event-body {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.event-kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  font-size: 14px;
}

.event-kv b { color: rgba(11,18,32,0.72); font-weight: 700; }

.event-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.event-photos img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,0.10);
  box-shadow: 0 12px 24px rgba(11,18,32,0.10);
}

@media (max-width: 720px) {
  .event-kv { grid-template-columns: 1fr; }
  .event-photos { grid-template-columns: 1fr; }
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 980px) {
  .res-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
  .res-grid { grid-template-columns: repeat(3, 1fr); }
}

.res-tile {
  border: 1px solid rgba(11,18,32,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(11,18,32,0.06);
}

.res-tile:hover { transform: translateY(-1px); box-shadow: var(--shadow2); }

.res-tile img {
  display: block;
  width: 100%;
  height: auto;
}

.res-tile .res-label {
  padding: 10px 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(11,18,32,0.84);
}

.res-tile.selected {
  border-color: rgba(0, 194, 168, 0.42);
  box-shadow: 0 0 0 6px rgba(0, 194, 168, 0.10), var(--shadow2);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: rgba(11,18,32,0.62);
  font-size: 13px;
}

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(720px, calc(100% - 24px));
  border: 1px solid rgba(11,18,32,0.14);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 10px 12px;
  box-shadow: var(--shadow2);
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 50;
}

.toast.show { display: inline-flex; }

.toast .t-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent2);
}

@media (prefers-reduced-motion: no-preference) {
  .card, .btn, .res-tile { transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
}
