:root {
  --paper: #f3eadb;
  --paper-2: #fff8ec;
  --ink: #1f1712;
  --muted: #6b5848;
  --brown: #2c211b;
  --rust: #b44a1e;
  --rust-2: #8c3514;
  --line: #ddcbb0;
  --ok: #2f5d38;
  --shadow: 0 10px 30px rgba(44, 33, 27, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 "PT Sans", "Segoe UI", Arial, sans-serif;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: #241a15;
  color: #e7d3b8;
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.site-header {
  background: var(--brown);
  color: #f6ead7;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}
.logo {
  text-decoration: none;
  font-family: "PT Serif", Georgia, serif;
  font-size: 28px;
  letter-spacing: .08em;
}
.logo small {
  display: block;
  font-family: "PT Sans", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .16em;
  color: #c9a27a;
  margin-top: -2px;
}
nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}
nav a { text-decoration: none; color: #f0dfc8; }
nav a:hover, nav a.active { color: #fff; }
.icon-btn, .cart-btn {
  appearance: none;
  border: 1px solid #5a4334;
  background: #3a2c24;
  color: #f6ead7;
  border-radius: 6px;
  height: 40px;
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
}
.cart-btn b {
  display: inline-block;
  min-width: 18px;
  margin-left: 6px;
  background: var(--rust);
  border-radius: 99px;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
}
.menu-btn { display: none; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  padding: 54px 0 20px;
  align-items: center;
}
.hero h1 {
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 400;
  margin: 0 0 14px;
}
.hero p { color: var(--muted); font-size: 18px; max-width: 34em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  font: 600 15px/1 "PT Sans", Arial, sans-serif;
  cursor: pointer;
}
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-2); }
.btn-ghost { background: transparent; border-color: #c9b297; color: var(--ink); }
.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pack {
  position: relative;
  border-radius: 18px;
  min-height: 180px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  background: #3a2c24;
}
.pack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pack .cap {
  position: relative;
  z-index: 1;
  padding: 18px 16px 14px;
  background: linear-gradient(transparent, rgba(20, 12, 8, .72));
}
.pack b { display: block; font-size: 20px; font-family: "PT Serif", Georgia, serif; }
.pack span { opacity: .9; font-size: 13px; }
.pack-l { min-height: 230px; }
.pack-r { min-height: 180px; }
.pack-b { grid-column: 1 / -1; min-height: 140px; }

.note-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 10px 0 40px;
}
.note {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.note b { display: block; margin-bottom: 4px; }

.section { padding: 18px 0 46px; }
.section h2 {
  font-family: "PT Serif", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 8px;
}
.lead { color: var(--muted); margin: 0 0 22px; max-width: 40em; }

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar input, .toolbar select, .field {
  height: 40px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
}
.toolbar input { min-width: min(100%, 260px); flex: 1; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card.hidden { display: none; }
.card-visual {
  height: 168px;
  padding: 0;
  background: #e8dcc8;
  overflow: hidden;
}
.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 17px; }
.meta { color: var(--muted); font-size: 13px; }
.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-weight: 700; font-size: 18px; }
.badge {
  display: inline-block;
  font-size: 12px;
  background: #f1d2b3;
  color: #7a3d14;
  border-radius: 99px;
  padding: 2px 8px;
}
.badge.out { background: #eadfdf; color: #6d4a4a; }
.card .btn { width: 100%; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.panel h3 { margin: 0 0 8px; font-family: "PT Serif", Georgia, serif; font-weight: 400; font-size: 24px; }
.panel ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }

.page { padding: 36px 0 50px; }
.page h1 {
  font-family: "PT Serif", Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  margin: 0 0 12px;
}
.page h2 { font-family: "PT Serif", Georgia, serif; font-weight: 400; font-size: 24px; }
.page p, .page li { color: #3d3128; }
.doc { max-width: 760px; }

footer {
  background: var(--brown);
  color: #e6d3bc;
  padding: 36px 0 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 18px;
}
footer a { color: #f0dfc8; }
footer h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #c9a27a; }
.logo-foot { font-family: "PT Serif", Georgia, serif; font-size: 26px; letter-spacing: .08em; color: #f6ead7; }
.copy { margin-top: 22px; color: #b89d82; font-size: 13px; }

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  background: #fff8ec;
  border: 1px solid #d3c0a4;
  box-shadow: 0 16px 50px rgba(0,0,0,.18);
  border-radius: 16px;
  padding: 16px 18px;
  max-width: 760px;
  margin: 0 auto;
  display: none;
}
.cookie.show { display: block; }
.cookie h2 { font-size: 18px; margin: 0 0 8px; font-family: "PT Serif", Georgia, serif; font-weight: 400; }
.cookie p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.checks { display: grid; gap: 6px; margin: 0 0 12px; font-size: 14px; }

.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, .45);
  z-index: 30;
  display: none;
}
.drawer-bg.show { display: block; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff8ec;
  z-index: 31;
  transform: translateX(100%);
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
}
.drawer.show { transform: none; }
.drawer header, .drawer .drawer-body, .drawer footer {
  background: transparent;
  color: var(--ink);
  padding: 16px;
}
.drawer header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer .drawer-body { overflow: auto; flex: 1; }
.cart-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.drawer footer { border-top: 1px solid var(--line); }
.qty { display: flex; gap: 6px; align-items: center; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; }

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--brown);
  color: #f6ead7;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
  z-index: 50;
}
.toast.show { display: block; }

@media (max-width: 900px) {
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #2c211b;
    padding: 12px 16px 16px;
  }
  .menu-btn { display: inline-flex; }
  .hero, .note-strip, .grid, .split, .foot-grid { grid-template-columns: 1fr; }
  .site-header .wrap { flex-wrap: wrap; }
}
