:root {
  --bg: #070707;
  --card: #101010;
  --gold: #e2b657;
  --gold-2: #f0d48a;
  --line: rgba(226, 182, 87, .45);
  --text: #f6f1e6;
  --muted: #b7b1a4;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 0 20%, rgba(226,182,87,.08), transparent 28%),
    radial-gradient(circle at 100% 80%, rgba(226,182,87,.06), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, sans-serif;
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }

.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0b0b0b;
  border-bottom: 1px solid var(--line);
}
.head__row { min-height: 74px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; }
.brand b {
  font-family: Oswald, sans-serif;
  letter-spacing: .14em;
  font-size: 18px;
  line-height: 1;
}
.brand small { display: block; color: var(--gold); letter-spacing: .22em; font-size: 9px; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { padding: 8px 12px; color: #efe8d8; font-size: 14px; position: relative; }
.nav a.is-on { color: var(--gold); }
.nav a.is-on::after {
  content: "";
  position: absolute;
  right: 12px; left: 12px; bottom: 0;
  height: 2px; background: var(--gold);
}
.gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: #16120a;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.gold-btn--line { background: transparent; color: var(--gold); }
.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--gold); margin-inline: auto; }

.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% center; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.35) 100%);
}
.hero__copy { position: relative; z-index: 1; padding: 64px 0; }
.hero h1, .hero__copy > p { max-width: 520px; }
.hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.35; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero__copy p { margin: 12px 0 20px; color: #ddd4c2; max-width: 420px; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.works, .shop, .about, .contact { padding: 54px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2, .book h2, .about h2, .contact h2 { font-size: 26px; }
.sec-head span { color: var(--gold); letter-spacing: .18em; font-family: Oswald, sans-serif; font-size: 13px; }
.text-link { background: none; border: 0; color: var(--gold); cursor: pointer; }
.works__grid, .shop__grid { display: grid; gap: 14px; }
.works__grid { grid-template-columns: repeat(4, 1fr); }
.works__grid button {
  position: relative; padding: 0; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 1;
}
.works__grid img { width: 100%; height: 100%; object-fit: cover; }
.works__grid small {
  position: absolute; right: 8px; left: 8px; bottom: 8px;
  background: rgba(0,0,0,.72); color: #fff; border-radius: 8px; padding: 4px 8px; font-size: 12px;
}

.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.feat img { height: 180px; width: 100%; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.shop__grid { grid-template-columns: repeat(3, 1fr); }
.prod {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.prod img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; background: #000; }
.prod h3 { margin-top: 10px; font-size: 16px; }
.prod > p { color: var(--muted); font-size: 13px; }
.prod__row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.prod__row b { color: var(--gold-2); font-size: 14px; font-weight: 600; }
.prod__row button {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: #16120a; color: var(--gold); cursor: pointer; font-size: 20px;
}

.book { padding: 10px 0 54px; }
.book__panel {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  background: #0e0e0e;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
.lead { color: var(--muted); margin: 6px 0 14px; }
#bookForm, .modal form { display: grid; gap: 10px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  background: #080808;
  border: 1px solid rgba(226,182,87,.28);
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#bookDone { color: #b7e0b2; }
.cal {
  background: #080808;
  border: 1px solid rgba(226,182,87,.28);
  border-radius: 16px;
  padding: 14px;
  align-self: start;
}
.cal__head, .cal__grid { display: grid; }
.cal__head { grid-template-columns: 36px 1fr 36px; align-items: center; margin-bottom: 10px; }
.cal__head b { text-align: center; }
.cal__head button, .cal__grid button {
  border: 0; background: transparent; color: var(--text); cursor: pointer; border-radius: 8px;
}
.cal__head button { height: 36px; color: var(--gold); }
.cal__grid { grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__grid span { color: var(--gold); font-size: 12px; padding: 4px 0; }
.cal__grid button { height: 36px; }
.cal__grid button.is-on { background: var(--gold); color: #16120a; font-weight: 700; }
.cal__grid button:disabled { opacity: .25; cursor: default; }

.about__grid, .contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; }
.about p { color: #ddd4c2; margin: 12px 0; }
.about ul { margin: 0; padding: 0 18px 0 0; color: var(--gold-2); }
.about figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.about img { width: 100%; height: 340px; object-fit: cover; filter: grayscale(.35); }
.about figure b {
  position: absolute; left: 16px; bottom: 14px;
  font-family: Oswald, sans-serif; letter-spacing: .2em; font-size: 28px; color: var(--gold);
}
.contact__card p { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.contact__card i { color: var(--gold); }
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-height: 280px; }
.map iframe { width: 100%; height: 320px; border: 0; }

.foot { border-top: 1px solid var(--line); padding: 18px 0 26px; }
.foot__row, .foot nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot__row { justify-content: space-between; }
.foot p, .foot a { color: var(--muted); font-size: 14px; }

.drawer { pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer__veil, .modal__veil { position: fixed; inset: 0; background: rgba(0,0,0,.6); }
.drawer__veil { opacity: 0; }
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer.is-open .drawer__veil, .drawer.is-open .drawer__panel { z-index: 90; }
.drawer__panel {
  position: fixed; z-index: 60; top: 0; bottom: 0; inset-inline-end: 0;
  width: min(360px, 92vw); background: #111; border-inline-start: 1px solid var(--line);
  transform: translateX(-110%); transition: transform .3s ease;
  display: flex; flex-direction: column; padding: 16px;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer header, .drawer footer, .cart__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drawer header button, .modal__x { width: 36px; height: 36px; border: 0; background: transparent; color: #fff; cursor: pointer; }
#cartList { flex: 1; overflow: auto; }
.cart__row { justify-content: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(226,182,87,.2); }
.cart__row img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.cart__empty { color: var(--muted); }
.drawer footer b { color: var(--gold); }

.modal { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; padding: 18px; }
.modal.is-open { display: grid; }
.catalog__box, .light {
  position: relative; z-index: 1; width: min(980px, 100%);
  max-height: 90vh; overflow: auto; background: #121212;
  border: 1px solid var(--line); border-radius: 20px; padding: 22px;
}
.modal__x { position: absolute; top: 10px; inset-inline-start: 10px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.cat { border: 1px solid var(--line); background: #0c0c0c; color: #eee; border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.cat.is-on { background: var(--gold); color: #16120a; border-color: var(--gold); }
.cat-block + .cat-block { margin-top: 18px; }
.catalog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.light { width: min(720px, 100%); }
.light img { width: 100%; max-height: 68vh; object-fit: contain; background: #000; border-radius: 12px; }
.light figcaption { padding-top: 8px; }
body.is-lock { overflow: hidden; }

@media (max-width: 980px) {
  .burger { display: inline-flex; margin-inline-start: auto; }
  .head .gold-btn { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    margin: 0; background: #0b0b0b; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 8px 16px 14px; z-index: 5;
  }
  .nav.is-open { display: flex; }
  .head__row { position: relative; }
  .works__grid, .shop__grid { grid-template-columns: 1fr 1fr; }
  .book__panel, .about__grid, .contact__grid, .feat { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .works__grid, .catalog__grid { grid-template-columns: 1fr 1fr; }
  .shop__grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .foot__row { align-items: flex-start; flex-direction: column; }
}
