@font-face {
  font-family: "Aeonik Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/AeonikPro-Regular.otf") format("opentype");
}

@font-face {
  font-family: "Aeonik Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/AeonikPro-Medium.otf") format("opentype");
}

@font-face {
  font-family: "Aeonik Pro";
  font-style: normal;
  font-weight: 600;
  src: url("/assets/fonts/AeonikPro-Bold.otf") format("opentype");
}

:root {
  --paper: #f7f3ec;
  --paper-soft: #fffdf8;
  --sand: #e6d8c8;
  --clay: #ff8f1c;
  --clay-dark: #b76117;
  --coffee: #382e2c;
  --ink: #382e2c;
  --muted: #77706b;
  --olive: #77806a;
  --moss: #526052;
  --brand-yellow: #f2f0a1;
  --line: rgba(56, 46, 44, 0.14);
  --panel: rgba(255, 253, 248, 0.82);
  --shadow: 0 24px 60px rgba(56, 46, 44, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(119, 128, 106, 0.07), transparent 32%),
    linear-gradient(245deg, rgba(200, 117, 77, 0.08), transparent 42%),
    var(--paper);
  font-family: "Aeonik Pro", Arial, sans-serif;
  letter-spacing: 0;
}

body.menu-open,
body.cart-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(63, 45, 36, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 45, 36, 0.038) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(63, 45, 36, 0.22) 0.6px, transparent 0.6px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(63, 45, 36, 0.14);
  background: rgba(239, 228, 209, 0.86);
  backdrop-filter: blur(18px);
}

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

.menu-toggle,
.cart-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(63, 45, 36, 0.18);
  border-radius: 5px;
  color: var(--coffee);
  background: rgba(246, 239, 226, 0.72);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
}

.menu-toggle-icon {
  font-size: 16px;
  line-height: 1;
}

.cart-toggle b {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: #f7eddf;
  background: var(--clay-dark);
  font-size: 11px;
}

.brand {
  display: grid;
  align-items: center;
  width: 154px;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--coffee);
}

.header-action,
.button,
.text-button,
.cookie-banner button {
  border: 0;
  cursor: pointer;
}

.header-action,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.header-action,
.button.primary {
  color: #f7eddf;
  background: var(--coffee);
  box-shadow: 0 10px 28px rgba(63, 45, 36, 0.2);
}

.button.secondary {
  border: 1px solid rgba(63, 45, 36, 0.22);
  color: var(--coffee);
  background: rgba(246, 239, 226, 0.72);
}

.header-action:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(44px, 7vw, 96px) clamp(18px, 5vw, 72px) 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Aeonik Pro", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.94;
}

h2 {
  max-width: 760px;
  color: var(--coffee);
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.02;
}

h3 {
  margin: 0;
  color: var(--coffee);
  font-size: 19px;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.45;
}

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

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.proof-strip span {
  padding: 9px 11px;
  border: 1px solid rgba(63, 45, 36, 0.14);
  border-radius: 4px;
  color: var(--coffee);
  background: rgba(246, 239, 226, 0.58);
  font-size: 13px;
  font-weight: 700;
}

.hero-gallery {
  position: relative;
  min-height: 650px;
}

.hero-gallery::before {
  position: absolute;
  inset: 7% 2% 8% 14%;
  content: "";
  border: 1px solid rgba(63, 45, 36, 0.16);
  background:
    linear-gradient(135deg, rgba(119, 120, 91, 0.22), transparent 50%),
    rgba(217, 194, 162, 0.26);
}

