/* Только заводы: страница-инструмент «Запрос предложения производителю» (26.10.2026).
   Подключается после style.css и articles.css, живёт на их переменных.
   Язык тот же: рабочий лист аналитика, маркер отмечает готовое, бумага = результат. Радиус 2px, акцент один. */

.t-head .a-head__in { padding-bottom: clamp(24px, 3vw, 40px); }
.t-sub { margin-top: 18px; max-width: 58ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: var(--muted); }

/* ---------- инструмент ---------- */
.tool { padding-block: clamp(28px, 3.6vw, 52px) clamp(40px, 5vw, 72px); }
/* I2: место под инструмент зарезервировано сеткой и статичным образцом письма, вёрстка не прыгает */
.tool__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4.4vw, 72px); align-items: start; min-height: 720px; }
.tool__form { display: grid; gap: clamp(26px, 3vw, 36px); min-width: 0; }
.tf { margin: 0; padding: 16px 0 0; border: 0; border-top: 1.5px solid var(--text); min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; }
.tf legend { float: left; grid-column: 1 / -1; width: 100%; padding: 0; margin: 0 0 2px; font-family: var(--f-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.012em; }
.tf legend + * { clear: both; }
.tf .field { grid-column: auto; }
.tf .field--wide { grid-column: 1 / -1; }
.tool .field select, .tool .field input[type="number"], .tool .field input[type="date"] {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--ctl); border-radius: var(--r);
  font: inherit; font-size: 1.0625rem; line-height: 1.45;
  transition: border-color .2s ease;
}
.tool .field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.tool .field textarea { min-height: 96px; }
@media (hover: hover) and (pointer: fine) {
  .tool .field select:hover, .tool .field input[type="number"]:hover { border-color: var(--text); }
}
.tool .field select:focus-visible, .tool .field input[type="number"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.t-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 7.5rem); gap: 8px; }
.t-warn { font-size: .93rem; line-height: 1.45; color: var(--text); padding: 8px 0 8px 14px; border-left: 3px solid var(--mark); }
.t-warn[hidden] { display: none; }
.t-boxes { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 20px; }
.t-box { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .98rem; line-height: 1.45; color: var(--text); cursor: pointer; padding: 4px 0; }
.t-box input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--btn-bg); }
.t-box input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.t-box .han { font-family: var(--f-cjk); }

/* полнота запроса (C5) */
.tchk { border-top: 1.5px solid var(--text); padding-top: 16px; }
.tchk__h { font-size: 1.125rem; letter-spacing: -0.012em; max-width: none; }
.tchk__sum { margin-top: 6px; font-family: var(--f-mono); font-size: .86rem; color: var(--muted); }
.tchk__list { margin-top: 10px; }
.tchk__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tchk__list li:last-child { border-bottom: 0; }
.tchk__list li::before { content: ""; width: 16px; height: 2px; background: var(--ctl); align-self: center; }
.tchk__list li[data-state="ok"]::before { height: 8px; background: var(--mark); border-radius: 1px; }
.tchk__list li[data-state="check"]::before { height: 8px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent-text); border-radius: 1px; }
.tchk__t { font-weight: 500; line-height: 1.4; }
.tchk__s { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.tchk__list li[data-state="ok"] .tchk__s { color: var(--accent-text); }
.tchk__hint { grid-column: 2 / -1; font-size: .93rem; line-height: 1.45; color: var(--muted); }
.tchk__list li[data-state="ok"] .tchk__hint { display: none; }

/* лист с письмом */
.tsheet { position: sticky; top: 88px; min-width: 0; }
.tsheet__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.ttabs { display: inline-flex; border: 1px solid var(--ctl); border-radius: var(--r); }
.ttabs button { all: unset; box-sizing: border-box; min-height: 42px; min-width: 64px; padding: 8px 14px; text-align: center; cursor: pointer; font-family: var(--f-mono); font-size: .9rem; color: var(--muted); transition: color .2s ease, background-color .2s ease; }
.ttabs button + button { border-left: 1px solid var(--ctl); }
.ttabs button[aria-selected="true"] { background: var(--mark); color: var(--on-mark); }
.ttabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ttabs button[lang="zh-Hans"] { font-family: var(--f-cjk); }
@media (hover: hover) and (pointer: fine) {
  .ttabs button:not([aria-selected="true"]):hover { color: var(--text); }
}
.tsheet__count { font-family: var(--f-mono); font-size: .84rem; color: var(--muted); text-decoration: none; }
.tsheet__count b { font-weight: 500; color: var(--text); }
.tpaper {
  position: relative; background: var(--paper); color: var(--paper-ink);
  padding: clamp(20px, 2.6vw, 34px) clamp(18px, 2.6vw, 34px) clamp(18px, 2.2vw, 30px);
  border-radius: var(--r); box-shadow: var(--paper-shadow);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.tpaper::before { content: ""; position: absolute; right: 0; top: 0; width: 28px; height: 28px; background: linear-gradient(225deg, transparent 50%, var(--paper-2) 50%); }
.tletter { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--f-body); font-size: .97rem; line-height: 1.58; color: var(--paper-ink); tab-size: 2; }
.tletter:lang(zh) { font-family: var(--f-cjk); letter-spacing: .01em; }
.tsheet .tletter { max-height: calc(100dvh - 350px); min-height: 380px; overflow: auto; scrollbar-width: thin; }
.tletter__lang { display: block; margin-bottom: 8px; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-muted); }
html.t-js .tletter__lang { display: none; }
.tsheet__acts { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.tsheet__status { min-height: 1.4em; margin-top: 10px; font-size: .93rem; color: var(--accent-text); }
.tsheet__note { margin-top: 6px; font-size: .9rem; line-height: 1.45; color: var(--muted); max-width: 62ch; }
.t-nojs { padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--text); line-height: 1.5; }
.t-onlyjs[hidden] { display: none; }

