/* Настройки принтеров на основном сайте: /settings/ и /settings/<модель>/.
   Перенесено из лаборатории prototypes/settings (вариант C «Пульт», 09.10.2026).
   Шрифты, токены, шапка, кнопка .btn, .wrap и футер — из /shop/base.css. */
:root { --paper: #fbfbfc; }
[hidden] { display: none !important; }

.st { padding: 144px 0 0; }
@media (max-width: 767px) { .st { padding-top: 120px; } }
.st h1, .st h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); }
.st h1 { font-size: clamp(32px, 7vw, 96px); line-height: .98; letter-spacing: -.01em; }
.st h2 { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.1; }
.st-block { padding-top: 96px; }
.st-block > h2 { margin-bottom: 32px; }

/* ---------- живой поиск ---------- */
.search { position: relative; margin-top: 48px; max-width: 800px; }
.search-field { display: flex; align-items: center; gap: 16px; height: 72px; padding: 0 28px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); transition: border-color 150ms var(--ease); }
.search-field:focus-within { border-color: var(--ink); }
.search-field svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.75; stroke-linecap: round; }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 20px; }
.search-field input::placeholder { color: var(--muted); }
.results { margin: 8px 0 0; padding: 8px; list-style: none; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.results li { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 8px 8px 20px; border-radius: 16px; cursor: pointer; }
.results li[aria-selected="true"], .results li:hover { background: var(--surface); }
.results .r-brand { color: var(--muted); font-size: 16px; min-width: 96px; }
.results .r-model { flex: 1; font-weight: 500; }
.results mark { background: none; color: inherit; box-shadow: inset 0 -2px var(--red); }
.results .r-go { font-size: 16px; font-weight: 600; color: var(--red); white-space: nowrap; padding: 0 12px; }
.results .r-more { justify-content: center; color: var(--muted); font-weight: 500; }
.results .r-empty { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 20px; cursor: default; }
.results .r-empty:hover { background: none; }
@media (max-width: 600px) { .results .r-brand, .results .r-go { display: none; } }

/* ---------- сохранённый принтер — чёрная капсула над заголовком ---------- */
.saved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; width: fit-content; max-width: 100%; margin-bottom: 48px; padding: 8px 8px 8px 24px; border-radius: 999px; background: var(--night); color: var(--night-ink); animation: st-drop 250ms var(--ease) both; }
@keyframes st-drop { from { transform: translateY(-16px); opacity: 0; } }
.saved p { margin: 0; font-size: 16px; color: var(--night-muted); }
.saved p b { color: var(--night-ink); font-weight: 600; margin-left: 4px; }
.saved .acts { display: flex; flex-wrap: wrap; gap: 4px; }
.saved button { height: 48px; padding: 0 20px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 600; cursor: pointer; }
.saved [data-open] { background: var(--red); color: #fff; }
.saved [data-open]:hover { background: var(--red-hover); }
.saved [data-other] { background: none; color: var(--night-muted); }
.saved [data-other]:hover { color: var(--night-ink); }
@media (max-width: 767px) { .saved { border-radius: 24px; padding: 16px; } }

/* ---------- пошаговый выбор: выбранное — капсулы с ×, варианты — плашка с переезжающей подсветкой ---------- */
.trail { display: flex; flex-wrap: wrap; gap: 8px; }
.trail:not(:empty) { margin-bottom: 16px; }
.crumb { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 600; cursor: pointer; animation: st-pop 250ms var(--ease) both; }
.crumb i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 255 255 / .14); font-style: normal; font-size: 16px; line-height: 1; transition: background 150ms var(--ease); }
.crumb:hover i { background: var(--red); }
@keyframes st-pop { from { transform: scale(.9); opacity: 0; } }
.step-cap { margin: 0 0 12px; font-size: 16px; color: var(--muted); }
.step-cap b { color: var(--ink); font-weight: 600; }

.seg { position: relative; padding: 4px; border-radius: 28px; background: var(--surface); }
.track { position: relative; display: flex; flex-wrap: wrap; gap: 4px; }
.seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 16px; font-weight: 500; cursor: pointer; transition: color 150ms var(--ease); }
.seg button:hover, .seg button:focus-visible, .seg button[aria-pressed="true"] { color: var(--ink); }
.seg button:focus-visible { outline-offset: -2px; }
.seg button small { font-size: 13px; color: var(--muted); }
.seg button.more { color: var(--red); font-weight: 600; }
/* подсветка — слой во всю плашку, видимая часть задаётся обрезкой clip-path, как в плашке каталога */
.seg .hl { position: absolute; inset: 0; border-radius: 28px; background: var(--paper); opacity: 0; pointer-events: none; transition: clip-path 250ms var(--ease), opacity 150ms var(--ease); }

.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 16px; padding: 8px 8px 8px 32px; border-radius: 999px; background: var(--ink); color: var(--paper); animation: st-pop 250ms var(--ease) both; }
.bar strong { font-size: 20px; font-weight: 600; }
.bar small { color: var(--night-muted); font-size: 16px; flex: 1; }
.bar .swatches li { width: 16px; height: 16px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
@media (max-width: 767px) { .bar { border-radius: 24px; padding: 24px; } .bar .btn { width: 100%; } }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.swatches li, .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.swatches li.clear, .dot.clear { background: linear-gradient(135deg, rgb(255 255 255 / .9), rgb(200 214 224 / .5)); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .22); }

