:root {
  --bg: #fbf8f3;
  --bg-tint: #f4eee4;
  --surface: #ffffff;
  --ink: #1f1a14;
  --ink-soft: #5e5548;
  --muted: #8d8373;
  --line: #e7dfd1;
  --gold: #b8892f;
  --gold-strong: #9a7020;
  --gold-soft: #f3e7cc;
  --silver: #8a9099;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 26, 20, .05), 0 8px 24px rgba(31, 26, 20, .06);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--ink); color: #fff; }
.btn--gold:hover { background: var(--gold-strong); }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-strong); }

.eyebrow {
  margin: 0 0 .75rem; color: var(--gold-strong);
  font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 248, 243, .88); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--ink); color: #d4a94a; font: 700 1.35rem/1 var(--serif);
}
.logo__text { font: 700 1.5rem/1 var(--serif); letter-spacing: .02em; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--gold-strong); }
.topbar__cta { padding: .6rem 1.1rem; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
.hero h1 em { font-style: italic; color: var(--gold-strong); }
.hero__lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 34rem; margin: 1.4rem 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 2.5rem 0 0; }
.hero__stats div { min-width: 0; }
.hero__stats dt { font: 600 2rem/1 var(--serif); color: var(--ink); }
.hero__stats dd { margin: .35rem 0 0; color: var(--muted); font-size: .85rem; }

.hero__collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-3deg); }
.hero__collage img {
  aspect-ratio: 3 / 4; width: 100%; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--bg-tint);
}
.hero__collage img:nth-child(3n+2) { transform: translateY(28px); }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 40rem; margin-bottom: 2.5rem; }
.section__head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section__sub { color: var(--muted); margin: .75rem 0 0; font-size: .95rem; }

/* ---------- shops ---------- */
.shops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shop {
  display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-align: left; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.shop:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.shop__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.shop__thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--bg-tint); }
.shop__name { font: 600 1.35rem/1.15 var(--serif); margin: 0 0 .3rem; }
.shop__tag { color: var(--muted); font-size: .85rem; margin: 0 0 .5rem; line-height: 1.4; }
.shop__badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-strong); font-size: .75rem; font-weight: 600;
}
.shop__badge--silver { background: #eceef1; color: #5b626c; }

/* ---------- filters ---------- */
.filters { display: grid; gap: 12px; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  font: 500 .9rem/1 var(--sans); cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips--sub .chip { padding: .45rem .85rem; font-size: .83rem; }
.chips--sub .chip[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-strong); }
.chip small { opacity: .6; margin-left: .3rem; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: box-shadow .2s, transform .2s, border-color .2s;
  text-align: left; font: inherit; color: inherit; padding: 0;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #dccfb6; }
.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.card__img { position: relative; aspect-ratio: 1; background: var(--bg-tint); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__cat {
  position: absolute; left: 10px; top: 10px; padding: .25rem .6rem; border-radius: 999px;
  background: rgba(255, 255, 255, .92); font-size: .72rem; font-weight: 600; color: var(--ink-soft);
}
.card__body { display: flex; flex-direction: column; gap: .4rem; padding: 14px 16px 16px; flex: 1; }
.card__shop { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-strong); }
.card__shop--silver { color: var(--silver); }
.card__title {
  font-size: .92rem; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em;
}
.card__meta { font-size: .8rem; color: var(--muted); }
.card__price { margin-top: auto; padding-top: .4rem; font: 600 1.1rem/1.2 var(--sans); }
.card__price small { font-weight: 500; color: var(--muted); font-size: .78rem; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact__intro h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.contact__intro p:last-child { color: var(--ink-soft); margin-top: 1rem; }
.contact__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-item {
  display: flex; gap: 14px; align-items: center; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; transition: border-color .2s, box-shadow .2s; min-width: 0;
}
a.contact-item:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.contact-item__icon {
  flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: var(--gold-soft); color: var(--gold-strong);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__label { display: block; font-size: .78rem; color: var(--muted); }
.contact-item__value { display: block; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .85rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- modal ---------- */
.modal {
  width: min(920px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0;
  border: 0; border-radius: 18px; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}
.modal::backdrop { background: rgba(31, 26, 20, .55); backdrop-filter: blur(3px); }
.modal__close {
  position: absolute; right: 12px; top: 10px; z-index: 2; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal__body { display: grid; grid-template-columns: 1.1fr 1fr; }
.modal__img { background: var(--bg-tint); aspect-ratio: 1; }
.modal__img img { width: 100%; height: 100%; object-fit: cover; }
.modal__info { padding: 36px 32px; display: flex; flex-direction: column; gap: 1rem; }
.modal__shop { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-strong); }
.modal__info h3 { font-size: 1.7rem; }
.modal__meta { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; font-size: .9rem; }
.modal__meta dt { color: var(--muted); }
.modal__meta dd { margin: 0; font-weight: 500; }
.modal__price { font: 600 1.5rem/1.2 var(--sans); margin: auto 0 0; }
.modal__price small { font-size: .85rem; color: var(--muted); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .shops { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero { padding: 40px 0 32px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__collage { transform: none; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero__collage img:nth-child(n+7) { display: none; }
  .hero__collage img:nth-child(3n+2) { transform: translateY(14px); }
  .contact { grid-template-columns: 1fr; gap: 28px; }
  .modal__body { grid-template-columns: 1fr; }
  .modal__info { padding: 22px 20px 26px; }
  .section { padding: 56px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .topbar__cta { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__body { padding: 10px 12px 12px; }
  .card__title { font-size: .85rem; }
  .card__price { font-size: 1rem; }
  .shops { grid-template-columns: 1fr; }
  .contact__list { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
