:root{--ink:#221812;--muted:#6f6256;--paper:#f5efe2;--paper-deep:#eadcc2;--cinnabar:#9d3f2f;--green:#526b50;--wood:#513521;--line:rgba(64,43,28,.18);color:var(--ink);background:var(--paper);font-family:"Noto Serif SC","Songti SC","STSong",serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(rgba(245,239,226,.92),rgba(245,239,226,.92)),radial-gradient(circle at 18% 12%,rgba(157,63,47,.16),transparent 26%),radial-gradient(circle at 80% 8%,rgba(82,107,80,.18),transparent 28%)}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}.site-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:76px;padding:12px clamp(18px,4vw,56px);background:rgba(245,239,226,.88);border-bottom:1px solid var(--line);backdrop-filter:blur(16px)}.brand{display:inline-flex;align-items:center;gap:12px;font-size:1.28rem;font-weight:800;letter-spacing:0}.brand img{width:44px;height:44px;object-fit:cover;border:1px solid var(--line);border-radius:50%}.site-nav{display:flex;align-items:center;gap:clamp(12px,2.5vw,30px);color:var(--muted);font-size:.98rem}.site-nav a:hover{color:var(--cinnabar)}.hero{position:relative;min-height:calc(100vh - 76px);overflow:hidden;background:#24160f}.slides,.slide{position:absolute;inset:0}.slide{opacity:0;transition:opacity .9s ease}.slide.is-active{opacity:1}.slide img{width:100%;height:100%;display:block;object-fit:cover}.slide:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(34,24,18,.74),rgba(34,24,18,.28) 45%,rgba(34,24,18,.18)),linear-gradient(0deg,rgba(34,24,18,.52),transparent 44%)}.hero-copy{position:relative;z-index:2;width:min(720px,calc(100% - 36px));min-height:calc(100vh - 76px);display:flex;flex-direction:column;justify-content:center;padding:48px clamp(22px,7vw,88px);color:#fff8e9}.hero-copy p,.section-kicker{margin:0 0 14px;color:#d7b87f;font-size:.88rem;font-weight:800;letter-spacing:0}.hero-copy h1{margin:0 0 22px;font-size:clamp(3.2rem,11vw,8.6rem);line-height:.96;letter-spacing:0}.hero-copy span{max-width:520px;color:rgba(255,248,233,.88);font-size:clamp(1.05rem,2.1vw,1.35rem);line-height:1.9}.slide-controls{position:absolute;z-index:3;left:clamp(22px,7vw,88px);bottom:34px;display:flex;gap:10px}.slide-controls button{width:42px;height:6px;padding:0;border:0;background:rgba(255,248,233,.42);cursor:pointer}.slide-controls button.is-active{background:#fff8e9}.section{width:min(1180px,calc(100% - 36px));margin:0 auto;padding:clamp(64px,10vw,118px) 0}.intro-grid{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(280px,1.1fr);gap:clamp(28px,6vw,72px);border-bottom:1px solid var(--line)}.section h2{margin:0;font-size:clamp(2rem,5vw,4.2rem);line-height:1.08;letter-spacing:0}.intro-grid>p{margin:0;color:var(--muted);font-size:1.13rem;line-height:2.1}.section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:30px}.section-head span{max-width:520px;color:var(--muted);line-height:1.8}.work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.work-card,.article-card,.admin-card{background:rgba(255,251,242,.72);border:1px solid var(--line);border-radius:8px;box-shadow:0 20px 60px rgba(60,36,20,.08)}.work-card{overflow:hidden}.work-card img{width:100%;aspect-ratio:4/3;display:block;object-fit:cover}.work-card div{padding:18px}.work-card h3,.article-card h3,.admin-card h3{margin:0 0 10px;font-size:1.2rem}.work-card p,.article-card p{margin:0;color:var(--muted);line-height:1.75}.article-list{display:grid;gap:16px}.article-card{padding:clamp(20px,3vw,30px)}.article-card time{display:block;margin-bottom:10px;color:var(--cinnabar);font-size:.9rem;font-weight:800}.article-body{display:none;margin-top:18px;color:var(--ink);white-space:pre-wrap;line-height:2}.article-card.is-open .article-body{display:block}.read-more,.admin-card button{min-height:42px;margin-top:18px;padding:0 18px;color:#fff8e9;background:var(--wood);border:0;border-radius:8px;cursor:pointer}.admin{width:min(1220px,calc(100% - 36px))}.admin-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.admin-card{padding:clamp(18px,3vw,28px)}.admin-card label{display:grid;gap:8px;margin:14px 0;color:var(--muted);font-weight:800}.admin-card input,.admin-card select,.admin-card textarea{width:100%;padding:12px 13px;color:var(--ink);background:#fffaf0;border:1px solid var(--line);border-radius:8px;outline:0}.admin-card input:focus,.admin-card select:focus,.admin-card textarea:focus{border-color:var(--green);box-shadow:0 0 0 4px rgba(82,107,80,.12)}.button-row{display:flex;gap:12px;flex-wrap:wrap}.admin-card .secondary{color:var(--wood);background:var(--paper-deep)}.article-manager{margin-top:18px}.admin-article-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.admin-article-row button{min-height:36px;margin:0}.site-footer{display:flex;justify-content:space-between;gap:20px;padding:28px clamp(18px,4vw,56px);color:#fff8e9;background:var(--ink)}@media(max-width:860px){.site-header,.site-footer,.section-head{align-items:flex-start;flex-direction:column}.site-nav{width:100%;overflow-x:auto;padding-bottom:4px}.intro-grid,.work-grid,.admin-layout{grid-template-columns:1fr}.hero,.hero-copy{min-height:680px}}@media(max-width:520px){.admin-article-row{grid-template-columns:1fr}}
.admin-gate {
  display: grid;
  grid-template-columns: minmax(0, 520px);
  gap: 18px;
}

.admin-gate[hidden],
.admin-content[hidden],
#setupForm[hidden],
#loginForm[hidden] {
  display: none;
}

