:root {
  color-scheme: light;
  --paper: #f3eee6;
  --paper-deep: #e8dfd3;
  --surface: #fffdf9;
  --surface-soft: #f8f4ed;
  --ink: #1d1b19;
  --muted: #6e675f;
  --line: #d9cfc2;
  --stone: #333230;
  --stone-2: #56534f;
  --moss: #365f49;
  --moss-dark: #244635;
  --moss-soft: #e4eee8;
  --bronze: #9b6b31;
  --bronze-soft: #f1e5d3;
  --danger: #9e3f35;
  --warning: #8b5a17;
  --shadow: 0 18px 55px rgba(45, 36, 28, .11);
  --radius: 24px;
  --radius-sm: 16px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.58 var(--sans);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
:focus-visible { outline: 3px solid rgba(54, 95, 73, .35); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: 72px 0; }
.section.compact { padding: 42px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head h2, .page-title, .display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.section-head h2 { max-width: 720px; font-size: clamp(2rem, 4vw, 3.5rem); }
.section-head p { max-width: 520px; margin: 0; color: var(--muted); }
.display { max-width: 760px; font-size: clamp(2.6rem, 6.8vw, 6rem); }
.page-title { font-size: clamp(2.3rem, 5.5vw, 4.8rem); }
.lede { max-width: 720px; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.28rem); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--moss);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 1px; background: currentColor; content: ""; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.kicker {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}
.kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--moss); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(90, 77, 65, .12);
  background: rgba(243, 238, 230, .88);
  backdrop-filter: blur(18px) saturate(1.2);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--stone);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.25rem;
}
.brand-copy { display: grid; line-height: 1.06; }
.brand-copy strong { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255,255,255,.72); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .menu-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  cursor: pointer;
}
.menu-btn { display: none; }
.favorite-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--stone);
  color: white;
  font-size: .7rem;
  font-weight: 800;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); border-color: #bdae9d; }