/* F7: оговорка под инструментом */
.t-terms { margin-top: clamp(28px, 3vw, 40px); padding: 2px 0 2px 16px; border-left: 3px solid var(--mark); font-size: .95rem; line-height: 1.55; color: var(--muted); max-width: 86ch; }

/* D3: абзац-ответ */
.t-answer { border-top: 1px solid var(--line); padding-block: clamp(36px, 4.4vw, 64px); }
.t-answer p { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.12rem, 1rem + .55vw, 1.42rem); line-height: 1.45; letter-spacing: -0.01em; max-width: 60ch; }

/* следующий шаг */
.t-next { background: var(--bg-2); border-block: 1px solid var(--line); padding-block: clamp(40px, 5vw, 72px); }
.t-next__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end; }
.t-next h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem); line-height: 1.12; max-width: 24ch; }
.t-next p { margin-top: 16px; color: var(--muted); max-width: 58ch; }
.t-next__acts { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.t-next__acts .btn { white-space: normal; text-align: center; line-height: 1.25; }

/* короткое письмо о лицензии (C2) внутри текста */
.tmini { margin-block: 22px 8px; max-width: 62ch; }
.tmini .tpaper { margin-top: 12px; }
.tmini .tletter + .tletter { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--paper-line); }
html.t-js .tmini .tletter + .tletter { margin-top: 0; padding-top: 0; border-top: 0; }
.tmini__acts { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.a-prose .tmini .tletter { font-size: .95rem; }

/* источники */
.t-src li .t-src__n { color: var(--text); font-weight: 500; }
.t-src li .t-src__d { display: block; margin-top: 4px; font-size: .93rem; color: var(--muted); }

@media (max-width: 1080px) {
  .tool__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tsheet { position: static; }
  .tsheet .tletter { max-height: none; min-height: 0; }
  .t-next__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 640px) {
  .tf, .t-boxes { grid-template-columns: minmax(0, 1fr); }
  .tsheet__acts .btn, .tmini__acts .btn { flex: 1 1 140px; }
  .t-next__acts { align-items: stretch; }
  .t-next__acts .btn { width: 100%; }
}

/* печать: только выбранное письмо */
@media print {
  body * { visibility: hidden; }
  [data-print], [data-print] * { visibility: visible; }
  [data-print] { position: absolute; left: 0; top: 0; width: 100%; max-height: none !important; overflow: visible !important; color: #111; background: #fff; font-size: 11pt; }
  .ck { display: none; }
}
