:root {
  --bg: #f6f3ee;
  --paper: #fffcf8;
  --ink: #1c1b18;
  --muted: #6f695f;
  --gold: #c6a15a;
  --dark: #1a1c19;
  --line: #e6e0d6;
  --shadow: 0 16px 36px rgba(22,22,20,.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, textarea { font: inherit; }
h1, h2 { margin: 0; line-height: 1.25; }
.brand__en { font-family: "Cormorant Garamond", serif; letter-spacing: .12em; text-transform: uppercase; font-size: 1.35rem; display: block; line-height: 1; }
main { width: min(1180px, calc(100% - 28px)); margin: 0 auto 28px; display: grid; gap: 28px; }

.head {
  width: min(1180px, calc(100% - 28px)); margin: 12px auto;
  display: flex; align-items: center; gap: 16px;
  background: var(--paper); border-radius: 18px; padding: 10px 16px;
  position: sticky; top: 8px; z-index: 8;
}
.head nav { display: flex; gap: 18px; flex: 1; justify-content: center; font-size: .88rem; }
.head nav a { position: relative; }
.head nav a::after { content: ""; position: absolute; right: 0; bottom: -4px; height: 1px; width: 0; background: var(--ink); transition: width .3s; }
.head nav a:hover::after { width: 100%; }
.tools { display: flex; gap: 4px; }
.icon, .gold, .dark, .line, .link { border: 0; cursor: pointer; transition: transform .28s, background .28s, color .28s, box-shadow .28s; }
.icon { width: 38px; height: 38px; 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; min-width: 16px; height: 16px; font-size: .65rem; display: grid; place-items: center; }
.gold, .dark { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 10px 16px; }
.gold { background: var(--gold); color: #1b160c; }
.gold:hover, .dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dark { background: var(--ink); color: #fff; width: 100%; justify-content: center; }
.nav-toggle { display: none; }
.brand small { color: var(--muted); font-size: .68rem; letter-spacing: .06em; }

.hero { position: relative; border-radius: 28px; overflow: hidden; min-height: 560px; }
.hero > img { width: 100%; height: 560px; object-fit: cover; animation: ken 18s ease-in-out infinite alternate; }
.hero__copy { position: absolute; z-index: 1; color: #fff; inset-inline-end: 6%; top: 18%; width: min(420px, 46%); text-shadow: 0 10px 28px rgba(0,0,0,.45); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
.hero__copy p { max-width: 32ch; }
.feats {
  position: absolute; z-index: 2; inset-inline-start: 4%; bottom: 28px;
  list-style: none; margin: 0; padding: 0; display: flex; gap: 18px;
}
.feats li { color: #fff; display: grid; justify-items: center; text-align: center; font-size: .78rem; width: 92px; }
.feats i { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); display: grid; place-items: center; margin-bottom: 4px; transition: background .3s, transform .3s; }
.feats li:hover i { background: #fff; color: var(--ink); transform: translateY(-4px); }
.reel {
  position: absolute; z-index: 2; inset-inline-start: 4%; bottom: 128px;
  display: flex; align-items: center; gap: 10px; color: #fff;
  background: rgba(20,20,18,.45); border-radius: 16px; padding: 8px 12px 8px 8px;
  backdrop-filter: blur(8px); transition: transform .3s;
}
.reel:hover { transform: translateY(-3px); }
.reel img { width: 72px; height: 48px; object-fit: cover; border-radius: 10px; }
.reel span { display: grid; font-size: .82rem; }
.reel small { opacity: .8; }
.reel i { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }

.wrap { display: grid; gap: 12px; }
.sec { display: flex; align-items: center; justify-content: space-between; }
.link { background: none; color: var(--muted); }
.link:hover { color: var(--ink); }
.cats, .cards, .projs { display: grid; gap: 12px; }
.cats { grid-template-columns: repeat(5, 1fr); }
.cards { grid-template-columns: repeat(3, 1fr); }
.projs { grid-template-columns: repeat(4, 1fr); }
.cats a, .card, .projs figure {
  margin: 0; background: var(--paper); border-radius: 18px; overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.cats a { display: grid; }
.cats img, .card img, .projs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .55s; }
.cats span, .projs figcaption, .card__b { padding: 10px 12px 12px; }
.cats a:hover, .card:hover, .projs figure:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cats a:hover img, .card:hover img, .projs figure:hover img, .show:hover img { transform: scale(1.06); }
.filters { display: flex; gap: 8px; }
.filters button { border: 0; background: #fff; border-radius: 999px; padding: 6px 12px; 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: #e25b4a; color: #fff; border-radius: 999px; font-size: .75rem; padding: 2px 8px; }
.heart { position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.heart.is-on { background: #e25b4a; color: #fff; }
.card__b { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.card__b small { color: var(--muted); display: block; }
.card__b button { width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; cursor: pointer; }
.card__b button:hover, .heart:hover { transform: scale(1.08); }
.projs figcaption { display: grid; position: relative; }
.projs figcaption i { position: absolute; inset-inline-end: 12px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.projs span, .stats span, .why span { color: var(--muted); display: block; font-size: .8rem; }

.band { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.about { background: var(--paper); border-radius: 22px; padding: 22px; }
.why { background: var(--dark); color: #f6f2ea; border-radius: 22px; padding: 22px; text-align: right; display: flex; flex-direction: column; }
.why h2 { text-align: right; }
.why span { color: #cfc6b8; }
.line { display: inline-flex; margin-top: 8px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.line:hover { color: var(--gold); border-color: var(--gold); }
.stats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats b { font-size: 1.4rem; }
.why ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; width: auto; }
.why li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; text-align: right; }
.why i { grid-row: span 2; font-size: 1.2rem; }

.touch { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 14px; align-items: stretch; }
.touch > div, form, .show { background: var(--paper); border-radius: 22px; padding: 18px; }
.touch ul { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.touch li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.touch li i { grid-row: span 2; }
.touch li a, .touch li span, .touch li small { justify-self: start; }
.touch small { color: var(--muted); }
.map { height: 180px; border-radius: 14px; position: relative; overflow: hidden; background: #e7efe4; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pin { position: absolute; left: 50%; top: 40%; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: #e25b4a; transform: translate(-50%, -50%) rotate(-45deg); animation: bob 2.2s ease-in-out infinite; }
.map b { position: absolute; bottom: 8px; inset-inline: 8px; background: #fff; border-radius: 8px; padding: 4px 8px; font-size: .78rem; }
form { display: grid; gap: 8px; align-content: start; }
form label { display: grid; gap: 4px; font-size: .82rem; color: var(--muted); }
form input, form textarea { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #faf8f4; color: var(--ink); }
form input:focus, form textarea:focus { outline: 2px solid #e4d3b0; border-color: transparent; }
#consultDone { color: #2f6b45; }
.show { position: relative; padding: 0; overflow: hidden; color: #fff; min-height: 220px; }
.show img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.show div { position: relative; z-index: 1; height: 100%; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,.72)); }

.foot { text-align: center; color: var(--muted); padding: 8px 0 28px; }
.pop { position: fixed; top: 74px; inset-inline-start: 18px; z-index: 20; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.pop input { border: 0; min-width: 200px; padding: 8px; }
.drawer, .modal { position: fixed; inset: 0; z-index: 30; }
.bg { position: absolute; inset: 0; background: rgba(12,12,10,.45); }
.drawer aside, .modal .box { position: absolute; background: #fff; padding: 16px; animation: fade .3s ease; }
.drawer aside { inset-block: 0; inset-inline-start: 0; width: min(360px, 100%); }
.modal .box { top: 12vh; left: 50%; transform: translateX(-50%); width: min(640px, 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: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.catalog__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reveal { animation: rise .65s 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.08); } }
@keyframes bob { 50% { transform: translate(-50%, -58%) rotate(-45deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 980px) {
  .cats, .projs { grid-template-columns: 1fr 1fr; }
  .cards, .band, .touch { grid-template-columns: 1fr; }
  .hero__copy { width: min(360px, 80%); top: 12%; }
  .reel { bottom: 150px; }
}
@media (max-width: 720px) {
  .head { direction: rtl; justify-content: space-between; }
  .brand { text-align: right; }
  .tools { direction: rtl; }
  .head nav { display: none; position: absolute; top: 64px; inset-inline: 12px; background: #fff; flex-direction: column; align-items: flex-start; text-align: right; padding: 12px; border-radius: 14px; box-shadow: var(--shadow); }
  .head nav.is-open { display: flex; }
  .nav-toggle { display: grid; place-items: center; }
  .cards, .cats, .projs, .stats { grid-template-columns: 1fr; }
  .feats { position: static; color: var(--ink); padding: 12px 0; }
  .feats i { border-color: var(--line); }
  .reel { position: static; color: var(--ink); background: var(--paper); margin-top: 10px; }
}