.hero-photo {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(63, 45, 36, 0.14);
  background: #eadcc6;
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-main {
  top: 0;
  right: 8%;
  width: min(72%, 420px);
  aspect-ratio: 0.78;
}

.hero-photo-side {
  bottom: 8%;
  left: 0;
  width: min(44%, 250px);
  aspect-ratio: 0.74;
}

.hero-photo-drip {
  right: 0;
  bottom: 0;
  width: min(48%, 285px);
  aspect-ratio: 0.78;
}

.section {
  padding: clamp(68px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow),
.wholesale p,
.section-copy p,
.delivery-grid p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.catalog-tools {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(63, 45, 36, 0.14);
  background: rgba(246, 239, 226, 0.62);
}

.catalog-tools[hidden] {
  display: none;
}

.catalog-quick-nav {
  display: flex;
  gap: 9px;
  margin: 28px 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.catalog-quick-nav::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 15px;
    border: 1px solid rgba(56, 46, 44, 0.18);
  border-radius: 5px;
  color: var(--coffee);
  background: rgba(255, 253, 248, 0.64);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.quick-chip.active,
.quick-chip:hover {
  border-color: var(--coffee);
  color: #f7eddf;
  background: var(--coffee);
}

.filters-toggle {
  display: inline-flex;
  min-height: 42px;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid rgba(63, 45, 36, 0.18);
  border-radius: 5px;
  color: var(--coffee);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.filters-toggle-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #f7eddf;
  background: var(--clay-dark);
  font-size: 15px;
  line-height: 1;
}

.search-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(63, 45, 36, 0.2);
  border-radius: 4px;
  outline: none;
  color: var(--coffee);
  background: rgba(255, 250, 240, 0.54);
}

.search-field input:focus {
  border-color: var(--clay-dark);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-group span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-group select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(63, 45, 36, 0.18);
  border-radius: 4px;
  color: var(--coffee);
  background: rgba(255, 250, 240, 0.62);
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 22px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.text-button {
  padding: 0;
  color: var(--clay-dark);
  background: transparent;
  font-weight: 800;
}

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

.catalog-products {
  scroll-margin-top: 110px;
}

.catalog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.58);
  line-height: 1.5;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(63, 45, 36, 0.14);
  border-radius: 8px;
  background: rgba(246, 239, 226, 0.66);
  box-shadow: 0 16px 35px rgba(74, 47, 34, 0.08);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 0.9;
  background:
    linear-gradient(145deg, rgba(217, 194, 162, 0.7), rgba(246, 239, 226, 0.5)),
    #eadcc6;
}

.product-media img {
  width: 82%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(63, 45, 36, 0.18));
}