/* ---------- полный список ---------- */
.full-toggle { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 28px; border: 1px solid var(--ink); border-radius: 999px; background: none; font-size: 16px; font-weight: 600; cursor: pointer; }
.full-toggle i { position: relative; width: 14px; height: 14px; transition: transform 250ms var(--ease); }
.full-toggle i::before, .full-toggle i::after { content: ""; position: absolute; inset: 6px 0 auto; height: 2px; background: currentColor; }
.full-toggle i::after { transform: rotate(90deg); }
.full-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
.full-list { margin-top: 48px; columns: 4 240px; column-gap: 48px; }
.fl-brand { break-inside: avoid; margin: 0 0 32px; }
.fl-brand h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.fl-brand h3 small { color: var(--muted); font-weight: 400; font-size: 13px; }
.fl-brand h4 { margin: 12px 0 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.fl-brand ul { margin: 0; padding: 0; list-style: none; }
.fl-brand a { display: block; padding: 4px 0; font-size: 16px; line-height: 1.5; color: var(--muted); transition: color 150ms var(--ease); }
.fl-brand a:hover { color: var(--ink); }

/* ---------- страница принтера ---------- */
.st-pr h1 { margin-top: 32px; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.04; }
.change { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px 0 8px; border-radius: 999px; background: var(--surface); font-size: 16px; font-weight: 600; transition: background 150ms var(--ease); }
.change i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); font-style: normal; transition: transform 250ms var(--ease); }
.change:hover { background: var(--line); }
.change:hover i { transform: translateX(-2px); }
.lead { margin: 16px 0 0; font-size: 20px; color: var(--muted); }

.dl { display: grid; grid-template-columns: auto minmax(0, 640px); justify-content: start; justify-items: start; gap: 24px 48px; margin-top: 48px; }
.dl p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } }
.dl.no-file { grid-template-columns: minmax(0, 640px); }
.dl:not(.no-file) > p { grid-column: 2; grid-row: 1; }
@media (max-width: 900px) { .dl:not(.no-file) > p { grid-column: auto; grid-row: auto; } }
/* «Скачать профиль»: стрелка уходит вниз в черту, новая приходит сверху */
.btn-dl { display: inline-flex; align-items: center; gap: 16px; height: 56px; padding: 0 8px 0 28px; border-radius: 999px; background: var(--red); color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap; transition: background 150ms var(--ease); }
.btn-dl:hover { background: var(--red-hover); }
button.btn-dl { border: 0; cursor: pointer; }
.btn-dl > small { margin-left: -8px; padding: 2px 8px; border-radius: 999px; background: rgb(255 255 255 / .18); font-size: 13px; }
.btn-dl[aria-expanded="true"] svg + svg { transform: none; }
.btn-dl[aria-expanded="true"] svg:first-child { opacity: 0; }
/* файла профиля нет — где взять параметры */
.dl-none { display: grid; gap: 4px; max-width: 320px; padding: 16px 24px; border: 1px solid var(--line); border-radius: 16px; }
.dl-none b { font-size: 16px; font-weight: 600; }
.dl-none span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.dl-ask { justify-self: start; min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--red); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.dl-ask:hover { color: var(--red-hover); }
/* список файлов профиля */
.files { grid-column: 1 / -1; width: 100%; max-width: 800px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); animation: st-pop 250ms var(--ease) both; }
.files a { display: flex; align-items: center; gap: 8px 16px; min-height: 64px; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); transition: background 150ms var(--ease); }
.files a:hover { background: var(--surface); }
.files b { flex: 1; font-weight: 600; }
.files small { font-size: 13px; color: var(--muted); white-space: nowrap; }
.files .ic { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); overflow: hidden; color: var(--ink); }
.files .ic::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 2px; border-radius: 1px; background: currentColor; }
.files svg { position: absolute; inset: 8px 10px 12px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms var(--ease), opacity 250ms var(--ease); }
.files svg + svg { transform: translateY(-150%); }
.files a:hover svg { transform: translateY(60%); opacity: 0; }
.files a:hover svg + svg { transform: translateY(0); opacity: 1; }
.files a:hover .ic { background: var(--red); color: #fff; }
.btn-dl .ic { position: relative; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .18); overflow: hidden; }
.btn-dl .ic::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 2px; border-radius: 1px; background: currentColor; }
.btn-dl svg { position: absolute; inset: 8px 10px 12px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms var(--ease), opacity 250ms var(--ease); }
.btn-dl svg + svg { transform: translateY(-150%); }
.btn-dl:hover svg { transform: translateY(60%); opacity: 0; }
.btn-dl:hover svg + svg { transform: translateY(0); opacity: 1; }

