/* Раздел инструментов, вариант «Путь»: шрифты и токены только внутри <main> этих страниц. Шапка и подвал сайта не меняются. */
@font-face { font-family: "Martian Mono"; font-weight: 100 800; font-display: swap; src: url(../fonts/tools/martian-mono-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Martian Mono"; font-weight: 100 800; font-display: swap; src: url(../fonts/tools/martian-mono-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Commissioner"; font-weight: 100 900; font-display: swap; src: url(../fonts/tools/commissioner-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Commissioner"; font-weight: 100 900; font-display: swap; src: url(../fonts/tools/commissioner-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

.tpl-tool main, .is-tools main {
  --head: "Martian Mono", ui-monospace, Consolas, monospace;
  --font: "Commissioner", "Segoe UI", sans-serif;
  --sea: #4cba93; --amber-c: #ffb547; --bad-c: #ff8a8a; --lime-c: #c8f781;
  --r-node: 40px; --r-field: 20px; --r-row: 18px; --r-small: 12px;
  --flow: cubic-bezier(.45, .05, .25, 1);
  font-family: var(--font);
}
.tpl-tool main h1, .tpl-tool main h2, .is-tools main h1, .is-tools main h2 { font-family: var(--head); font-weight: 600; letter-spacing: -.035em; line-height: 1.16; }
.tpl-tool main h1, .is-tools main h1 { font-size: clamp(25px, 3.1vw, 38px); }
.tpl-tool main h2, .is-tools main .prose h2 { font-size: clamp(19px, 1.8vw, 23px); }
.tpl-tool main h3, .is-tools main h3 { font-family: var(--font); }
/* маркер перед H2: узел пути */
.tpl-tool .page > .block > h2::before, .tpl-tool .page > .prose > h2::before, .tp-others-h h2::before, .is-tools .prose h2:not(.cat-g-h)::before, .is-tools .cat-g-h::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 14px; border-radius: 50%; border: 2px solid var(--sea); }

/* Шапка инструмента */
.tpl-tool .tool-hero { padding-bottom: 12px; }
.tpl-tool .tool-hero .lead { margin-top: 6px; font-size: 16px; line-height: 1.45; }

/* Сам инструмент: крупный скруглённый блок */
.tool-app { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-node); box-shadow: none; }
.tool-app.is-bare { background: none; border: 0; border-radius: 0; }
.tool-input, .tool-select, .tool-textarea { border-radius: var(--r-small); }
@media (max-width: 759px) { .tool-app { border-radius: 28px; padding: var(--s-sm); } }
#tool-app .tool-example, #tool-app .tool-qlink, #tool-app .tool-settings > summary { min-height: 32px; }

/* Другие инструменты: строки с иконкой */
.tool-others { display: grid; gap: 18px; }
.tp-others-h h2 { margin: 0 0 10px; }
.tp-others-h .tool-offer { margin: 0 0 4px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.tp-others-h .tool-all { margin: 0; }
.tp-others-h .tool-all a { display: inline-flex; align-items: center; min-height: 44px; }
.tp-rows { display: grid; gap: 8px; }
.tp-row { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 9px 18px 9px 14px; border-radius: var(--r-row); background: var(--card); color: inherit; text-decoration: none; transition: background .2s; }
.tp-row:hover { background: #10233a; }
.tp-row:hover small { color: var(--cyan); }
.tp-row .tool-ic { flex: none; width: 34px; height: 34px; background: none; border: 0; border-radius: 0; color: var(--cyan); }
.tp-row .tool-ic svg { display: block; width: 34px; height: 34px; }
.tp-row-t { display: flex; flex-direction: column; min-width: 0; }
.tp-row-t b { font-weight: 600; font-size: 17px; line-height: 1.28; }
.tp-row-t small { font-size: 14.5px; line-height: 1.35; color: var(--text-muted); }
@media (min-width: 1000px) { .tool-others { grid-template-columns: 372px minmax(0, 1fr); column-gap: 52px; } }

/* Шаги: список с номерами вместо карточек в ряд */
@media (min-width: 980px) {
  .tpl-tool .steps, .tpl-tool .steps:has(> :nth-child(5):last-child) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 820px; }
  .tpl-tool .steps li { grid-template-columns: auto minmax(0, 1fr); gap: 12px; background: none; border: 0; border-radius: 0; padding: 0; }
}

/* Форма «Чего не хватает?» */
.tool-end { margin-top: var(--s-lg); padding: 0 0 var(--s-lg); border: 0; font-size: 1rem; color: inherit; }
.tool-feedback { margin: 0; padding: 22px 18px; gap: 12px; background: var(--card); border: 1.5px solid var(--line); border-radius: 28px; }
.tool-feedback h2 { margin: 0 0 2px; }
.tf-grid { display: grid; gap: 12px; }
.tool-feedback .tool-label { color: var(--text); font-size: 15px; }
.tool-feedback .tool-textarea, .tool-feedback .tool-input { min-height: 48px; font-size: 16px; }
.tool-feedback .tool-textarea { min-height: 92px; }
@media (min-width: 1000px) {
  .tool-feedback { padding: 30px 36px; border-radius: var(--r-node); }
  .tf-grid { grid-template-columns: 1fr 1fr; gap: 0 18px; }
}
