:root {
  --ink: #16140f;
  --ink-soft: #4a463d;
  --paper: #ffffff;
  --paper-alt: #f6f3ee;
  --line: #e5e0d5;
  --wood: #a9744f;
  --wood-dark: #6f4a2f;
  --wood-light: #e4c9ab;
  --radius: 2px;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.skip-note {
  background: var(--wood-dark);
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  padding: 7px 12px;
  letter-spacing: .02em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 40px; width: auto; display: block; }

.main-nav { display: flex; gap: 32px; margin: 0 auto; }
.main-nav a { font-size: 14.5px; letter-spacing: .01em; position: relative; padding: 4px 0; }
.main-nav a:after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ink);
  transition: right .25s ease;
}
.main-nav a:hover:after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-switch button {
  border: none; background: transparent; padding: 6px 10px; font-size: 12px; letter-spacing: .04em;
  color: var(--ink-soft); border-right: 1px solid var(--line);
}
.lang-switch button:last-child { border-right: none; }
.lang-switch button.active { background: var(--ink); color: #fff; }

.cart-btn {
  display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--ink);
  padding: 8px 14px; font-size: 13.5px; border-radius: var(--radius); position: relative;
}
.cart-btn:hover { background: var(--ink); color: #fff; }
.cart-count {
  min-width: 18px; height: 18px; border-radius: 50%; background: var(--wood); color: #fff;
  font-size: 10.5px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 6px; }
.burger span { width: 20px; height: 1.5px; background: var(--ink); display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; font-size: 14px; letter-spacing: .02em; border-radius: var(--radius);
  border: 1px solid var(--ink); transition: all .2s ease;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--wood-dark); border-color: var(--wood-dark); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-full { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  min-height: 640px;
  background: var(--paper-alt);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.eyebrow {
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--wood-dark);
  margin: 0 0 14px; font-weight: 600;
}
.hero h1 { font-size: clamp(32px, 4.2vw, 52px); max-width: 620px; }
.hero-sub { font-size: 16.5px; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--wood); padding: 40px;
}
.hero-hat { width: 100%; max-width: 340px; aspect-ratio: 1; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-sub { font-size: 15.5px; }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.benefit-card { background: var(--paper); padding: 34px 26px; }
.benefit-icon { color: var(--wood); margin-bottom: 18px; }
.benefit-card h3 { font-size: 17.5px; }
.benefit-card p { font-size: 14px; }

/* ---------- Catalog ---------- */
.category-chips {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px;
}
.category-chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  padding: 9px 16px; border-radius: 999px; font-size: 13px; letter-spacing: .01em; white-space: nowrap;
  font-family: inherit; cursor: pointer; transition: all .15s ease;
}
.category-chip:hover { border-color: var(--wood); color: var(--wood-dark); }
.category-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.catalog-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 40px 0; font-size: 15px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: 0 18px 40px -20px rgba(20,18,12,.35); transform: translateY(-3px); }
.product-media {
  aspect-ratio: 4/5; background: var(--paper-alt); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--wood-light);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media svg { width: 46%; }
