/* part.allcut.in — same look as allcut.in: white paper, ink type, one red, hairlines, square corners, Roboto.
   No words under 15px. Words use --ink or --ink-2 on light, --dark-1 or --dark-2 on dark. */

/* Roboto, served from this site (same files Google Fonts sends). Apache License 2.0. */
@font-face {
  font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/roboto-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/roboto-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fafaf8; --white: #fff; --tint: #f3f2ee;
  --ink: #15130f; --ink-2: #3b3732; --ink-4: #a6a198;
  --dark-1: #f6f4ef; --dark-2: #d6d2cb; --dark-line: #3a3630;
  --rule: #e5e3de; --rule-2: #d3d0c9;
  --red: #e1251b; --red-ink: #c41d13;
  --wrap: 1440px; --gutter: clamp(20px, 3.2vw, 44px); --head-h: 68px;
  --sec: clamp(64px, 8vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--red) 22%, transparent); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.red { color: var(--red); }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.narrow { max-width: 720px; margin-top: 14px; }

/* section label with the short red bar */
.label { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; color: var(--ink); }
.label::before { content: ""; width: 28px; height: 3px; background: var(--red); flex: none; }
.label--dark { color: var(--dark-1); }

/* buttons */
.btn {
  --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--b); background: var(--b); color: #fff;
  font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap; border-radius: 0;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { --b: #000; }
.btn--red { --b: var(--red); }
.btn--red:hover { --b: var(--red-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--white); }
.btn--big { min-height: 54px; font-size: 17px; width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }
.btnrow > .btn { flex: 1 1 160px; }
.link { display: inline-flex; font-weight: 600; border-bottom: 1px solid var(--rule-2); padding-bottom: 2px; transition: border-color .15s, color .15s; }
.link:hover { border-color: var(--red); color: var(--red-ink); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--rule-2); background: var(--white); color: var(--ink);
  font-weight: 600; font-size: 15px; transition: border-color .15s, background-color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips--sm .chip { min-height: 40px; padding: 0 14px; }

/* top strip + header */
.strip { background: var(--ink); color: var(--dark-2); font-size: 15px; }
.strip__in { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between; padding-block: 8px; }
.strip__links { display: flex; gap: 22px; }
.strip__links a { color: var(--dark-1); font-weight: 600; }
.strip__links a:hover { color: #fff; text-decoration: underline; }
.head { position: sticky; top: 0; z-index: 30; background: rgba(250, 250, 248, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.head__in { min-height: var(--head-h); display: flex; align-items: center; gap: 10px clamp(20px, 3vw, 48px); }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { height: 30px; width: auto; }
.brand span { border-left: 1px solid var(--rule-2); padding-left: 14px; font-weight: 700; font-size: 16px; }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); align-self: stretch; }
.nav a { display: flex; align-items: center; color: var(--ink-2); font-weight: 500; font-size: 16px; position: relative; padding-inline: 2px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.cartbtn { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 8px 0 18px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; white-space: nowrap; transition: background-color .15s; }
.cartbtn:hover { background: #000; }
.cartbtn__n { min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center; background: var(--red); font-weight: 700; }
.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* hero */
.hero { background: var(--ink); color: var(--dark-1); }
.hero__in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: clamp(56px, 7vw, 104px); }
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero h1 { margin-top: 22px; font-size: clamp(46px, 6.4vw, 92px); line-height: 1; letter-spacing: -0.025em; }
.hero__lead { margin-top: 26px; max-width: 560px; font-size: 19px; color: var(--dark-2); }
.search { position: relative; margin-top: 34px; max-width: 600px; display: flex; background: var(--white); border: 1px solid var(--white); }
.search__icon { width: 52px; flex: none; padding: 0 16px; fill: none; stroke: var(--ink-2); stroke-width: 2; align-self: center; }
.search input { flex: 1; min-width: 0; border: 0; padding: 16px 8px; font-size: 17px; color: var(--ink); background: transparent; }
.search input::-webkit-search-cancel-button { display: none; }
.search .btn { min-height: auto; padding: 0 26px; }
.stats { margin-top: 34px; max-width: 600px; display: flex; flex-wrap: wrap; border-top: 1px solid var(--dark-line); }
.stats > div { flex: 1 1 150px; padding: 16px 20px 0; border-left: 1px solid var(--dark-line); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats b { display: block; font-size: 34px; font-weight: 800; }
.stats span { font-size: 15px; color: var(--dark-2); }
.hero__pic { flex: 1 1 420px; min-width: 0; position: relative; background: var(--paper); aspect-ratio: 1 / 1.05; display: grid; place-items: center; padding: 8% 8% 96px; }
.hero__pic img { max-height: 100%; width: auto; object-fit: contain; }
.hero__cap { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--rule); background: var(--white); color: var(--ink); }
.hero__cap b { display: block; font-size: 17px; }
.hero__cap span { font-size: 15px; color: var(--ink-2); }

/* steps */
.steps { background: var(--white); border-bottom: 1px solid var(--rule); }
.steps__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 22px 20px 22px 0; border-top: 3px solid var(--rule); transition: border-color .2s; }
.step.on { border-top-color: var(--red); }
.step__n { font-weight: 700; font-size: 15px; color: var(--ink-2); padding-top: 2px; }
.step.on .step__n { color: var(--red-ink); }
.step b { display: block; font-size: 18px; }
.step small { display: block; font-size: 15px; color: var(--ink-2); }

/* sections */
.sec { padding-block: var(--sec); }
.sec--white { background: var(--white); border-block: 1px solid var(--rule); }
.sec--tint { background: var(--tint); border-top: 1px solid var(--rule); }
.sec--tight { padding-block: clamp(56px, 6vw, 88px); }
.sec h2 { margin-top: 16px; font-size: clamp(34px, 3.8vw, 54px); }
.sec__top { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; }
.sec__head { max-width: 720px; }
.sec__head p { margin-top: 14px; }

/* machine cards */
.cards { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.card { position: relative; text-align: left; border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); padding: 24px 24px 26px; display: flex; flex-direction: column; transition: background-color .2s; }
.card:hover, .card[aria-pressed="true"] { background: var(--white); }
.card[aria-pressed="true"] { box-shadow: inset 0 3px 0 var(--red); }
.card__pic { aspect-ratio: 1; display: grid; place-items: center; padding: 6% 12%; overflow: hidden; }
.card__pic img { max-height: 100%; width: auto; object-fit: contain; transition: transform .3s var(--ease); }
.card:hover .card__pic img { transform: translateY(-4px); }
.card__series { margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.card__name { margin-top: 4px; font-weight: 700; font-size: 22px; line-height: 1.15; }
.card__status { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.card__status::before { content: ""; width: 7px; height: 7px; background: var(--ink-4); flex: none; }
.card__status.ready { color: var(--red-ink); }
.card__status.ready::before { background: var(--red); }
.card--ask { justify-content: space-between; gap: 24px; padding: 28px 24px; background: var(--tint); min-height: 300px; }
.card--ask:hover { background: var(--white); }
.card--ask__t { font-weight: 800; font-size: 26px; line-height: 1.12; letter-spacing: -0.01em; }
.card--ask .muted { display: block; }
.card--ask .link { margin-top: 18px; }

/* parts: drawing + list */
.pick { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.box { border: 1px solid var(--rule); background: var(--white); }
.drawing { flex: 1 1 560px; min-width: 0; position: sticky; top: calc(var(--head-h) + 16px); }
/* drawing is 1188 x 1242: keep it short enough that the "Add to inquiry" bar under it stays on screen */
.paper { position: relative; background: #fff; margin-inline: auto; max-width: max(320px, calc((100vh - var(--head-h) - 140px) * 0.9565)); }
.paper img { width: 100%; }
.pin {
  position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border: 0;
  display: grid; place-items: center; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; border-radius: 50%;
  z-index: 2; transition: transform .15s var(--ease), opacity .2s, background-color .15s;
}
.pin::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--red); border-radius: 50%; animation: pulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.9); opacity: 0; } }
.pin:hover { transform: scale(1.3); z-index: 3; }
.pin.in { background: var(--ink); }
.pin.in::after { border-color: var(--ink); }
.pin.on { background: var(--ink); transform: scale(1.3); z-index: 4; }
.pin.on::after { border-color: var(--ink); }
.pin.dim { opacity: .15; }
.selbar { border-top: 1px solid var(--rule); background: var(--tint); padding: 16px 18px; min-height: 84px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.selbar > div:first-child { flex: 1 1 200px; min-width: 0; }
.selbar b { display: block; font-size: 18px; }
.selbar span { font-size: 15px; }
.selbar .code { color: var(--ink); font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule-2); background: var(--white); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; line-height: 1; }
.qty button:hover { background: var(--tint); }
.qty span { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.list { flex: 1 1 420px; min-width: 0; background: var(--paper); }
.list__tools { padding: 16px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.lab, .f label { font-weight: 600; font-size: 15px; }
.list__tools .lab { font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--rule-2); background: var(--white); padding: 12px 14px; font-size: 16px; border-radius: 0; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { resize: vertical; }
.rows { max-height: 760px; overflow: auto; overscroll-behavior: contain; }
.row { display: flex; align-items: center; gap: 4px; padding-right: 12px; border-bottom: 1px solid var(--rule); transition: background-color .15s; }
.row:hover { background: var(--tint); }
.row.on { background: var(--white); box-shadow: inset 3px 0 0 var(--red); }
.row__pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 12px 8px 12px 16px; border: 0; background: transparent; text-align: left; }
.row__n { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: var(--white); border: 1px solid var(--rule); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.row.in .row__n { background: var(--ink); border-color: var(--ink); color: #fff; }
.row.on .row__n { background: var(--red); border-color: var(--red); color: #fff; }
.row__name { display: block; font-weight: 600; font-size: 16px; }
.row__meta { display: block; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row__qty { font-size: 15px; font-weight: 700; color: var(--red-ink); white-space: nowrap; }
.add { width: 44px; height: 44px; flex: none; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background-color .15s; }
.add:hover { background: var(--red); }
.add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-2); }

.ask { margin-top: 36px; display: flex; flex-wrap: wrap; border: 1px solid var(--rule); }
.ask__pic { flex: 1 1 320px; background: var(--paper); display: grid; place-items: center; padding: 40px; min-height: 340px; }
.ask__pic img { max-height: 300px; width: auto; }
.ask__text { flex: 1 1 420px; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.ask__flag { font-weight: 700; font-size: 15px; color: var(--red-ink); }
.ask__title { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; }
.ask .btnrow { margin-top: 8px; }
.ask .btnrow > .btn { flex: 0 1 auto; }

/* inquiry */
.inq { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.inq__list { flex: 1 1 520px; min-width: 0; border-top: 2px solid var(--ink); }
.citem { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.citem__n { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; }
.citem__t { flex: 1 1 200px; min-width: 0; }
.citem__t b { display: block; font-size: 17px; }
.citem__t span { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.x { width: 44px; height: 44px; border: 1px solid var(--rule-2); background: transparent; display: grid; place-items: center; }
.x:hover { border-color: var(--ink); background: var(--white); }
.x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.cart-empty { padding: 36px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cart-empty b { font-size: 20px; }
.cart-empty .link { margin-top: 12px; }
.cart-total { display: flex; justify-content: space-between; padding: 16px 0; font-weight: 700; }
.form { flex: 1 1 420px; min-width: 0; padding: clamp(20px, 2.4vw, 32px); }
.form__t { font-weight: 800; font-size: 22px; }
.fields { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.f { display: flex; flex-direction: column; gap: 6px; }
.f--wide { grid-column: 1 / -1; }
.f input, .f select, .f textarea { background: var(--paper); }
.send { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }

/* help */
.help { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); row-gap: 36px; }
.help > div { padding: 0 28px; border-left: 1px solid var(--rule-2); }
.help__n { font-weight: 700; font-size: 15px; color: var(--red-ink); }
.help h3 { margin-top: 10px; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.help p { margin-top: 10px; }

/* footer */
.foot { background: var(--ink); color: var(--dark-2); font-size: 15px; padding: clamp(48px, 6vw, 80px) 0 32px; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px; }
.foot b { color: var(--dark-1); }
.foot p { margin-top: 10px; }
.foot__logo { font-weight: 800; font-size: 28px; color: var(--dark-1); letter-spacing: .02em; }
.foot__links { display: flex; flex-direction: column; gap: 8px; }
.foot__links a { color: var(--dark-1); }
.foot__links a:hover { text-decoration: underline; }
.foot__bottom { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--dark-1); padding: 14px 20px; font-size: 15px; font-weight: 500; border-left: 3px solid var(--red); max-width: calc(100vw - 32px); transition: opacity .3s, transform .3s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* small screens */
@media (max-width: 1000px) {
  .nav { display: none; }
  .drawing { position: static; }
  .rows { max-height: none; }
}
@media (max-width: 560px) {
  :root { --head-h: 60px; }
  .strip__in > span:first-child { display: none; }
  .strip__in { justify-content: flex-end; }
  .brand img { height: 24px; }
  .brand span { font-size: 15px; padding-left: 10px; }
  .cartbtn { padding-left: 12px; gap: 8px; }
  .search { flex-wrap: wrap; }
  .search input { padding-right: 16px; }
  .search .btn { flex: 1 1 100%; min-height: 48px; }
  .stats > div { flex-basis: 100%; padding: 14px 0 0; border-left: 0; }
  .hero__pic { padding-bottom: 90px; }
  .pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11px; }
  .help > div { padding: 0 0 0 20px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 14px 14px 18px; }
  .card__name { font-size: 18px; }
  .card__status { align-items: flex-start; }
  .card__status::before { margin-top: 8px; }
  .card--ask { grid-column: 1 / -1; min-height: 0; padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
