:root {
  --ink: #1f2926;
  --muted: #69736e;
  --paper: #f8f7f2;
  --surface: #ffffff;
  --line: #dde3dc;
  --sage: #dbe8d5;
  --deep-sage: #355b4d;
  --coral: #e9795d;
  --yellow: #f4cf71;
  --shadow: 0 18px 40px rgba(31, 41, 38, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  color: white;
  background: var(--deep-sage);
  border-radius: 8px;
}

.skip-link:focus { top: 12px; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid rgba(31, 41, 38, 0.08);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: white;
  background: var(--coral);
  border-radius: 13px 13px 13px 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: -0.02em; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 10px; letter-spacing: 0.03em; }

.header-note, .catalog-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: #7eb37a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(126, 179, 122, 0.15);
}

.hero { overflow: hidden; background: var(--sage); }

.hero-grid {
  display: grid;
  min-height: 445px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--deep-sage);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.055em; }

h1 { max-width: 610px; margin-bottom: 22px; font-size: clamp(3.2rem, 6.5vw, 5.7rem); line-height: 0.91; }
h1 em { color: var(--coral); font-style: normal; }

.hero-description { max-width: 430px; margin-bottom: 28px; color: #4b6259; font-size: 16px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--deep-sage);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.text-link span { font-size: 18px; line-height: 0.5; transition: transform 180ms ease; }
.text-link:hover span { transform: translateY(4px); }

.hero-art { position: relative; min-height: 390px; }
.sun-shape { position: absolute; right: 14%; top: 6%; width: 190px; height: 190px; background: var(--yellow); border-radius: 50%; }
.leaf { position: absolute; width: 120px; height: 54px; background: #88ad85; border-radius: 100% 0 100% 0; transform: rotate(-25deg); }
.leaf-one { right: 10%; top: 25%; }
.leaf-two { right: 22%; top: 37%; transform: rotate(54deg) scale(0.72); background: #6f9676; }

.basket { position: absolute; right: 11%; bottom: 2%; width: 330px; height: 260px; }
.basket-body { position: absolute; right: 0; bottom: 0; width: 290px; height: 190px; background: #ce8c54; border: 13px solid #9e633b; border-top-width: 18px; border-radius: 18px 18px 55px 55px; box-shadow: inset 0 -24px rgba(112, 70, 44, 0.12), 0 22px 35px rgba(75, 72, 36, 0.13); transform: rotate(-3deg); }
.basket-body::before, .basket-body::after { position: absolute; top: 26px; bottom: 22px; width: 9px; background: rgba(119, 67, 40, 0.27); content: ""; }
.basket-body::before { left: 67px; box-shadow: 63px 0 rgba(119, 67, 40, 0.27), 126px 0 rgba(119, 67, 40, 0.27); }
.basket-body::after { right: 38px; transform: rotate(90deg); box-shadow: 58px 0 rgba(119, 67, 40, 0.2), 116px 0 rgba(119, 67, 40, 0.2); }
.basket-item { position: absolute; z-index: 1; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: #fff8dc; font-size: 47px; font-weight: 700; line-height: 1; }
.item-one { right: 166px; bottom: 126px; background: #5c896c; transform: rotate(-13deg); }
.item-two { right: 67px; bottom: 126px; background: #e36d54; transform: rotate(12deg); }
.item-three { right: 119px; bottom: 158px; width: 74px; height: 74px; color: #f8c657; background: #8c674f; font-size: 34px; }

.catalog-section { padding: 92px 0 112px; background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2.7rem, 5vw, 4.4rem); line-height: 0.95; }
.heading-accent { color: var(--coral); }
.section-intro { max-width: 290px; margin-bottom: 3px; color: var(--muted); font-size: 14px; }

.search-panel { display: grid; grid-template-columns: max-content minmax(220px, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 30px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.search-label { color: var(--deep-sage); font-size: 13px; font-weight: 800; }
.search-control { position: relative; display: flex; align-items: center; min-width: 0; }
.search-icon { position: absolute; left: 16px; color: var(--coral); font-size: 27px; line-height: 1; transform: translateY(-2px); }
.search-control input { width: 100%; min-height: 49px; padding: 0 78px 0 47px; color: var(--ink); background: #fbfcf9; border: 1px solid var(--line); border-radius: 12px; outline: 0; font-size: 14px; }
.search-control input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(233, 121, 93, 0.16); }
.search-control input::placeholder { color: #9aa39d; }
.clear-search { position: absolute; right: 8px; min-height: 44px; padding: 9px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 700; }
.clear-search:hover, .clear-search:focus-visible { color: var(--coral); background: #fff0eb; }
.search-hint { grid-column: 2; margin: 8px 0 0; color: var(--muted); font-size: 11px; }

.catalog-meta { display: flex; align-items: center; gap: 14px; margin: 43px 0 20px; }
.catalog-meta p { margin: 0; color: var(--deep-sage); font-size: 12px; font-weight: 800; }
.catalog-rule { height: 1px; flex: 1; background: var(--line); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { overflow: hidden; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 8px 22px rgba(31, 41, 38, 0.035); transition: box-shadow 180ms ease, transform 180ms ease; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-visual { display: grid; min-height: 166px; place-items: center; color: rgba(255, 255, 255, 0.88); font-family: Georgia, serif; font-size: 62px; }
.product-visual.coffee { background: linear-gradient(135deg, #765e52, #b48b70); }
.product-visual.bread { background: linear-gradient(135deg, #cf9657, #f0c778); }
.product-visual.berry { background: linear-gradient(135deg, #8d5367, #d17f89); }
.product-visual.honey { background: linear-gradient(135deg, #d7913f, #f3ca67); }
.product-visual.orange { background: linear-gradient(135deg, #db7550, #f0a156); }
.product-visual.granola { background: linear-gradient(135deg, #a08355, #d4b276); }
.product-visual.cheese { background: linear-gradient(135deg, #c1a153, #ead38b); }
.product-visual.amber { background: linear-gradient(135deg, #84654f, #c28b5e); }
.product-visual.herbal { background: linear-gradient(135deg, #679078, #acd0a1); }
.product-visual.fiber { background: linear-gradient(135deg, #a67d58, #ddbd81); }
.product-body { padding: 20px 21px 18px; }
.product-category { margin-bottom: 8px; color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.product-card h3 { min-height: 50px; margin-bottom: 8px; font-size: 18px; line-height: 1.18; letter-spacing: -0.03em; }
.product-description { min-height: 65px; margin-bottom: 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 15px; }
.product-price { margin: 0; color: var(--deep-sage); font-size: 16px; font-weight: 850; }
.empty-state { padding: 70px 24px; text-align: center; background: var(--surface); border: 1px dashed #cbd8ca; border-radius: var(--radius-lg); }
.empty-icon { display: grid; width: 44px; height: 44px; margin: 0 auto 15px; place-items: center; color: var(--coral); background: #fff0eb; border-radius: 50%; font-size: 27px; }
.empty-state h3 { margin-bottom: 8px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.empty-state p { max-width: 340px; margin: 0 auto 20px; color: var(--muted); font-size: 13px; }
.button-secondary { min-height: 44px; padding: 10px 16px; color: var(--deep-sage); background: white; border: 1px solid #b8cdb9; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 800; }
.button-secondary:hover, .button-secondary:focus-visible { color: white; background: var(--deep-sage); }

.site-footer { color: #d5e2d4; background: var(--deep-sage); }
.site-footer .footer-inner { min-height: 94px; }
.site-footer p { margin: 0; font-size: 11px; }
.site-footer strong { color: white; }
.footer-detail { opacity: 0.7; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr 0.7fr; gap: 10px; }
  .hero-art { min-height: 320px; transform: scale(0.8); transform-origin: right center; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .container { width: min(100% - 32px, 480px); }
  .header-inner { min-height: 68px; }
  .header-note { display: none; }
  .hero-grid { display: block; min-height: 0; padding: 70px 0 0; }
  .hero-copy { position: relative; z-index: 1; }
  h1 { font-size: clamp(3.45rem, 17vw, 5rem); }
  .hero-description { max-width: 320px; font-size: 14px; }
  .hero-art { min-height: 224px; margin: -25px -20px 0 22px; transform: scale(0.75); transform-origin: 80% center; }
  .catalog-section { padding: 65px 0 80px; }
  .section-heading { display: block; margin-bottom: 29px; }
  .section-intro { margin: 18px 0 0; font-size: 13px; }
  .search-panel { display: block; padding: 18px; }
  .search-label { display: block; margin-bottom: 11px; }
  .search-hint { margin: 9px 0 0; }
  .catalog-meta { margin-top: 31px; }
  .catalog-label { display: none; }
  .product-grid { grid-template-columns: 1fr; gap: 15px; }
  .product-visual { min-height: 140px; }
  .product-card h3, .product-description { min-height: 0; }
  .product-description { margin-bottom: 19px; }
  .site-footer .footer-inner { display: block; padding: 24px 0; }
  .footer-detail { margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
