:root {
  --ink: #1b140f;
  --ink-soft: #5c4d43;
  --paper: #f4efe6;
  --paper-2: #fbf7f1;
  --card: #fffdf9;
  --line: #e6dccf;
  --chili: #b4331a;
  --chili-deep: #7c2414;
  --saffron: #c4842a;
  --moss: #2c4638;
  --soy: #241c17;
  --shadow: 0 18px 50px rgba(36, 28, 23, 0.08);
  --serif: "Literata", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --radius: 18px;
  --header: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(196, 132, 42, 0.16), transparent 55%),
    radial-gradient(900px 420px at -10% 20%, rgba(180, 51, 26, 0.08), transparent 50%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, textarea, select { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  height: calc(var(--header) - 10px);
  width: auto;
  max-width: min(280px, 34vw);
  object-fit: contain;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--chili);
  color: #fff8f3;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.08em;
  font-weight: 650;
}

.brand small {
  display: block;
  font-family: var(--sans);
  letter-spacing: 0.14em;
  font-size: 10px;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
}

.nav a[aria-current="page"],
.nav a:hover { background: white; color: var(--ink); }

.nav .nav-cta {
  background: var(--ink);
  color: #f8f1e8;
  margin-left: 6px;
}

.nav .nav-cta:hover { background: var(--chili-deep); color: white; }

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  padding: 54px 0 28px;
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--chili);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.03em; }

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
}

.lede {
  font-size: 18px;
  max-width: 560px;
  color: var(--ink-soft);
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  background: var(--chili);
  color: white;
}

.btn.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn.secondary:hover { background: white; }

.btn:hover { background: var(--chili-deep); }

.btn.secondary:hover { background: white; }

