:root {
  color-scheme: dark;
  --ivory: #100e0c;
  --paper: #1b1815;
  --ink: #f4efe6;
  --muted: #b3a89c;
  --line: rgba(244, 239, 230, 0.16);
  --gold: #d4b483;
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Cormorant Garamond", Palatino, serif;
  --wrap: min(1180px, calc(100% - 80px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: #d4b483; color: #100e0c; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

#safariGate {
  display: none;
  min-height: 100vh;
  margin: 0;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--ivory);
  color: var(--ink);
  text-align: center;
}
.gate-inner { max-width: 460px; }
#safariGate h1 {
  margin: 10px 0 14px;
  font-size: clamp(48px, 7vw, 76px);
  line-height: 0.95;
}
#safariGate .gate-inner > p { margin: 0; color: var(--muted); }
#safariGate .btn { margin-top: 28px; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wrap { width: var(--wrap); margin: 0 auto; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.03em; }
h1 { margin: 0; font-size: clamp(48px, 6vw, 88px); line-height: 1.05; }
h2 { margin: 0; font-size: clamp(32px, 4vw, 46px); line-height: 1.2; }
h3 { margin: 0; font-size: 22px; line-height: 1.35; }
p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
}
.btn.solid { background: var(--ink); color: #100e0c; }
.btn.solid:hover { background: #fff; color: #100e0c; }
.btn.line:hover { background: var(--ink); color: #100e0c; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 14, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 22px; min-height: 68px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { filter: invert(1) brightness(1.2); }
.logo span, .logo-foot {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}
h1 { font-family: var(--display); letter-spacing: -0.02em; }
.logo small {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.nav-links { display: flex; gap: 16px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-size: 13px; letter-spacing: 0.06em; }
.lang-switch { display: flex; align-items: center; }
.lang-switch select {
  background: transparent;
  border: 1px solid var(--line);
  min-height: 36px;
  padding: 0 8px;
  color: inherit;
  letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 16px; height: 1px; background: var(--ink); }

.hero { min-height: calc(100vh - 68px); display: flex; flex-direction: column; }
.hero-copy {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 36px;
  align-items: end;
  padding: 36px 0 22px;
}
.hero-aside p { color: var(--muted); font-size: 15px; }
.hero-film { margin-top: 10px; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 520px;
  background: #0c0b0a;
  overflow: hidden;
  cursor: pointer;
  --cage-x: 14%;
  --cage-y: 18%;
  --cage-s: 12%;
}
.stage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0c0b0a;
}
video.stage-photo { pointer-events: none; }
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.28) 100%);
  z-index: 1;
}
#cage {
  position: absolute;
  z-index: 2;
  left: var(--cage-x, 50%);
  top: var(--cage-y, 50%);
  width: var(--cage-s, 18.5%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.stage-ui {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 36px 28px 14px;
  color: #f6f1e8;
  letter-spacing: 0.14em;
  font-size: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
}
.stage-ui button {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.5);
  min-height: 32px;
  padding: 0 10px;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.stage-ui button:hover { background: rgba(255, 255, 255, 0.12); }
.stage-label { margin-left: auto; }
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: #e0c48a;
  transform: scaleX(0);
  transform-origin: left center;
}

