:root {
  --bg: #f5f0e8;
  --bg-2: #efe6da;
  --card: #fbf7f1;
  --ink: #2c2825;
  --muted: #6d645c;
  --line: #e3d6c8;
  --clay: #a6532f;
  --clay-deep: #8a4326;
  --olive: #5c6844;
  --sand: #e7d8c6;
  --graphite: #2a2724;
  --graphite-2: #3a342f;
  --cream: #fff8f2;
  --shadow: 0 10px 28px rgba(62, 42, 28, 0.08);
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --radius: 16px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

#site-header { display: contents; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 240, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav a {
  text-decoration: none;
  color: #3f3833;
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav a:hover,
.nav a.is-active { background: var(--sand); }
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.search {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  min-width: 190px;
}
.search input {
  border: 0;
  background: transparent;
  width: 100%;
  padding: 9px 0;
  outline: none;
}
.search svg { flex: 0 0 auto; color: var(--muted); }
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
}
.icon-btn:hover { border-color: #c9b39d; }
.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--clay);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.badge.show { display: flex; }
.menu-btn { display: none; }

.hero {
  width: min(1240px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  gap: 28px;
  align-items: center;
  min-height: 560px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(46px, 5.4vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.hero-lead {
  margin: 18px 0 0;
  max-width: 390px;
  color: #4a433d;
  font-size: 17px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero-photo {
  position: relative;
  min-height: 560px;
  border-radius: 22px;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 50% 62%;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(245, 240, 232, 0.45) 10%, rgba(245, 240, 232, 0) 28%);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
}
.btn-primary { background: var(--clay); color: var(--cream); }
.btn-primary:hover { background: var(--clay-deep); }
.btn-line { border-color: #cbb8a4; background: var(--card); color: var(--ink); }
.btn-line:hover { border-color: var(--clay); color: var(--clay-deep); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }

.perks {
  width: min(1240px, calc(100% - 32px));
  margin: -28px auto 8px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.perk {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 13px;
  box-shadow: var(--shadow);
}
.perk svg { flex: 0 0 auto; color: var(--clay); margin-top: 2px; }
.perk strong { display: block; font-size: 14.5px; }
.perk span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.section { padding: 54px 0 10px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section h2, .page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(32px, 3vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-head a { color: var(--clay-deep); font-weight: 700; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-card {
  position: relative;
  display: block;
  min-height: 250px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #f8f3ec;
}
.cat-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.cat-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 16px 16px;
  background: linear-gradient(180deg, rgba(28, 22, 18, 0) 0%, rgba(28, 22, 18, 0.78) 70%);
}
.cat-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 560;
}
.cat-card em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 13.5px;
  opacity: 0.9;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card .photo {
  position: relative;
  aspect-ratio: 1 / 1.02;
  background: #e8dfd4;
}
.product-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(251, 247, 241, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.fav.is-on { color: var(--clay); }
.product-card .info {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.product-card h3 a { text-decoration: none; }
.product-card h3 a:hover { color: var(--clay-deep); }
.product-card .meta { margin: 0; color: var(--muted); font-size: 13.5px; }
.price {
  margin: 2px 0 8px;
  font-size: 18px;
  font-weight: 750;
}
.product-card .btn { margin-top: auto; }

.band {
  margin-top: 56px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 28px 0;
}
.band-grid img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 18px;
}
.steps {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.steps b {
  font-family: var(--serif);
  color: var(--clay);
}
.gift {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: #e9dccb;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #ddcdba;
}
.gift-copy { padding: 36px 8px 36px 36px; }
.gift img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.note {
  color: var(--muted);
  font-size: 14.5px;
}

.page {
  padding: 28px 0 64px;
}
.page-lead {
  max-width: 640px;
  color: #4e4741;
  margin: 10px 0 22px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.filters button {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.filters button.is-on {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.product-page {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}
.gallery img {
  width: 100%;
  border-radius: 18px;
  background: #e8dfd4;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
}
.thumbs img { width: 74px; height: 74px; object-fit: cover; }
.buy-box .price { font-size: 32px; margin: 8px 0 4px; font-family: var(--serif); }
.buy-actions { display: flex; gap: 10px; margin: 16px 0; }
.buy-actions .btn-primary { flex: 1; }
.facts {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.facts li {
  padding-left: 16px;
  position: relative;
  color: #433d38;
}
.facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.cart-layout, .contact-layout, .about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
  align-items: start;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.cart-line {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}
.cart-line h3 { margin: 0 0 4px; font-size: 16px; }
.quiet-btn {
  border: 0;
  background: transparent;
  color: var(--clay-deep);
  padding: 0;
  cursor: pointer;
  font-weight: 700;
}
label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffaf5;
  border-radius: 12px;
  padding: 12px 12px;
}
textarea { min-height: 96px; resize: vertical; }
.total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  margin: 8px 0 14px;
}
.empty {
  padding: 28px;
  background: var(--card);
  border: 1px dashed #d3c3b2;
  border-radius: 16px;
}
.form-error { color: var(--clay-deep); font-size: 14px; min-height: 1.2em; }
.success {
  background: #e7efe0;
  border: 1px solid #c9d7bc;
  border-radius: 14px;
  padding: 14px;
}

.story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}
.story img, .photo-stack img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
}
.photo-stack { display: grid; gap: 12px; }
.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.map-frame {
  height: 280px;
  border: 0;
  width: 100%;
  border-radius: 16px;
  background: var(--sand);
}
.contacts-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contacts-list a { font-weight: 700; }

.site-footer {
  margin-top: 64px;
  background: var(--graphite);
  color: #f3ebdf;
  padding: 42px 0 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.1fr;
  gap: 24px;
}
.site-footer a { color: #f3ebdf; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 20px;
}
.site-footer p, .site-footer li { color: #ddd2c5; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-brand strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 560;
}
.legal {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid #453e38;
  color: #b7ab9f;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: var(--cream);
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 980px) {
  .nav, .search { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
  }
  .menu-btn { display: grid; }
  .hero, .band-grid, .gift, .product-page, .cart-layout, .contact-layout, .about-grid, .story, .footer-grid {
    grid-template-columns: 1fr;
  }
  .perks, .cat-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 0; }
  .hero-photo, .hero-photo img { min-height: 380px; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(245, 240, 232, 0) 70%, var(--bg) 100%); }
  .gift-copy { padding: 22px; }
  .band-grid img, .gift img { height: 320px; }
}
@media (max-width: 640px) {
  .perks, .cat-grid, .product-grid, .people { grid-template-columns: 1fr; }
  .header-inner { min-height: 64px; }
  .hero h1 { font-size: 42px; }
  .buy-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}