.button.primary { border-color: var(--moss); background: var(--moss); color: white; }
.button.primary:hover { background: var(--moss-dark); }
.button.dark { border-color: var(--stone); background: var(--stone); color: white; }
.button.soft { border-color: transparent; background: var(--moss-soft); color: var(--moss-dark); }
.button.ghost { border-color: transparent; background: transparent; }
.button[disabled] { opacity: .46; cursor: not-allowed; transform: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero { padding: 30px 0 58px; }
.hero-grid {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-copy { padding: clamp(34px, 6vw, 76px); display: flex; flex-direction: column; justify-content: center; }
.hero-copy .lede { margin: 24px 0 28px; }
.hero-visual { position: relative; min-height: 420px; overflow: hidden; background: var(--stone); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.hero-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(29,27,25,.08), transparent 40%), linear-gradient(0deg, rgba(16,15,14,.55), transparent 45%);
  content: "";
}
.hero-caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  color: white;
}
.hero-caption strong { max-width: 360px; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.16; }
.preview-label { padding: 7px 10px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; background: rgba(24,23,22,.48); font-size: .74rem; font-weight: 850; letter-spacing: .08em; }
.hero-search {
  display: flex;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(39,32,25,.09);
}
.hero-search input { min-width: 0; flex: 1; padding: 0 13px; border: 0; outline: 0; background: transparent; font-size: 1rem; }
.hero-search .button { min-width: 104px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; color: var(--muted); font-size: .82rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row span::before { width: 16px; height: 1px; background: var(--moss); content: ""; }

.notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #d9c5a8;
  border-radius: var(--radius-sm);
  background: var(--bronze-soft);
}
.notice-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bronze);
  color: white;
  font-weight: 900;
}
.notice p { margin: 3px 0 0; color: #6f5433; font-size: .88rem; }
.notice strong { display: block; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(45,36,28,.09); }
.category-number { color: var(--bronze); font-family: var(--serif); font-size: 2.2rem; }
.category-card h3 { margin: auto 0 5px; font-family: var(--serif); font-size: 1.42rem; font-weight: 500; }
.category-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.category-card.featured { background: var(--stone); color: white; }
.category-card.featured p { color: #ccc7c0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.step { min-height: 230px; padding: 25px; background: var(--surface); }
.step b { display: block; margin-bottom: 46px; color: var(--bronze); font-family: var(--serif); font-size: 2.2rem; font-weight: 400; }
.step h3 { margin: 0 0 8px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: .88rem; }

.route-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.route-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.route-card .route-code { color: var(--bronze); font: 700 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.route-card h3 { margin: 16px 0 8px; font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
.route-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.route-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.route-card li { padding: 9px 0; border-top: 1px solid var(--line); font-size: .86rem; }

.page-hero { padding: 62px 0 34px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs span::before { margin-right: 8px; content: "·"; }
.page-hero .lede { margin: 22px 0 0; }
.toolbar {
  position: sticky;
  top: 76px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,253,249,.9);
  box-shadow: 0 10px 30px rgba(43,35,29,.08);
  backdrop-filter: blur(14px);
}
.toolbar-search { position: relative; min-width: 220px; flex: 1; }
.toolbar input, .field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  outline: none;
}
.toolbar input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(54,95,73,.12); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chip {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 750;
  cursor: pointer;
}
.chip.active { border-color: var(--moss); background: var(--moss); color: white; }
.results-meta { display: flex; justify-content: space-between; gap: 16px; margin: 22px 0 14px; color: var(--muted); font-size: .86rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.product-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.025); }
.product-card-body { padding: 18px; }
.product-card h2, .product-card h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 1.34rem; font-weight: 500; }
.product-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.product-actions { display: flex; gap: 8px; margin-top: 16px; }
.product-actions .button { min-height: 42px; flex: 1; padding: 0 12px; font-size: .84rem; }
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}
.pager .button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
}
.pager-gap { color: var(--muted); padding: 0 2px; font-size: 1.1rem; }
.heart {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  cursor: pointer;
}
.heart[aria-pressed="true"] { background: var(--moss); color: white; }
.price-placeholder { display: inline-block; margin-top: 10px; color: var(--moss-dark); font-size: .8rem; font-weight: 750; }
.card-specs { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.card-specs li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.card-specs span { color: var(--muted); }
.card-specs strong { font-weight: 700; text-align: right; }
.product-card { position: relative; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 12px; }
.mobile-bar { position: sticky; bottom: 0; z-index: 20; display: none; grid-template-columns: 1fr 1fr; background: var(--surface); border-top: 1px solid var(--line); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px 14px; font-size: .78rem; }
@media (max-width: 720px) {
  .mobile-bar { display: grid; }
  .card-specs li { font-size: .78rem; }
}
.empty-search { display: none; padding: 42px; border: 1px dashed #bbae9e; border-radius: var(--radius); text-align: center; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 24px; align-items: start; }
.gallery-main { position: relative; overflow: hidden; border-radius: 28px; background: var(--stone); }
.gallery-main img { width: 100%; min-height: 540px; object-fit: cover; }
.gallery-main .preview-label { position: absolute; left: 18px; bottom: 18px; color: white; }
.detail-panel {
  position: sticky;
  top: 104px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.detail-panel h1 { margin: 10px 0 14px; font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.05; font-weight: 500; }
.facts { display: grid; gap: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 120px 1fr; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.fact span:first-child { color: var(--muted); }
.safe-note { padding: 15px; border-radius: 14px; background: var(--bronze-soft); color: #654a2a; font-size: .84rem; }

.flow-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.side-steps { position: sticky; top: 104px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.side-step { display: flex; gap: 11px; padding: 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.side-step:last-child { border: 0; }
.side-step b { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; font-size: .72rem; }
.side-step.active { color: var(--ink); background: var(--moss-soft); }
.side-step.active b { border-color: var(--moss); background: var(--moss); color: white; }
.form-card { padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.form-card + .form-card { margin-top: 16px; }
.form-card h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.form-card > p { margin: 0 0 22px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label, .field-label { font-size: .84rem; font-weight: 760; }
.field small { color: var(--muted); font-size: .75rem; }
.field textarea { min-height: 112px; resize: vertical; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; color: var(--muted); font-size: .84rem; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--moss); }
.upload {
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px dashed #aa9d8e;
  border-radius: 18px;
  background: var(--surface-soft);
  text-align: center;
}
.upload input { max-width: 100%; }
.portrait-preview {
  width: 68px;
  height: 68px;
  display: none;
  margin: 0 auto 10px;
  border: 3px solid white;
  border-radius: 50%;
  background: #bbb center/cover;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.selection-list { display: grid; gap: 10px; }
.selection-row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.selection-row img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.selection-row h3 { margin: 0; font-size: .92rem; }
.selection-row p { margin: 2px 0 0; color: var(--muted); font-size: .75rem; }

.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.preview-card { position: relative; min-height: 290px; overflow: hidden; border-radius: 18px; background: var(--stone); }
.preview-card img { width: 100%; height: 100%; object-fit: cover; }
.preview-card:nth-child(2) img { object-position: 73% center; transform: scale(1.08); }
.preview-card:nth-child(3) img { object-position: 44% center; transform: scale(1.15); }
.preview-card::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,.7), transparent 60%); content: ""; }
.preview-watermark {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  color: rgba(255,255,255,.62);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: .2em;
  transform: translate(-50%,-50%) rotate(-18deg);
}
.preview-copy { position: absolute; right: 15px; bottom: 15px; left: 15px; z-index: 3; color: white; }
.preview-copy strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.preview-copy small { opacity: .82; }

.success-box { display: none; padding: 26px; border: 1px solid #abc7b7; border-radius: 20px; background: var(--moss-soft); }
.success-box.show { display: block; }
.status-board { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.order-card, .timeline, .document-card, .admin-card, .content-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.order-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.order-head h2 { margin: 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.status-pill { padding: 7px 10px; border-radius: 999px; background: var(--bronze-soft); color: #6a4a21; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.timeline { margin-top: 14px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { position: absolute; top: 23px; bottom: 0; left: 11px; width: 1px; background: var(--line); content: ""; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: .68rem; }
.timeline-item.done .timeline-dot { border-color: var(--moss); background: var(--moss); color: white; }
.timeline-item.current .timeline-dot { border: 6px solid var(--moss-soft); background: var(--moss); box-shadow: 0 0 0 1px var(--moss); }
.timeline-item h3 { margin: 1px 0 3px; font-size: .92rem; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .8rem; }
.document-card + .document-card { margin-top: 12px; }
.document-card h3 { margin: 0 0 5px; font-size: .95rem; }
.document-card p { margin: 0 0 14px; color: var(--muted); font-size: .82rem; }
.hold-box { padding: 18px; border: 1px solid #d6b480; border-radius: 18px; background: #fff7e9; }
.hold-box h3 { margin: 0 0 5px; color: #6b491d; }
.hold-box p { margin: 0 0 15px; color: #765d3b; font-size: .84rem; }

.admin-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 18px; }
.admin-nav { position: sticky; top: 104px; align-self: start; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.admin-nav a { display: block; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-size: .85rem; font-weight: 700; text-decoration: none; }
.admin-nav a.active { background: var(--moss-soft); color: var(--moss-dark); }
.admin-card + .admin-card { margin-top: 14px; }
.admin-card h2 { margin: 0 0 16px; font-family: var(--serif); font-size: 1.65rem; font-weight: 500; }
.model-choice { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.model-option { position: relative; display: grid; gap: 6px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.model-option:has(input:checked) { border-color: var(--moss); background: var(--moss-soft); }
.model-option input { position: absolute; top: 12px; right: 12px; accent-color: var(--moss); }
.model-option strong { padding-right: 24px; }
.model-option span { color: var(--muted); font-size: .76rem; }
.branch-view { margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--surface-soft); }
.branch-view h3 { margin: 0 0 7px; font-size: .95rem; }
.branch-view p { margin: 0; color: var(--muted); font-size: .82rem; }

.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 34px; align-items: start; }
.article { padding: clamp(24px,4vw,44px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.article h2 { margin: 1.7em 0 .5em; font-family: var(--serif); font-size: clamp(1.7rem,3vw,2.35rem); font-weight: 500; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 1.4em 0 .4em; }
.article p, .article li { color: #4e4943; }
.article ul, .article ol { padding-left: 1.25em; }
.article li { margin: 8px 0; }
.toc { position: sticky; top: 104px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.toc strong { display: block; margin-bottom: 9px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); font-size: .82rem; text-decoration: none; }
.quote { margin: 22px 0; padding: 18px; border-left: 4px solid var(--bronze); background: var(--bronze-soft); color: #644c2e; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { padding: 17px 0; font-weight: 760; cursor: pointer; }
details p { margin-top: 0; color: var(--muted); }

.footer { margin-top: 60px; padding: 50px 0 90px; border-top: 1px solid var(--line); background: #eae2d7; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3,1fr); gap: 28px; }
.footer h2, .footer h3 { margin: 0 0 12px; font-size: .9rem; }
.footer .brand { margin-bottom: 14px; }
.footer p, .footer a { color: var(--muted); font-size: .82rem; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }

.victoria-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 17px 0 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: var(--stone);
  color: white;
  box-shadow: 0 16px 40px rgba(25,22,19,.24);
  cursor: pointer;
}
.victoria-orb { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--moss); font-family: var(--serif); font-size: 1.2rem; }
.victoria-panel {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 81;
  width: min(380px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(25,22,19,.24);
  transform: translateY(14px) scale(.97);
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
}
.victoria-panel.open { transform: none; opacity: 1; visibility: visible; }
.victoria-head { display: flex; align-items: center; gap: 11px; padding: 15px; border-bottom: 1px solid var(--line); background: var(--stone); color: white; }
.victoria-head strong { display: block; }
.victoria-head small { color: #cbc7c1; }
.victoria-close { margin-left: auto; border: 0; background: transparent; color: white; font-size: 1.4rem; cursor: pointer; }
.victoria-body { max-height: 330px; overflow-y: auto; padding: 15px; }
.message { max-width: 88%; margin-bottom: 9px; padding: 11px 12px; border-radius: 14px; background: var(--surface-soft); font-size: .84rem; }
.message.user { margin-left: auto; background: var(--moss); color: white; }
.victoria-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.victoria-form input { min-width: 0; flex: 1; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; }
.victoria-form button { width: 42px; border: 0; border-radius: 11px; background: var(--moss); color: white; cursor: pointer; }
.demo-ribbon { padding: 7px 12px; background: var(--bronze-soft); color: #694b26; font-size: .72rem; text-align: center; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  max-width: calc(100vw - 32px);
  padding: 12px 15px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  font-size: .84rem;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { transform: translate(-50%,0); opacity: 1; }
.mobile-bar { display: none; }
.hidden { display: none !important; }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; top: 67px; right: 16px; left: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 13px; }
  .menu-btn { display: inline-grid; }
  .header-actions .button { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: 540px; }
  .hero-visual { min-height: 500px; }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .route-cards { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .detail-layout, .status-board, .article-layout { grid-template-columns: 1fr; }
  .detail-panel, .toc { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; overflow-x: auto; }
  .admin-nav a { flex: 0 0 auto; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 700px) {
  .shell, .narrow { width: min(100% - 22px, 1180px); }
  .section { padding: 52px 0; }
  .header-inner { min-height: 66px; gap: 10px; }
  .brand-copy small { display: none; }
  .hero { padding-top: 11px; }
  .hero-grid { min-height: 0; border-radius: 24px; }
  .hero-copy { min-height: 490px; padding: 29px 22px; }
  .hero-visual { min-height: 380px; }
  .hero-caption { right: 16px; bottom: 16px; left: 16px; }
  .hero-search { display: grid; gap: 6px; }
  .hero-search input { min-height: 48px; }
  .section-head { display: grid; }
  .notice { grid-template-columns: auto 1fr; }
  .notice .button { grid-column: 1 / -1; }
  .category-grid, .product-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .category-card { min-height: 178px; padding: 17px; border-radius: 18px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step b { margin-bottom: 26px; }
  .toolbar { top: 66px; display: grid; }
  .chips { margin-inline: -3px; }
  .product-card { border-radius: 18px; }
  .product-card-body { padding: 13px; }
  .product-actions { display: grid; }
  .pager { display: flex; }
  .detail-layout { gap: 12px; }
  .gallery-main { border-radius: 20px; }
  .gallery-main img { min-height: 390px; }
  .detail-panel { padding: 21px; border-radius: 20px; }
  .flow-shell { grid-template-columns: 1fr; }
  .side-steps { position: static; display: flex; overflow-x: auto; }
  .side-step { min-width: 185px; border-right: 1px solid var(--line); border-bottom: 0; }
  .field-grid, .preview-grid { grid-template-columns: 1fr; }
  .preview-card { min-height: 380px; }
  .model-choice { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
  .victoria-toggle { right: 11px; bottom: 76px; }
  .victoria-panel { right: 11px; bottom: 140px; }
  .mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 75;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    min-height: 64px;
    padding: 7px 8px max(7px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255,253,249,.96);
    backdrop-filter: blur(18px);
  }
  .mobile-bar a { display: grid; place-items: center; gap: 1px; border-radius: 10px; color: var(--muted); font-size: .69rem; font-weight: 750; text-decoration: none; }
  .mobile-bar a strong { color: var(--ink); font-size: 1rem; }
  .footer { padding-bottom: 140px; }
}

@media (max-width: 480px) {
  .category-grid, .product-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 150px; }
  .display { font-size: clamp(2.55rem, 14vw, 4.1rem); }
  .page-title { font-size: 2.55rem; }
  .hero-copy { min-height: 500px; }
  .hero-visual { min-height: 320px; }
  .hero-caption strong { font-size: 1.2rem; }
  .fact { grid-template-columns: 1fr; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .victoria-toggle, .victoria-panel, .mobile-bar, .button, .toolbar { display: none !important; }
  body { background: white; }
  .section { padding: 24px 0; }
  .hero-grid, .article, .form-card, .order-card, .timeline, .document-card { box-shadow: none; break-inside: avoid; }
}