.product-tag {
  position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff;
  font-size: 10.5px; letter-spacing: .05em; padding: 4px 9px; border-radius: var(--radius);
}
.product-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 17px; margin-bottom: 6px; }
.product-pitch { font-size: 13.5px; flex: 1; margin-bottom: 16px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-family: var(--font-head); font-size: 18px; }
.product-actions { display: flex; gap: 8px; }
.add-btn {
  border: 1px solid var(--ink); background: none; padding: 9px 14px; font-size: 12.5px;
  border-radius: var(--radius); white-space: nowrap;
}
.add-btn:hover { background: var(--ink); color: #fff; }

/* ---------- Gift ---------- */
.gift-section { background: var(--ink); color: #fff; }
.gift-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.gift-visual { color: var(--wood-light); padding: 20px; }
.gift-content .eyebrow { color: var(--wood-light); }
.gift-content h2 { color: #fff; }
.gift-content p { color: #d8d4c9; }
.gift-points { margin-bottom: 28px; }
.gift-points li {
  padding: 10px 0 10px 26px; border-top: 1px solid rgba(255,255,255,.14); position: relative; color: #efece4; font-size: 14.5px;
}
.gift-points li:before {
  content: "—"; position: absolute; left: 0; color: var(--wood-light);
}
.gift-inner .btn-dark { background: #fff; color: var(--ink); border-color: #fff; }
.gift-inner .btn-dark:hover { background: var(--wood-light); border-color: var(--wood-light); }

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how-step { text-align: center; padding: 0 10px; }
.how-num { font-family: var(--font-head); font-size: 40px; color: var(--wood-light); display: block; margin-bottom: 10px; }
.how-step h3 { font-size: 18px; }
.how-step p { font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 4px;
  display: flex; justify-content: space-between; align-items: center; font-size: 15.5px; gap: 20px;
}
.faq-q span.plus { font-size: 20px; color: var(--wood); transition: transform .2s ease; flex-shrink: 0; }
.faq-item.open .faq-q span.plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 220px; }
.faq-a p { padding: 0 4px 20px; font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-alt); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 36px; flex-wrap: wrap; }
.footer-brand p { max-width: 320px; font-size: 14px; margin-top: 12px; }
.footer-email { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--wood); border-bottom: 1px solid var(--wood-light); }
.footer-email:hover { color: var(--wood-dark); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 18px 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px;
}
.footer-bottom p { margin: 0; font-size: 12.5px; }
.footer-legal { color: var(--ink-soft); }

/* ---------- Cart Drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(20,18,12,.4); opacity: 0; pointer-events: none;
  transition: opacity .25s ease; z-index: 50;
}
.overlay.visible { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw;
  background: #fff; z-index: 60; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease; box-shadow: -20px 0 40px rgba(0,0,0,.08);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-head h3 { margin: 0; }
.icon-btn { background: none; border: none; font-size: 24px; line-height: 1; color: var(--ink-soft); }
.cart-body { flex: 1; overflow-y: auto; padding: 10px 24px; }
.cart-empty { color: var(--ink-soft); font-size: 14px; padding: 30px 0; text-align: center; }

.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line-media { width: 64px; height: 64px; background: var(--paper-alt); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--wood-light); flex-shrink: 0; overflow: hidden; }
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-media svg { width: 60%; }
.cart-line-body { flex: 1; }
.cart-line-name { font-size: 14.5px; margin-bottom: 4px; }
.cart-line-price { font-size: 13px; color: var(--ink-soft); }
.qty-control { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-control button { width: 24px; height: 24px; border: 1px solid var(--line); background: none; border-radius: var(--radius); font-size: 14px; }
.qty-control span { font-size: 13.5px; min-width: 14px; text-align: center; }
.cart-line-remove { background: none; border: none; font-size: 12px; color: var(--ink-soft); text-decoration: underline; margin-top: 8px; }

.cart-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 16px; font-family: var(--font-head); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center;
  background: rgba(20,18,12,.45); opacity: 0; pointer-events: none; transition: opacity .25s ease; padding: 20px;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: #fff; max-width: 460px; width: 100%; padding: 36px 32px; border-radius: var(--radius);
  position: relative; max-height: 88vh; overflow-y: auto;
}
.modal-close { position: absolute; top: 14px; right: 16px; }
.modal-sub { font-size: 14px; margin-bottom: 22px; }

#orderForm { display: flex; flex-direction: column; gap: 16px; }
#orderForm label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); }
#orderForm input, #orderForm textarea {
  font-family: inherit; font-size: 14.5px; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); resize: vertical;
}
#orderForm input:focus, #orderForm textarea:focus { outline: none; border-color: var(--ink); }
#orderForm button { margin-top: 6px; }

.order-summary {
  background: var(--paper-alt); border: 1px solid var(--line); padding: 16px; font-size: 13px;
  white-space: pre-wrap; border-radius: var(--radius); max-height: 240px; overflow-y: auto; font-family: var(--font-body);
}
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; padding: 12px 10px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { order: -1; padding: 40px 20px 0; }
  .hero-hat { max-width: 220px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .gift-inner { grid-template-columns: 1fr; gap: 30px; }
  .gift-visual { max-width: 220px; margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; gap: 36px; }
  .main-nav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .cart-btn { padding: 8px 10px; gap: 5px; }
  .cart-btn span:not(.cart-count) { display: none; }
  .lang-switch button { padding: 6px 7px; font-size: 11px; }
  .logo { font-size: 17px; }
  .burger { padding: 6px 2px; }
}

.main-nav.mobile-open {
  display: flex; position: absolute; top: 74px; left: 0; right: 0; background: #fff;
  flex-direction: column; padding: 10px 28px 20px; border-bottom: 1px solid var(--line); gap: 4px;
}
.main-nav.mobile-open a { padding: 10px 0; border-bottom: 1px solid var(--line); }