.product-type {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  border-radius: 4px;
  color: #f7eddf;
  background: var(--moss);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.product-title {
  display: grid;
  gap: 6px;
}

.product-title strong {
  color: var(--coffee);
  font-size: 19px;
  line-height: 1.12;
}

.product-title span {
  color: var(--muted);
  font-size: 13px;
}

.taste {
  min-height: 42px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.spec-row span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(63, 45, 36, 0.12);
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.spec-row b {
  color: var(--coffee);
  font-size: 13px;
}

.card-bottom {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.price {
  color: var(--coffee);
  font-size: 19px;
  font-weight: 800;
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.quantity-control {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 5px;
  border: 1px solid rgba(63, 45, 36, 0.2);
  border-radius: 4px;
  color: var(--coffee);
  background: rgba(255, 250, 240, 0.48);
}

.quantity-control button {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(63, 45, 36, 0.16);
  border-radius: 3px;
  color: var(--coffee);
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.quantity-control button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.quantity-control span {
  min-width: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.mini-button {
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(63, 45, 36, 0.2);
  border-radius: 4px;
  color: var(--coffee);
  background: rgba(255, 250, 240, 0.48);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.mini-button:active,
.quick-chip:active,
.filters-toggle:active,
.cart-toggle:active,
.menu-toggle:active {
  transform: translateY(1px);
}

.mini-button.order {
  color: #f7eddf;
  background: var(--clay-dark);
}

.wholesale {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 30px;
  align-items: end;
  border-top: 1px solid rgba(63, 45, 36, 0.12);
  border-bottom: 1px solid rgba(63, 45, 36, 0.12);
  background:
    linear-gradient(90deg, rgba(119, 120, 91, 0.13), transparent 52%),
    rgba(217, 194, 162, 0.3);
}

.wholesale-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(63, 45, 36, 0.16);
  background: rgba(246, 239, 226, 0.58);
}

.wholesale-panel div {
  display: grid;
  gap: 6px;
}

.wholesale-panel strong {
  color: var(--coffee);
  font-size: 20px;
}

.wholesale-panel span {
  color: var(--muted);
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.section-image {
  overflow: hidden;
  border: 1px solid rgba(63, 45, 36, 0.14);
  background: #eadcc6;
  box-shadow: var(--shadow);
}

.section-image img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center top;
}

.section-copy {
  display: grid;
  gap: 18px;
}

.about-copy {
  align-self: start;
}

.about-panel {
  display: grid;
  gap: 24px;
  align-self: stretch;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.62);
}

.about-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.about-panel-mark {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.about-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.about-list div {
  display: grid;
  gap: 7px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.about-list strong {
  color: var(--coffee);
  font-size: 15px;
}

.about-list span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.about-panel .button {
  justify-self: start;
}

.roasting-section {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.46);
}

.roasting-intro {
  max-width: 840px;
}

.roasting-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 42px;
}

.roasting-gallery figure {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(247, 245, 241, 0.72);
}

.roasting-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.roasting-gallery figcaption {
  padding: 0 3px 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.roasting-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.roasting-facts article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(247, 245, 241, 0.72);
}

.fact-index {
  display: block;
  margin-bottom: 52px;
  color: var(--clay-dark);
  font-size: 12px;
  font-weight: 800;
}

.roasting-facts h3,
.company-grid h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.roasting-facts p,
.company-grid p,
.requisites-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.roasting-article {
  display: grid;
  grid-template-columns: 0.26fr 1fr;
  gap: 42px;
  margin-top: 18px;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  background: rgba(232, 223, 210, 0.34);
}

.article-marker,
.small-label,
.source-note span {
  color: var(--clay-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-copy {
  max-width: 760px;
}

.article-copy h3 {
  margin: 0 0 22px;
  color: var(--coffee);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
}

.article-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.article-copy a,
.text-link {
  color: var(--clay-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(167, 82, 50, 0.35);
  text-underline-offset: 3px;
}

.profile-list {
  display: grid;
  margin: 32px 0 26px;
  border-top: 1px solid var(--line);
}

.profile-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.profile-row strong {
  color: var(--coffee);
  font-size: 14px;
}

.profile-row span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.article-note {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 14px !important;
}

.source-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.source-note a {
  color: var(--coffee);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.company-section {
  border-top: 1px solid var(--line);
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.company-story,
.partner-block {
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.62);
}

.company-story {
  display: grid;
  gap: 18px;
}

.company-story p {
  max-width: 620px;
  font-size: 16px;
}

.partner-block h3 {
  max-width: 360px;
  margin-top: 20px;
  font-size: 24px;
  line-height: 1.15;
}

.partner-block p {
  margin-bottom: 16px;
}

.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.partner-list span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--coffee);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

.partner-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.partner-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(57, 47, 42, 0.12);
}

.partner-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.partner-card > span {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.partner-card strong {
  color: var(--coffee);
  font-size: 14px;
}

.partner-card small {
  color: var(--muted);
  font-size: 11px;
}

.requisites {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: rgba(247, 245, 241, 0.72);
}

.requisites summary {
  padding: 20px 22px;
  cursor: pointer;
  color: var(--coffee);
  font-size: 15px;
  font-weight: 700;
}

.requisites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  padding: 0 22px 22px;
  background: var(--line);
}

.requisites-grid div {
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 14px;
  background: var(--paper-soft);
}

.requisites-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.requisites-grid strong {
  color: var(--coffee);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.requisites-note {
  padding: 0 22px 22px;
  background: var(--paper-soft);
}

.delivery-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.delivery-grid article,
.contact-card,
.contact-note {
  border: 1px solid rgba(63, 45, 36, 0.14);
  background: rgba(246, 239, 226, 0.6);
}

.delivery-grid article {
  padding: 22px;
}

.delivery-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--clay-dark);
  font-weight: 800;
}

.contact-grid {
  grid-template-columns: repeat(4, 1fr);
}

.contact-card,
.contact-note {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.contact-card span,
.contact-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card strong,
.contact-note strong {
  color: var(--coffee);
  font-size: 18px;
}

.contact-note {
  margin-top: 16px;
}

.legal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 72px) 70px;
}

.legal-intro {
  grid-column: 1 / -1;
  max-width: 720px;
}

.legal-intro h2 {
  margin: 0 0 12px;
  color: var(--coffee);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
}

.legal-intro p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.legal-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column: 1 / -1;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.legal-links a {
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.76);
  transition: background 180ms ease, transform 180ms ease;
}

.legal-links a:hover {
  background: var(--paper-soft);
  transform: translateY(-2px);
}

.legal-links span {
  color: var(--clay-dark);
  font-size: 11px;
  font-weight: 800;
}

.legal-links strong {
  color: var(--coffee);
  font-size: 15px;
}

.legal-links small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.legal details {
  padding: 18px;
  border: 1px solid rgba(63, 45, 36, 0.14);
  background: rgba(246, 239, 226, 0.5);
}

.legal summary {
  cursor: pointer;
  color: var(--coffee);
  font-weight: 800;
}

.legal p {
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(63, 45, 36, 0.14);
  color: var(--muted);
  font-size: 14px;
}

.footer-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--coffee);
  font-size: 12px;
  font-weight: 700;
}

.product-dialog {
  width: min(960px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper-soft);
  box-shadow: 0 34px 90px rgba(45, 36, 30, 0.34);
}

.product-dialog::backdrop {
  background: rgba(45, 36, 30, 0.48);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(63, 45, 36, 0.14);
  border-radius: 50%;
  color: var(--coffee);
  background: rgba(246, 239, 226, 0.78);
  cursor: pointer;
  font-size: 22px;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  min-height: 560px;
}

.dialog-image {
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(217, 194, 162, 0.86), rgba(239, 228, 209, 0.44)),
    #eadcc6;
}

.dialog-image img {
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(63, 45, 36, 0.2));
}

