
:root{
  --bg:#f6f3ee;
  --surface:#fffdf9;
  --surface-2:#f1ece4;
  --line:#e4dacb;
  --text:#191611;
  --muted:#73685b;
  --gold:#b88b2c;
  --gold-soft:#f3e8c8;
  --wine:#5c1f1f;
  --wine-soft:#f6e9e8;
  --green:#2e5a43;
  --green-soft:#e9f2ed;
  --blue:#284a6b;
  --blue-soft:#eaf1f6;
  --shadow:0 8px 30px rgba(25,22,17,.06);
  --shadow-lg:0 20px 50px rgba(25,22,17,.08);
  --radius:22px;
  --radius-sm:14px;
  --max:1220px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#fbf8f3 0%, #f6f3ee 45%, #f5f1eb 100%);
  line-height:1.55;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button,input,textarea,select{font:inherit}
.container{width:min(var(--max), calc(100% - 32px)); margin:0 auto}
.topbar{
  position:sticky;top:0;z-index:30;
  backdrop-filter: blur(16px);
  background:rgba(251,248,243,.88);
  border-bottom:1px solid rgba(228,218,203,.75);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px 0;
}
.brand{
  display:flex; gap:14px; align-items:center;
}
.brand-badge{
  width:44px;height:44px;border-radius:14px;
  display:grid; place-items:center;
  background:linear-gradient(135deg,#fff,#efe5d5);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  font-size:22px;
}
.brand h1{font-size:1.08rem; margin:0; letter-spacing:.02em}
.brand p{margin:2px 0 0; font-size:.84rem; color:var(--muted)}
.top-actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.pill-btn, .ghost-btn, .primary-btn, .soft-btn{
  border:none; border-radius:999px; cursor:pointer; transition:.2s ease;
}
.pill-btn{
  padding:10px 14px; background:var(--surface); border:1px solid var(--line); color:var(--text);
}
.pill-btn:hover{transform:translateY(-1px); box-shadow:var(--shadow)}
.pill-btn.active{background:var(--text); color:#fff; border-color:var(--text)}
.hero{
  padding:42px 0 24px;
}
.hero-card{
  background:
    radial-gradient(circle at top right, rgba(184,139,44,.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,251,244,.95));
  border:1px solid var(--line);
  border-radius:32px;
  box-shadow:var(--shadow-lg);
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:22px;
  align-items:stretch;
}
.hero-copy{padding:34px}
.eyebrow{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px; border-radius:999px;
  background:var(--gold-soft); color:#6c5319; font-size:.8rem; font-weight:600;
  margin-bottom:14px;
}
.hero h2{
  font-family: Georgia, "Times New Roman", serif;
  font-size:clamp(2rem,4vw,3.6rem);
  line-height:1.05;
  margin:0 0 12px;
}
.hero p{margin:0 0 18px; color:var(--muted); max-width:60ch}
.hero-image{
  min-height:300px;
  position:relative;
  background:linear-gradient(135deg,#efe7dc,#fff);
}
.hero-image img{
  width:100%; height:100%; object-fit:cover;
}
.hero-meta{
  display:flex; flex-wrap:wrap; gap:10px; margin-top:18px;
}
.meta-chip{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px; border-radius:999px;
  border:1px solid var(--line); background:var(--surface);
  font-size:.84rem; color:var(--muted);
}
.section{
  padding:20px 0 34px;
}
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:16px;
  margin-bottom:16px;
}
.section-head h3{
  margin:0; font-family: Georgia, "Times New Roman", serif;
  font-size:1.7rem; line-height:1.1;
}
.section-head p{margin:6px 0 0; color:var(--muted)}
.grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:16px;
}
.museum-card{
  grid-column:span 6;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:26px;
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
}
.museum-card figure{
  margin:0; aspect-ratio:16/9; overflow:hidden; background:#eee6da;
}
.museum-card img{width:100%; height:100%; object-fit:cover}
.museum-card .body{padding:18px}
.museum-card .tag{display:inline-flex; padding:7px 10px; border-radius:999px; background:var(--blue-soft); color:var(--blue); font-size:.78rem; font-weight:700; margin-bottom:10px}
.museum-card h4{margin:0 0 8px; font-size:1.18rem}
.museum-card p{margin:0 0 14px; color:var(--muted)}
.museum-card .actions{display:flex; justify-content:space-between; gap:12px; align-items:center}
.link-arrow{color:var(--wine); font-weight:700}

.notice{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:18px 20px;
}
.notice strong{display:block; margin-bottom:8px}
.notice p{margin:0; color:var(--muted)}
.small-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:14px;
}
.museum-hero{
  margin-top:26px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:32px;
  overflow:hidden;
  box-shadow:var(--shadow-lg);
}
.museum-hero-grid{
  display:grid;
  grid-template-columns:1fr .95fr;
  gap:0;
}
.museum-hero-copy{padding:28px}
.museum-hero-cover{aspect-ratio:16/9; min-height:260px; background:#eee6da}
.museum-hero-cover img{width:100%; height:100%; object-fit:cover}
.stats{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:14px
}
.controls{
  position:sticky; top:73px; z-index:20;
  background:rgba(246,243,238,.92);
  backdrop-filter: blur(12px);
  padding:14px 0 12px;
  margin-top:10px;
}
.controls-inner{
  display:grid; grid-template-columns:1fr auto auto; gap:12px; align-items:center;
}
.search{
  position:relative;
}
.search input{
  width:100%; padding:14px 16px 14px 42px; border-radius:18px; border:1px solid var(--line);
  background:var(--surface); outline:none;
}
.search input:focus{border-color:#cfb06f; box-shadow:0 0 0 4px rgba(184,139,44,.12)}
.search svg{position:absolute; left:14px; top:50%; transform:translateY(-50%); opacity:.45}
.filter-row{
  display:flex; gap:10px; overflow:auto; padding-bottom:4px; margin-top:12px;
  scrollbar-width:none;
}
.filter-row::-webkit-scrollbar{display:none}
.filter-btn{
  white-space:nowrap;
  border-radius:999px; border:1px solid var(--line); background:var(--surface);
  padding:10px 13px; cursor:pointer; font-size:.84rem; color:var(--muted); transition:.2s;
}
.filter-btn.active{background:var(--text); border-color:var(--text); color:#fff}
.filter-btn:hover{transform:translateY(-1px)}
.catalog-head{
  display:flex; justify-content:space-between; gap:12px; align-items:flex-end; margin:8px 0 14px;
}
.catalog-head h4{
  margin:0;
  font-size:1.15rem;
}
.catalog-head p{margin:4px 0 0; color:var(--muted); font-size:.92rem}
.cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex; flex-direction:column;
  min-height:100%;
}
.card-media{
  position:relative;
  aspect-ratio:16/10;
  background:linear-gradient(135deg,#f0e9de,#fffdf7);
}
.card-media img{
  width:100%; height:100%; object-fit:cover;
}
.card-type{
  position:absolute; top:12px; left:12px;
  padding:7px 10px; border-radius:999px;
  background:rgba(255,253,249,.88);
  border:1px solid rgba(228,218,203,.85);
  font-size:.74rem; font-weight:700; letter-spacing:.02em;
}
.card-id{
  position:absolute; right:12px; bottom:12px;
  padding:6px 10px; border-radius:999px; background:rgba(25,22,17,.74); color:#fff; font-size:.72rem
}
.card-body{padding:16px; display:flex; flex-direction:column; gap:12px; flex:1}
.card-top{
  display:flex; justify-content:space-between; gap:12px; align-items:flex-start;
}
.card h5{
  margin:0; font-size:1.05rem; line-height:1.22;
}
.card .muted{color:var(--muted); font-size:.86rem}
.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border-radius:999px;
  font-size:.74rem; font-weight:700;
}
.chip.gold{background:var(--gold-soft); color:#6a5218}
.chip.blue{background:var(--blue-soft); color:var(--blue)}
.chip.green{background:var(--green-soft); color:var(--green)}
.card p{
  margin:0; color:var(--muted); font-size:.93rem;
}
.card-actions{display:flex; gap:10px; margin-top:auto}
.soft-btn{
  padding:11px 14px; background:var(--surface-2); color:var(--text); border:1px solid var(--line);
}
.soft-btn:hover{transform:translateY(-1px)}
.primary-btn{
  padding:11px 14px; background:var(--text); color:#fff;
}
.primary-btn:hover{transform:translateY(-1px)}
.pagination{
  display:flex; justify-content:center; align-items:center; gap:10px; margin-top:18px;
}
.pagination button{
  padding:11px 14px; border-radius:999px; border:1px solid var(--line); background:var(--surface); cursor:pointer;
}
.pagination span{color:var(--muted); font-size:.9rem}
.drawer-overlay{
  position:fixed; inset:0; background:rgba(25,22,17,.48); backdrop-filter:blur(6px);
  z-index:99; opacity:0; pointer-events:none; transition:.2s;
}
.drawer-overlay.open{opacity:1; pointer-events:auto}
.drawer{
  position:fixed; right:0; top:0; height:100%; width:min(760px, 100vw);
  background:var(--surface);
  z-index:100; transform:translateX(102%); transition:.28s ease;
  box-shadow:-20px 0 50px rgba(25,22,17,.15);
  display:flex; flex-direction:column;
}
.drawer.open{transform:translateX(0)}
.drawer-head{
  display:flex; justify-content:space-between; gap:12px; align-items:flex-start;
  padding:18px 18px 14px; border-bottom:1px solid var(--line);
}
.drawer-head h6{margin:0; font-size:1.2rem}
.drawer-head p{margin:6px 0 0; color:var(--muted)}
.drawer-close{
  width:42px; height:42px; border-radius:50%; border:1px solid var(--line); background:var(--surface); cursor:pointer;
}
.drawer-scroll{overflow:auto; padding:18px}
.drawer-image{
  border-radius:22px; overflow:hidden; border:1px solid var(--line); background:#efe8dd;
  aspect-ratio:16/10; margin-bottom:16px;
}
.drawer-image img{width:100%; height:100%; object-fit:cover}
.panel{
  border:1px solid var(--line); background:var(--surface); border-radius:20px; padding:16px; margin-bottom:14px;
}
.panel h6{
  margin:0 0 8px; font-size:.9rem; letter-spacing:.02em; text-transform:uppercase; color:var(--muted)
}
.panel p{margin:0; color:var(--text)}
.panel p + p{margin-top:10px}
.note-box{
  width:100%; min-height:120px; border:1px solid var(--line); border-radius:18px;
  padding:14px; resize:vertical; background:#fff;
}
.kv{
  display:grid; grid-template-columns:140px 1fr; gap:8px 14px; font-size:.92rem;
}
.kv strong{color:var(--muted)}
.drawer-actions{display:flex; gap:10px; flex-wrap:wrap}
.info-strip{
  padding:12px 14px; border-radius:18px; background:var(--wine-soft); color:var(--wine); border:1px solid #ecd0cf;
  font-size:.9rem;
}
.footer{
  padding:34px 0 40px; color:var(--muted); font-size:.9rem
}
.footer .grid{
  align-items:start;
}
.footer-card{
  grid-column:span 4;
  background:var(--surface); border:1px solid var(--line); border-radius:22px; padding:18px; box-shadow:var(--shadow);
}
.footer-card h5{margin:0 0 8px}
.footer-card p,.footer-card li{color:var(--muted)}
.footer-card ul{padding-left:18px; margin:10px 0 0}
.empty-state{
  border:1px dashed var(--line); background:rgba(255,255,255,.6); border-radius:24px; padding:28px; text-align:center; color:var(--muted)
}
code.inline{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background:#f3eee7; padding:2px 7px; border-radius:8px; border:1px solid var(--line)
}
.hidden{display:none !important}

@media (max-width: 980px){
  .hero-grid,.museum-hero-grid,.controls-inner,.small-grid,.cards{grid-template-columns:1fr}
  .museum-card,.footer-card{grid-column:span 12}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 700px){
  .container{width:min(var(--max), calc(100% - 20px))}
  .hero-copy,.museum-hero-copy{padding:22px}
  .cards{grid-template-columns:1fr}
  .topbar-inner{align-items:flex-start; flex-direction:column}
  .controls{top:98px}
  .top-actions{width:100%}
  .top-actions .pill-btn{flex:1}
  .kv{grid-template-columns:1fr}
}
