@font-face {
  font-family: "Vazirmatn";
  src: url("Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #16181b;
  --ink-2: #1e2125;
  --ink-3: #2a2e34;
  --paper: #f5f3ef;
  --paper-2: #ece8e0;
  --card: #ffffff;
  --text: #1b1c1e;
  --muted: #62666c;
  --line: #ddd8ce;
  --brass: #c09434;
  --brass-hi: #e6c77e;
  --brass-lo: #8a6721;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 10px 30px -12px rgba(20, 20, 20, .18);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0;
  color: var(--brass);
  margin-bottom: 10px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* دکمه‌ها */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--brass {
  color: #1b1408;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, #a87f27);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 18px -6px rgba(192, 148, 52, .7);
}
.btn--brass:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 24px -8px rgba(192, 148, 52, .9); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--brass-hi); color: var(--brass-hi); }

/* نوار بالا */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 24, 27, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: #e9e7e2;
}
.topbar__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { width: 44px; height: 44px; border-radius: 11px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.brand__text strong { font-size: 17px; font-weight: 800; }
.brand__text small { font-size: 12px; color: #9a9da3; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: #c9cbcf; transition: color .2s, background .2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__admin {
  display: inline-flex !important; align-items: center; gap: 6px;
  margin-inline-start: 8px;
  border: 1px solid rgba(230, 199, 126, .4);
  color: var(--brass-hi) !important;
}
.nav__admin svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav__admin svg circle { fill: currentColor; stroke: none; }
.nav__admin:hover { background: rgba(230, 199, 126, .12) !important; }
.burger { display: none; width: 42px; height: 42px; border: 0; background: rgba(255, 255, 255, .06); border-radius: 10px; position: relative; }
.burger span { position: absolute; inset-inline: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, top .25s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* هیرو */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 25% 30%, rgba(192, 148, 52, .14), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(120, 140, 170, .10), transparent 60%),
    var(--ink);
  color: #f1efea;
  padding: 34px 0 26px;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(28px, 3.8vw, 46px); font-weight: 900; margin-bottom: 14px; letter-spacing: -.3px; }
