/* FoodTech KZ — light "food lab" look after the Green Stack reference: cold pale grounds, stainless steel,
   deep teal-graphite for dark sections, one bright accent. */
:root {
  --bg: #eef2f3;
  --bg-2: #e2e8ea;
  --surface: #ffffff;
  --steel-1: #c9d2d6;
  --steel-2: #8b979e;
  --steel-3: #57636a;
  --ink: #0d1b21;
  --line: #d6dde0;
  --dark: #0d1c22;
  --dark-2: #13303a;
  --accent: #ff5a14;
  --accent-2: #e14a08;
  --wa: #25d366;
  --radius: 22px;
  --display: "Onest", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--display); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font: 500 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--steel-3); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; text-wrap: balance; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
       font: 600 16px/1 var(--display); text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(255,90,20,.28); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: rgba(255,255,255,.6); color: var(--ink); box-shadow: inset 0 0 0 1px var(--steel-1); backdrop-filter: blur(6px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, box-shadow .3s; }
.top.solid { background: rgba(238,242,243,.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { font: 700 20px/1 var(--display); letter-spacing: -.03em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: conic-gradient(from 210deg, #f3f6f7, #9aa6ad, #f3f6f7, #b8c2c7, #f3f6f7); box-shadow: inset 0 0 0 1px rgba(13,27,33,.12); position: relative; }
.logo i::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--accent); }
.nav { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; color: var(--steel-3); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.top .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
@media (max-width: 860px) { .nav { display: none; } }

/* Hero */
.hero { position: relative; min-height: max(640px, 94svh); overflow: hidden; background:
  radial-gradient(70% 60% at 72% 40%, #ffffff 0%, rgba(255,255,255,0) 60%),
  radial-gradient(60% 50% at 10% 90%, #dfe7ea 0%, rgba(223,231,234,0) 70%), var(--bg); }
#dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center; min-height: max(640px, 94svh); padding-top: 96px; padding-bottom: clamp(140px, 18vw, 260px); }
.hero h1 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--steel-3); max-width: 46ch; margin: 22px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stage3d { position: relative; height: min(64vh, 620px); perspective: 1200px; }
.float { position: absolute; will-change: transform; filter: drop-shadow(0 40px 40px rgba(13,27,33,.18)) drop-shadow(0 6px 8px rgba(13,27,33,.12)); }
.float img { width: 100%; height: auto; }
.float.f1 { width: 50%; left: 26%; top: 6%; z-index: 3; }
.float.f2 { width: 30%; left: 0; top: 46%; z-index: 4; }
.float.f3 { width: 26%; right: 0; top: 14%; z-index: 2; }
.float.f4 { width: 24%; right: 6%; top: 64%; z-index: 5; }
.wordmark { position: absolute; left: 0; right: 0; bottom: -0.16em; z-index: 1; text-align: center; font: 800 clamp(64px, 17.5vw, 290px)/0.8 var(--display); letter-spacing: -.06em;
            color: transparent; background: linear-gradient(180deg, #d4dde1 0%, #eef2f3 85%); -webkit-background-clip: text; background-clip: text; white-space: nowrap; user-select: none; pointer-events: none; }
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-2); }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 84px; padding-bottom: 120px; }
  .stage3d { height: 250px; order: -1; margin-top: 0; }
  .float.f4 { top: 50%; width: 20%; }
  .hero, .hero-in { min-height: auto; }
}

/* Stats strip — only figures computed from the catalog */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 32px 24px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font: 600 clamp(36px, 5vw, 68px)/1 var(--display); letter-spacing: -.04em; }
.stats span { color: var(--steel-3); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Scroll text reveal (reference: lines filling from grey to ink) */
.manifest { padding-block: clamp(80px, 12vw, 160px); }
.manifest p { margin: 0; font: 500 clamp(26px, 3.6vw, 52px)/1.12 var(--display); letter-spacing: -.025em; max-width: 24ch; }
.manifest .w { color: var(--steel-1); transition: color .25s; }
.manifest .w.on { color: var(--ink); }

section.block { padding-block: clamp(64px, 8vw, 110px); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1; font-weight: 700; margin-top: 14px; }
.sec-head p { max-width: 44ch; color: var(--steel-3); margin: 0; }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat { position: relative; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 12px; min-height: 320px; padding: 22px; border-radius: var(--radius); background: linear-gradient(170deg, #ffffff 0%, #eef2f3 100%);
       box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; overflow: hidden; }
.cat:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--steel-1), 0 30px 60px -30px rgba(13,27,33,.35); }
.cat-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.cat h3 { font-size: 20px; line-height: 1.15; font-weight: 600; hyphens: manual; overflow-wrap: break-word; }
.cat .idx { flex: none; font: 500 12px/1.6 var(--mono); color: var(--steel-2); }
.cat .pic { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 150px; }
.cat .pic img { width: 100%; height: 100%; max-height: 170px; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(13,27,33,.14)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.cat:hover .pic img { transform: translateY(-4px) scale(1.04); }
.cat .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); color: var(--steel-3); font-size: 13px; }
.cat .meta b { color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
@media (max-width: 1080px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cats { grid-template-columns: 1fr 1fr; gap: 10px; } .cat { min-height: 0; padding: 14px; gap: 8px; } .cat h3 { font-size: 15.5px; }
  .cat .idx { display: none; } .cat .pic { min-height: 110px; } .cat .pic img { max-height: 120px; }
  .cat .meta { flex-direction: column; align-items: start; gap: 2px; padding-top: 8px; font-size: 12px; } .cat .meta b { font-size: 14px; } }

/* Dark section (reference: deep teal graphite) */
.dark { background: radial-gradient(80% 90% at 85% 10%, #1d4552 0%, var(--dark) 60%); color: #e8f0f2; }
.dark .eyebrow { color: #93aab2; }
.dark .sec-head p { color: #a9bcc2; }
.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.adv > div { border-radius: var(--radius); padding: 26px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.adv svg { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.adv h3 { font-size: 21px; margin-top: 30px; font-weight: 600; }
.adv p { color: #a9bcc2; font-size: 15px; margin: 10px 0 0; }
@media (max-width: 980px) { .adv { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .adv { grid-template-columns: 1fr; } }

/* Process (a real sequence → numbered) */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.steps li { list-style: none; padding: 26px 22px 0 0; border-top: 2px solid var(--steel-1); position: relative; }
.steps li::before { counter-increment: s; content: "0" counter(s); font: 500 13px/1 var(--mono); color: var(--accent); }
.steps li.on { border-top-color: var(--ink); }
.steps h3 { font-size: 19px; font-weight: 600; margin-top: 14px; }
.steps p { color: var(--steel-3); font-size: 15px; margin: 8px 0 0; }
.steps { padding: 0; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .steps li { padding: 20px 0 22px; } }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--steel-1), 0 24px 50px -28px rgba(13,27,33,.35); }
.card .pic { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(170deg, #ffffff 0%, #eef2f3 100%); display: block; }
.card .pic { overflow: hidden; }
.card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.card .pic img.cut, .gallery .main img.cut { filter: drop-shadow(0 14px 14px rgba(13,27,33,.14)); }
.card .tag { position: absolute; z-index: 2; left: 14px; top: 14px; font: 500 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--steel-3); background: var(--bg); padding: 7px 10px; border-radius: 999px; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; border-top: 1px solid var(--line); }
.card h3 { font-size: 18px; line-height: 1.25; font-weight: 600; }
.card h3 a { text-decoration: none; }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.card li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.card li span { color: var(--steel-3); }
.card li b { font-weight: 500; text-align: right; }
.price { font: 700 22px/1.1 var(--display); letter-spacing: -.02em; margin-top: auto; }
.price.req { font-size: 18px; color: var(--steel-3); }
.card .acts { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.card .acts .btn { min-height: 46px; font-size: 15px; padding: 0 16px; }
.card .acts .btn-wa { width: 46px; padding: 0; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }

/* Lead form */
.lead-box { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-radius: 32px; padding: clamp(24px, 4vw, 56px); background: linear-gradient(160deg, #ffffff, #e6ecee); box-shadow: inset 0 0 0 1px var(--line); }
.lead-box h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1; font-weight: 700; margin-top: 14px; }
.lead-box p { color: var(--steel-3); max-width: 42ch; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; color: var(--steel-3); }
.field { width: 100%; min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 12px 16px; font: 400 16px/1.3 var(--display); color: var(--ink); }
.field:focus { outline: none; border-color: var(--steel-2); box-shadow: 0 0 0 4px rgba(13,27,33,.06); }
textarea.field { min-height: 110px; resize: vertical; }
.err { color: #c62d00; font-size: 14px; margin: 0; }
.done { display: grid; gap: 12px; }
.done pre { white-space: pre-wrap; margin: 0; padding: 14px; border-radius: 14px; background: var(--bg); font: 400 14px/1.5 var(--display); }
@media (max-width: 860px) { .lead-box { grid-template-columns: 1fr; } }

/* Catalog page */
.page-head { padding-top: 120px; padding-bottom: 28px; }
.page-head h1 { font-size: clamp(40px, 6vw, 84px); line-height: .95; font-weight: 700; }
.cat-layout { display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 90px; display: grid; gap: 22px; padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.f-title { font: 600 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--steel-2); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 14px/1 var(--display); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range .field { min-height: 46px; }
.results-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--steel-3); font-size: 14px; margin-bottom: 14px; }
.empty { padding: 40px; text-align: center; color: var(--steel-3); border: 1px dashed var(--steel-1); border-radius: var(--radius); }
.f-toggle { display: none; }
@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: grid; }
  .f-toggle { display: inline-flex; }
}

/* Product page */
.prod { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; padding-top: 110px; align-items: start; }
.gallery .main { border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { aspect-ratio: 1 / 1; border-radius: 14px; border: 0; padding: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.thumbs button[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.prod h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; font-weight: 700; margin-top: 14px; }
.prod .short { color: var(--steel-3); font-size: 18px; margin: 14px 0 0; }
.prod .price { font-size: clamp(30px, 3vw, 40px); margin: 26px 0 6px; }
.prod .note { color: var(--steel-2); font-size: 13px; margin: 0; }
.prod .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.specs-tbl { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 15px; }
.specs-tbl td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs-tbl td:first-child { color: var(--steel-3); width: 48%; padding-right: 16px; }
.specs-tbl td:last-child { font-weight: 500; }
.desc { font-size: 17px; max-width: 64ch; }
@media (max-width: 900px) { .prod { grid-template-columns: 1fr; padding-top: 92px; } }

/* Reveal on scroll: visible at rest, animated in by JS only when supported */
.rv { opacity: 1; }
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.js .rv.in { opacity: 1; transform: none; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
            display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(13,27,33,.3), 0 0 0 0 rgba(37,211,102,.5); animation: wa-pulse 2.6s ease-out infinite; }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
@keyframes wa-pulse { 0% { box-shadow: 0 12px 30px rgba(13,27,33,.3), 0 0 0 0 rgba(37,211,102,.5); } 70%, 100% { box-shadow: 0 12px 30px rgba(13,27,33,.3), 0 0 0 16px rgba(37,211,102,0); } }

footer.site { padding-block: 40px 60px; border-top: 1px solid var(--line); color: var(--steel-3); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--ink); }