.seg .dot { width: 14px; height: 14px; flex: none; }
.st-pr .seg button { padding-left: 16px; }
@media (max-width: 767px) {
  .st-pr .seg { overflow-x: auto; border-radius: 999px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .st-pr .seg::-webkit-scrollbar { display: none; }
  .st-pr .track { flex-wrap: nowrap; width: max-content; }
}

/* показания выбранной смолы — крупные цифры, как в блоке «Точность» */
.readout { display: grid; grid-template-columns: repeat(4, 1fr); margin: 32px 0 0; }
.readout > div { padding: 24px 24px 32px 0; border-top: 1px solid var(--line); }
.readout .wide { grid-column: span 2; }
.readout dt { font-size: 16px; color: var(--muted); }
.readout dd { margin: 12px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.readout b { font-family: var(--font-display); font-stretch: 100%; font-weight: 800; font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; }
.readout span { font-size: 20px; font-weight: 500; }
.readout em { margin-left: 16px; font-style: normal; font-size: 20px; color: var(--muted); }
.readout .chg dd { animation: st-rise 250ms var(--ease); }
@keyframes st-rise { from { transform: translateY(8px); opacity: 0; } }
@media (max-width: 767px) { .readout { grid-template-columns: repeat(2, 1fr); } .readout b { font-size: 36px; } .readout em { margin-left: 0; flex-basis: 100%; } }

.table-tg { margin-top: 32px; }
.table-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap th, .table-wrap td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.table-wrap th { font-weight: 500; color: var(--muted); vertical-align: bottom; white-space: normal; min-width: 104px; }
.table-wrap th:first-child, .table-wrap td:first-child { position: sticky; left: 0; background: var(--paper); }
.table-wrap td:first-child { font-weight: 600; }
.table-wrap td:first-child .dot { display: inline-block; vertical-align: -2px; margin-right: 10px; width: 14px; height: 14px; }
.table-wrap tbody tr { cursor: pointer; transition: background 150ms var(--ease); }
.table-wrap tbody tr:hover, .table-wrap tbody tr:hover td:first-child { background: var(--bg); }
.table-wrap tbody tr.on td:first-child { box-shadow: inset 3px 0 var(--red); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

/* корректировка печати — аккордеон */
.faq { border-bottom: 1px solid var(--line); }
.qa h3 { margin: 0; font-size: 18px; }
.qa button { width: 100%; display: grid; grid-template-columns: 48px 1fr 40px; align-items: center; gap: 16px; padding: 24px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font-size: 20px; font-weight: 600; line-height: 1.35; cursor: pointer; }
.qa .n { font-size: 16px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.qa i { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); transition: transform 250ms var(--ease), background 150ms var(--ease); }
.qa i::before, .qa i::after { content: ""; position: absolute; left: 13px; right: 13px; top: 19px; height: 2px; background: currentColor; }
.qa i::after { transform: rotate(90deg); }
.qa button:hover i { background: var(--line); }
.qa button[aria-expanded="true"] i { transform: rotate(45deg); }
.ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 250ms var(--ease); }
.ans.open { grid-template-rows: 1fr; }
.ans > div { overflow: hidden; padding-left: 64px; max-width: calc(64px + 70ch); }
.ans p, .ans ul { margin: 0 0 16px; font-size: 18px; }
.ans > div > :last-child { margin-bottom: 32px; }
.ans a { box-shadow: inset 0 -1px currentColor; }
.ans a:hover { color: var(--red); }
@media (max-width: 600px) { .qa button { grid-template-columns: 32px 1fr 40px; font-size: 18px; } .ans > div { padding-left: 0; } }

/* помощь специалиста — чёрная секция перед футером */
.st-help { margin-top: 96px; padding: 96px 0; background: var(--night); color: var(--night-ink); }
.st-help .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.st-end { padding-bottom: 128px; }

/* ---------- окно: вопрос специалисту / запросить настройки ---------- */
.st-ask { width: min(100% - 32px, 560px); max-height: calc(100% - 32px); padding: 40px; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink); }
.st-ask::backdrop { background: rgb(10 10 10 / .4); backdrop-filter: blur(4px); }
.st-ask h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 24px; line-height: 1.2; padding-right: 48px; }
.st-ask .x { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); font-size: 20px; cursor: pointer; }
.st-ask form { display: grid; gap: 12px; margin-top: 24px; }
.st-ask label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.st-ask input:not([type=checkbox]), .st-ask select, .st-ask textarea { min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font: inherit; font-size: 16px; color: var(--ink); }
.st-ask textarea { min-height: 104px; resize: vertical; }
.st-ask .ok { display: flex; gap: 10px; align-items: flex-start; }
.st-ask .ok a { box-shadow: inset 0 -1px currentColor; }
.st-ask .btn { margin-top: 8px; }
.st-ask .sent { margin: 24px 0 0; font-size: 18px; }
@media (max-width: 600px) { .st-ask { padding: 32px 24px; } }

@media (prefers-reduced-motion: reduce) {
  .saved, .crumb, .bar, .readout .chg dd { animation: none; }
  .seg .hl, .ans, .btn-dl svg, .full-toggle i, .qa i { transition: none; }
}

/* Телефон: шкала шрифтов по эталонным сайтам — 18.10.2026 */
@media (max-width: 767px) {
  .st-pr h1 { font-size: 28px; }
}