.admin-note,
.gate-message {
  color: var(--muted);
  line-height: 1.8;
}

.gate-message {
  min-height: 1.6em;
  margin: 12px 0 0;
  color: var(--cinnabar);
  font-weight: 800;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: rgba(255, 251, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-toolbar span {
  color: var(--green);
  font-weight: 800;
}

.admin-toolbar button {
  min-height: 38px;
  padding: 0 16px;
  color: var(--wood);
  background: var(--paper-deep);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.admin-tools {
  margin-top: 18px;
}
.products {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  background: rgba(255, 251, 242, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(60, 36, 20, 0.08);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.product-card div {
  padding: 18px;
}

.product-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--cinnabar);
  font-size: 0.86rem;
  font-weight: 800;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.product-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}

.product-card strong {
  color: var(--green);
  font-size: 1.05rem;
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
.article-card {
  overflow: hidden;
}

.article-cover {
  width: 100%;
  max-height: 420px;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.article-content {
  padding: clamp(20px, 3vw, 30px);
}

.article-card .article-content time {
  display: block;
  margin-bottom: 10px;
  color: var(--cinnabar);
  font-size: 0.9rem;
  font-weight: 800;
}

.article-body p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 2;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.article-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.source-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cinnabar);
  font-weight: 800;
}

@media (max-width: 700px) {
  .article-gallery {
    grid-template-columns: 1fr;
  }
}

.article-list {
  gap: 0;
}

.article-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed rgba(64, 43, 28, 0.24);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.article-card.no-cover {
  grid-template-columns: 1fr;
}

.article-cover {
  width: 124px;
  height: 86px;
  max-height: none;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.article-content {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  row-gap: 10px;
  padding: 0;
}

.article-card .article-content time {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 2px 0 0;
  color: rgba(34, 24, 18, 0.56);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.article-card h3 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.38rem);
  line-height: 1.45;
}

.article-card .article-content > p {
  grid-column: 1 / -1;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(34, 24, 18, 0.58);
  font-size: 1rem;
  line-height: 1.95;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-card .article-body {
  grid-column: 1 / -1;
}

.article-card.is-open .article-content > p {
  display: block;
}

.article-card .read-more {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 34px;
  margin-top: 0;
  padding: 0;
  color: var(--cinnabar);
  background: transparent;
  border-radius: 0;
  font-weight: 800;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.2vw, 24px);
  margin-top: 34px;
  color: rgba(34, 24, 18, 0.66);
}

.pagination button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 4px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.pagination .page-step {
  min-width: 68px;
}

.pagination button:hover:not(:disabled),
.pagination .is-current {
  color: var(--ink);
  background: rgba(157, 63, 47, 0.1);
}

.pagination .is-current {
  font-weight: 800;
}

.pagination button:disabled {
  cursor: default;
  opacity: 0.42;
}

.pagination-ellipsis {
  min-width: 24px;
  text-align: center;
}

@media (max-width: 700px) {
  .article-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 0;
  }

  .article-cover {
    width: 88px;
    height: 66px;
  }

  .article-content {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .article-card .article-content time,
  .article-card h3 {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .pagination {
    gap: 8px;
    flex-wrap: wrap;
  }
}

.reserve-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 16px;
  color: #fff8e9;
  background: var(--wood);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.reserve-button:hover {
  background: var(--cinnabar);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 24, 18, 0.58);
  backdrop-filter: blur(8px);
}

.custom-order-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 40px);
  background: linear-gradient(rgba(255, 251, 242, 0.96), rgba(255, 251, 242, 0.96)), var(--paper);
  border: 1px solid rgba(64, 43, 28, 0.24);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(34, 24, 18, 0.28);
}

.custom-order-panel h2 {
  margin: 0 0 22px;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  color: var(--muted);
  background: var(--paper-deep);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--ink);
}

