:root {
  --ink: #0c0b09;
  --graphite: #161310;
  --coal: #221e19;
  --card: #1a1612;
  --gold: #e0b15a;
  --gold-deep: #c4922a;
  --gold-soft: rgba(224, 177, 90, 0.38);
  --cream: #f6f1e7;
  --smoke: #b7aa9b;
  --line: rgba(246, 241, 231, 0.12);
  --header: 86px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--cream);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(196, 92, 38, 0.18), transparent 55%),
    radial-gradient(700px 380px at -10% 30%, rgba(224, 177, 90, 0.06), transparent 50%),
    var(--ink);
}
#embers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero, main, .footer { position: relative; z-index: 1; }
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: #1a1408;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.wrap { width: min(1560px, calc(100% - 40px)); margin: 0 auto; }
h1, h2, h3, p { overflow-wrap: break-word; }

.script {
  margin: 0;
  font-family: "Marck Script", cursive;
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: calc(var(--header) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  background: rgba(12, 11, 9, 0.72);
  backdrop-filter: blur(16px);
}
.header.is-solid {
  background: rgba(12, 11, 9, 0.94);
  border-bottom-color: var(--gold-soft);
}
.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.menu-btn, .icon-btn, .cart-btn {
  border: 1px solid var(--gold-soft);
  background: rgba(22, 19, 16, 0.8);
  color: var(--cream);
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
}
.menu-btn { width: 44px; flex-direction: column; gap: 5px; padding: 0; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  position: relative;
  content: "";
  transition: transform .4s ease, top .4s ease, background-color .25s ease;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-logo { height: 78px; width: auto; display: block; flex: none; }
.brand-name {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 32px;
  line-height: 0.9;
  color: var(--cream);
  white-space: nowrap;
}
.brand-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand-line {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.brand-sub, .brand-tag {
  display: block;
  color: var(--smoke);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
}
.phones { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.phones a { text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: 0.01em; }
.phones a:hover { color: var(--gold); }
.cart-count {
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  background: var(--gold);
  color: #1a1408;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.cart-label { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.hero {
  position: relative;
  min-height: 620px;
  height: min(820px, calc(100svh - var(--header)));
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.84) 0%, rgba(8, 7, 6, 0.55) 34%, rgba(8, 7, 6, 0.08) 62%, rgba(8, 7, 6, 0.05) 100%),
    url("../images/hero.jpg") right top / cover no-repeat;
}
.hero-inner { padding: 48px 0 36px; max-width: min(760px, 100%); }
.hero h1 {
  margin: 10px 0 16px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(46px, 11vw, 112px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero h1 span {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 0.34em;
  letter-spacing: 0.08em;
  line-height: 1.15;
}
.hero-lead { margin: 0 0 22px; max-width: 58ch; font-size: 18px; line-height: 1.5; color: #efe7da; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #1a1408;
  min-height: 48px;
  padding: 0 18px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn.line { background: transparent; color: var(--cream); }
.btn:hover { background: #f0c56d; }
.btn.line:hover { background: rgba(224, 177, 90, 0.12); }
.btn:focus-visible, .icon-btn:focus-visible, .menu-btn:focus-visible, .rail button:focus-visible, .drawer button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.perk {
  border: 1px solid var(--gold-soft);
  background: rgba(12, 11, 9, 0.55);
  padding: 14px 14px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.perk svg { width: 28px; height: 28px; flex: none; }
.perk strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }

.rail {
  position: sticky;
  top: calc(var(--header) + env(safe-area-inset-top));
  z-index: 30;
  background: rgba(12, 11, 9, 0.94);
  border-bottom: 1px solid var(--gold-soft);
  backdrop-filter: blur(12px);
}
.rail-inner {
  display: flex;
  justify-content: center;
  justify-content: safe center;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}
.rail-inner::-webkit-scrollbar { display: none; }
.rail button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--smoke);
  white-space: nowrap;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}
.rail button.is-active { color: #1a1408; background: var(--gold); }

.section, .group-title, .card { scroll-margin-top: 128px; }
.section { padding: 34px 0 8px; }
.section-head { margin-bottom: 16px; max-width: 760px; }
.section h2 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
}
.lead { margin: 8px 0 0; color: var(--smoke); line-height: 1.5; }
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}
.group-title {
  margin: 18px 0 10px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--gold);
}
.note {
  border: 1px dashed var(--gold-soft);
  padding: 18px;
  color: var(--smoke);
}

.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.grid.boxes { grid-template-columns: 1fr; }
.section.highlight {
  margin-top: 18px;
  background:
    linear-gradient(180deg, rgba(224, 177, 90, 0.08), transparent 90px),
    #120f0c;
  border-block: 1px solid var(--gold-soft);
  padding-bottom: 22px;
}

.card {
  background: linear-gradient(180deg, #221c16, #14110e);
  border: 1px solid var(--gold-soft);
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
  padding: 0;
  color: inherit;
}
.card:hover { border-color: var(--gold); }
.card-photo { aspect-ratio: 1 / 1; overflow: hidden; background: #1a1612; display: grid; }
.card-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.desc, .comp { margin: 0; color: var(--smoke); font-size: 13px; line-height: 1.35; }
.desc, .comp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comp span { color: var(--gold); }
.meta { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding-top: 4px; }
.meta b { font-family: "Cormorant Garamond", "Times New Roman", serif; font-size: 22px; color: var(--gold); font-weight: 600; }
.meta span { color: var(--smoke); font-size: 13px; }
.card-action { display: flex; }
.card-action .btn, .stepper { width: 100%; }
.stepper { display: flex; border: 1px solid var(--gold); min-height: 44px; }
.stepper button { flex: 0 0 44px; border: 0; background: transparent; color: var(--gold); font-size: 22px; }
.stepper span { flex: 1; display: grid; place-items: center; font-weight: 800; }

.backdrop, .drawer, .cart, .sheet {
  position: fixed;
  inset: 0;
}
.backdrop {
  z-index: 45;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s ease;
}
.backdrop.is-open { opacity: 1; pointer-events: auto; }
.backdrop[hidden], .drawer[hidden], .cart[hidden], .sheet[hidden] { display: none; }
.drawer, .cart, .sheet { z-index: 50; pointer-events: none; }
.drawer-panel {
  transform: translateX(-105%);
  transition: transform .46s cubic-bezier(.22, .8, .24, 1);
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-panel, .cart-panel, .sheet-panel {
  pointer-events: auto;
  background: #14110e;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-color: var(--gold-soft);
  border-style: solid;
}
.drawer-panel { width: min(360px, 88vw); border-right-width: 1px; }
.cart-panel { margin-left: auto; width: min(440px, 100%); border-left-width: 1px; }
.sheet-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  height: min(100%, 920px);
  border-width: 1px;
}
.panel-head, .cart-foot { padding: 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-foot { border-bottom: 0; border-top: 1px solid var(--line); display: block; }
.panel-head h2, .sheet-panel h2 { margin: 0; font-family: "Cormorant Garamond", "Times New Roman", serif; letter-spacing: 0.06em; text-transform: uppercase; }
.drawer-panel, .cart-panel, .sheet-panel { overflow: auto; }
.drawer-body, .cart-body, .sheet-body { padding: 8px 16px 24px; }
.phone-pop {
  position: fixed;
  top: calc(var(--header) + 8px);
  right: 16px;
  z-index: 70;
  width: min(280px, calc(100% - 32px));
  background: #14110e;
  border: 1px solid var(--gold-soft);
  padding: 14px;
  display: grid;
  gap: 10px;
}
.field select { width: 100%; background: #0e0c0a; border: 1px solid var(--gold-soft); padding: 12px; font-size: 16px; }
.field input[type="checkbox"] { width: auto; justify-self: start; }
.admin-page h1 { margin: 0; font-family: "Cormorant Garamond", "Times New Roman", serif; letter-spacing: 0.04em; text-transform: uppercase; font-size: 28px; }
.nav-link, .sub-link {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  padding: 13px 2px;
  font-size: 16px;
  font-weight: 700;
}
.sub-link { padding-left: 14px; color: var(--smoke); font-weight: 600; font-size: 14px; }
.nav-link:hover, .sub-link:hover { color: var(--gold); }
.drawer-foot { padding: 16px; color: var(--smoke); font-size: 13px; }

.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 72px; height: 72px; object-fit: cover; }
.cart-item h3 { margin: 0 0 4px; font-size: 15px; }
.cart-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.muted { color: var(--smoke); font-size: 13px; }
.total { display: flex; justify-content: space-between; font-family: "Cormorant Garamond", "Times New Roman", serif; font-size: 28px; margin: 8px 0; }
.ways { display: grid; gap: 8px; }
.field { display: grid; gap: 6px; margin-bottom: 10px; }
.field span { font-size: 13px; color: var(--smoke); }
.field input, .field textarea, .field select {
  width: 100%;
  max-width: 100%;
  background: #0e0c0a;
  border: 1px solid var(--gold-soft);
  padding: 12px;
  outline: none;
  font-size: 16px;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-text {
  white-space: pre-wrap;
  background: #0e0c0a;
  border: 1px solid var(--gold-soft);
  padding: 12px;
  line-height: 1.45;
}
.toast {
  position: fixed;
  top: calc(var(--header) + 16px);
  right: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(320px, calc(100% - 32px));
  padding: 12px 16px;
  color: var(--cream);
  background: rgba(16, 12, 8, 0.94);
  border: 1px solid rgba(224, 177, 90, 0.72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 22px rgba(196, 92, 24, 0.22);
  font-weight: 700;
  letter-spacing: 0.01em;
  animation: toast-in 0.35s ease;
}
.toast::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #f0c56d;
  box-shadow: 0 0 10px #e07a32;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

.product { display: grid; gap: 16px; }
.product img { width: 100%; max-height: 520px; object-fit: contain; background: #1a1612; }
.product h3 { margin: 0; font-family: "Cormorant Garamond", "Times New Roman", serif; font-size: 32px; letter-spacing: 0.03em; text-transform: uppercase; }
.product .price { font-family: "Cormorant Garamond", "Times New Roman", serif; color: var(--gold); font-size: 32px; }

.about { display: grid; gap: 22px; align-items: start; padding-bottom: 28px; }
.about-kicker { margin: 0 0 4px; color: var(--gold); font-weight: 700; line-height: 1.45; }
.about h2 { max-width: 18em; }
.about-photo {
  min-height: 280px;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  background: #120f0c;
}
.about-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
  transform-origin: center 40%;
}
.about p { line-height: 1.6; color: #efe7da; }

.footer { border-top: 1px solid var(--gold-soft); padding: 28px 0 18px; background: rgba(16, 14, 12, 0.78); }
.footer-grid { display: grid; gap: 18px; }
.footer h2 { font-family: "Cormorant Garamond", "Times New Roman", serif; letter-spacing: 0.06em; margin: 0 0 8px; }
.footer a { color: var(--gold); }
.map-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  background: #120f0c;
}
.map-card iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}
.map-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 28px 16px 12px;
  text-decoration: none;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(12, 11, 9, 0.92));
}
.map-caption strong { font-family: "Cormorant Garamond", serif; font-size: 32px; font-weight: 600; line-height: 1; }
.map-caption em { color: var(--gold); font-style: normal; font-weight: 800; letter-spacing: 0.04em; }
.legal { color: var(--smoke); font-size: 12px; line-height: 1.5; }
.admin-link { color: var(--smoke); font-size: 13px; }

.admin-page { padding: 24px 0 48px; }
.admin-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.admin-list { display: grid; gap: 14px; }
.admin-card { border: 1px solid var(--gold-soft); padding: 12px; background: #16130f; }
.admin-card h3 { margin: 0 0 8px; font-size: 16px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.banner { border: 1px solid var(--gold-soft); padding: 12px; margin-bottom: 14px; color: var(--smoke); }

.cart-foot, .drawer-body, .sheet-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.product .btn { width: 100%; }

@media (max-width: 800px) {
  :root { --header: 60px; }
  .wrap { width: min(1180px, calc(100% - 24px)); }
  .brand-sub, .brand-tag, .phones, .cart-label { display: none; }
  .brand-logo { height: 48px; }
  .brand-name { font-size: 22px; letter-spacing: 0.05em; }
  .brand-line { font-size: 11px; }
  .header-inner, .header-tools { gap: 8px; }
  .cart-btn, .icon-btn { padding: 0 10px; }
  .script { font-size: 22px; }
  .hero {
    align-items: flex-start;
    height: auto;
    min-height: 0;
    background-color: #0c0b09;
    background:
      linear-gradient(180deg, rgba(8, 7, 6, 0.18) 0%, rgba(8, 7, 6, 0.08) 34vw, rgba(12, 11, 9, 0.82) 50vw, #0c0b09 58vw),
      url("../images/hero.jpg") center top / 100% auto no-repeat;
  }
  .hero-inner { padding: 46vw 0 calc(12px + env(safe-area-inset-bottom)); }
  .hero h1 { font-size: clamp(42px, 13vw, 68px); }
  .hero h1 span { margin-top: 6px; font-size: 0.4em; letter-spacing: 0.04em; }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .perks { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .perk { padding: 10px 12px; }
  .perk strong { font-size: 13px; }
  .section { padding: 26px 0 4px; }
  .section, .group-title, .card { scroll-margin-top: 116px; }
  .form-grid, .admin-grid, .about { grid-template-columns: 1fr; }
  .about-photo, .about-photo img { height: 240px; min-height: 240px; transform: none; }
  .footer .btn, .map-card { width: 100%; }
  .drawer-panel, .cart-panel, .sheet-panel {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
  }
  .cart-panel { border-left-width: 0; }
  .sheet-panel { border-width: 0; margin: 0; }
  .phone-pop { left: 12px; right: 12px; width: auto; top: calc(var(--header) + env(safe-area-inset-top) + 8px); }
  .toast { left: 12px; right: 12px; top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: none; }
  .product h3, .product .price { font-size: 28px; }
  .total { font-size: 24px; }
}
@media (min-width: 640px) and (max-width: 800px) {
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; }
  .perks { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid.boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .grid.boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 801px) {
  .about { grid-template-columns: 1.05fr 0.95fr; align-items: stretch; }
  .footer-grid { grid-template-columns: 1.1fr 0.9fr 1fr; }
  .product { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .about-photo { position: relative; min-height: 100%; overflow: hidden; }
  .about-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    min-width: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 68% 46%;
    transform: scale(1.04);
    transform-origin: 68% 46%;
  }
}
@media (min-width: 1440px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .brand-logo { height: 42px; }
  .brand-name { font-size: 18px; }
  .menu-btn, .icon-btn, .cart-btn { min-width: 40px; height: 40px; }
  .hero h1 { font-size: 40px; }
  .meta b { font-size: 20px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; height: auto; align-items: center; }
  .perks { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer-panel, .backdrop, .menu-btn span, .menu-btn span::before, .menu-btn span::after { transition: none !important; }
}