.hero .lead { font-size: 16.5px; color: #b9bcc1; max-width: 520px; margin-bottom: 22px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__tags li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 14px; font-size: 13px; color: #c8cacd;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 30px;
}
.hero__tags i { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 45%, #222 120%); }

.stage {
  position: relative; aspect-ratio: 1 / .92;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .07), transparent 60%),
    linear-gradient(180deg, var(--ink-2), #121417);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 40px 80px -40px rgba(0, 0, 0, .8);
  overflow: hidden;
}
.stage__canvas { position: absolute; inset: 0; cursor: grab; }
.stage__canvas:active { cursor: grabbing; }
.stage__canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.stage__fallback { width: 70%; margin: 12% auto 0; border-radius: 16px; }
.stage__canvas.is-3d .stage__fallback { display: none; }
.stage__dim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage__dim path { fill: none; stroke: rgba(230, 199, 126, .28); stroke-width: 1; stroke-dasharray: 4 4; }
.stage__label {
  position: absolute; top: 18px; inset-inline-start: 20px;
  display: flex; flex-direction: column; line-height: 1.5; pointer-events: none;
}
.stage__label span { font-size: 12px; color: #8d9096; }
.stage__label strong { font-size: 18px; color: var(--brass-hi); }
.stage__hint { position: absolute; bottom: 14px; inset-inline-end: 20px; font-size: 12px; color: #7d8086; pointer-events: none; }
.stage__controls { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.seg button {
  border: 0; background: transparent; color: #b4b7bc;
  font-size: 13px; padding: 6px 12px; border-radius: 8px; transition: background .2s, color .2s;
}
.seg button:hover { color: #fff; }
.seg button.is-on { background: rgba(230, 199, 126, .16); color: var(--brass-hi); }
.metals { display: flex; gap: 8px; }
.metals button {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent;
  background: radial-gradient(circle at 35% 30%, #fff 0, var(--c) 40%, #1a1a1a 130%);
  outline: 1px solid rgba(255, 255, 255, .15); transition: transform .2s;
}
.metals button:hover { transform: scale(1.1); }
.metals button.is-on { border-color: var(--ink); outline: 2px solid var(--brass-hi); }

.stats {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 26px 0 0; padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.stats div { padding: 14px 10px 0; border-inline-start: 1px solid rgba(255, 255, 255, .08); }
.stats div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stats dt { font-size: 22px; font-weight: 800; color: #fff; }
.stats dd { margin: 0; font-size: 13.5px; color: #8f9298; }

/* بخش‌ها */
.section { padding: 60px 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #ecebe7; }
.section__head { max-width: 640px; margin-bottom: 26px; }
.section__head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 10px; }
.section__head > p:not(.kicker) { color: var(--muted); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* کارت‌های دسته */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; perspective: 1000px; }
.cat { display: block; perspective: 1000px; }
.cat__inner {
  position: relative; display: grid; height: 100%;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.cat__face {
  grid-area: 1 / 1; display: block; position: relative;
  padding: 16px 18px 18px; border-radius: var(--radius);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.cat__front { background: var(--card); border: 1px solid var(--line); transform: translateZ(1px); }
.cat__back {
  transform: rotateY(180deg) translateZ(1px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  color: #f1efea;
  background:
    radial-gradient(circle at 20% 0%, rgba(230, 199, 126, .35), transparent 55%),
    linear-gradient(160deg, #2a2e34, #16181b);
  border: 1px solid rgba(230, 199, 126, .35);
  box-shadow: 0 30px 50px -25px rgba(0, 0, 0, .6);
}
.cat__back strong { font-size: 18px; color: var(--brass-hi); }
.cat__back span { font-size: 14px; color: #c9cbcf; line-height: 1.8; }
.cat__back em { font-style: normal; font-weight: 700; font-size: 14px; color: #fff; margin-top: 6px; }
.cat__no { position: absolute; top: 16px; inset-inline-end: 18px; font-size: 13px; color: #b0aa9e; font-weight: 600; }
.cat__fig { width: 88px; height: 44px; margin-bottom: 8px; }
.cat__fig .axis { stroke: #c9c2b4; stroke-dasharray: 3 3; fill: none; }
.cat__fig .prof { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linejoin: round; }
.cat__fig .mirror { transform: scaleX(-1); transform-origin: 32px 0; opacity: .35; }
.cat h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.cat__desc { display: block; font-size: 14px; color: var(--muted); line-height: 1.8; }
@media (hover: hover) and (pointer: fine) {
  .cat:hover .cat__inner, .cat:focus-visible .cat__inner { transform: rotateY(180deg); }
  .cat__front .cat__desc { display: none; }
  .cat__front::after { content: "جزئیات ↺"; position: absolute; bottom: 18px; inset-inline-end: 20px; font-size: 12px; color: #b0aa9e; }
}
@media (hover: none), (pointer: coarse) {
  .cat__back { display: none; }
}

/* قطعات شناور سه‌بعدی */
.section--floaters { position: relative; overflow: hidden; }
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.floaters canvas { width: 100% !important; height: 100% !important; display: block; }
.section--floaters > .wrap { position: relative; z-index: 1; }

/* محصولات */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  border: 1px solid var(--line); background: var(--card);
  padding: 6px 14px; border-radius: 30px; font-size: 14px; color: var(--muted);
  transition: all .2s;
}
.chips button:hover { color: var(--text); border-color: #bdb6a8; }
.chips button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; perspective: 1200px; }
.prod {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: box-shadow .3s, opacity .3s;
  display: flex; flex-direction: column;
}
.prod:hover { box-shadow: 0 30px 50px -28px rgba(20, 20, 20, .45); }
.prod.is-hidden { display: none; }
.prod__img {
  display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 4 / 3; overflow: hidden; background: #e6e2da; cursor: zoom-in;
}
.prod__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.prod:hover .prod__img img { transform: scale(1.05); }
.prod__body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.prod__cat { font-size: 12.5px; color: var(--brass-lo); font-weight: 600; }
.prod h3 { font-size: 16.5px; font-weight: 800; margin: 0 0 4px; }
.prod__body > p { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; line-height: 1.7; }
.prod__spec { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; font-size: 13px; }
.prod__spec div { display: flex; gap: 6px; }
.prod__spec dt { color: #9a958b; }
.prod__spec dd { margin: 0; font-weight: 600; }
.prod__order {
  margin-top: auto; font-size: 14px; font-weight: 700; color: var(--brass-lo);
  display: inline-flex; align-items: center; gap: 6px;
}
.prod__order::after { content: "←"; transition: transform .2s; }
.prod__order:hover::after { transform: translateX(-4px); }

/* مراحل */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; inset-inline: 28px;
  border-top: 2px dashed #cfc8b9;
}
.steps li { position: relative; }
.steps__no {
  position: relative; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 16px;
  font-size: 20px; font-weight: 800; color: #1b1408;
  background: radial-gradient(circle at 35% 30%, #fff3cf, var(--brass-hi) 30%, var(--brass) 60%, var(--brass-lo));
  box-shadow: 0 0 0 6px var(--paper), 0 8px 20px -6px rgba(138, 103, 33, .6);
}
.steps h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.steps p { font-size: 14.5px; color: var(--muted); }


/* گالری سه‌بعدی */
.gallery3d {
  position: relative; overflow: hidden;
  padding: 50px 0 36px;
  background:
    radial-gradient(900px 420px at 50% 75%, rgba(192, 148, 52, .16), transparent 65%),
    linear-gradient(180deg, var(--ink) 0%, #101113 100%);
  color: #f1efea;
}
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .kicker { justify-content: center; }
.gallery3d .section__head > p:not(.kicker) { color: #9a9da3; }
.carousel {
  position: relative; height: 340px; margin-top: 0;
  perspective: 1300px; perspective-origin: 50% 35%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.carousel.is-drag { cursor: grabbing; }
.carousel__ring {
  position: absolute; left: 50%; top: 20px;
  width: 240px; height: 300px; margin-left: -120px;
  transform-style: preserve-3d;
}
.carousel__item {
  position: absolute; inset: 0; padding: 0; border: 0;
  border-radius: 16px; overflow: hidden; background: #22252a;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .08);
  -webkit-box-reflect: below 10px linear-gradient(transparent 70%, rgba(255, 255, 255, .18));
  cursor: inherit;
}
.carousel__item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.carousel__item span {
  position: absolute; inset-inline: 0; bottom: 0; padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
  color: #fff; font-weight: 700; font-size: 14.5px; text-align: right;
}
.carousel__floor {
  position: absolute; left: 50%; bottom: -40px; width: 900px; height: 140px; margin-left: -450px;
  background: radial-gradient(ellipse at center, rgba(230, 199, 126, .18), transparent 65%);
  pointer-events: none;
}
.carousel__nav { position: relative; display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 44px; }
.carousel__nav button {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); color: #fff; font-size: 18px;
  transition: border-color .2s, color .2s;
}
.carousel__nav button:hover { border-color: var(--brass-hi); color: var(--brass-hi); }
.carousel__nav span { min-width: 160px; text-align: center; color: var(--brass-hi); font-weight: 700; }

/* کارگاه مجازی */
.section--process { background: radial-gradient(800px 500px at 25% 50%, rgba(120, 140, 170, .12), transparent 60%), var(--ink); }
.section--process .section__head > p:not(.kicker) { color: #9a9da3; }
.forming { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.forming__stage {
  position: sticky; top: 96px;
  aspect-ratio: 1 / .78; border-radius: 22px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .07), transparent 60%), linear-gradient(180deg, #1e2125, #111315);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.forming__canvas { position: absolute; inset: 0; }
.forming__canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.forming__fallback { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.forming__canvas.is-3d .forming__fallback { display: none; }
.forming__hud {
  position: absolute; inset-inline: 20px; bottom: 18px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: end; pointer-events: none;
}
.forming__hud span { font-size: 12.5px; color: #8d9096; }
.forming__hud strong { font-size: 24px; color: var(--brass-hi); line-height: 1; }
.forming__hud i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.forming__hud b { display: block; height: 100%; background: linear-gradient(90deg, var(--brass), var(--brass-hi)); transform: scaleX(0); transform-origin: right; }
.forming.no-3d .forming__hud { display: none; }
.steps--v { grid-template-columns: 1fr; gap: 0; }
.steps--v::before { top: 28px; bottom: 28px; inset-inline: auto; inset-inline-start: 27px; border-top: 0; border-inline-start: 2px dashed rgba(255, 255, 255, .14); }
.steps--v li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 10px 0 18px; opacity: .45; transition: opacity .4s; }
.steps--v li.is-on { opacity: 1; }
.steps--v .steps__no { grid-row: span 2; margin: 0; box-shadow: 0 0 0 6px var(--ink), 0 8px 20px -6px rgba(0, 0, 0, .6); filter: grayscale(1); transition: filter .4s, transform .4s; }
.steps--v li.is-on .steps__no { filter: none; transform: scale(1.06); }
.steps--v h3 { color: #fff; font-size: 19px; }
.steps--v p { color: #a5a8ad; }
.footer__admin { color: #5d6066; }

/* درباره */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about__img { margin: 0; position: relative; border-radius: 18px; overflow: hidden; transform-style: preserve-3d; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); }
.about__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.about__img figcaption {
  position: absolute; bottom: 14px; inset-inline-start: 14px;
  font-size: 13px; padding: 4px 12px; border-radius: 20px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); color: #ddd;
}
.about__text h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 18px; }
.about__text p { color: #b6b9be; margin-bottom: 14px; }
.about__sub { font-size: 15px; color: #fff; margin: 18px 0 10px; }
.swatches { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.swatches li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: #c3c5c9; }
.ball {
  width: 54px; height: 54px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 60% 70%, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 60%),
    radial-gradient(circle at 40% 40%, var(--c), color-mix(in srgb, var(--c) 40%, #000));
  box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .8);
  transition: transform .3s;
}
.swatches li:hover .ball { transform: translateY(-4px) rotate(20deg); }

/* سؤالات */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 12px 0; font-weight: 700; font-size: 15.5px;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brass); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 12px; color: var(--muted); }

/* سفارش */
.order { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.order__info h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 10px; }
.order__info > p { color: var(--muted); margin-bottom: 16px; }
.contact { list-style: none; padding: 0; margin: 0 0 22px; }
.contact li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact span { color: var(--muted); font-size: 14px; }
.contact a, .contact b { font-weight: 700; text-align: left; }
.contact a:hover { color: var(--brass-lo); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { padding: 7px 16px; border-radius: 30px; border: 1px solid #c9c2b4; font-size: 14px; font-weight: 600; }
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.form { position: relative; background: var(--card); padding: 22px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 12px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #3b3d41; }
.form input, .form select, .form textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1px solid #d6d0c4; background: #fbfaf8; font-weight: 400; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 84px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(192, 148, 52, .18); background: #fff; }
.form input[dir="ltr"]::placeholder { text-align: right; }
.file { display: flex !important; align-items: center; gap: 12px; cursor: pointer; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file__btn { padding: 9px 16px; border-radius: 10px; border: 1px dashed #b9b1a1; font-weight: 600; }
.file:hover .file__btn { border-color: var(--brass); color: var(--brass-lo); }
.file__name { font-weight: 400; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form .hp { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.form__msg { font-size: 14px; min-height: 1.5em; }
.form__msg.ok { color: #2e7d4f; }
.form__msg.err { color: #b3402f; }

/* فوتر */
.footer { background: #111214; color: #9fa2a7; padding: 30px 0 22px; font-size: 14px; }
.footer__in { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; }
.footer strong { color: #fff; font-size: 16px; display: block; margin-bottom: 4px; }
.footer nav { display: flex; gap: 20px; align-items: center; }
.footer nav a:hover { color: #fff; }
.footer__copy { grid-column: 1 / -1; border-top: 1px solid #222428; padding-top: 18px; font-size: 13px; color: #6f7278; }


/* پنجرهٔ ورود مدیر */
.login-modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 20px;
  background: rgba(10, 11, 13, .72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  perspective: 1200px;
  animation: fade .3s;
}
.login-card {
  position: relative; width: 100%; max-width: 380px;
  padding: 64px 28px 28px; border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, #23262b, #17191c);
  border: 1px solid rgba(230, 199, 126, .25);
  color: #f1efea;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform-origin: 50% 0;
  animation: card-in .7s cubic-bezier(.2, .9, .25, 1.1);
}
@keyframes card-in { from { transform: rotateX(-75deg) translateY(-40px); opacity: 0; } }
.login-card__coin {
  position: absolute; top: -42px; left: 50%; width: 84px; height: 84px; margin-left: -42px;
  border-radius: 50%; padding: 14px;
  background: radial-gradient(circle at 35% 30%, #fff3cf, var(--brass-hi) 30%, var(--brass) 60%, var(--brass-lo));
  box-shadow: 0 16px 30px -8px rgba(0, 0, 0, .7), inset 0 -4px 8px rgba(0, 0, 0, .3);
  animation: coin-wobble 2.6s ease-in-out infinite alternate;
}
.login-card__coin img { width: 100%; height: 100%; border-radius: 12px; }
.login-card h2 { font-size: 21px; margin-bottom: 6px; }
.login-card p { color: #a5a8ad; font-size: 14px; margin-bottom: 20px; }
.login-card form { display: grid; gap: 14px; text-align: right; }
.login-card label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #c9cbcf; }
.login-card input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #fff;
}
.login-card input:focus { outline: 0; border-color: var(--brass-hi); box-shadow: 0 0 0 3px rgba(230, 199, 126, .2); }
.login-card__close {
  position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .06); color: #fff; font-size: 22px; line-height: 1;
}
@keyframes coin-spin { to { transform: rotateY(360deg); } }
@keyframes coin-wobble { from { transform: perspective(300px) rotateY(-35deg); } to { transform: perspective(300px) rotateY(35deg); } }

/* سکهٔ سه‌بعدی فوتر */
.footer__brand { display: flex; align-items: center; gap: 18px; }
.coin { width: 64px; height: 64px; perspective: 600px; flex-shrink: 0; }
.coin__body { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: coin-spin 6s linear infinite; }
.coin__body i {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(90deg, #6b5016, #c09434 50%, #6b5016);
  transform: translateZ(calc((var(--z) - 4.5) * 1px));
}
.coin__face {
  position: absolute; inset: 0; border-radius: 50%; padding: 10px;
  background: radial-gradient(circle at 35% 30%, #fff3cf, var(--brass-hi) 30%, var(--brass) 60%, var(--brass-lo));
  transform: translateZ(5px); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.coin__face--back { transform: rotateY(180deg) translateZ(5px); }
.coin__face img { width: 100%; height: 100%; border-radius: 10px; }

/* لایه‌های عمق در بخش اول (با حرکت ماوس) */
.hero__text > * { transform: translate3d(calc(var(--mx, 0) * var(--d, 0) * 1px), calc(var(--my, 0) * var(--d, 0) * 1px), 0); transition: transform .25s ease-out; }
.hero__text .kicker { --d: 10; }
.hero__text h1 { --d: 18; }
.hero__text .lead { --d: 8; }
.hero__text .hero__actions { --d: 5; }
.hero__text .hero__tags { --d: 3; }
.hero__stage { perspective: 1400px; }
.stage { transform: rotateY(calc(var(--mx, 0) * 6deg)) rotateX(calc(var(--my, 0) * -5deg)); transition: transform .3s ease-out; }

/* شمارنده‌ها */
.stats dt { display: inline-block; }
.stats dt.flip { animation: flip-in .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes flip-in { from { transform: perspective(400px) rotateX(-90deg); opacity: 0; } }

/* بزرگ‌نمایی عکس */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 10, 12, .9);
  display: grid; place-items: center; padding: 24px;
  animation: fade .25s;
}
.lightbox img { max-height: 88vh; max-width: min(1000px, 100%); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox__close {
  position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 26px; line-height: 1;
}
@keyframes fade { from { opacity: 0; } }

/* ظاهر شدن هنگام اسکرول */
.reveal { opacity: 0; transform: perspective(900px) translateY(40px) rotateX(18deg); transform-origin: 50% 100%; transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }


/* ===== افکت‌های سه‌بعدی بیشتر ===== */

/* برق نور روی کارت‌ها (دنبال ماوس) */
.tilt { position: relative; }
.glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 45%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .3s;
}
.tilt:hover .glare { opacity: 1; }

/* دکمه‌های طلایی برجسته که فشرده می‌شوند */
.btn--brass {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 0 #7d5d1c, 0 10px 22px -8px rgba(192, 148, 52, .8);
}
.btn--brass:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 0 #7d5d1c, 0 16px 28px -10px rgba(192, 148, 52, .9); }
.btn--brass:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 0 #7d5d1c, 0 4px 10px -6px rgba(192, 148, 52, .8); transition-duration: .05s; }

/* تیترهای برجسته در بخش‌های تیره */
.hero h1, .section--dark h2, .gallery3d h2 {
  text-shadow: 0 1px 0 #3a3d42, 0 2px 0 #2f3236, 0 3px 0 #26292d, 0 4px 0 #1f2125, 0 10px 18px rgba(0, 0, 0, .55);
}

/* نور چراغ‌قوه‌ای که دنبال ماوس در بخش‌های تیره می‌آید */
.section--dark, .gallery3d { position: relative; }
.section--dark::after, .gallery3d::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(500px circle at var(--sx, -999px) var(--sy, -999px), rgba(230, 199, 126, .09), transparent 60%);
}
.section--dark > .wrap, .gallery3d > * { position: relative; z-index: 1; }

/* باز شدن سؤال‌ها مثل ورقی که تا شده */
.faq details { perspective: 800px; }
.faq details[open] p { transform-origin: 50% 0; animation: unfold .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes unfold { from { transform: rotateX(-80deg); opacity: 0; } }

/* عکس درباره: چند قاب پشت هم مثل ورق‌های روی هم */
.about__img {
  overflow: visible !important;
  box-shadow:
    -16px 16px 0 -6px #2a2e34, -32px 32px 0 -12px #22252a, -48px 48px 0 -18px #1c1e22,
    0 50px 80px -30px rgba(0, 0, 0, .9) !important;
}
.about__img img { border-radius: 18px; }

/* باز شدن عکس بزرگ با چرخش */
.lightbox { perspective: 1400px; }
.lightbox img { animation: lb-in .6s cubic-bezier(.2, .9, .25, 1.05); }
@keyframes lb-in { from { transform: rotateY(-35deg) scale(.7); opacity: 0; } }

/* دکمه‌های رفتن به بالا و پایین صفحه */
.scroll-btns {
  position: fixed; bottom: 20px; left: 20px; z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
}
.scroll-btn {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; perspective: 300px;
  transition: opacity .3s, transform .3s;
}
.scroll-btn.off { opacity: 0; transform: scale(.6); pointer-events: none; }
.scroll-btn svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.scroll-btn circle { fill: none; stroke-width: 3; }
.scroll-btn__track { stroke: rgba(128, 128, 128, .25); }
.scroll-btn__bar { stroke: var(--brass); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }
.scroll-btn span {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 19px; font-weight: 900; color: #1b1408;
  background: radial-gradient(circle at 35% 30%, #fff3cf, var(--brass-hi) 30%, var(--brass) 60%, var(--brass-lo));
  box-shadow: 0 3px 0 #7d5d1c, 0 8px 16px -4px rgba(0, 0, 0, .5);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.scroll-btn:hover span { transform: rotateY(360deg); }
.scroll-btn:active span { transform: translateY(2px); box-shadow: 0 1px 0 #7d5d1c; }

/* حالت مدیر روی سایت */
.swap {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 5;
  padding: 7px 14px; border-radius: 30px; border: 0;
  font-size: 13px; font-weight: 700; color: #1b1408;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  box-shadow: 0 3px 0 #7d5d1c, 0 8px 18px -6px rgba(0, 0, 0, .5);
}
.swap:hover { transform: translateY(-1px); }
.swap:disabled { opacity: .7; }
.admin-bar {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 90;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100% - 24px);
  padding: 8px 10px; border-radius: 16px;
  background: rgba(22, 24, 27, .94); color: #e9e7e2; font-size: 13.5px;
  border: 1px solid rgba(230, 199, 126, .35);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.admin-bar a { padding: 6px 12px; border-radius: 10px; color: #e9e7e2; }
.admin-bar a:hover { background: rgba(255, 255, 255, .08); }
.admin-bar__badge { padding: 4px 10px; border-radius: 8px; background: var(--brass); color: #1b1408; font-weight: 800; }
.admin-bar__hint { color: #9a9da3; padding: 0 6px; }
.admin-bar__req b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #c0392b; color: #fff; font-size: 12px; }
.admin-bar__out { color: #e7a08f !important; }
.admin-toast {
  position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%); z-index: 95;
  padding: 10px 20px; border-radius: 10px; background: #1f6b43; color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: opacity .3s;
}
.admin-toast.bad { background: #b3402f; }
.admin-toast.hide { opacity: 0; pointer-events: none; }
.prod .swap, .about__img .swap { opacity: .95; }
@media (max-width: 560px) {
  .admin-bar__hint { display: none; }
  .scroll-btns { bottom: 14px; left: 12px; }
  .scroll-btn { width: 46px; height: 46px; }
  .scroll-btn span { width: 36px; height: 36px; }
}

@media (max-width: 1024px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .hero__in { grid-template-columns: 1fr; }
  .hero__stage { max-width: 620px; width: 100%; margin-inline: auto; }
}

@media (max-width: 860px) {
  .forming { grid-template-columns: 1fr; gap: 28px; }
  .forming__stage { position: sticky; top: 76px; z-index: 2; }
  .carousel { height: 320px; }
  .carousel__ring { width: 190px; height: 240px; margin-left: -95px; }
  .nav {
    position: fixed; top: 72px; inset-inline: 0;
    flex-direction: column; gap: 0; padding: 10px 16px 18px;
    background: rgba(22, 24, 27, .98); border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
  .nav__admin { margin: 10px 0 0; justify-content: center; border-radius: 10px; }
  .burger { display: block; }
  .topbar__cta { margin-inline-start: auto; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .steps::before { display: none; }
  .about, .order, .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .about__img img { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .section { padding: 44px 0; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .brand__text small { display: none; }
  .topbar__cta { display: none; }
  .burger { margin-inline-start: auto; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat__face { padding: 16px; }
  .cat__desc { display: none; }
  .cat__fig { width: 72px; height: 36px; }
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prod__body > p, .prod__spec { display: none; }
  .prod h3 { font-size: 14.5px; }
  .prod__order { font-size: 12.5px; }
  .form { padding: 20px; }
  .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .footer__in { grid-template-columns: 1fr; }
  .stage__controls { justify-content: center; }
  .carousel { height: 270px; }
  .carousel__ring { width: 150px; height: 195px; margin-left: -75px; }
  .carousel__nav { margin-top: 50px; }
  .forming__stage { aspect-ratio: 1 / .8; }
}

@media (prefers-reduced-motion: reduce) {
  .faq details[open] p, .lightbox img { animation: none; }
  .coin__body, .login-card__coin { animation: none; }
  .hero__text > *, .stage { transform: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