.custom-order-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.custom-order-list:empty {
  display: none;
}

.custom-order-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  background: rgba(234, 220, 194, 0.42);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.custom-order-list span {
  color: var(--muted);
  font-weight: 800;
}

.custom-order-list strong,
.custom-contact {
  color: var(--ink);
  font-weight: 800;
}

.custom-contact {
  margin: 0;
  padding-top: 18px;
  border-top: 1px dashed rgba(64, 43, 28, 0.28);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .custom-order-list:empty {
  display: none;
}

.custom-order-list div {
    flex-direction: column;
    gap: 6px;
  }
}

.chat-widget {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 70;
  transform: translateY(-50%);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}

.chat-tab {
  width: 82px;
  min-height: 290px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 22px 14px;
  color: #fff;
  background: #232124;
  border: 0;
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(34, 24, 18, 0.28);
  cursor: pointer;
}

.chat-tab:hover,
.chat-tab[aria-expanded="true"] {
  background: var(--wood);
}

.chat-tab-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.chat-bubble {
  position: relative;
  width: 48px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff;
  border-radius: 999px;
}

.chat-bubble:after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: -8px;
  border-top: 11px solid #fff;
  border-right: 11px solid transparent;
}

.chat-bubble span {
  width: 5px;
  height: 5px;
  background: #232124;
  border-radius: 50%;
}

.chat-panel {
  position: absolute;
  right: 94px;
  top: 50%;
  width: min(360px, calc(100vw - 118px));
  max-height: min(620px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(160px, 1fr) auto;
  overflow: hidden;
  background: rgba(255, 251, 242, 0.98);
  border: 1px solid rgba(64, 43, 28, 0.22);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(34, 24, 18, 0.26);
  transform: translateY(-50%);
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  color: #fff8e9;
  background: var(--wood);
}

.chat-panel-head p,
.chat-panel-head h2 {
  margin: 0;
}

.chat-panel-head p {
  color: #d7b87f;
  font-size: 0.86rem;
  font-weight: 800;
}

.chat-panel-head h2 {
  margin-top: 4px;
  font-size: 1.25rem;
}

.chat-close {
  width: 34px;
  height: 34px;
  color: #fff8e9;
  background: rgba(255, 248, 233, 0.12);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.chat-messages {
  min-height: 210px;
  overflow: auto;
  padding: 16px;
  background: linear-gradient(rgba(245,239,226,.72), rgba(245,239,226,.72));
}

.chat-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.chat-thread {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.chat-line {
  max-width: 86%;
  justify-self: end;
  padding: 10px 12px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-line.is-admin {
  justify-self: start;
  background: rgba(234, 220, 194, 0.58);
}

.chat-line strong,
.chat-line p,
.chat-line time {
  display: block;
  margin: 0;
}

.chat-line strong {
  color: var(--green);
  font-size: 0.84rem;
}

.chat-line p {
  margin-top: 4px;
  color: var(--ink);
  line-height: 1.65;
  word-break: break-word;
}

.chat-line time {
  margin-top: 6px;
  color: rgba(34, 24, 18, 0.48);
  font-size: 0.78rem;
}

.chat-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.chat-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.chat-form input,
.chat-form textarea,
.reply-form textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.chat-form input:focus,
.chat-form textarea:focus,
.reply-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(82,107,80,.12);
}

.chat-form button,
.reply-form button {
  min-height: 38px;
  color: #fff8e9;
  background: var(--wood);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.chat-manager {
  grid-column: 1 / -1;
}

.admin-chat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.admin-chat-row time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-chat-row p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-reply {
  padding-left: 12px;
  border-left: 3px solid rgba(157, 63, 47, 0.32);
}

.reply-form {
  display: grid;
  gap: 8px;
}

@media (max-width: 760px) {
  .chat-widget {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .chat-tab {
    width: 62px;
    min-height: 232px;
    gap: 14px;
    padding: 18px 10px;
  }

  .chat-tab-text {
    font-size: 1.16rem;
  }

  .chat-bubble {
    width: 38px;
    height: 30px;
  }

  .chat-panel {
    right: 72px;
    width: min(340px, calc(100vw - 88px));
  }

  .admin-chat-row {
    grid-template-columns: 1fr;
  }
}