.cats { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cats button {
  flex: 1 1 12%;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  min-height: 48px;
  letter-spacing: 0.08em;
  font-size: 12px;
  cursor: pointer;
}
.editorial { padding: 72px 0 12px; }
.editorial-head { margin-bottom: 22px; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.editorial figure { margin: 0; }
.editorial img {
  width: 100%;
  height: min(78vh, 820px);
  object-fit: cover;
  object-position: center 15%;
  background: #e4ddd2;
}
.editorial figcaption {
  margin-top: 12px;
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
}
.cats button:last-child { border-right: none; }
.cats button:hover,
.cats button[aria-pressed="true"] { background: var(--ink); color: #100e0c; }

.section { padding: 84px 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 8px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p, .sell > div > p, .contact > div > p { color: var(--muted); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  align-items: end;
  margin-top: 28px;
}
.tabs { display: flex; border: 1px solid var(--line); }
.tabs button {
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
  letter-spacing: 0.08em;
  font-size: 14px;
}
.tabs button:last-child { border-right: none; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #100e0c; }
.select { display: grid; gap: 4px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.select select, .search input, form input, form select, form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  min-height: 40px;
  padding: 8px 0;
  width: 100%;
}
.select select { min-width: 112px; }
.search { margin-left: auto; min-width: 200px; }
.search input { width: 200px; }
.result { margin: 14px 0 0; color: var(--muted); font-size: 13px; letter-spacing: 0.06em; }
.block-title {
  margin: 28px 0 14px;
  font-size: 14px;
  letter-spacing: 0.16em;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--muted);
}
.cabinet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 22px;
}
.card {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.card-media {
  position: relative;
  background: #e8e3db;
  aspect-ratio: 1;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover img { transform: scale(1.035); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  background: rgba(244, 239, 230, 0.92);
  color: #141210;
  border: 1px solid transparent;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.badge.limit { color: #6d5430; }
.card-body { padding-top: 12px; }
.card-brand { margin: 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin: 4px 0; font-size: 22px; }
.card-en { margin: 0; font-family: var(--display); font-style: italic; color: var(--muted); font-size: 16px; }
.card-meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.card-price { margin: 8px 0 0; letter-spacing: 0.04em; }

.book-head, .book-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1.5fr) 72px 72px 120px 28px;
  gap: 12px;
  align-items: center;
}
.book-head {
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.book-row {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.book-row:last-child { border-bottom: 1px solid var(--line); }
.book-row:hover { background: rgba(255, 255, 255, 0.05); }
.book-row strong { font-family: var(--serif); font-weight: 500; font-size: 18px; display: block; }
.book-row em { font-style: normal; font-family: var(--display); font-style: italic; color: var(--muted); }
.go { color: var(--gold); }

.sell, .contact {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 64px;
  align-items: start;
}
.ticks { margin: 22px 0 0; padding: 0; list-style: none; }
.ticks li { padding: 10px 0; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.form-grid .full { grid-column: 1 / -1; }
form label { display: grid; gap: 4px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
form textarea { min-height: 96px; resize: vertical; }
form .btn { margin-top: 18px; }
.form-status { min-height: 1.4em; margin-top: 12px; font-size: 14px; }
.form-status[data-tone="bad"] { color: #e7a598; }
.form-status[data-tone="ok"] { color: var(--ink); }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}
.services article { background: var(--paper); padding: 28px 24px 32px; }
.services span {
  display: block;
  margin-bottom: 18px;
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 20px;
}
.services p { margin-top: 8px; color: var(--muted); }

.faq-wrap { max-width: 800px; }
.faq { margin-top: 12px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 22px;
}
.faq-item button::after { content: "+"; float: right; color: var(--gold); }
.faq-item button[aria-expanded="true"]::after { content: "–"; }
.faq-item div { padding: 0 0 18px; color: var(--muted); max-width: 62ch; }

.facts { margin: 28px 0 0; }
.facts div { display: grid; grid-template-columns: 108px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }

.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.footer-inner { display: grid; grid-template-columns: 180px 1fr; gap: 18px 32px; align-items: start; }
.footer nav { display: flex; gap: 18px; }
.footer nav a { text-decoration: none; letter-spacing: 0.08em; font-size: 14px; }
.legal { grid-column: 1 / -1; color: var(--muted); font-size: 12px; max-width: 78ch; }
.empty { margin-top: 24px; color: var(--muted); }

.piece {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  margin: auto;
  padding: 0;
  border: none;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}
.piece::backdrop { background: rgba(0, 0, 0, 0.62); }
.piece-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
  letter-spacing: 0.08em;
}
.piece-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; }
.piece-visual { background: #e8e3db; min-height: 100%; }
.piece-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.plate {
  min-height: 420px;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 40%),
    #e7e1d8;
}
.plate strong { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: 0.06em; }
.plate span { display: block; margin-top: 8px; color: var(--muted); letter-spacing: 0.12em; }
.piece-info { padding: 36px 32px 32px; position: relative; }
.piece-en { font-family: var(--display); font-style: italic; color: var(--muted); font-size: 20px; margin-top: 4px; }
.piece-price { margin: 14px 0; font-size: 20px; letter-spacing: 0.04em; }
.piece-note { color: var(--muted); }
.piece-info dl {
  display: grid;
  grid-template-columns: minmax(108px, 34%) 1fr;
  gap: 8px 12px;
  margin: 18px 0;
  font-size: 14px;
}
.piece-info dt { color: var(--muted); }
.fine { color: var(--muted); font-size: 12px; margin-bottom: 16px; }

@media (max-width: 980px) {
  :root { --wrap: calc(100% - 40px); }
  .hero-copy, .sell, .contact, .piece-layout, .footer-inner, .editorial-grid { grid-template-columns: 1fr; }
  .editorial img { height: 78vw; min-height: 420px; }
  .cabinet { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .search { margin-left: 0; }
  .footer nav { grid-column: 1; }
}
@media (max-width: 1100px) {
  .nav-cta { display: none; }
  .lang-switch { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0 18px;
    background: #161410;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .cats { overflow-x: auto; }
  .cats button { flex: 0 0 auto; padding: 0 16px; }
}
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .stage { flex: none; height: 78vw; min-height: 280px; }
}
@media (max-width: 680px) {
  .cabinet, .services, .form-grid { grid-template-columns: 1fr; }
  .book-head { display: none; }
  .book-row { grid-template-columns: 1fr auto; }
  .book-row .hide-sm { display: none; }
  .stage-label { display: none; }
  h1 { font-size: 44px; }
}
