.specification { padding: 148px 0 100px; min-height: 78vh; }
.specification__hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 64px; align-items: end; padding: 54px 0 48px; }
.specification__hero h1 { margin: 14px 0 20px; max-width: 900px; font-size: clamp(46px, 6vw, 92px); line-height: .96; letter-spacing: -.055em; }
.specification__hero p { margin: 0; max-width: 830px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.specification__steps { display: grid; gap: 10px; }
.specification__steps span { display: flex; gap: 15px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.specification__steps b { color: #f4f4f5; font-size: 13px; letter-spacing: .1em; }
.spec-upload { padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.spec-upload__drop { min-height: 235px; border: 1px dashed #687181; background: #151a22; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.spec-upload__drop:hover,.spec-upload__drop.is-dragging { border-color: #f4f4f5; background: #191f28; }
.spec-upload__drop input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.spec-upload__drop strong { font-size: clamp(22px, 2.5vw, 34px); }
.spec-upload__drop small { color: var(--muted); font-size: 15px; }
.spec-upload__icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #596170; border-radius: 50%; font-size: 26px; color: #f4f4f5; }
.spec-upload__or { display: flex; align-items: center; gap: 16px; margin: 18px 0; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.spec-upload__or::before,.spec-upload__or::after { height: 1px; flex: 1; content: ''; background: var(--line); }
.spec-paste { display: grid; grid-template-columns: minmax(240px, .55fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; border: 1px solid var(--line); background: #151a22; }
.spec-paste > span { display: grid; gap: 8px; }
.spec-paste strong { color: #f4f4f5; font-size: 20px; }
.spec-paste small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.spec-paste textarea { width: 100%; min-height: 116px; resize: vertical; border: 1px solid #596170; background: #10141b; color: #f4f4f5; padding: 14px 16px; font: inherit; line-height: 1.5; }
.spec-paste textarea:focus { outline: 1px solid #f4f4f5; outline-offset: 2px; border-color: #f4f4f5; }
.spec-paste textarea::placeholder { color: #737c89; }
.spec-upload__actions { display: flex; align-items: center; gap: 24px; margin-top: 18px; }
.specification__error { margin: 16px 0 0; color: #ff9d90; }
.spec-results { margin-top: 42px; border: 1px solid var(--line); background: var(--surface); padding: 30px; }
.spec-results__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.spec-results__head h2 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 52px); }
.spec-results__stats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.spec-results__stats span { padding: 9px 12px; border: 1px solid var(--line); color: var(--muted); }
.spec-results__stats b { color: #fff; }
.spec-results__table { display: grid; }
.spec-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 150px 170px; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec-row__check { width: 22px; height: 22px; accent-color: #e7e8ea; }
.spec-row__product { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; }
.spec-row__image { display: grid; place-items: center; width: 72px; height: 72px; background: #12161d; border: 1px solid var(--line); overflow: hidden; color: var(--muted); }
.spec-row__image img { width: 100%; height: 100%; object-fit: contain; }
.spec-row__product a { color: #f5f5f6; font-weight: 650; font-size: 18px; line-height: 1.25; }
.spec-row__product span,.spec-row__price small { display: block; margin-top: 6px; color: var(--muted); }
.spec-row__quantity { display: flex; align-items: center; border: 1px solid var(--line); }
.spec-row__quantity button { width: 42px; height: 44px; border: 0; color: #fff; background: transparent; font-size: 20px; }
.spec-row__quantity input { min-width: 0; width: 64px; height: 44px; text-align: center; border: 0; border-inline: 1px solid var(--line); background: #12161d; color: #fff; }
.spec-row__price { text-align: right; }
.spec-row__price strong { font-size: 18px; }
.spec-row__price [data-spec-line-total]{display:block;margin-top:10px;color:#f4f4f5}.spec-row__price [data-spec-line-total] b{font-size:16px}
.spec-results__footer { display: flex; align-items: center; gap: 22px; padding-top: 24px; }
.spec-results__footer span { color: var(--muted); }
.spec-results__footer span b { color:#f4f4f5; }
.spec-unmatched { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.spec-unmatched summary { cursor: pointer; font-weight: 600; }
.spec-unmatched summary b { color: var(--muted); }
.spec-unmatched__row { display: grid; grid-template-columns: 26px minmax(170px,1fr) 132px minmax(0,1fr); gap: 15px; align-items:center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.spec-unmatched__row strong { color:#f4f4f5; }
.spec-unmatched__check { width:20px; height:20px; accent-color:#e7e8ea; }
.spec-unmatched__quantity { display:flex; align-items:center; border:1px solid var(--line); }
.spec-unmatched__quantity button { width:36px; height:38px; border:0; background:transparent; color:#fff; font-size:18px; }
.spec-unmatched__quantity input { min-width:0; width:58px; height:38px; border:0; border-inline:1px solid var(--line); background:#12161d; color:#fff; text-align:center; }
.spec-unmatched__actions { display:flex; align-items:center; gap:18px; padding-top:18px; }
.spec-unmatched__actions span { color:var(--muted); }
@media (max-width: 860px) {
  .specification { padding-top: 105px; }
  .specification__hero { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .specification__hero h1 { font-size: 48px; }
  .spec-upload,.spec-results { padding: 18px; }
  .spec-paste { grid-template-columns: 1fr; padding: 18px; }
  .spec-upload__actions,.spec-results__head,.spec-results__footer { align-items: stretch; flex-direction: column; }
  .spec-row { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
  .spec-row__quantity,.spec-row__price { grid-column: 2; }
  .spec-row__price { text-align: left; }
  .spec-results__stats { justify-content: flex-start; }
  .spec-unmatched__row { grid-template-columns: 26px minmax(0,1fr); }
  .spec-unmatched__quantity,.spec-unmatched__row>span { grid-column:2; }
  .spec-unmatched__actions { align-items:stretch; flex-direction:column; }
}
