/* Поддержка на основном сайте: /support/ и черновые списки /support/troubleshooting/,
   /support/protocols/. Перенесено из лаборатории prototypes/support-page, вариант B «Окошки»
   (решение пользователя 09.10.2026). Главное — связь со специалистом: форма, телефон, e-mail,
   часы работы (ежедневно, 10:00–19:00); ниже — «Разобраться самостоятельно».
   Шрифты, токены, шапка, .btn, .wrap и футер — из /shop/base.css. */
:root { --paper: #fbfbfc; }
[hidden] { display: none !important; }

.sp { padding: 144px 0 128px; }
@media (max-width: 767px) { .sp { padding: 120px 0 96px; } }
.sp h1, .sp h2, .disp { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); }
.sp h1 { font-size: clamp(40px, 7vw, 96px); line-height: .98; letter-spacing: -.01em; }
.sp h2 { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.1; }
.sp-lead { margin-top: 24px; max-width: 34ch; font-size: 20px; line-height: 1.5; color: var(--muted); }
.sp-sec { padding-top: 96px; }
.sp-sec > h2 { margin-bottom: 32px; }
.k { font-size: 16px; line-height: 24px; color: var(--muted); }
ol.tips, ol.tips-v { margin: 0; padding: 0; list-style: none; }

/* ---------- стрелка в кружке: уходит вправо, новая приходит слева ---------- */
.arr { position: relative; flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--surface); color: var(--ink); transition: background 150ms var(--ease), color 150ms var(--ease); }
.arr svg { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms var(--ease); }
.arr svg + svg { transform: translateX(-56px); }
.row:hover .arr, .hov:hover .arr { background: var(--red); color: #fff; }
.row:hover .arr svg:first-child, .hov:hover .arr svg:first-child { transform: translateX(56px); }
.row:hover .arr svg + svg, .hov:hover .arr svg + svg { transform: none; }

/* ---------- строки во всю ширину: вся строка — ссылка, красная черта прочерчивается по нижней линии ---------- */
.rows { border-bottom: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.row.no-n { grid-template-columns: minmax(0, 1fr) auto; }
.row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform 250ms var(--ease); pointer-events: none; }
.row:hover::after, .row:has(.stretch:focus-visible)::after { transform: scaleX(1); }
.row .n { align-self: start; padding-top: 6px; font-size: 16px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.row .t { display: grid; gap: 8px; min-width: 0; }
.row .t p { max-width: 56ch; font-size: 16px; line-height: 1.5; color: var(--muted); }
.row .act { display: flex; align-items: center; gap: 16px; }
.row .go { font-size: 16px; font-weight: 600; white-space: nowrap; }
.stretch::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.stretch:focus-visible { outline: none; }
.row:has(.stretch:focus-visible) { outline: 2px solid var(--red); outline-offset: 4px; }
button.stretch { padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.big { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: clamp(28px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.01em; }
.mid { font-size: 24px; font-weight: 600; line-height: 1.3; }
@media (max-width: 767px) {
  .row { grid-template-columns: 32px minmax(0, 1fr); gap: 8px 16px; padding: 24px 0; }
  .row.no-n { grid-template-columns: minmax(0, 1fr); }
  .row .act { grid-column: -2; }
  .row > .arr { display: none; }
  .row .n { padding-top: 2px; }
  .big { font-size: min(28px, 6.8vw); }
}

/* ---------- скопировать e-mail ---------- */
.copy { position: relative; z-index: 1; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color 150ms var(--ease), color 150ms var(--ease); }
.copy:hover { border-color: var(--ink); }
.copy.done { border-color: var(--red); color: var(--red); }

/* ---------- статус по рабочим часам ---------- */
.live { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; line-height: 24px; }
.live i { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.live.on i { background: var(--red); }
.live.on i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: live 2s var(--ease) infinite; }
@keyframes live { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }

/* ---------- форма «Задать вопрос специалисту» (kit/ask.js) ---------- */
.ask { container-type: inline-size; display: grid; gap: 24px; }
.ask-2 { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; }
@container (max-width: 480px) { .ask-2 { grid-template-columns: 1fr; } }
.f { position: relative; display: grid; align-content: start; gap: 4px; min-width: 0; }
.f-l { padding: 0; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--muted); }
.f-in { width: 100%; height: 48px; padding: 0; border: 0; border-bottom: 1px solid var(--muted); border-radius: 0; background: transparent; color: inherit; font-size: 18px; }
textarea.f-in { display: block; height: auto; min-height: 96px; padding: 12px 0; font: inherit; font-size: 18px; line-height: 1.5; resize: vertical; }
.f-in::placeholder { color: var(--muted); opacity: .7; }
.f-in:focus { outline: none; border-bottom-color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.f-in[aria-invalid="true"] { border-bottom-color: var(--red); box-shadow: inset 0 -1px 0 var(--red); }
.f-hint { font-size: 14px; line-height: 20px; color: var(--muted); }
.f-err { font-size: 14px; font-weight: 500; line-height: 20px; color: var(--err, var(--red)); }
.f-err:empty { display: none; }
.el-opts { display: grid; gap: 8px; margin-top: 16px; animation: f-in 200ms var(--ease); }

/* модель принтера — подсказки по базе настроек */
.f-list { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.f-list li { padding: 10px 12px; border-radius: 8px; font-size: 16px; line-height: 24px; color: var(--muted); cursor: pointer; }
.f-list li b { font-weight: 600; color: var(--ink); }
.f-list li:hover, .f-list li[aria-selected="true"] { background: var(--surface); }

/* материал — плитки-«элементы», как в таблице смол на главной */
.els { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
@container (max-width: 600px) { .els { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 420px) { .els { gap: 6px; } .el-face { padding: 8px; } .el-sym { font-size: 22px; } .el-name { font-size: 12px; } }
@container (max-width: 320px) { .els { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.el { position: relative; display: block; cursor: pointer; }
.el input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.el-face { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 88px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color 150ms var(--ease); }
.el-sym { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 24px; line-height: 1; transition: color 150ms var(--ease); }
.el-name { font-size: 13px; font-weight: 500; line-height: 16px; color: var(--muted); }
.el:hover .el-face { border-color: var(--muted); }
.el input:checked + .el-face { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.el input:checked + .el-face .el-sym { color: var(--red); }
.el input:focus-visible + .el-face { outline: 2px solid var(--red); outline-offset: 2px; }

/* фотография или файл */
.drop { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; margin-top: 4px; padding: 12px 16px; border: 1px dashed var(--muted); border-radius: 12px; font-size: 16px; line-height: 24px; color: var(--muted); cursor: pointer; transition: border-color 150ms var(--ease), background 150ms var(--ease); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop u { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.drop svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.drop:hover, .drop.over { border-color: var(--red); }
.drop.over { background: rgb(227 5 24 / .05); }
.drop:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.files { display: grid; gap: 8px; }
.files:not(:empty) { margin-top: 8px; }
.file { display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 4px 4px 4px 4px; border: 1px solid var(--line); border-radius: 12px; animation: f-in 200ms var(--ease); }
@keyframes f-in { from { opacity: 0; transform: translateY(-4px); } }
.file img, .file .ext { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface); }
.file .ext { display: grid; place-items: center; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.file .fn { display: grid; min-width: 0; }
.file b { overflow: hidden; font-size: 14px; font-weight: 500; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.file small { font-size: 13px; line-height: 16px; color: var(--muted); }
.file .rm { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color 150ms var(--ease), background 150ms var(--ease); }
.file .rm:hover { background: var(--surface); color: var(--ink); }
.file .rm svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* согласие */
.consent { position: relative; display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 24px; cursor: pointer; }
.consent a { position: relative; z-index: 1; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent .box { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--muted); border-radius: 6px; color: transparent; transition: background 150ms var(--ease), border-color 150ms var(--ease); }
.consent .box svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.consent input:checked + .box { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.consent input:focus-visible + .box { outline: 2px solid var(--red); outline-offset: 3px; }
.consent input[aria-invalid="true"] + .box { border-color: var(--red); }
.ask-send { justify-self: start; min-width: 200px; }

/* отправлено */
.ask-done { display: grid; justify-items: start; gap: 24px; padding: 8px 0; outline: none; animation: f-in 250ms var(--ease); }
.ask-done .ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; }
.ask-done .ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ask-done p { max-width: 32ch; font-size: 20px; line-height: 1.5; }
.btn-line { height: 48px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; transition: border-color 150ms var(--ease), color 150ms var(--ease); }
.btn-line:hover { border-color: var(--red); color: var(--red); }

/* ---------- плитки: форма на странице, рядом — телефон, почта и неделя по часам;
 у разделов для самостоятельной работы — окошко с их настоящим содержимым ---------- */
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.c-form { grid-column: 1 / 9; grid-row: 1 / 4; padding: 40px; }
.c-form h2 { margin-bottom: 32px; font-size: 32px; }
.c-call, .c-mail, .c-hours { grid-column: 9 / 13; }
.c-call { grid-row: 1; }
.c-mail { grid-row: 2; }
.c-hours { grid-row: 3; }

/* число — узкой шириной шрифта, чтобы влезало в плитку */
.num { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 100%; font-size: 32px; line-height: 1.1; letter-spacing: -.01em; }
.c-call { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 200px; border-color: var(--night); background: var(--night); color: var(--night-ink); transition: background 150ms var(--ease), border-color 150ms var(--ease); }
.c-call .k { color: var(--night-muted); }
.c-call-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.c-call .copy { border-color: rgb(255 255 255 / .28); color: #fff; }
.c-call .copy:hover, .c-call:hover .copy { border-color: #fff; }
.c-call .copy.done { border-color: #fff; color: #fff; }
.c-call:has(.stretch:focus-visible), .c-self:has(.stretch:focus-visible) { outline: 2px solid var(--red); outline-offset: 4px; }
.c-call .arr { background: rgb(255 255 255 / .1); color: #fff; }
.c-call:hover { border-color: var(--red); background: var(--red); }
.c-call:hover .k { color: rgb(255 255 255 / .8); }
.c-call:hover .arr { background: #fff; color: var(--red); }
.c-mail { display: flex; flex-direction: column; align-items: flex-start; }
.c-mail .num { font-size: 24px; }
.c-mail .num:hover { color: var(--red); }
.c-mail .copy { margin-top: auto; }
.c-mail .num { margin-bottom: 24px; }

.c-hours { display: grid; align-content: start; gap: 8px; }
.c-hours .hrs { font-size: 20px; font-weight: 600; line-height: 1.4; }
.week { display: grid; grid-template-columns: 40px repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.wk-axis { position: relative; height: 112px; }
.wk-axis small { position: absolute; right: 0; top: calc(var(--y) * 100%); transform: translateY(-50%); font-size: 13px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wd { display: grid; justify-items: center; gap: 8px; }
.wd-bar { position: relative; width: 100%; max-width: 24px; height: 112px; border-radius: 8px; background: var(--surface); }
.wd-bar i { position: absolute; left: 0; right: 0; top: calc(var(--a) * 100%); height: calc((var(--b) - var(--a)) * 100%); border-radius: 4px; background: var(--ink); }
.is-on .is-today .wd-bar i { background: var(--red); }
.wd-bar b { position: absolute; left: -6px; right: -6px; top: calc(var(--t) * 100%); height: 2px; margin-top: -1px; border-radius: 1px; background: var(--red); }
.wd small { font-size: 13px; line-height: 16px; color: var(--muted); }
.wd.is-today small { font-weight: 600; color: var(--ink); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.c-self { container-type: inline-size; display: grid; align-content: start; gap: 8px; transition: border-color 150ms var(--ease); }
.c-self:hover { border-color: var(--ink); }
.c-self h3 { margin-top: 24px; font-size: 24px; font-weight: 600; line-height: 1.3; }
.c-self p { max-width: 44ch; font-size: 16px; line-height: 1.5; color: var(--muted); }
.c-self .foot { display: flex; align-items: center; gap: 16px; margin-top: 16px; font-size: 16px; font-weight: 600; }
.peek { position: relative; height: 192px; overflow: hidden; border-radius: 12px; background: var(--bg); }
/* инструкции — настоящие названия медленно поднимаются */
.peek-list { -webkit-mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent); mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent); }
.peek-list ul { padding: 0 24px; animation: tick 60s linear infinite; }
.peek-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 24px; }
@keyframes tick { to { transform: translateY(-50%); } }
/* протоколы — плитки-элементы смол */
.peek-els { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: center; gap: 8px; padding: 24px; }
.peek-els span { display: grid; gap: 24px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.peek-els span { min-width: 0; overflow: hidden; }
.peek-els b { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 32px; line-height: 1; transition: color 150ms var(--ease); }
.peek-els small { font-size: 13px; font-weight: 500; line-height: 16px; color: var(--muted); }
/* узкая плитка — элементы два на два, символ и название в строку */
@container (max-width: 520px) {
  .peek-els { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .peek-els span { display: flex; align-items: baseline; gap: 12px; }
  .peek-els b { font-size: 24px; }
}
.c-self:hover .peek-els b { color: var(--red); }
.c-self:hover .peek-els span:nth-child(2) b { transition-delay: 40ms; }
.c-self:hover .peek-els span:nth-child(3) b { transition-delay: 80ms; }
.c-self:hover .peek-els span:nth-child(4) b { transition-delay: 120ms; }

@media (max-width: 1099px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .c-call { grid-column: 1; grid-row: 1; }
  .c-mail { grid-column: 2; grid-row: 1; }
  .c-hours { grid-column: 1 / -1; grid-row: 2; }
  .c-form { grid-column: 1 / -1; grid-row: 3; }
  .c-hours { grid-template-columns: 1fr minmax(0, 360px); column-gap: 32px; }
  .c-hours .week { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
}
@media (max-width: 767px) {
  .bento { grid-template-columns: 1fr; margin-top: 32px; }
  .c-call, .c-mail, .c-hours, .c-form { grid-column: 1; grid-row: auto; }
  .c-hours { grid-template-columns: 1fr; }
  .c-hours .week { grid-column: 1; grid-row: auto; margin-top: 16px; }
  .card { padding: 24px; }
  .c-form { padding: 24px 16px; }
  .c-form h2 { font-size: 24px; margin-bottom: 24px; }
  .c-call { min-height: 0; }
  .pair { grid-template-columns: 1fr; }
  .peek-els { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .peek-list ul { animation: none; } }

/* ---------- черновые списки статей (дизайн этих страниц ещё не выбирался) ---------- */
.sp-list { margin-top: 64px; }
.sp-list + .sp-list { margin-top: 48px; }
.sp .sp-grp { margin-bottom: 16px; font-family: var(--font-body); font-stretch: normal; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sp-list .h { font-size: 20px; font-weight: 600; line-height: 1.3; }
.sp-list .note { font-size: 14px; }
.sp-long h1 { font-size: clamp(30px, 8.5vw, 96px); }

@media (prefers-reduced-motion: reduce) {
  .live.on i::after { display: none; }
}
#ask-h { scroll-margin-top: 112px; }

/* Телефон: шкала шрифтов по эталонным сайтам (Stripe, Linear, Vercel: H1 24–38, H2 22–34, текст 15–16) — 18.10.2026 */
@media (max-width: 767px) {
  .sp h1 { font-size: 32px; }
  .big { font-size: 24px; }
}
