:root {
  --bg: #e6e3dc;
  --bg2: #d8d4cb;
  --paper: #f4f1ea;
  --ink: #1a221c;
  --muted: #5a635c;
  --line: rgba(26, 34, 28, .14);
  --brand: #2f4a3c;
  --brand2: #1e3228;
  --copper: #a67c52;
  --copper2: #c4a574;
  --max: 1120px;
  --font: Candara, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Bodoni MT", Didot, "Goudy Old Style", "Songti SC", "Noto Serif SC", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(47, 74, 60, .12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(166, 124, 82, .1), transparent 50%),
    linear-gradient(180deg, #ebe8e1 0%, var(--bg) 40%, #dedad1 100%);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
}
body.is-splash { overflow: hidden; }
body.is-rtl { direction: rtl; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
a { color: inherit; text-decoration: none; }

.loader {
  position: fixed; inset: 0; z-index: 900;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #121a16; color: #efe6d6;
  transition: opacity .45s ease, visibility .45s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; letter-spacing: .18em; font-size: 24px;
  text-transform: uppercase;
}
.loader__tag { color: var(--copper2); font-size: 13px; letter-spacing: .08em; }
.loader__bar {
  width: min(220px, calc(100vw - 48px)); height: 2px;
  background: rgba(196, 165, 116, .18); overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--copper2), #6f8f7a);
}
.loader__pct { font-size: 12px; color: var(--copper2); letter-spacing: .1em; }

.promo {
  text-align: center; padding: 9px 16px;
  background: var(--brand2); color: #efe6d6;
  font-size: 12px; letter-spacing: .08em;
}

.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 32px) 10px;
  background: rgba(230, 227, 220, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; letter-spacing: .12em;
  font-size: 18px; text-transform: uppercase;
}
.logo__mark {
  width: 28px; height: 28px; flex: none;
  background: url("./assets/favicon.svg") center / contain no-repeat;
}
.logo__word { color: var(--ink); }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav__links a { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.nav__links a:hover { color: var(--brand); }
.nav__right { display: flex; align-items: center; gap: 8px; }

.search input {
  background: var(--paper); border: 1px solid #b7b2a6; color: var(--ink);
  border-radius: 4px; padding: 10px 14px; font: inherit; font-size: 16px;
  min-height: 42px; width: min(220px, 28vw);
}
.search--nav { display: none; }
.lang { position: relative; }
.lang__btn {
  background: var(--paper); border: 1px solid #b7b2a6; color: var(--ink);
  border-radius: 4px; cursor: pointer; padding: 8px 12px; font: inherit; font-size: 13px; min-width: 64px;
}
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  list-style: none; min-width: 168px; max-height: min(50vh, 360px); overflow-y: auto;
  padding: 6px; border-radius: 6px; border: 1px solid var(--line); background: #ffffff;
}
.lang__menu li { padding: 10px 12px; border-radius: 4px; cursor: pointer; color: #111827; font-size: 13px; }
.lang__menu li:hover, .lang__menu li[aria-selected="true"] { background: #e8efe9; }

.bag {
  position: relative; width: 44px; height: 44px; border-radius: 4px; cursor: pointer;
  background: var(--paper); border: 1px solid #b7b2a6;
}
.bag__icon {
  position: absolute; left: 13px; top: 14px; width: 16px; height: 12px;
  border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 2px 2px;
}
.bag__icon::before {
  content: ""; position: absolute; left: 2px; top: -6px; width: 8px; height: 7px;
  border: 2px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0;
}
.bag__n {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 2px; background: var(--brand); color: #efe6d6;
  font-size: 10px; line-height: 16px; font-weight: 700;
}
.nav__menu {
  display: none; width: 44px; height: 44px; flex-direction: column;
  justify-content: center; gap: 5px; padding: 10px;
  background: var(--paper); border: 1px solid #b7b2a6; border-radius: 4px; cursor: pointer;
}
.nav__menu span { display: block; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav.is-open .nav__menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__menu span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; padding: 13px 22px; font: inherit; font-weight: 650;
  letter-spacing: .04em; border: 1px solid transparent; cursor: pointer;
}
.btn--solid {
  background: var(--brand); color: #efe6d6;
  border-color: var(--brand2);
}
.btn--solid:hover { background: var(--brand2); }
.btn--ghost {
  background: transparent; border-color: rgba(239, 230, 214, .45); color: #efe6d6;
}
.section .btn--ghost, .drawer .btn--ghost {
  border-color: #b7b2a6; color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid; align-items: end;
  overflow: hidden;
  color: #efe6d6;
}
.hero__media {
  position: absolute; inset: 0; z-index: 0;
  cursor: zoom-in;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  display: block; transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 26, 22, .82) 0%, rgba(18, 26, 22, .55) 42%, rgba(18, 26, 22, .2) 100%),
    linear-gradient(180deg, rgba(18, 26, 22, .25) 0%, rgba(18, 26, 22, .55) 100%);
}
.hero__copy {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 10vw, 96px) clamp(16px, 4vw, 32px) clamp(40px, 7vw, 72px);
  animation: riseIn .8s ease both;
}
.hero__brand {
  font-family: var(--display);
  font-size: clamp(42px, 9vw, 88px);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: .95;
  margin-bottom: 18px;
  color: #efe6d6;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero .kicker {
  color: var(--copper2);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(28px, 4.6vw, 44px);
  max-width: 14ch;
  color: #f7f1e6;
  font-weight: 500;
}
.hero .lead {
  color: rgba(239, 230, 214, .82);
  max-width: 42ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.kicker {
  color: var(--copper);
  letter-spacing: .18em; text-transform: uppercase; font-size: 11px; margin-bottom: 12px;
  font-weight: 700;
}
h1, h2, .card h3 { font-family: var(--display); font-weight: 600; }
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -.01em; }
.lead { margin-top: 14px; color: var(--muted); max-width: 54ch; }
img { display: block; max-width: 100%; height: auto; }

