:root {
  --bg: #f3f0ea;
  --paper: #fffcf8;
  --ink: #1b1a17;
  --muted: #6e685f;
  --gold: #c6a15a;
  --gold-2: #b08a3e;
  --dark: #161716;
  --line: #e7e1d7;
  --shadow: 0 18px 40px rgba(22, 23, 22, .1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Vazirmatn, sans-serif; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
.brand__en { font-family: "Cormorant Garamond", serif; font-size: 1.55rem; display: block; line-height: 1; }

.board {
  width: min(1180px, calc(100% - 28px));
  margin: 12px auto 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.col { display: contents; }
.head {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border-radius: 22px; padding: 10px 14px;
  position: sticky; top: 8px; z-index: 5;
  direction: ltr;
}
.head nav { display: flex; gap: 18px; flex: 1; justify-content: center; font-size: .86rem; direction: rtl; }
.head nav a { position: relative; }
.head nav a::after, .link::after { content: ""; position: absolute; right: 0; bottom: -3px; width: 0; height: 1px; background: var(--ink); transition: width .3s; }
.head nav a:hover::after { width: 100%; }
.tools { display: flex; align-items: center; gap: 6px; }
.icon, .gold, .link { border: 0; cursor: pointer; transition: transform .28s, background .28s, box-shadow .28s, color .28s; }
.icon { width: 36px; height: 36px; border-radius: 50%; background: transparent; position: relative; }
.icon:hover { background: #efeae2; transform: translateY(-2px); }
#cartCount { position: absolute; top: 0; inset-inline-start: 0; background: var(--ink); color: #fff; border-radius: 99px; font-size: .62rem; min-width: 15px; height: 15px; display: grid; place-items: center; }
.gold {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  background: var(--gold); color: #1b160c; border-radius: 999px; padding: 9px 14px; font-size: .84rem;
  white-space: nowrap;
}
.gold:hover { background: var(--gold-2); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.nav-toggle { display: none; }
.link { background: none; color: var(--muted); position: relative; display: inline-flex; gap: 4px; align-items: center; }
.link:hover { color: var(--ink); }

.hero { position: relative; border-radius: 26px; overflow: hidden; min-height: 420px; }
.hero img { width: 100%; height: 560px; object-fit: cover; transform: scale(1.05); animation: ken 16s ease-in-out infinite alternate; }
.hero__copy {
  position: absolute; z-index: 1; color: #fff;
  text-shadow: 0 8px 24px rgba(0,0,0,.45);
  inset-inline-end: 5%;
  bottom: 78px;
  width: min(480px, 52%);
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 800; }
.hero__copy span { display: block; max-width: 34ch; margin: 6px 0 12px; }

.feats {
  list-style: none; margin: -28px auto 0; padding: 12px 8px; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center;
  width: min(1040px, 96%);
  background: rgba(255,252,248,.96); border-radius: 22px;
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.feats li { display: grid; justify-items: center; gap: 2px; font-size: .75rem; }
.feats i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #ddd4c6; background: #fff; transition: transform .3s, background .3s, color .3s; }
.feats li:hover i { background: var(--ink); color: #fff; transform: translateY(-4px); }
.feats small { color: var(--muted); }

.sec { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sec p, .hint { margin: 0; color: var(--muted); font-size: .84rem; }
.consult {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: #fff; border-radius: 26px; padding: 28px 32px;
  background: linear-gradient(100deg, rgba(16,16,14,.9), rgba(16,16,14,.35)), url("../images/b3-dining.png") center/cover;
}
.consult p { margin: 4px 0 0; color: #efe8dc; }
.mosaic, .close { display: grid; grid-template-columns: 1fr; gap: 18px; }
.mosaic__main, .mosaic__side { display: contents; }
.close { grid-template-columns: 1.15fr .85fr 1fr; align-items: stretch; }
.close__stack { display: contents; }
.cat-grid, .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-grid { grid-template-columns: repeat(6, 1fr); }
#newGrid { grid-template-columns: 1fr 1fr; }
.cat-grid a, .card, .projs figure {
  background: var(--paper); border-radius: 18px; overflow: hidden; margin: 0;
  transition: transform .35s, box-shadow .35s;
}
.cat-grid a { padding-bottom: 8px; text-align: center; }
.cat-grid img, .card img, .projs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .55s; }
.cat-grid a:hover, .card:hover, .projs figure:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-grid a:hover img, .card:hover img, .projs figure:hover img, .about:hover img, .sale:hover img { transform: scale(1.07); }
.cat-grid small, .card small, .projs span { color: var(--muted); display: block; font-size: .75rem; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 0; background: #fff; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.filters button.is-on, .filters button:hover { background: var(--ink); color: #fff; }
.card { position: relative; }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; background: #c4554a; color: #fff; border-radius: 999px; font-size: .72rem; padding: 2px 7px; }
.heart { position: absolute; top: 10px; inset-inline-end: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; }
.heart.is-on { background: #c4554a; color: #fff; }
.card__b { padding: 8px 10px 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.card__b button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; }
.card__b button:hover, .heart:hover { transform: scale(1.08); }

.sale, .about, .why { position: relative; overflow: hidden; border-radius: 22px; color: #fff; min-height: 180px; background: #1c1e1b; }
.sale img, .about img, .why img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.sale > div, .about > div { position: relative; z-index: 1; padding: 18px; background: linear-gradient(90deg, rgba(10,10,10,.78), rgba(10,10,10,.2)); min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.why { display: grid; grid-template-columns: 1fr .85fr; min-height: 300px; padding: 0; }
.why > div { position: relative; z-index: 1; grid-column: 1; padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.why img { position: absolute; top: 0; bottom: 0; height: 100%; width: 46%; inset-inline-start: auto; inset-inline-end: 0; object-fit: cover; }
.about { display: grid; grid-template-columns: 1fr 1fr; min-height: 280px; }
.about > div { grid-column: 1; background: transparent; justify-content: center; }
.about img { inset: auto; top: 0; bottom: 0; inset-inline-end: 0; width: 50%; height: 100%; }
.projs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.why ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.why li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; }
.why i { grid-row: span 2; }

.review, .touch { background: var(--paper); border-radius: 22px; padding: 16px; }
.review blockquote { margin: 10px 0; background: #f7f4ee; border-radius: 16px; padding: 12px; }
.review footer { display: flex; gap: 8px; align-items: center; }
.review img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.dots { display: flex; gap: 5px; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: #ddd4c8; }
.dots .is-on { background: var(--ink); width: 16px; border-radius: 99px; }
.map {
  height: 150px; border-radius: 16px; margin: 10px 0;
  background:
    linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.2)),
    repeating-linear-gradient(90deg, #e7efe4 0 18px, #d5e3cf 18px 19px),
    repeating-linear-gradient(#e7efe4 0 18px, #d5e3cf 18px 19px);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.pin { width: 42px; height: 42px; border-radius: 50% 50% 50% 0; background: #e25b4a; color: #fff; display: grid; place-items: center; transform: rotate(-45deg); animation: bob 2.4s ease-in-out infinite; }
.pin i { transform: rotate(45deg); }
.map b { position: absolute; bottom: 10px; background: #fff; border-radius: 10px; padding: 4px 8px; font-size: .8rem; }
.touch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.touch li { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; }
.side-photo { width: 100%; height: 220px; object-fit: cover; border-radius: 22px; }

.foot {
  width: min(1480px, calc(100% - 24px));
  margin: 14px auto 28px;
  background: var(--dark); color: #f6f2ea; border-radius: 26px;
  padding: 28px; display: grid; grid-template-columns: 1.3fr .7fr .8fr 1.2fr; gap: 18px;
  direction: rtl;
}
.foot a, .foot p { color: #d9d2c6; display: block; margin: 6px 0; font-size: .88rem; }
.foot a:hover { color: #fff; }
.soc { display: flex; gap: 8px; }
.soc a { width: 34px; height: 34px; border: 1px solid #3c3f3b; border-radius: 50%; display: grid; place-items: center; }
.soc a:hover { background: #fff; color: var(--ink); }
#news label { display: flex; background: #2a2c29; border-radius: 999px; overflow: hidden; }
#news input { flex: 1; border: 0; background: transparent; color: #fff; padding: 10px 12px; }
#news button { width: 42px; border: 0; background: var(--gold); cursor: pointer; }
#newsOk { color: #d7e7c8; }

.pop { position: fixed; top: 72px; inset-inline-start: 20px; z-index: 30; background: #fff; padding: 8px; border-radius: 12px; box-shadow: var(--shadow); }
.pop input { border: 0; padding: 8px; min-width: 200px; }
.drawer, .modal { position: fixed; inset: 0; z-index: 40; }
.bg { position: absolute; inset: 0; background: rgba(12,12,10,.45); }
.drawer aside, .modal .box { position: absolute; background: #fff; padding: 16px; animation: fade .35s ease; direction: rtl; }
.drawer aside { inset-block: 0; inset-inline-start: 0; width: min(360px, 100%); }
.modal .box { top: 12vh; left: 50%; right: auto; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); border-radius: 18px; }
.drawer header, .box header { display: flex; justify-content: space-between; align-items: center; }
.cart__row { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cart__row img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; }
.catalog__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#consultForm { display: grid; gap: 8px; }
#consultForm input { border: 1px solid var(--line); border-radius: 10px; padding: 8px; }

.reveal { animation: rise .7s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ken { to { transform: scale(1.12); } }
@keyframes bob { 50% { transform: rotate(-45deg) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 1100px) {
  .mosaic, .close, .foot, .why, .why ul { grid-template-columns: 1fr; }
  .close__stack { display: grid; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cards, .projs, #newGrid { grid-template-columns: 1fr 1fr; }
  .why > div { grid-column: auto; }
  .why img { position: relative; width: 100%; height: 220px; inset: auto; }
  .about { display: block; min-height: 180px; }
  .about > div { grid-column: auto; background: linear-gradient(90deg, rgba(10,10,10,.78), rgba(10,10,10,.2)); justify-content: flex-end; }
  .about img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .feats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .head nav { display: none; position: absolute; top: 64px; inset-inline: 10px; background: #fff; flex-direction: column; padding: 10px; border-radius: 12px; }
  .head nav.is-open { display: flex; }
  .nav-toggle { display: grid; place-items: center; }
  .cat-grid, .cards, .projs { grid-template-columns: 1fr; }
  .modal .box { transform: none; inset: 8vh 12px auto; }
}