.dialog-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 42px;
}

.dialog-copy h3 {
  font-family: "Aeonik Pro", Arial, sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 0.96;
}

.dialog-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-list div {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgba(63, 45, 36, 0.12);
}

.detail-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  display: none;
  max-width: 420px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(63, 45, 36, 0.16);
  border-radius: 8px;
  color: var(--coffee);
  background: rgba(246, 239, 226, 0.92);
  box-shadow: var(--shadow);
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner button {
  min-width: 58px;
  min-height: 38px;
  border-radius: 5px;
  color: #f7eddf;
  background: var(--coffee);
  font-weight: 800;
}

.cookie-banner a,
.cart-legal-note a {
  color: var(--clay-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(45, 36, 30, 0.42);
  backdrop-filter: blur(4px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100vw);
  padding: 28px;
  border-left: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper-soft);
  box-shadow: -20px 0 60px rgba(45, 36, 30, 0.2);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.account-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(63, 45, 36, 0.18);
  border-radius: 5px;
  color: var(--coffee);
  background: rgba(246, 239, 226, 0.72);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.account-toggle.signed-in {
  border-color: var(--coffee);
  background: var(--coffee);
  color: var(--paper-soft);
}

.account-toggle:hover {
  transform: translateY(-2px);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  font-size: clamp(28px, 5vw, 42px);
}

.cart-close {
  position: static;
  flex: 0 0 auto;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 20px 0;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--sand);
}

.cart-item-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cart-item-copy strong {
  color: var(--coffee);
  font-size: 14px;
  line-height: 1.25;
}

.cart-item-copy > span {
  color: var(--muted);
  font-size: 12px;
}

.cart-item-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cart-item-controls button {
  display: inline-grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--coffee);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.cart-item-controls b {
  min-width: 15px;
  text-align: center;
  font-size: 13px;
}

.cart-item-controls .cart-remove {
  margin-left: auto;
  border: 0;
  color: var(--clay-dark);
  font-size: 11px;
}

.cart-footer {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cart-legal-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.cart-total strong {
  color: var(--coffee);
  font-size: 20px;
}

.cart-order:disabled,
.cart-clear:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.cart-clear {
  justify-self: start;
}

.cart-order-status {
  min-height: 16px;
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.cart-order-status[data-tone="success"] {
  color: var(--moss);
}

.cart-order-status[data-tone="error"] {
  color: #9a3c24;
}

.auth-dialog {
  width: min(480px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper-soft);
  box-shadow: 0 34px 90px rgba(45, 36, 30, 0.34);
}

.auth-dialog::backdrop {
  background: rgba(45, 36, 30, 0.48);
  backdrop-filter: blur(8px);
}

.auth-dialog-inner {
  display: grid;
  gap: 16px;
  max-height: min(86vh, 820px);
  overflow-y: auto;
  padding: 42px;
}

.auth-dialog h2 {
  margin: 0;
  color: var(--coffee);
  font-size: clamp(32px, 6vw, 48px);
  line-height: 0.98;
}

.auth-intro {
  margin: -4px 0 4px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-dialog form,
.auth-account {
  display: grid;
  gap: 13px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field span,
.small-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--coffee);
  background: #fff;
  outline: none;
}

.auth-field textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--coffee);
  background: #fff;
  font: inherit;
  outline: none;
}

.auth-field input:focus,
.auth-field textarea:focus {
  border-color: var(--clay-dark);
  box-shadow: 0 0 0 3px rgba(183, 97, 23, 0.12);
}

.auth-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-consent input {
  margin-top: 2px;
  accent-color: var(--coffee);
}