.cats {
  max-width: var(--max); margin: 0 auto; padding: 28px clamp(16px, 4vw, 32px) 8px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.cat {
  flex: 1 1 140px;
  display: grid; gap: 8px; justify-items: center; text-align: center;
  padding: 14px 8px 16px; border-radius: 6px; background: var(--paper);
  border: 1px solid var(--line); cursor: pointer; color: var(--ink);
  font-weight: 650; font-size: 13px; letter-spacing: .04em;
  transition: border-color .2s ease, transform .2s ease;
}
.cat:hover { border-color: var(--copper); transform: translateY(-2px); }
.cat.is-on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cat__img {
  width: 100%; height: 160px; object-fit: contain; border-radius: 4px;
  background: linear-gradient(160deg, #ece8df, #ddd7cc); padding: 8px;
}

.section { padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 32px); }
.section__head { max-width: var(--max); margin: 0 auto 24px; }
.section__head h2 { font-size: clamp(24px, 4vw, 36px); }
.section--alt {
  background:
    linear-gradient(180deg, rgba(47, 74, 60, .06), rgba(47, 74, 60, .1)),
    var(--bg2);
}

.filters { max-width: var(--max); margin: 0 auto 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border-radius: 4px; padding: 9px 14px; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 650; letter-spacing: .03em;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
}
.chip.is-on { background: var(--brand); color: #efe6d6; border-color: var(--brand); }

.grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 16px; display: grid; gap: 8px; cursor: pointer; text-align: left; color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--copper); transform: translateY(-2px); }
.card h3 { font-size: 18px; letter-spacing: .02em; }
.card__meta, .card__note { color: var(--muted); font-size: 13px; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.card__price { font-weight: 800; font-size: 18px; color: var(--brand2); }
.card .btn { height: 44px; padding: 0 14px; font-size: 13px; }
.card__stage {
  height: 420px; border-radius: 4px; overflow: hidden;
  background: linear-gradient(160deg, #ece8df, #ddd7cc); margin-bottom: 6px; cursor: zoom-in;
}
.card__stage img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.bag__thumb { width: 48px; height: 64px; object-fit: contain; border-radius: 4px; background: #ece8df; }
.empty { max-width: var(--max); margin: 12px auto 0; color: var(--muted); }

.form { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea {
  background: #ffffff; border: 1px solid #6a7a70; color: #111827;
  border-radius: 4px; padding: 13px 14px; font: inherit; font-size: 16px;
  -webkit-appearance: none; appearance: none; min-height: 48px;
}
.field select option { background: #ffffff; color: #111827; }
.form__hint { min-height: 1.2em; font-size: 13px; }
.form__hint.ok { color: var(--brand); }
.form__hint.err { color: #b42318; }

.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: 6px; padding: 4px 16px; background: var(--paper); }
.qa summary { cursor: pointer; padding: 12px 0; font-weight: 650; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa p { color: var(--muted); padding: 0 0 14px; font-size: 14px; }

.foot {
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  text-align: center; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line); background: #ddd9d0;
}

.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(18, 26, 22, .5); }
.drawer[hidden], .scrim[hidden] { display: none !important; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 60; width: min(400px, 100vw);
  height: 100%; background: var(--paper);
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--line);
}
body.is-rtl .drawer { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.icon-x {
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; position: relative;
}
.icon-x span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); top: 19px;
}
.icon-x span:first-child { transform: rotate(45deg); }
.icon-x span:last-child { transform: rotate(-45deg); }
.drawer__list { flex: 1; overflow: auto; display: grid; gap: 10px; align-content: start; }
.bag-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.bag-row button {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  width: 32px; height: 32px; cursor: pointer; font: inherit;
}
.drawer__total { display: flex; justify-content: space-between; font-size: 16px; }
.drawer__cta { width: 100%; }

.modal {
  width: min(960px, calc(100vw - 24px)); border: 0; border-radius: 8px; padding: 0;
  background: var(--paper); color: var(--ink); position: relative;
}
.modal::backdrop { background: rgba(18, 26, 22, .55); }
.modal__close { position: absolute; top: 8px; right: 8px; z-index: 2; }
.modal[open] { display: grid; grid-template-columns: 1.1fr .9fr; }
.modal__art {
  background: linear-gradient(160deg, #ece8df, #ddd7cc);
  min-height: 520px; padding: 0; overflow: hidden; cursor: zoom-in;
}
.modal__img { width: 100%; height: 100%; min-height: 520px; object-fit: contain; padding: 20px; }
.modal__copy { padding: 28px 24px; display: grid; gap: 8px; align-content: start; }
.modal__price { font-size: 28px; font-weight: 800; color: var(--brand2); }

.zoom {
  position: relative;
  width: min(720px, calc(100vw - 16px)); max-height: 92vh;
  border: 0; border-radius: 8px; padding: 40px 12px 12px;
  background: #ece8df; color: var(--ink);
}
.zoom::backdrop { background: rgba(18, 26, 22, .72); }
.zoom img { width: 100%; height: min(82vh, 900px); object-fit: contain; }
.zoom__close { position: absolute; top: 8px; right: 8px; }

body.is-rtl .lang__menu { right: auto; left: 0; }
body.is-rtl .nav__links { margin-left: 0; margin-right: auto; }
body.is-rtl .hero__veil {
  background:
    linear-gradient(270deg, rgba(18, 26, 22, .82) 0%, rgba(18, 26, 22, .55) 42%, rgba(18, 26, 22, .2) 100%),
    linear-gradient(180deg, rgba(18, 26, 22, .25) 0%, rgba(18, 26, 22, .55) 100%);
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .search--desk { display: none; }
  .search--nav { display: block; width: 100%; }
  .search--nav input { width: 100%; }
  .nav__menu { display: flex; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 16px;
    background: rgba(230, 227, 220, .98); border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 16px; }
  .hero { min-height: min(88vh, 720px); align-items: end; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(18, 26, 22, .35) 0%, rgba(18, 26, 22, .78) 55%, rgba(18, 26, 22, .9) 100%);
  }
  .hero__brand { letter-spacing: .1em; }
  .cats { flex-direction: column; }
  .cat { flex: 1 1 auto; width: 100%; }
  .cat__img { width: 100%; height: 220px; }
  .card__stage { height: min(520px, 88vw); }
  .grid { grid-template-columns: 1fr; }
  .modal__art, .modal__img { min-height: 420px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn, .card .btn, .drawer__cta { width: 100%; height: 48px; }
  .modal[open] { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
