:root {
  --bg: #f4f1eb;
  --paper: #fffcf8;
  --ink: #171816;
  --muted: #6d675f;
  --line: #e6e0d6;
  --dark: #171917;
  --dark-2: #222421;
  --r: 22px;
  --shadow: 0 16px 40px rgba(23, 24, 22, .08);
}
* { 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, select, textarea { font: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 700; }
.brand__en {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  letter-spacing: .02em;
  display: block;
  line-height: 1;
}

.shell {
  width: min(1440px, calc(100% - 28px));
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
  direction: ltr;
}
.stage > :not(.head),
.rail,
.hero__copy,
.pills,
.shop,
.why,
.projects,
.consult,
.review { direction: rtl; }
.stage, .rail { display: grid; gap: 16px; }

.head {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border-radius: 28px;
  padding: 12px 16px;
  position: sticky;
  top: 10px;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(23,24,22,.04);
}
.brand small { color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.nav { display: flex; gap: 14px; margin-inline-start: auto; font-size: .86rem; }
.nav a { color: #3c3934; position: relative; }
.nav a.is-on, .nav a:hover { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 20% 20%;
  bottom: -6px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform .3s;
}
.nav a:hover::after, .nav a.is-on::after { transform: scaleX(1); }
.head__tools { display: flex; align-items: center; gap: 8px; }
.icon-btn, .pill, .btn {
  border: 0;
  cursor: pointer;
  transition: transform .25s, background .25s, color .25s, box-shadow .25s;
}
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: transparent; position: relative;
}
.icon-btn:hover { background: #efeae2; transform: translateY(-1px); }
#cartCount {
  position: absolute; top: 2px; inset-inline-start: 2px;
  background: var(--ink); color: #fff; border-radius: 99px;
  font-size: .65rem; min-width: 16px; height: 16px; display: grid; place-items: center;
}
.pill, .btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 10px 16px; font-size: .86rem;
}
.pill, .btn--dark { background: var(--ink); color: #fff; }
.pill:hover, .btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--line { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn--line:hover { background: #fff; color: var(--ink); }
.nav-toggle { display: none; }

.hero {
  position: relative; min-height: 460px; border-radius: 28px; overflow: hidden;
}
.hero img { width: 100%; height: 100%; object-fit: cover; min-height: 460px; transform: scale(1.04); animation: ken 18s ease-in-out infinite alternate; }
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(12,12,10,.72) 0%, rgba(12,12,10,.28) 48%, rgba(12,12,10,.05) 100%);
}
.hero__copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 48px 48px 18%;
  color: #fff; max-width: 640px; margin-inline-start: auto;
}
.eyebrow { margin: 0 0 8px; font-size: .9rem; opacity: .9; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; }
.hero__copy > p { max-width: 34ch; }
.hero__acts { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

.pills {
  list-style: none; margin: 0; padding: 14px 8px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: var(--paper); border-radius: 22px;
}
.pills li {
  display: flex; align-items: center; gap: 8px;
  color: #3a3834; font-size: .9rem; padding: 6px 10px; border-radius: 999px;
  transition: background .25s, transform .25s;
}
.pills li:hover { background: #f3eee6; transform: translateY(-2px); }

.split, .duo { display: grid; grid-template-columns: 1.35fr .85fr; gap: 16px; direction: ltr; }
.shop, .why, .material, .season, .projects, .consult, .review {
  background: var(--paper); border-radius: var(--r); padding: 18px;
}
.sec-head, .review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-link { background: none; border: 0; cursor: pointer; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.text-link:hover { color: var(--ink); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.filters button {
  border: 0; background: #f3efe8; border-radius: 999px; padding: 7px 12px; cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}
.filters button.is-on, .filters button:hover { background: var(--ink); color: #fff; }
.grid, .proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card, .proj-grid figure {
  margin: 0; background: #f7f4ef; border-radius: 18px; overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.card:hover, .proj-grid figure:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img, .proj-grid img, .cats img, .design img, .material img, .season img, .showroom img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s;
}
.card:hover img, .proj-grid figure:hover img, .cats a:hover img, .design:hover img, .showroom:hover img { transform: scale(1.06); }
.card__body, .proj-grid figcaption { padding: 10px 12px 12px; }
.card__body small, .proj-grid span, .review span { color: var(--muted); display: block; font-size: .8rem; }
.card__row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.card__row b { font-size: .92rem; }
.card__row button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer;
}
.card__row button:hover { transform: scale(1.08); }

.material, .season, .design, .showroom { position: relative; overflow: hidden; padding: 0; color: #fff; min-height: 280px; }
.material img, .season img, .design img, .showroom img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.material > div, .season > div, .design > div, .showroom > div {
  position: relative; z-index: 1; height: 100%;
  padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  background: linear-gradient(180deg, rgba(10,10,10,.15), rgba(10,10,10,.78));
}
.material ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.material li { background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 10px; font-size: .8rem; }
.why h2 { margin-bottom: 14px; }
.why ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why li { display: grid; gap: 2px; }
.why i { font-size: 1.3rem; }

.rail { position: sticky; top: 10px; }
.design { min-height: 340px; }
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cats a { text-align: center; font-size: .72rem; color: #3d3a35; }
.cats img { aspect-ratio: 1; border-radius: 16px; background: #fff; }
.cats a:hover { transform: translateY(-3px); }
.consult label, .news { display: grid; gap: 6px; font-size: .82rem; color: var(--muted); }
.consult input, .consult select, .consult textarea, .news input {
  width: 100%; border: 1px solid var(--line); background: #faf8f4; border-radius: 12px;
  padding: 10px 12px; color: var(--ink); margin-top: 4px;
}
.consult input:focus, .consult select:focus, .consult textarea:focus, .news input:focus {
  outline: 2px solid #d9d0c3; border-color: transparent;
}
.consult__acts { display: flex; gap: 8px; align-items: center; }
.consult__acts .btn { flex: 1; justify-content: center; }
.consult__done, .news__ok { color: #2f6b45; }
.review p { color: #3e3b36; }
.review__who { display: flex; gap: 10px; align-items: center; }
.review__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.dots { display: flex; gap: 6px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: #ddd6cc; }
.dots .is-on { background: var(--ink); }
.showroom { min-height: 220px; }

.foot {
  width: min(1440px, calc(100% - 28px));
  margin: 16px auto 0;
  direction: ltr;
  background: var(--dark);
  color: #f4f1eb;
  border-radius: 28px 28px 0 0;
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr 1.1fr 1.1fr;
  gap: 22px;
}
.foot > * { direction: rtl; }
.foot h3 { font-size: .95rem; margin-bottom: 10px; }
.foot a, .foot p { display: flex; gap: 8px; align-items: center; color: #d9d3c8; margin: 6px 0; font-size: .88rem; }
.foot a:hover { color: #fff; }
.soc { display: flex; gap: 8px; }
.soc a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #3a3d39; display: grid; place-items: center; }
.soc a:hover { background: #fff; color: var(--ink); }
.news__row { display: flex; background: #2a2c29; border-radius: 999px; overflow: hidden; }
.news input { border: 0; background: transparent; color: #fff; margin: 0; }
.news button { width: 44px; border: 0; background: #fff; color: var(--ink); cursor: pointer; }
.copy { text-align: center; color: var(--muted); font-size: .8rem; margin: 10px 0 24px; }

.search {
  position: fixed; top: 78px; inset-inline-end: 24px; z-index: 30;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 8px;
}
.search input { border: 0; padding: 8px 10px; min-width: 220px; }
.drawer, .modal { position: fixed; inset: 0; z-index: 40; }
.drawer__bg, .modal__bg { position: absolute; inset: 0; background: rgba(16,16,14,.45); }
.drawer__panel, .modal__box {
  position: absolute; background: #fff; padding: 18px;
  animation: rise .35s ease;
}
.drawer__panel { inset-block: 0; inset-inline-start: 0; width: min(380px, 100%); }
.modal__box { inset: 8vh 8vw; border-radius: 20px; overflow: auto; }
.drawer__panel header, .modal__box header { display: flex; justify-content: space-between; align-items: center; }
.cart__row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart__row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }

.reveal { animation: rise .7s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ken { to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 1100px) {
  .shell, .split, .duo, .foot { grid-template-columns: 1fr; }
  .rail { position: static; }
  .hero__copy { padding: 28px; }
  .cats { grid-template-columns: repeat(5, minmax(72px, 1fr)); overflow: auto; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 68px; inset-inline: 12px; background: #fff; border-radius: 16px; padding: 12px; flex-direction: column; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav-toggle { display: grid; place-items: center; }
  .head__tools { margin-inline-start: auto; flex-shrink: 0; }
  .pill span, .head .pill { display: none; }
  .grid, .proj-grid, .why ul { grid-template-columns: 1fr; }
}