.auth-consent a,
.auth-status a {
  color: var(--clay-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.auth-status {
  min-height: 19px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-status[data-tone="error"] {
  color: #9a3c24;
}

.auth-status[data-tone="success"] {
  color: var(--moss);
}

.auth-account {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(239, 228, 209, 0.42);
}

.auth-account strong {
  color: var(--coffee);
  font-size: 20px;
}

.auth-account > span:not(.small-label) {
  color: var(--muted);
  font-size: 13px;
}

.profile-form,
.profile-history {
  display: grid;
  gap: 13px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.profile-form-head,
.profile-order-head,
.profile-order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-form-note {
  color: var(--muted);
  font-size: 11px;
}

.profile-orders {
  display: grid;
  gap: 9px;
}

.profile-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-order {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.7);
}

.profile-order-head strong {
  color: var(--coffee);
  font-size: 12px;
}

.profile-order-head span {
  padding: 4px 7px;
  color: var(--coffee);
  background: rgba(201, 171, 132, 0.25);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-order-head span[data-status="completed"] {
  color: var(--moss);
  background: rgba(82, 105, 76, 0.14);
}

.profile-order-head span[data-status="cancelled"] {
  color: var(--clay-dark);
  background: rgba(183, 97, 23, 0.12);
}

.profile-order p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.profile-order-meta {
  color: var(--muted);
  font-size: 11px;
}

.profile-order-meta strong {
  color: var(--coffee);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.auth-links .text-button {
  color: var(--clay-dark);
}

.catalog-back {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 18;
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(63, 45, 36, 0.2);
  border-radius: 50%;
  color: #f7eddf;
  background: var(--coffee);
  box-shadow: 0 12px 24px rgba(63, 45, 36, 0.2);
  cursor: pointer;
  font-size: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.catalog-back.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.partner-page {
  min-height: 100vh;
}

.partner-page-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: center;
  max-width: 1440px;
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) clamp(18px, 5vw, 72px);
}

.partner-page-copy {
  max-width: 680px;
}

.partner-page-copy h1 {
  margin-bottom: 28px;
  font-size: clamp(42px, 7vw, 96px);
}

.partner-page-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.partner-page-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0;
}

.partner-page-meta div {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.62);
}

.partner-page-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.partner-page-meta strong {
  color: var(--coffee);
  font-size: 14px;
}

.partner-page-photo {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--sand);
  box-shadow: var(--shadow);
}

.partner-page-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.partner-page-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  color: var(--muted);
  background: var(--paper-soft);
  font-size: 12px;
}

.partner-page-caption strong {
  color: var(--coffee);
}

.partner-page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .partner-page-main {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .partner-page-photo {
    max-width: 680px;
  }
}

@media (max-width: 620px) {
  .partner-page-meta {
    grid-template-columns: 1fr;
  }

  .partner-page-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-row,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px 14px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-soft);
    box-shadow: 0 18px 28px rgba(63, 45, 36, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
    justify-content: stretch;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(63, 45, 36, 0.1);
    color: var(--coffee);
  }

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

  .header-action {
    display: none;
  }

  .hero,
  .split-section,
  .wholesale,
  .dialog-layout,
  .roasting-article,
  .company-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-gallery {
    min-height: 560px;
  }

  .delivery-grid,
  .product-grid,
  .legal,
  .roasting-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 14px;
  }

  .brand {
    width: 98px;
  }

  .header-actions {
    gap: 4px;
    min-width: 0;
  }

  .menu-toggle,
  .cart-toggle,
  .account-toggle {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .menu-toggle span:last-child {
    display: none;
  }

  .account-toggle {
    padding-right: 9px;
    padding-left: 9px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-gallery {
    min-height: 460px;
  }

  .hero-photo-main {
    width: 74%;
  }

  .hero-photo-side,
  .hero-photo-drip {
    width: 48%;
  }

  .filter-row,
  .contact-grid,
  .spec-row,
  .detail-list,
  .requisites-grid,
  .partner-cards,
  .roasting-gallery,
  .legal-links {
    grid-template-columns: 1fr;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .roasting-facts article {
    min-height: auto;
  }

  .section-image img {
    height: 460px;
  }

  .footer,
  .catalog-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
    padding: 10px;
    font-size: 13px;
    line-height: 1.35;
  }

  .cookie-banner button {
    min-width: 46px;
    min-height: 34px;
  }

  .catalog-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .catalog-quick-nav {
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 3px;
  }

  .filters-toggle {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .catalog-tools {
    padding: 14px;
  }

  .product-body {
    padding: 14px;
  }

  .card-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-actions {
    width: 100%;
  }

  .quantity-control {
    flex: 0 0 auto;
  }

  .mini-button {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .cart-drawer {
    top: auto;
    bottom: 0;
    min-height: 0;
    max-height: 90vh;
    padding: 20px 14px 14px;
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 16px 16px 0 0;
    transform: translateY(105%);
  }

  .cart-drawer.open {
    transform: translateY(0);
  }

  .catalog-back {
    right: 14px;
    bottom: 14px;
  }

  .auth-dialog-inner {
    padding: 34px 20px 24px;
  }
}
