:root {
  --bg: #070707;
  --panel: #121212;
  --card: #181818;
  --line: rgba(255, 255, 255, .08);
  --text: #f4f4f4;
  --muted: #9b9b9b;
  --red: #ef1d2a;
  --wrap: 1180px;
  --head: 74px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, sans-serif;
  line-height: 1.7;
}
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; }

.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0c0c0c;
  border-bottom: 1px solid var(--line);
}
.head__row {
  min-height: var(--head);
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 34px; height: 34px; }
.brand b {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 20px;
  letter-spacing: .12em;
  line-height: 1;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .22em;
}
.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a {
  position: relative;
  padding: 8px 12px;
  color: #d7d7d7;
  font-size: 14px;
  white-space: nowrap;
}
.nav a.is-on { color: #fff; }
.nav a.is-on::after {
  content: "";
  position: absolute;
  right: 12px;
  left: 12px;
  bottom: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.tools { display: flex; align-items: center; gap: 4px; }
.icon-btn, .burger {
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-grid;
  place-items: center;
  flex: 0 0 40px;
  line-height: 0;
  cursor: pointer;
  position: relative;
}
.icon-btn i {
  font-size: 22px;
  line-height: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.icon-btn em {
  position: absolute;
  top: 4px;
  left: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  line-height: 16px;
}
.burger { display: none; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 1px; }
.search {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  width: min(360px, 90vw);
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
  z-index: 5;
}
.search.is-open { display: flex; }
.search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  text-align: right;
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero__slide.is-on { opacity: 1; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(0,0,0,.78) 0%, rgba(0,0,0,.28) 46%, rgba(0,0,0,.45) 100%),
    linear-gradient(to top, rgba(0,0,0,.72), transparent 42%);
}
.hero__note {
  position: absolute;
  z-index: 2;
  top: 48px;
  left: 8%;
  right: auto;
  margin: 0;
  font-family: Caveat, cursive;
  font-size: 40px;
  line-height: 1.05;
  color: rgba(255,255,255,.9);
  text-align: left;
}
.hero__vert {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 18px;
  right: auto;
  margin: 0;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: Oswald, sans-serif;
  letter-spacing: .42em;
  font-size: 13px;
  color: rgba(255,255,255,.72);
}
.hero__arrows {
  position: absolute;
  z-index: 2;
  top: 46%;
  inset-inline-end: 78px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero__arrows button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
}
.hero__copy {
  position: absolute;
  z-index: 2;
  top: 46%;
  transform: translateY(-50%);
  inset-inline-start: max(20px, calc((100% - var(--wrap)) / 2));
  width: min(480px, calc(100% - 48px));
}
.hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.35;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero__copy p { margin-top: 14px; color: #cfcfcf; max-width: 420px; }
.hero__actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}
.btn--red { background: var(--red); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn--block { width: 100%; justify-content: center; }
.feats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: auto;
  padding-bottom: 28px;
}
.feats article { display: flex; align-items: center; gap: 12px; justify-content: center; }
.feats i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.feats b, .feats span { display: block; }
.feats b { font-size: 15px; }
.feats span { color: var(--muted); font-size: 13px; }

.shop { padding: 28px 0 10px; }
.shop__panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
}
.shop__head, .text-link, .prod__row, .news__top, .foot__bar, .soc {
  display: flex;
  align-items: center;
}
.shop__head { justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.shop h2, .story h2, .book h2, .foot h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
}
.shop__head p, .story__works > p, .book__card p { color: var(--muted); font-size: 14px; }
.text-link { gap: 6px; color: #ddd; font-size: 14px; }
.shop__grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 1fr);
  gap: 14px;
}
.promo, .prod {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
}
.promo { position: relative; min-height: 280px; display: block; }
.promo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.promo div {
  position: absolute;
  inset: auto 16px 16px 16px;
}
.promo h3 { font-size: 26px; line-height: 1.45; text-shadow: 0 8px 24px #000; }
.promo span { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #eee; font-size: 14px; }
.prod { padding: 10px; display: flex; flex-direction: column; }
.prod img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  border-radius: 12px;
  background: #101010;
}
.prod h3 { font-size: 14px; font-weight: 600; margin-top: 10px; }
.prod__row { justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.prod__row b { font-size: 13px; font-weight: 500; }
.prod__row button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #111;
  cursor: pointer;
}

.book {
  position: relative;
  margin: 28px 0;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}
.book > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.book__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,.78), rgba(0,0,0,.15) 70%);
}
.book__script {
  position: absolute;
  z-index: 1;
  left: 8%;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-family: Caveat, cursive;
  font-size: 54px;
  line-height: .95;
  color: rgba(255,255,255,.82);
  text-align: left;
}
.book .wrap { position: relative; z-index: 1; }
.book__card {
  width: min(360px, 100%);
  background: rgba(16,16,16,.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px;
}
.book__card p { margin: 8px 0 18px; }
.book h2 i { color: var(--red); }

.story { padding: 10px 0 40px; }
.story__grid {
  display: grid;
  grid-template-columns: 300px minmax(220px, .9fr) minmax(460px, 1.35fr);
  gap: 28px;
  align-items: center;
}
.story__photo { position: relative; margin: 0; border-radius: 18px; overflow: hidden; min-height: 320px; }
.story__photo img { width: 100%; height: 360px; object-fit: cover; }
.story__photo span {
  position: absolute;
  top: 18px;
  right: 16px;
  left: auto;
  font-family: Oswald, sans-serif;
  letter-spacing: .14em;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
}
.story__about p { color: #c8c8c8; margin: 12px 0 18px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: #ddd;
  font-size: 14px;
}
.works { display: flex; gap: 10px; margin-top: 14px; }
.works button {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: #141414;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
.works img { width: 100%; height: 100%; object-fit: cover; }
.works__more {
  display: grid;
  place-items: center;
  color: #ddd;
  border: 1px solid var(--line) !important;
  font-size: 14px;
}

.foot { border-top: 1px solid var(--line); padding-top: 28px; }
.foot__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}
.foot__contact p { display: flex; align-items: center; gap: 8px; color: #ccc; margin-top: 8px; }
.foot__contact i { color: var(--red); }
.foot blockquote { margin: 0; text-align: center; }
.foot blockquote p { font-size: 18px; }
.foot blockquote b {
  display: block;
  margin-top: 10px;
  font-family: Oswald, sans-serif;
  letter-spacing: .28em;
  color: #8d8d8d;
  font-weight: 500;
}
.news__top { justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.soc { gap: 8px; }
.soc a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.news label { display: flex; background: #141414; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.news input { flex: 1; background: transparent; border: 0; padding: 12px; outline: none; }
.news button { width: 48px; border: 0; background: var(--red); cursor: pointer; }
.news small { display: block; min-height: 1.2em; color: #8dcea0; margin-top: 6px; }
.foot__bar {
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.drawer__veil, .modal__veil {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.drawer { pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer__veil { opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer__panel {
  position: fixed;
  z-index: 60;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(380px, 92vw);
  background: #121212;
  border-inline-start: 1px solid var(--line);
  transform: translateX(-110%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  padding: 18px;
}
html[dir="rtl"] .drawer__panel { transform: translateX(-110%); }
.drawer.is-open .drawer__veil,
.drawer.is-open .drawer__panel { z-index: 90; }
.drawer.is-open .drawer__panel { transform: none; }
body.is-lock { overflow: hidden; }

.catalog__box {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(860px, 92vh);
  overflow: auto;
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 22px 22px;
}
.catalog__box > p { color: var(--muted); margin: 4px 0 14px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cat {
  border: 1px solid var(--line);
  background: #101010;
  color: #ddd;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.cat.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.cat-block + .cat-block { margin-top: 22px; }
.cat-block h3 { font-size: 16px; margin-bottom: 10px; }
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.drawer header, .drawer footer, .cart__row, .cart__qty { display: flex; align-items: center; }
.drawer header, .drawer footer { justify-content: space-between; gap: 10px; }
.drawer header button, .modal__x {
  width: 36px; height: 36px; border: 0; background: transparent; color: #fff; cursor: pointer;
}
#cartList { flex: 1; overflow: auto; margin: 16px 0; }
.cart__empty { color: var(--muted); }
.cart__row { gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart__row img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; }
.cart__row div { flex: 1; }
.cart__row small { display: block; color: var(--muted); }
.cart__qty { gap: 8px; }
.cart__qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #1b1b1b; cursor: pointer; }
.drawer footer { flex-wrap: wrap; }
.drawer footer .btn { width: 100%; justify-content: center; }

.modal { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; padding: 20px; }
.modal.is-open { display: grid; }
.modal__box, .light {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.modal__x { position: absolute; top: 10px; inset-inline-start: 10px; }
.modal form { display: grid; gap: 10px; }
.modal label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.modal input, .modal select {
  background: #0e0e0e;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  outline: none;
}
.modal__split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal p { color: var(--muted); margin-bottom: 8px; }
.light { width: min(720px, 100%); padding: 12px; margin: 0; }
.light img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; background: #000; }
.light figcaption { padding: 8px 4px 0; color: #ddd; }

@media (max-width: 980px) {
  .burger {
    display: inline-grid;
    align-content: center;
    gap: 5px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin: 0;
    background: #0c0c0c;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 14px;
    z-index: 6;
  }
  .nav.is-open { display: flex; }
  .nav a.is-on::after { display: none; }
  .tools { margin-inline-start: auto; }
  .catalog__grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 620px; }
  .hero__note, .hero__vert, .book__script { display: none; }
  .hero__arrows {
    top: auto;
    bottom: 18px;
    inset-inline: auto;
    left: 16px;
    right: auto;
    z-index: 4;
  }
  .hero__arrows button { width: 44px; height: 44px; }
  .hero__copy { position: relative; top: auto; transform: none; inset-inline-start: auto; width: min(var(--wrap), calc(100% - 40px)); margin: 88px auto 24px; }
  .shop__grid { grid-template-columns: 1fr 1fr; }
  .promo { grid-column: 1 / -1; min-height: 220px; }
  .story__grid, .foot__grid { grid-template-columns: 1fr; }
  .story__photo img { height: 280px; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .feats { grid-template-columns: 1fr; gap: 12px; }
  .feats article { justify-content: flex-start; }
  .shop__grid, .works, .catalog__grid { grid-template-columns: 1fr 1fr; }
  .works { display: grid; }
  .shop__head { align-items: flex-start; flex-direction: column; }
  .hero { min-height: 560px; }
  .hero h1 { font-size: 32px; }
  .foot__bar { flex-direction: column; align-items: flex-start; }
}
