:root {
  --brown-950: #1f1009;
  --brown-900: #2a170b;
  --brown-800: #3d2412;
  --brown-700: #5a3418;
  --caramel: #b8763a;
  --gold: #d9a25b;
  --cream: #faf4ea;
  --sand: #f1e6d4;
  --paper: #fffdf9;
  --text: #3b2a1d;
  --muted: #7d6754;
  --palm: #5b7442;
  --line: #e7d8c3;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(42, 23, 11, 0.12);
  --shadow-lg: 0 18px 45px rgba(42, 23, 11, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 820px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(31, 16, 9, 0.97), rgba(42, 23, 11, 0.92));
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 44px; height: 44px; display: grid; place-items: center; color: var(--gold); }
.brand-logo svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.2rem; font-weight: 800; }
.brand-text small { font-size: 0.72rem; color: #d9c7ae; font-weight: 400; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { font-weight: 500; font-size: 0.95rem; padding: 6px 2px; position: relative; color: #efe2cd; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a.active::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--gold); border-radius: 2px;
}
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid rgba(217, 162, 91, 0.5); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  background: transparent; color: #efe2cd; border: 0; padding: 6px 12px; font-size: 0.85rem; cursor: pointer; font-weight: 600;
}
.lang-switch button.active { background: var(--gold); color: var(--brown-900); }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 6px auto; width: 22px; border-radius: 2px; }

/* ---------- buttons & tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--caramel); color: #fff; box-shadow: 0 8px 18px rgba(184, 118, 58, 0.35); }
.btn-primary:hover { background: #a3642c; }
.btn-outline { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-light { background: #fff; color: var(--brown-800); }
.btn-light:hover { background: var(--sand); }
.btn-block { width: 100%; }
.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--brown-700);
  background: var(--sand); padding: 2px 12px; border-radius: 999px; margin-bottom: 8px;
}

/* ---------- hero ---------- */
.hero { position: relative; height: min(78vh, 620px); min-height: 440px; overflow: hidden; background: var(--brown-900); color: #fff; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease; display: flex; align-items: center;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(31, 16, 9, 0.85) 0%, rgba(31, 16, 9, 0.45) 55%, rgba(31, 16, 9, 0.2) 100%);
}
.hero-slide.active { opacity: 1; }
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-content h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.35; margin: 0 0 16px; font-weight: 800; }
.hero-content p { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #eadcc6; margin: 0 0 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 22px; inset-inline: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.45); cursor: pointer; padding: 0;
}
.hero-dots button.active { background: var(--gold); transform: scale(1.2); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.band { background: var(--sand); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 6px; color: var(--brown-800); font-weight: 800; }
.section-head p { margin: 0; color: var(--muted); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; text-align: start; gap: 16px; }
.section-head-row > div { flex: 1; }
.link-more { color: var(--palm); font-weight: 700; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.loading { text-align: center; padding: 120px 0; color: var(--muted); }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.cat-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-img { aspect-ratio: 4 / 3; background: var(--sand); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-info { padding: 14px 18px 18px; }
.cat-info h3 { margin: 0 0 2px; font-size: 1.05rem; color: var(--brown-800); }
.cat-info span { font-size: 0.88rem; color: var(--muted); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.feature { text-align: center; padding: 10px 14px; }
.feature-icon {
  width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--paper); color: var(--palm); display: grid; place-items: center; box-shadow: var(--shadow);
}
.feature-icon svg { width: 32px; height: 32px; }
.feature h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--brown-800); }
.feature p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- product & post cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-link { color: inherit; }
.card-img { aspect-ratio: 16 / 11; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.6; color: var(--brown-800); }
.card-body p { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; flex: 1; }
.card-body time { font-size: 0.82rem; color: var(--muted); }
.card-body .btn { margin-top: auto; }

/* ---------- order cta ---------- */
.order-cta { padding: 0 0 72px; }
.cta-box {
  background: linear-gradient(120deg, var(--brown-800), var(--brown-950));
  color: #fff; border-radius: 22px; padding: 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-lg);
  background-image: linear-gradient(120deg, var(--brown-800), var(--brown-950));
}
.cta-box h2 { margin: 0 0 6px; font-size: 1.6rem; color: var(--gold); }
.cta-box p { margin: 0; color: #e8d9c2; }
.cta-phones { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-phones.stacked { flex-direction: column; }

/* ---------- page head, chips, prose ---------- */
.page-head {
  background: linear-gradient(135deg, var(--brown-800), var(--brown-950)); color: #fff; padding: 48px 0; text-align: center;
  position: relative; overflow: hidden;
}
.page-head h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--gold); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  padding: 8px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  color: var(--brown-700); font-weight: 600; font-size: 0.9rem; transition: all .2s;
}
.chip:hover { border-color: var(--caramel); }
.chip.active { background: var(--brown-700); color: #fff; border-color: var(--brown-700); }

.prose { font-size: 1.05rem; color: var(--text); }
.prose p { margin: 0 0 1.1em; }

/* ---------- post page ---------- */
.post-page { padding: 56px 0 80px; }
.post-page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.5; margin: 6px 0 8px; color: var(--brown-800); }
.post-page time { color: var(--muted); font-size: 0.9rem; }
.post-hero { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 20px; margin: 24px 0 32px; box-shadow: var(--shadow); }
.back { display: inline-block; margin-bottom: 18px; color: var(--palm); font-weight: 700; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.contact-card { background: var(--paper); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-card h2, .contact-card h3 { color: var(--brown-800); margin: 0 0 8px; }
.contact-card h3 { margin-top: 22px; font-size: 1rem; }
.contact-card p { margin: 0 0 6px; color: var(--muted); }
.contact-card a { color: var(--palm); font-weight: 600; }
.socials-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.socials-inline a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--brown-950); color: #cdbba0; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand .brand-logo { color: var(--gold); }
.footer-grid h4 { color: var(--gold); margin: 0 0 14px; font-size: 1rem; }
.footer-grid a { display: block; padding: 3px 0; font-size: 0.92rem; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-contact { font-size: 0.92rem; padding: 3px 0; line-height: 1.9; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.socials a {
  display: inline-block; padding: 5px 12px; border: 1px solid rgba(217, 162, 91, 0.4); border-radius: 999px;
  font-size: 0.8rem; color: #e9d6b8;
}
.socials a:hover { background: var(--gold); color: var(--brown-900); }
.footer-bottom {
  margin-top: 44px; padding: 20px 0; border-top: 1px solid rgba(217, 162, 91, 0.2); font-size: 0.85rem; text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    position: fixed; top: 72px; inset-inline: 0; background: var(--brown-950); flex-direction: column; gap: 0;
    padding: 8px 16px 16px; display: none; box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .main-nav a.active::after { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .section { padding: 48px 0; }
  .hero { min-height: 520px; height: auto; }
  .hero-slide { padding: 80px 0 70px; align-items: flex-end; }
  .hero-content h1 { font-size: 1.8rem; }
  .cta-box { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text small { display: none; }
  .lang-switch button { padding: 5px 9px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-body { padding: 14px; }
  .card-body h3 { font-size: 0.95rem; }
  .card-body p { font-size: 0.82rem; }
  .btn { padding: 9px 16px; font-size: 0.88rem; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}