.cover {
  background: var(--soy);
  color: #f6efe6;
  border-radius: 28px;
  padding: 28px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.cover ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.cover a {
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(246, 239, 230, 0.12);
  padding-bottom: 8px;
  color: #f6efe6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 64px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat span { color: var(--ink-soft); font-size: 14px; }

.section { padding: 10px 0 72px; }

.section h2 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 10px; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.muted { color: var(--ink-soft); }

.grid-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cat-card {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  min-height: 148px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.cat-card em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 700;
}

.cat-card h3 { margin: 10px 0 8px; font-size: 24px; }

.cat-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.band {
  background: var(--moss);
  color: #f4efe6;
  border-radius: 28px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.band h2 { margin: 0 0 8px; }

.band p { margin: 0; color: rgba(244, 239, 230, 0.82); }

.page-head { padding: 42px 0 10px; }

.page-head h1 { font-size: clamp(40px, 5vw, 64px); margin: 0; line-height: 1; }

.catalog-tools {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 22px 0 70px;
  align-items: start;
}

.search {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.catalog-tools aside {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding-right: 4px;
}

.filters { display: grid; gap: 6px; }

.filter-details summary {
  display: none;
}

.filter-label {
  margin: 14px 0 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

.filter-btn {
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-name {
  flex: 1 1 auto;
  min-width: 0;
}

.filter-btn[aria-pressed="true"],
.filter-btn:hover { background: white; }

.filter-btn small {
  flex: 0 0 auto;
  min-width: 3ch;
  color: var(--ink-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.halal-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #17632a;
  font-size: 13px;
  font-weight: 700;
}

.halal-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: white;
  border-radius: 6px;
}

.filter-burger,
.filter-screen-bar { display: none; }

.filter-burger {
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-weight: 700;
  cursor: pointer;
}

.burger-lines,
.burger-lines::before,
.burger-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.burger-lines { position: relative; }

.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger-lines::before { top: -6px; }

.burger-lines::after { top: 6px; }

.filter-back {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: white;
  font-weight: 700;
  cursor: pointer;
}

.results-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 14px;
}

.results-meta h2 { margin: 0; font-size: 28px; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.product:hover { border-color: #d7c3ae; }

.product header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}

.pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f3e6d4;
  color: var(--chili-deep);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.product h3 { margin: 0; font-size: 22px; }

.product p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.pack {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.logistics {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.product .price {
  margin: auto 0 0 auto;
  padding-top: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.dialog-price {
  margin: 14px 0 0;
  color: var(--chili);
  font-size: 22px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.product-media {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.product-media figure {
  display: grid;
  gap: 10px;
  margin: 0;
}

.product-media .zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: zoom-in;
}

.product-media figcaption {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-media img,
.product-media video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--paper);
}

dialog.lightbox {
  border: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(64px, calc(env(safe-area-inset-top) + 52px)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: rgba(17, 12, 9, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pinch-zoom;
}

dialog.lightbox::backdrop { background: transparent; }

dialog.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
}

dialog.lightbox .close {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  background: white;
  z-index: 2;
}

.empty {
  padding: 40px 10px;
  color: var(--ink-soft);
}

html.scroll-lock,
html.scroll-lock body {
  overflow: hidden;
  overscroll-behavior: none;
}

dialog:not(.lightbox) {
  width: min(680px, calc(100% - 24px));
  max-height: min(86vh, 760px);
  max-height: min(86dvh, 760px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 0;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

dialog::backdrop { background: rgba(27, 20, 15, 0.46); }

.dialog-body {
  padding: 22px;
  overflow: visible;
}

.dialog-body h2 { margin: 8px 0 4px; font-size: 34px; }

.dialog-top { display: flex; justify-content: space-between; gap: 12px; }

.close {
  border: 0;
  background: var(--paper);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

dl { display: grid; gap: 12px; margin: 18px 0 0; }

dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }

dd { margin: 4px 0 0; }

.contacts {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  padding-bottom: 72px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}

.panel h2 { margin: 0 0 8px; font-size: 28px; }

.contact-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }

.contact-list a { color: var(--chili-deep); font-weight: 700; }

form { display: grid; gap: 10px; }

label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }

input, textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--paper-2);
}

textarea { min-height: 120px; resize: vertical; }

.form-note { min-height: 1.2em; font-size: 14px; color: var(--moss); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--ink); }

@media (max-width: 900px) {
  .hero, .stats, .grid-cats, .band, .catalog-tools, .contacts, .cards {
    grid-template-columns: 1fr;
  }

  .menu-btn { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.is-open { display: flex; }

  .brand { max-width: none; }

  .brand img {
    height: 48px;
    max-width: calc(100vw - 150px);
  }

  .catalog-page .brand {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    max-width: calc(100vw - 230px);
    z-index: 1;
  }

  .catalog-page .brand img {
    height: 44px;
    max-width: 100%;
  }

  .catalog-page .header-inner { justify-content: space-between; }

  .catalog-page .filter-burger,
  .catalog-page .menu-btn {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
  }

  .catalog-page .filter-burger { display: inline-flex; }

  #catalog-filters[hidden] { display: none !important; }

  .catalog-tools aside {
    display: none;
  }

  .catalog-tools aside.is-open {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    width: auto;
    max-height: none;
    margin: 0;
    padding: max(12px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    background: var(--paper-2);
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .catalog-tools aside.is-open .filter-screen-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0 0 12px;
    padding-bottom: 10px;
    background: var(--paper-2);
  }

  .catalog-tools aside.is-open .filter-screen-bar p {
    margin: 0;
    font-family: var(--serif);
    font-size: 28px;
  }

  .filter-details summary { display: none; }

  .catalog-tools aside.is-open .filter-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 0;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .catalog-tools aside.is-open .filter-btn::after {
    content: "›";
    flex: 0 0 16px;
    color: var(--ink-soft);
    font-size: 22px;
    line-height: 1;
    text-align: right;
  }

  .catalog-tools aside.is-open .filter-btn[aria-pressed="true"] {
    background: white;
  }

  dialog:not(.lightbox) {
    width: calc(100% - 12px);
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px);
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
  }

  .dialog-body {
    max-height: none;
    overflow: visible;
    padding: 16px 14px calc(20px + env(safe-area-inset-bottom));
  }

  .dialog-body h2 { font-size: 28px; }

  .dialog-price { font-size: 20px; }

  .close {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .product-media video { max-height: 70dvh; }

  .section-head { flex-direction: column; align-items: start; }
}

@media (hover: none) and (pointer: coarse) {
  dialog:not(.lightbox)[open] {
    position: fixed;
    inset: 0;
    z-index: 30;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: max(8px, env(safe-area-inset-top)) 6px max(8px, env(safe-area-inset-bottom));
    border-radius: 0;
    background: rgba(27, 20, 15, 0.46);
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  dialog:not(.lightbox) .dialog-body {
    width: min(680px, 100%);
    margin: 0 auto;
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    overflow: visible;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cat-card { transition: none; }
}
