:root {
  --cream: #f4efe6;
  --paper: #fbf8f3;
  --ink: #1c1a17;
  --muted: #6f675e;
  --line: rgba(28, 26, 23, .1);
  --gold: #c4a574;
  --wrap: 1180px;
  --font: Vazirmatn, Tahoma, sans-serif;
  --display: "Cormorant Garamond", Vazirmatn, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.eyebrow { letter-spacing: .08em; color: #efe8dc; font-size: 13px; }
.dark-btn, .light-btn, .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 11px 18px; border: 1px solid transparent; cursor: pointer; font-weight: 700; font-size: 14px;
}
.dark-btn { background: var(--ink); color: #fff; }
.light-btn { background: #fff; color: var(--ink); }
.ghost-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.dark-btn--block { width: 100%; }
.text-link { background: none; border: 0; color: var(--ink); font-weight: 700; cursor: pointer; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-head h2, .why h2, .steps h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.sec-head p, .sec-head a { color: var(--muted); }

.head { position: sticky; top: 0; z-index: 40; background: rgba(251,248,243,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.head__row { min-height: 76px; display: flex; align-items: center; gap: 14px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; }
.brand b { display: block; font-family: var(--display); font-size: 26px; line-height: 1; font-weight: 600; }
.brand small { display: block; letter-spacing: .16em; font-size: 9px; color: var(--muted); }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a { padding: 8px 10px; font-size: 14px; }
.nav a.is-on { font-weight: 800; }
.tools { display: flex; align-items: center; gap: 6px; }
.icon-btn, .burger { width: 40px; height: 40px; border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; position: relative; }
.icon-btn em { position: absolute; top: 2px; left: 0; min-width: 16px; height: 16px; border-radius: 99px; background: var(--ink); color: #fff; font-style: normal; font-size: 10px; line-height: 16px; }
.burger { display: none; gap: 5px; align-content: center; }
.burger span { width: 18px; height: 2px; background: var(--ink); display: block; }
.search { display: none; position: absolute; top: calc(100% + 8px); inset-inline-start: 0; width: min(320px, 90vw); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.search.is-open { display: block; }
.search input { width: 100%; border: 0; outline: none; background: transparent; }

.hero { position: relative; min-height: 640px; display: grid; align-items: end; border-radius: 0 0 28px 28px; overflow: hidden; margin: 12px; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,12,.15), rgba(20,16,12,.55)); }
.hero__copy { position: relative; z-index: 1; color: #fff; padding: 80px 0 120px; max-width: 460px; margin-inline-start: auto; text-align: right; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.25; font-weight: 800; margin: 8px 0 12px; }
.hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.hero .text-link { color: #fff; }
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: -78px; margin-bottom: 28px; }
.stats div { background: rgba(255,255,255,.92); border-radius: 16px; padding: 14px; text-align: center; }
.stats b { display: block; font-size: 22px; }
.stats span { color: var(--muted); font-size: 13px; }

.cats, .why, .shop, .offers, .projects, .steps, .journal { padding: 28px 0; }
.cats__grid, .proj-grid, .journal__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.proj-grid, .journal__grid { grid-template-columns: repeat(3, 1fr); }
.cats__grid a, .journal article, .proj-grid figure { margin: 0; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.cats__grid img, .journal img, .proj-grid img { width: 100%; height: 180px; object-fit: cover; }
.cats__grid b, .journal b, .journal span { display: block; padding: 10px 12px 0; }
.journal span, .proj-grid figcaption { color: var(--muted); font-size: 13px; padding: 0 12px 12px; display: block; }

.consult, .showroom, .ideas { padding: 10px 0 20px; }
.consult__card, .showroom__card, .ideas__card, .collection__card, .cta__card, .review__card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: center;
  background: var(--ink); color: #fff; border-radius: 24px; overflow: hidden; padding: 16px;
}
.consult__card img, .showroom__card img, .ideas__card img, .collection__card img { width: 100%; height: 260px; object-fit: cover; border-radius: 16px; }
.consult h2, .showroom h2, .ideas h2, .collection h2, .cta h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.35; margin-bottom: 8px; }
.consult p, .showroom p, .ideas p, .collection p, .cta p { color: #d9d1c6; margin-bottom: 14px; }
.showroom__card, .ideas__card { background: #fff; color: var(--ink); }
.showroom p, .ideas p { color: var(--muted); }
.collection { padding: 8px 0 20px; }
.collection__card { background: #24211d; }

.why h2 { margin-bottom: 16px; }
.why__grid, .steps ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.why article, .steps li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.why i, .steps i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); font-style: normal; margin-bottom: 8px; }
.why span, .steps span { display: block; color: var(--muted); font-size: 13px; }

.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prod-grid--4 { grid-template-columns: repeat(4, 1fr); }
.prod { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.prod img { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; background: var(--cream); }
.prod h3 { font-size: 16px; margin: 12px 0 8px; }
.prod__row { display: flex; align-items: center; justify-content: space-between; }
.prod__row b { font-size: 13px; }
.prod__row button, .heart { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.heart { position: absolute; top: 20px; inset-inline-start: 20px; }
.off { position: absolute; top: 20px; inset-inline-end: 20px; background: #9a3b32; color: #fff; border-radius: 999px; padding: 2px 8px; font-style: normal; font-size: 12px; }
.timer { font-variant-numeric: tabular-nums; letter-spacing: .12em; font-weight: 800; color: var(--ink) !important; }

.review { padding: 10px 0 24px; }
.review__card { background: #fff; color: var(--ink); }
.review img { width: 120px; height: 120px; object-fit: cover; border-radius: 16px; }
.review__card { grid-template-columns: 140px 1fr; }
.review span { color: var(--muted); }

.cta { padding: 10px 0 28px; }
.cta__card { grid-template-columns: 1.4fr auto; padding: 28px; }
.cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.foot { padding: 28px 0 18px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr; gap: 20px; }
.foot b { display: block; margin-bottom: 8px; }
.foot a, .foot p { color: var(--muted); display: block; margin: 6px 0; }
.contact-lines p { display: flex !important; align-items: center; gap: 8px; margin: 8px 0; }
.contact-lines a, .contact-lines span { display: inline !important; margin: 0; min-width: 0; word-break: break-word; }
.contact-lines a[hidden], .contact-lines span[hidden], .contact-lines p[hidden] { display: flex !important; }
.foot__bar { margin-top: 16px; color: var(--muted); font-size: 13px; }

.drawer { pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer__veil, .modal__veil { position: fixed; inset: 0; background: rgba(20,16,12,.45); }
.drawer__veil { opacity: 0; }
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer.is-open .drawer__veil, .drawer.is-open .drawer__panel { z-index: 90; }
.drawer__panel { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(360px, 92vw); background: var(--paper); transform: translateX(-110%); transition: transform .3s ease; display: flex; flex-direction: column; padding: 16px; z-index: 60; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer header, .drawer footer, .cart__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drawer header button, .modal__x { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; }
#cartList { flex: 1; overflow: auto; }
.cart__row { justify-content: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart__row img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.modal { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; padding: 18px; }
.modal.is-open { display: grid; }
.mbox { position: relative; z-index: 1; width: min(440px, 100%); max-height: 90vh; overflow: auto; background: var(--paper); border-radius: 20px; padding: 22px; }
.mbox--wide { width: min(960px, 100%); }
.mbox form, .mbox label { display: grid; gap: 8px; }
.mbox input, .mbox select { border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: #fff; outline: none; }
.modal__x { position: absolute; top: 10px; inset-inline-start: 10px; }
.cats-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.cat { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.cat.is-on { background: var(--ink); color: #fff; }
.catalog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
body.is-lock { overflow: hidden; }

@media (max-width: 980px) {
  .burger { display: inline-grid; }
  .nav { display: none; position: absolute; top: 100%; right: 0; left: 0; margin: 0; background: var(--paper); flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .head .dark-btn { display: none; }
  .tools { margin-inline-start: auto; }
  .stats, .cats__grid, .why__grid, .steps ol, .prod-grid, .prod-grid--4, .proj-grid, .journal__grid, .catalog__grid { grid-template-columns: 1fr 1fr; }
  .consult__card, .showroom__card, .ideas__card, .collection__card, .cta__card, .review__card, .foot__grid { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
}
@media (max-width: 640px) {
  .stats, .cats__grid, .why__grid, .steps ol, .prod-grid, .prod-grid--4, .catalog__grid { grid-template-columns: 1fr; }
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
