/* Инструменты фотографа: симулятор, игра, подбор объектива, калькуляторы, словарь. Подключается только на их страницах.
   Задача вёрстки: сам инструмент целиком на одном экране — и на компьютере, и на телефоне; пояснения и FAQ ниже. */

:root {
  --hdr: 76px;
  --ink: #f5f5f7;
  --ink-dim: rgba(245, 245, 247, .62);
  --stage: #0b0b0d;
  --panel: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .12);
  --accent: #0071e3;
  --coral: #ff6b4a;
  --ok: #30d158;
  --bad: #ff453a;
}

/* ── каркас «на один экран» ─────────────────────────────────────────────────────────────────── */
.tool-shell {
  min-height: calc(100svh - var(--hdr));
  height: calc(100svh - var(--hdr));
  display: flex;
  flex-direction: column;
  padding: 14px max(22px, calc((100vw - 1320px) / 2)) 18px;
  gap: 12px;
}
.tool-shell.dark { background: radial-gradient(120% 90% at 30% 0%, #1d1a22 0%, var(--stage) 55%); color: var(--ink); }
.tool-shell.light { background: linear-gradient(180deg, #f5f5f7 0%, #fff 100%); }
.tool-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.tool-head .crumbs-mini { font-size: 13px; opacity: .6; }
.tool-head .crumbs-mini a { color: inherit; }
.tool-h1 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.tool-sub { font-size: 15px; opacity: .7; flex: 1 1 320px; }
.tool-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
.tool-col { display: flex; flex-direction: column; min-height: 0; gap: 12px; }

/* ── кадр ─────────────────────────────────────────────────────────────────────────────────── */
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  overflow: hidden;
}
.stage canvas { display: block; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); background: #1c1c1e; }
.stage-wrap { position: relative; }
.stage-badge {
  position: absolute; left: 16px; top: 14px; z-index: 2;
  padding: 8px 14px 9px; border-radius: 14px;
  background: rgba(0, 0, 0, .42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; line-height: 1.15; pointer-events: none;
}
.stage-badge b { display: block; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stage-badge span { font-size: 13px; opacity: .8; }
.stage-map {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: clamp(110px, 22%, 210px); aspect-ratio: 3 / 2;
  border-radius: 10px; box-shadow: 0 8px 26px rgba(0, 0, 0, .5), 0 0 0 1.5px rgba(255, 255, 255, .7);
}
/* искажения объектива (22.11.2026): WebGL-кадр поверх обычного, кнопка сетки и подпись */
.stage canvas.stage-gl { position: absolute; left: 0; top: 0; z-index: 1; box-shadow: none; }
.stage canvas.stage-gl[hidden] { display: none; }
.stage-grid {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  padding: 7px 12px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; font: inherit; font-size: 13.5px; cursor: pointer;
}
.stage-grid::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; opacity: .85;
  background: linear-gradient(currentColor, currentColor) 50% 0 / 1px 100% no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat;
  box-shadow: inset 0 0 0 1px currentColor; border-radius: 2px;
}
.stage-grid[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); }
.stage-note {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  max-width: min(440px, calc(100% - clamp(110px, 22%, 210px) - 44px));
  padding: 8px 12px 9px; border-radius: 12px; background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; font-size: 13px; line-height: 1.35; pointer-events: none;
}
.stage-note[hidden] { display: none; }
.stage-note .note-more { opacity: .85; }
.seg .lbl-short { display: none; }
.sim .seg[data-sim-dist] { display: grid; grid-template-columns: 1.05fr 1.15fr .8fr; overflow: visible; }
.sim .seg[data-sim-dist] button { padding: 6px 8px; font-size: 13px; line-height: 1.2; text-align: center; }

/* ── ползунок ─────────────────────────────────────────────────────────────────────────────── */
.slider-block { flex: none; }
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; --p: 50%;
}
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p), rgba(127, 127, 127, .3) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p), rgba(127, 127, 127, .3) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06); }
.range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.ticks { position: relative; height: 18px; font-size: 12px; opacity: .55; font-variant-numeric: tabular-nums; }
.ticks span, .ticks button { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ticks button { background: none; border: 0; color: inherit; font: inherit; padding: 2px 4px; cursor: pointer; opacity: 1; }
.ticks button:hover { opacity: 1; color: #fff; }
.ticks button.is-on { color: #fff; font-weight: 600; }
.ticks > :first-child { transform: none; }
.ticks > :last-child { transform: translateX(-100%); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: wrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--panel); color: inherit;
  font: inherit; font-size: 14px; padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.light .chip { border-color: rgba(0, 0, 0, .1); background: #fff; }
.chip:hover { border-color: rgba(127, 127, 127, .6); }
.chip.is-on, .chip[aria-checked="true"] { background: #fff; color: #000; border-color: #fff; }
.light .chip.is-on, .light .chip[aria-checked="true"] { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }

/* ── правая панель ────────────────────────────────────────────────────────────────────────── */
.panel {
  display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: auto;
  padding: 18px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.light .panel { background: #fff; border-color: rgba(0, 0, 0, .08); box-shadow: var(--tile-shadow); }
.panel-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .55; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  flex: none; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; font-size: 13.5px;
  padding: 6px 11px; border-radius: 10px; cursor: pointer;
}
.seg button[aria-checked="true"] { background: var(--coral); border-color: var(--coral); color: #fff; }
.light .seg button { border-color: rgba(0, 0, 0, .12); }
.light .seg button[aria-checked="true"] { background: #1d1d1f; border-color: #1d1d1f; }
.tool-select {
  width: 100%; font: inherit; font-size: 15px; padding: 9px 12px; border-radius: 12px; color: inherit;
  background: var(--panel); border: 1px solid var(--line); -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.dark .tool-select option { color: #000; }
.light .tool-select { background-color: #f5f5f7; border-color: rgba(0, 0, 0, .08); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.light .stat { background: #f5f5f7; }
.stat b { display: block; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; opacity: .6; }
.hint { font-size: 14px; line-height: 1.4; opacity: .8; }
.legend { display: flex; gap: 14px; font-size: 12.5px; opacity: .75; }
.legend i { display: inline-block; width: 14px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend .ff { border: 1.5px dashed #fff; }
.legend .cr { border: 1.5px solid var(--coral); }

.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 500;
  padding: 11px 20px; cursor: pointer; text-decoration: none; transition: background .2s, transform .15s;
}
.tool-btn:hover { background: #0077ed; text-decoration: none; }
.tool-btn:active { transform: scale(.98); }
.tool-btn.small { padding: 7px 14px; font-size: 14px; }
.tool-btn.ghost { background: rgba(255, 255, 255, .1); }
.light .tool-btn.ghost { background: #f5f5f7; color: #1d1d1f; }
.tool-link { color: #2997ff; font-size: 14.5px; }
.light .tool-link { color: var(--link); }
.as-btn { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.cta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* ── игра ─────────────────────────────────────────────────────────────────────────────────── */
.game-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game-step { font-size: 14px; opacity: .7; }
.game-dots { display: flex; gap: 6px; }
.game-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); transition: background .3s, transform .3s; }
.game-dots span.now { background: #fff; transform: scale(1.15); }
.game-dots span.ok { background: var(--ok); }
.game-dots span.bad { background: var(--bad); }
.game-dots.big { justify-content: center; gap: 10px; }
.game-dots.big span { width: 16px; height: 16px; }
.game-ask { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.game-sub { font-size: 13.5px; opacity: .6; margin-top: -8px; }
.game-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.game-opt {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: #fff; font: inherit;
  font-size: 26px; font-weight: 600; letter-spacing: -0.02em; padding: 16px 8px; border-radius: 16px; cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s; font-variant-numeric: tabular-nums;
}
.game-opt small { font-size: 15px; font-weight: 500; opacity: .6; }
.game-opt:hover:not(:disabled) { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); }
.game-opt:active:not(:disabled) { transform: scale(.97); }
.game-opt:disabled { cursor: default; opacity: .45; }
.game-opt.is-right { background: rgba(48, 209, 88, .22); border-color: var(--ok); opacity: 1; }
.game-opt.is-wrong { background: rgba(255, 69, 58, .2); border-color: var(--bad); opacity: 1; }
.game-verdict { font-size: 15px; line-height: 1.4; }
.game-verdict.ok b { color: var(--ok); }
.game-verdict.bad b { color: var(--bad); }
.game-next-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.game-feedback:empty { display: none; }
.game-stats { display: flex; gap: 16px; font-size: 13.5px; opacity: .65; margin-top: auto; }
.game-eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; text-align: center; }
.game-score { font-size: 72px; font-weight: 700; text-align: center; letter-spacing: -0.04em; line-height: 1; }
.game-score span { font-size: 32px; opacity: .45; }
.game-phrase { text-align: center; font-size: 18px; }
.game-tomorrow { font-size: 14px; opacity: .8; }
.game .stage-map { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.game.is-answered .stage-map { opacity: 1; transform: none; }
.is-summary .game-stats { justify-content: center; }

/* ── подбор объектива ─────────────────────────────────────────────────────────────────────── */
.picker .tool-body { grid-template-columns: 340px minmax(0, 1fr); }
.pick-controls { gap: 16px; }
.pick-af { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.pick-af input { width: 20px; height: 20px; accent-color: var(--accent); }
.pick-genres { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-results { display: flex; flex-direction: column; min-height: 0; gap: 10px; }
.pick-meta { font-size: 14px; opacity: .75; }
.pick-list { list-style: none; overflow: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 2px 4px 10px 2px; }
.pick-card {
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: var(--tile-shadow); border: 1px solid rgba(0, 0, 0, .05);
}
.pick-card.top { border-color: rgba(0, 113, 227, .25); }
.pick-name { font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.pick-spec { font-size: 14px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.pick-why { font-size: 13.5px; margin-top: 3px; }
.pick-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pick-tags span { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: #f5f5f7; color: #6e6e73; }
.pick-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.pick-stock { font-size: 12.5px; color: #248a3d; display: inline-flex; align-items: center; gap: 6px; }
.pick-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #30d158; }
.pick-empty { padding: 26px; text-align: center; background: #fff; border-radius: 18px; display: grid; gap: 10px; justify-items: center; }
.pick-more { text-align: center; padding: 6px; }
.pick-note { font-size: 12.5px; opacity: .6; }

/* ── калькуляторы ─────────────────────────────────────────────────────────────────────────── */
.calc .tool-body { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.field { display: grid; gap: 4px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; }
.field-top output { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 17px; }
.result-card {
  border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow: auto;
  background: linear-gradient(160deg, #1d1d1f, #2c2a33); color: #f5f5f7; box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}
.result-big { font-size: clamp(34px, 4.6vw, 60px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.result-big small { font-size: .38em; font-weight: 500; opacity: .6; letter-spacing: 0; }
.result-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; opacity: .55; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.result-grid .stat { background: rgba(255, 255, 255, .07); }
.result-card .hint { opacity: .78; }
.result-card .tool-link { color: #2997ff; }

/* полоса ГРИП */
.dof-bar { --a: 30%; --b: 60%; --s: 45%; position: relative; height: 92px; margin: 6px 4px 18px; }
.dof-bar .axis { position: absolute; left: 0; right: 0; top: 60px; height: 2px; background: rgba(255, 255, 255, .2); }
.dof-bar .zone { position: absolute; top: 46px; height: 30px; left: var(--a); width: calc(var(--b) - var(--a)); min-width: 3px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 107, 74, .25), rgba(255, 107, 74, .7), rgba(255, 107, 74, .25)); transition: left .2s, width .2s; }
.dof-bar .cam { position: absolute; left: -2px; top: 48px; width: 24px; height: 24px; }
.dof-bar .subj { position: absolute; left: var(--s); top: 10px; transform: translateX(-50%); width: 22px; height: 52px; transition: left .2s; }
.dof-bar .lbl { position: absolute; top: 84px; font-size: 11.5px; opacity: .5; transform: translateX(-50%); }
/* рамка эквивалента */
.eq-frame { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; --k: .66; background: url("img/tools/scene-1600.webp") center / cover; }
.eq-frame::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--k) * 100%); height: calc(var(--k) * 100%); transform: translate(-50%, -50%); border: 2px solid var(--coral); box-shadow: 0 0 0 999px rgba(0, 0, 0, .5); border-radius: 4px; transition: width .25s, height .25s; }
.eq-frame span { position: absolute; left: 10px; top: 8px; z-index: 1; font-size: 12px; color: #fff; opacity: .85; }
.star-sky { position: relative; height: 120px; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 140% at 50% 120%, #2b2340 0%, #0b0b14 60%); }
.star-sky i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; }

/* ── словарь ──────────────────────────────────────────────────────────────────────────────── */
.gl-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 28px; position: sticky; top: var(--hdr); background: #fff; padding: 10px 0; z-index: 5; }
.gl-index a { min-width: 34px; text-align: center; padding: 5px 8px; border-radius: 10px; background: #f5f5f7; color: #1d1d1f; font-weight: 600; font-size: 14px; }
.gl-index a:hover { background: #1d1d1f; color: #fff; text-decoration: none; }
.gl-search { width: 100%; font: inherit; font-size: 17px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(0, 0, 0, .12); background: #fff; }
.gl-letter { font-size: 28px; margin: 26px 0 8px; letter-spacing: -0.02em; }
.gl-term { padding: 16px 18px; border-radius: 18px; background: #f5f5f7; margin-bottom: 10px; scroll-margin-top: calc(var(--hdr) + 70px); }
.gl-term h3 { font-size: 19px; margin-bottom: 6px; }
.gl-term p { font-size: 16px; color: #333; }
.gl-term:target { background: #e8f2fd; }

/* ── хаб ──────────────────────────────────────────────────────────────────────────────────── */
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 10px 0 40px; }
.hub-card.hub-hero { grid-column: 1 / -1; min-height: 320px; }
.hub-card.hub-wide { grid-column: 1 / -1; min-height: 190px; background-position: center 40%; }
.hub-card.hub-hero strong { font-size: 30px; }
.hub-card.hub-hero span { font-size: 16px; }
@media (max-width: 900px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hub-grid { grid-template-columns: 1fr; } .hub-card.hub-hero { min-height: 260px; } }
.hub-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 20px; border-radius: 24px; overflow: hidden; color: #fff; background: #1d1d1f center / cover; box-shadow: var(--tile-shadow); transition: transform .25s, box-shadow .25s; }
.hub-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .78) 100%); }
.hub-card > * { position: relative; }
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--tile-shadow-hover); text-decoration: none; }
.hub-card .tag { position: absolute; top: 16px; left: 16px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); }
.hub-card strong { font-size: 22px; letter-spacing: -0.02em; }
.hub-card span { font-size: 14.5px; opacity: .85; }
.hub-card.big { grid-column: span 2; min-height: 300px; }

.tool-seo { padding-top: 40px; }
.tool-seo h2 { font-size: 28px; letter-spacing: -0.02em; margin: 26px 0 10px; }
.tool-seo p, .tool-seo li { font-size: 17px; color: #333; }
.tool-seo ul { padding-left: 22px; display: grid; gap: 6px; }
.tool-faq details { border-bottom: 1px solid rgba(0, 0, 0, .08); padding: 14px 0; }
.tool-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.tool-faq details p { margin-top: 8px; }
.tools-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.tools-strip a { font-size: 14px; padding: 7px 13px; border-radius: 999px; background: #f5f5f7; color: #1d1d1f; }
.tools-strip a.is-active { background: #1d1d1f; color: #fff; }

/* ── телефон и узкие экраны ───────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tool-shell { height: auto; padding: 10px 14px 16px; gap: 10px; }
  .tool-sub { display: none; }
  .tool-head .crumbs-mini { display: none; }
  .tool-h1 { font-size: 21px; }
  .tool-body, .picker .tool-body, .calc .tool-body { grid-template-columns: minmax(0, 1fr); gap: 12px; flex: none; align-content: start; }
  .tool-col, .panel { min-width: 0; }
  .sim .panel-label, .sim .panel .chips { display: none; }
  .sim .cta-row .tool-btn { flex: 1; padding: 10px 12px; font-size: 14.5px; }
  .ticks { height: 26px; }
  .stage { flex: none; aspect-ratio: 3 / 2; }
  .stage canvas { border-radius: 14px; }
  .stage-badge { left: 10px; top: 10px; padding: 6px 10px 7px; border-radius: 11px; }
  .stage-map { right: 10px; bottom: 10px; width: 28%; border-radius: 7px; }
  .stage-grid { right: 10px; top: 10px; padding: 5px 9px; border-radius: 9px; font-size: 12.5px; }
  .stage-note { left: 8px; bottom: 8px; max-width: calc(72% - 24px); padding: 5px 8px 6px; border-radius: 9px; font-size: 11.5px; line-height: 1.3; }
  .stage-note .note-more { display: none; }
  .sim .seg .lbl-long { display: none; }
  .sim .seg .lbl-short { display: inline; }
  .panel { padding: 0; background: none; border: 0; backdrop-filter: none; overflow: visible; gap: 10px; }
  .light .panel { background: none; box-shadow: none; }
  .sim .panel .hint, .sim .panel .legend { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat { padding: 7px 9px; }
  .stat b { font-size: 17px; }
  .stat span { font-size: 11.5px; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .panel-label { margin-bottom: 4px; }
  .game-ask { font-size: 19px; }
  .game-sub { display: none; }
  .game-opt { font-size: 22px; padding: 12px 6px; }
  .game-score { font-size: 56px; }
  .pick-controls .pick-genres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pick-list { overflow: visible; }
  .pick-card { flex-direction: column; align-items: stretch; gap: 10px; }
  .pick-side { flex-direction: row; justify-content: space-between; align-items: center; }
  .result-card { padding: 16px; gap: 12px; }
  .hub-card.big { grid-column: auto; }
  .calc .panel { gap: 12px; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .tool-h1 { font-size: 18px; }
  .game-opt { padding: 9px 6px; font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .pick-card { animation: none; }
}

/* ── Чёрная пятница ──────────────────────────────────────────────────────────────────────── */
.bf-hero { margin: 8px 0 34px; padding: 28px; border-radius: 28px; color: #fff; background: radial-gradient(120% 140% at 85% 0%, #3a1d1a 0%, #111 55%); box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.bf-count { font-size: clamp(26px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 18px; }
.bf-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.bf-dates div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.bf-dates b { display: block; font-size: 20px; color: #ff8a6b; }
.bf-dates span { font-size: 13.5px; opacity: .75; }
.bf-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.bf-cta .ghost { color: #fff; }
.bf-note { font-size: 12.5px; opacity: .55; margin-top: 12px; }
.bf-top { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; counter-reset: bf; padding: 0 !important; margin: 10px 0; }
.bf-top li { counter-increment: bf; padding: 8px 14px; border-radius: 999px; background: #f5f5f7; font-weight: 600; font-size: 15px; }
.bf-top li::before { content: counter(bf) ". "; color: #ff6b4a; }
.page h2 { margin-top: 30px; }
.page ul, .page ol { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.page .bf-hero p { color: #fff; }
.page .bf-hero .bf-note { color: rgba(255,255,255,.55); }
.page .bf-top { display: flex; padding: 0; }
.page .bf-hero .bf-count { font-size: clamp(26px, 4vw, 44px); line-height: 1.1; }

/* ── объективы к камере ───────────────────────────────────────────────────────────────────── */
.cam-lead { font-size: 18px; color: #333; }
.cam-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 18px 0; }
.cam-spec div { padding: 12px 14px; border-radius: 14px; background: #f5f5f7; }
.cam-spec dt { font-size: 12.5px; color: #6e6e73; }
.cam-spec dd { font-weight: 600; font-size: 15.5px; }
.cam-cta { margin: 6px 0 10px; }
.cam-cta .ghost { color: #1d1d1f; background: #f5f5f7; }
.cam-hint { color: #6e6e73; margin-top: -4px; }
.page .cam-list { padding: 0; list-style: none; display: flex; overflow: visible; margin: 12px 0; }
.cam-more { font-size: 15px; }
.cam-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cam-links a { padding: 9px 15px; border-radius: 999px; background: #f5f5f7; color: #1d1d1f; font-weight: 500; }
.cam-links a:hover { background: #1d1d1f; color: #fff; text-decoration: none; }
.page .pick-card p { margin: 0; }

/* ── рейтинг спроса ───────────────────────────────────────────────────────────────────────── */
.rate-hero { padding: 24px; border-radius: 24px; background: #111; color: #fff; margin: 6px 0 20px; }
.page .rate-hero p, .page .rate-hero li { color: #fff; }
.rate-month { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.rate-finds { font-size: 17px; }
.rate-table, .rate-hist { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.rate-table th, .rate-hist th { text-align: left; font-size: 12.5px; color: #6e6e73; font-weight: 500; padding: 6px 8px; }
.rate-table td { padding: 10px 8px; border-top: 1px solid rgba(0,0,0,.06); vertical-align: middle; }
.rate-table .rk { width: 34px; color: #6e6e73; font-variant-numeric: tabular-nums; }
.rate-table .kind { font-size: 11.5px; color: #6e6e73; background: #f5f5f7; padding: 2px 8px; border-radius: 999px; margin-left: 4px; }
.rate-table .bar { width: 42%; position: relative; }
.rate-table .bar span { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #ff6b4a, #ff9a7a); }
.rate-table .bar { display: flex; align-items: center; gap: 8px; }
.rate-table .bar em { font-style: normal; font-size: 13.5px; font-weight: 600; flex: none; }
.rate-table .bar span { flex: none; }
.rate-table .mv { width: 110px; font-size: 14px; color: #6e6e73; }
.rate-table .mv.up { color: #248a3d; }
.rate-table .mv.down { color: #c4291c; }
.rate-note { font-size: 13.5px; color: #6e6e73; }
.rate-scroll { overflow-x: auto; }
.rate-hist td { text-align: center; padding: 8px; border-top: 1px solid rgba(0,0,0,.06); font-variant-numeric: tabular-nums; }
.rate-hist tbody th { color: #1d1d1f; font-size: 15px; font-weight: 600; }
.rate-table td:nth-child(3)::after { content: none; }
@media (max-width: 600px) { .rate-table .bar { width: 30%; } .rate-table .mv { width: 70px; } }
.page .rate-hero .rate-month { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.15; }

/* ── пробег затвора, золотой час, переходники ─────────────────────────────────────────────── */
.sh-drop { display: grid; gap: 6px; place-items: center; text-align: center; padding: 34px 18px; border: 2px dashed rgba(0,0,0,.18); border-radius: 20px; cursor: pointer; background: #fafafa; transition: background .2s, border-color .2s; }
.sh-drop:hover, .sh-drop.is-over { background: #eef5ff; border-color: var(--accent); }
.sh-drop b { font-size: 17px; }
.sh-drop span { font-size: 13.5px; color: #6e6e73; }
.sh-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.sh-info div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); }
.sh-info dt { font-size: 12px; opacity: .6; }
.sh-info dd { font-size: 14.5px; font-weight: 600; word-break: break-word; }
.sun-bar { position: relative; height: 34px; border-radius: 10px; background: #241f33; overflow: hidden; margin-top: 6px; }
.sun-bar span { position: absolute; top: 0; bottom: 0; }
.sun-bar .day { background: #cfe3ff; }
.sun-bar .gold { background: #ff8a5b; }
.sun-bar .blue { background: #6c5ce7; }
.sun-bar i { position: absolute; bottom: 2px; font-size: 10px; font-style: normal; color: #6e6e73; transform: translateX(-50%); mix-blend-mode: difference; }
.legend i[style] { border: 0; }
.sun-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sun-c { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); }
.sun-c span { display: block; font-size: 12.5px; opacity: .65; }
.sun-c b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.sun-c.gold b { color: #ff8a5b; }
.sun-c.blue b { color: #b3a8ff; }
.ad-table td { vertical-align: top; font-size: 15px; }
.ad-table td:nth-child(3) { color: #333; }
.sh-spin { display: inline-block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: shspin .8s linear infinite; }
@keyframes shspin { to { transform: rotate(360deg); } }

/* ── подбор карты памяти ──────────────────────────────────────────────────────────────────── */
.cards-out { gap: 12px; }
.cards-h { font-size: 17px; font-weight: 600; margin-top: 6px; }
.cards-h b { color: #ff8a6b; }
.cards-list { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.card-rec { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.07); }
.card-rec div { display: grid; gap: 2px; min-width: 0; }
.card-rec b { font-size: 15.5px; }
.card-rec span { font-size: 13px; opacity: .7; }
.card-rec em { font-style: normal; font-size: 12.5px; color: #8fe3a8; }
.card-note { font-size: 14px; opacity: .85; line-height: 1.45; }
.cards-req summary { cursor: pointer; font-size: 14px; opacity: .8; }
.cards-req ul { margin-top: 8px; display: grid; gap: 6px; padding-left: 18px; font-size: 13px; opacity: .85; }
.cards-req li span { opacity: .6; }
.cards-warn { color: #ffb4a3; opacity: 1; }
.light-seg button { border-color: rgba(0,0,0,.12); }
[data-cards-cam] { margin-top: 6px; }
@media (max-width: 900px) { .card-rec { flex-direction: column; align-items: stretch; } }

/* крупная зона загрузки снимка (пробег затвора) */
.sh-drop { min-height: 340px; gap: 10px; padding: 30px 20px; border-width: 3px; border-radius: 24px; background: linear-gradient(180deg, #fbfbfd, #f2f2f6); }
.sh-drop .sh-ico { width: 64px; height: 64px; color: #0071e3; }
.sh-drop b { font-size: 22px; letter-spacing: -0.01em; }
.sh-drop .sh-or { font-size: 13px; color: #8e8e93; }
.sh-drop .tool-btn { pointer-events: none; }
.sh-drop.is-over { transform: scale(1.01); box-shadow: 0 0 0 6px rgba(0,113,227,.15); }
body.sh-dragging .sh-drop { border-color: #0071e3; background: #eef5ff; }
@media (max-width: 900px) { .sh-drop { min-height: 230px; } .sh-drop b { font-size: 19px; } }
.sh-drop .tool-btn { color: #fff; font-size: 16px; padding: 12px 26px; }
.calc .tool-body[data-tool="shutter"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
[data-tool="shutter"] .panel { display: flex; flex-direction: column; }
[data-tool="shutter"] .sh-drop { flex: 1; }
@media (max-width: 900px) { .calc .tool-body[data-tool="shutter"] { grid-template-columns: minmax(0, 1fr); } }
.card-rec .card-stock { font-style: normal; font-size: 12px; color: #8fe3a8; display: inline-flex; align-items: center; gap: 6px; }
.card-rec .card-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #30d158; }
.bf-deals { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.bf-deal { padding: 18px; border-radius: 20px; background: #f5f5f7; display: flex; flex-direction: column; gap: 6px; }
.page .bf-deal p { margin: 0; font-size: 15px; color: #333; }
.page .bf-deal .bf-deal-name { font-weight: 700; font-size: 18px; color: #1d1d1f; }
.page .bf-deal .bf-deal-off { font-size: 28px; font-weight: 700; color: #e5533a; letter-spacing: -0.02em; }
.page .bf-deal .bf-code { margin-top: auto; padding-top: 6px; font-size: 14px; color: #6e6e73; }
.bf-code b { font-family: ui-monospace, Menlo, monospace; font-size: 15px; color: #1d1d1f; background: #fff; padding: 3px 8px; border-radius: 8px; border: 1px dashed rgba(0,0,0,.25); }
.page .bf-note-dark { font-size: 14px; color: #6e6e73; }

[data-tool="shutter"] [hidden] { display: none !important; }
.sh-results { display: grid; gap: 16px; align-content: start; min-width: 0; }
.sh-results .result-card { min-width: 0; }
.sh-results .result-big { font-variant-numeric: tabular-nums; }
.sh-results progress { display: block; width: 100%; height: 10px; margin: 12px 0; accent-color: #b63232; }
.tool-shell:has([data-tool="shutter"]) { height: auto; }
[data-tool="shutter"] .panel { align-self: start; }
[data-tool="shutter"] .sh-drop { min-height: 185px; flex: none; }
.sh-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sh-drop:focus-within { outline: 3px solid #0071e3; outline-offset: 3px; }

/* ── договоры и релизы (21.11.2026, assets/docs.js) ────────────────────────────────────────── */
.calc .tool-body[data-tool="docs"] { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
[data-tool="docs"] .panel { gap: 10px; }
[data-tool="docs"] [hidden] { display: none !important; }
.docs-types { position: sticky; top: -18px; z-index: 1; margin: -18px -18px 4px; padding: 14px 18px 12px; background: #fff; border-bottom: 1px solid rgba(0,0,0,.06); }
.docs-types .seg button { font-size: 14px; padding: 7px 12px; }
.docs-h { margin: 10px 0 0; }
.docs-checks { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.docs-checks legend { margin-bottom: 4px; }
.docs-checks label, .docs-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.35; cursor: pointer; }
.docs-checks input, .docs-check input { margin-top: 2px; accent-color: #1d1d1f; flex: none; }
[data-tool="docs"] textarea.tool-select { background-image: none; resize: vertical; min-height: 60px; }
[data-tool="docs"] input[type="date"].tool-select, [data-tool="docs"] input[type="time"].tool-select, [data-tool="docs"] input[type="text"].tool-select { background-image: none; }
.docs-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; min-width: 0; }
.docs-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.docs-actions .tool-link { margin-left: auto; font-size: 13.5px; }
.docs-check-card { border-radius: 20px; padding: 16px 18px; background: #fff; border: 1px solid rgba(0,0,0,.08); box-shadow: var(--tile-shadow); max-height: 34%; overflow: auto; flex: none; }
.docs-check-card ul { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.4; }
.docs-check-card li { padding-left: 24px; position: relative; }
.docs-ok li::before { content: "✓"; position: absolute; left: 4px; color: #1f8a3b; font-weight: 700; }
.docs-warn li::before { content: "!"; position: absolute; left: 7px; color: #b63232; font-weight: 700; }
.docs-paper { flex: 1; min-height: 0; overflow: auto; border-radius: 20px; background: #e9e9ee; padding: 18px; }
.doc-page { background: #fff; color: #111; max-width: 760px; margin: 0 auto 18px; padding: 48px 52px; box-shadow: 0 8px 30px rgba(0,0,0,.12); border-radius: 4px;
  font-family: "Times New Roman", Times, serif; font-size: 15px; line-height: 1.45; }
.doc-page:last-child { margin-bottom: 0; }
.doc-page h2 { font-size: 17px; text-align: center; margin: 0 0 16px; line-height: 1.3; font-weight: 700; }
.doc-page h3 { font-size: 15px; margin: 16px 0 6px; font-weight: 700; }
.doc-page p { margin: 0 0 7px; text-align: justify; hyphens: auto; }
.doc-page .doc-intro { overflow: hidden; }
.doc-page .doc-r { float: right; }
.doc-page table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.doc-page td { vertical-align: top; padding: 0 10px 8px 0; width: 50%; text-align: left; }
.doc-page td p { text-align: left; }
.doc-sign td { width: auto; }
.doc-line { margin-top: 22px !important; white-space: nowrap; }
.docs-note { font-size: 12.5px; opacity: .65; line-height: 1.4; }
@media (max-width: 900px) {
  .calc .tool-body[data-tool="docs"] { grid-template-columns: minmax(0, 1fr); }
  .tool-shell:has([data-tool="docs"]) { height: auto; }
  .docs-types { position: static; margin: 0 0 4px; padding: 0; border: 0; background: none; }
  .docs-check-card { max-height: none; }
  .docs-paper { padding: 8px; border-radius: 14px; max-height: 80svh; }
  .doc-page { padding: 22px 18px; font-size: 14px; }
  .doc-sign td { display: block; }
}
.docs-law { overflow-x: auto; margin: 10px 0 16px; }
.docs-law table { width: 100%; border-collapse: collapse; font-size: 15px; }
.docs-law th, .docs-law td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid rgba(0,0,0,.08); }
.docs-law th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; opacity: .6; font-weight: 600; }
.docs-law td:first-child { white-space: nowrap; font-weight: 600; }
@media (max-width: 700px) { .docs-law td:first-child { white-space: normal; } }
/* пробег затвора: подключение камеры по USB (21.11.2026) */
.sh-usb { display: grid; gap: 6px; justify-items: start; margin-top: 4px; }
.sh-usb .tool-btn { width: 100%; }
.sh-usb span { font-size: 12.5px; line-height: 1.4; opacity: .65; }
.sh-usb .tool-btn:disabled { opacity: .6; cursor: progress; }
.docs-types .seg { flex-wrap: wrap; overflow: visible; }
.docs-jump { display: none; }
@media (max-width: 900px) {
  .docs-jump { display: inline-block; margin-top: 10px; font-size: 14.5px; color: var(--link); }
}
#docs-preview { scroll-margin-top: calc(var(--hdr, 64px) + 12px); }
/* подбор объектива: вес (21.11.2026) */
.pick-weight .seg button { font-size: 13.5px; }
.pick-w { font-weight: 600; color: #1d1d1f; white-space: nowrap; }
@media (max-width: 900px) { .pick-weight .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }

/* ── схема света (21.11.2026, assets/lights.js) ─────────────────────────────────────────────── */
.lights .tool-body[data-tool="lights"] { grid-template-columns: 210px minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr); gap: 12px 14px; }
.lt-top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lt-top .tool-select { width: auto; font-size: 14px; padding: 7px 34px 7px 12px; }
.lt-top .lt-title { width: 220px; background-image: none; padding-right: 12px; }
.lt-tog { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; cursor: pointer; }
.lt-tog input { accent-color: #1d1d1f; }
.lt-gap { flex: 1; }
.lt-top .tool-btn:disabled { opacity: .4; cursor: default; }
.lt-palette { gap: 6px; }
.lt-pal { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lt-pal .chip { font-size: 13px; padding: 6px 10px; }
.lt-stage { min-height: 0; min-width: 0; border-radius: 20px; background: #fff; border: 1px solid rgba(0,0,0,.08); box-shadow: var(--tile-shadow); display: flex; align-items: center; justify-content: center; padding: 8px; }
.lt-stage svg { width: 100%; height: 100%; max-height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.lt-item { cursor: grab; }
.lt-item:active { cursor: grabbing; }
.lt-rot { cursor: alias; }
.lt-side { gap: 12px; }
.lt-side .field { gap: 3px; }
.lt-side .tool-select { font-size: 14px; padding: 7px 10px; }
.lt-side input.tool-select, .lt-side textarea.tool-select { background-image: none; }
.lt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lt-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-del { color: #b63232 !important; }
.lt-color { width: 100%; height: 36px; border: 0; padding: 0; background: none; cursor: pointer; }
.lt-preview canvas { width: 180px; height: 180px; border-radius: 16px; display: block; }
.lt-legend ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: 13.5px; line-height: 1.35; }
.lt-tpl-text { font-size: 14px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; background: #f5f5f7; }
@media (max-width: 1100px) { .lights .tool-body[data-tool="lights"] { grid-template-columns: 180px minmax(0, 1fr) 260px; } }
@media (max-width: 900px) {
  .tool-shell:has([data-tool="lights"]) { height: auto; }
  .lights .tool-body[data-tool="lights"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .lt-stage { aspect-ratio: 4 / 3; order: 1; }
  .lt-top { order: 0; }
  .lt-palette { order: 2; }
  .lt-side { order: 3; }
  .lt-pal { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .lt-top .lt-title { width: 100%; }
  .lt-gap { display: none; }
}

/* ── мудборд (21.11.2026, assets/moodboard.js) ──────────────────────────────────────────────── */
.tool-shell:has([data-tool="moodboard"]) { height: auto; min-height: calc(100svh - var(--hdr)); }
.moodboard .tool-body[data-tool="moodboard"] { display: block; }
.mb-loading { padding: 40px 0; opacity: .6; }
.mb-home { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 20px; align-items: start; }
.mb-create, .mb-mine { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 22px; padding: 20px; box-shadow: var(--tile-shadow); display: grid; gap: 12px; }
.mb-create .tool-select, .mb-top input, .mb-brief, .mb-dialog .tool-select { background-image: none; }
.mb-mine ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mb-mine li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f5f5f7; }
.mb-mine li a { font-weight: 600; color: #1d1d1f; }
.mb-mine li span { font-size: 13px; opacity: .6; white-space: nowrap; }
.mb-board { display: grid; gap: 16px; }
.mb-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: sticky; top: var(--hdr, 64px); z-index: 5; background: rgba(250,250,252,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 10px 0; }
.mb-back { font-size: 22px; text-decoration: none; color: #1d1d1f; padding: 0 6px; }
.mb-title { font: inherit; font-size: 22px; font-weight: 700; border: 1px solid transparent; border-radius: 10px; padding: 4px 8px; background: transparent; min-width: 200px; flex: 0 1 420px; }
.mb-title:hover, .mb-title:focus { border-color: rgba(0,0,0,.12); background: #fff; outline: none; }
.mb-title-ro { font-size: 22px; margin: 0; }
.mb-mode { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: #f0f0f5; color: #6e6e73; }
.mb-here { font-size: 13px; color: #1f8a3b; display: inline-flex; gap: 6px; align-items: center; }
.mb-here-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; display: inline-block; }
.mb-gap { flex: 1; }
.mb-me { font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; }
.mb-me input { font: inherit; width: 120px; padding: 6px 8px; border-radius: 10px; border: 1px solid rgba(0,0,0,.12); }
.mb-brief { font: inherit; font-size: 15px; width: 100%; resize: vertical; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(0,0,0,.1); background: #fff; }
.mb-brief-ro { font-size: 15px; padding: 12px 14px; border-radius: 14px; background: #fff; margin: 0; }
.mb-sec { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 22px; padding: 16px; box-shadow: var(--tile-shadow); }
.mb-sec-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mb-sec-h h3 { font-size: 17px; margin: 0; }
.mb-sec-name { font: inherit; font-size: 17px; font-weight: 700; border: 1px solid transparent; border-radius: 8px; padding: 2px 6px; background: transparent; }
.mb-sec-name:hover, .mb-sec-name:focus { border-color: rgba(0,0,0,.12); outline: none; }
.mb-count { font-size: 13px; opacity: .5; }
.mb-sec-del { margin-left: auto; border: 0; background: none; cursor: pointer; opacity: .35; font-size: 14px; }
.mb-sec-del:hover { opacity: 1; color: #b63232; }
.mb-add { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mb-add-btn { display: inline-flex; gap: 5px; align-items: center; font: inherit; font-size: 13px; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); background: #fff; cursor: pointer; color: #1d1d1f; }
.mb-add-btn svg { width: 16px; height: 16px; }
.mb-add-btn:hover { background: #f5f5f7; }
.mb-add-btn.accent { border-color: #0071e3; color: #0071e3; }
.mb-grid { columns: 4 220px; column-gap: 12px; min-height: 60px; border-radius: 14px; transition: background .15s; }
.mb-grid.is-over { background: #eef5ff; outline: 2px dashed #0071e3; outline-offset: 2px; }
.mb-empty { font-size: 13.5px; opacity: .5; padding: 14px 4px; margin: 0; }
.mb-card { break-inside: avoid; margin: 0 0 12px; border-radius: 14px; background: #f5f5f7; overflow: hidden; display: flex; flex-direction: column; }
.mb-card.is-drag { opacity: .4; }
.mb-card[draggable="true"] { cursor: grab; }
.mb-img img { display: block; width: 100%; height: auto; }
.mb-cap, .mb-note { font: inherit; font-size: 13.5px; line-height: 1.4; border: 0; background: transparent; resize: none; padding: 8px 10px 2px; width: 100%; overflow: hidden; }
.mb-cap:focus, .mb-note:focus { outline: none; background: #fff; }
.mb-note { min-height: 80px; font-size: 14.5px; }
.mb-note-ro, .mb-cap-ro { font-size: 14px; padding: 10px; margin: 0; white-space: pre-wrap; }
.mb-swatch { height: 110px; position: relative; }
.mb-swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.mb-hex { font-size: 13px; font-weight: 600; padding: 6px 10px 0; margin: 0; font-variant-numeric: tabular-nums; }
.mb-link { display: block; padding: 14px 10px 4px; font-weight: 600; word-break: break-all; }
.mb-light { display: grid; gap: 4px; padding: 10px; text-decoration: none; color: #1d1d1f; }
.mb-light svg { width: 100%; height: auto; }
.mb-light span { font-size: 13px; color: var(--link); }
.mb-gen { padding: 12px; display: grid; gap: 8px; background: linear-gradient(160deg, #f5f0ff, #eef5ff); }
.mb-gen-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; opacity: .65; margin: 0; }
.mb-gen dl { margin: 0; display: grid; gap: 4px; font-size: 13.5px; }
.mb-gen dt { display: inline; opacity: .6; }
.mb-gen dt::after { content: ': '; }
.mb-gen dd { display: inline; margin: 0; }
.mb-gen-note { font-size: 12px; opacity: .6; margin: 0; }
.mb-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 4px 8px 6px; font-size: 12px; }
.mb-by { opacity: .5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-acts { display: inline-flex; gap: 4px; align-items: center; }
.mb-like, .mb-del { border: 0; background: none; cursor: pointer; font-size: 13px; padding: 2px 5px; border-radius: 6px; color: #86868b; }
.mb-like.on { color: #ff2d55; }
.mb-like:hover, .mb-del:hover { background: rgba(0,0,0,.06); }
.mb-del:hover { color: #b63232; }
.mb-move { font: inherit; font-size: 12px; border: 0; background: none; color: #86868b; cursor: pointer; max-width: 34px; }
.mb-foot-note { font-size: 13px; opacity: .6; }
.mb-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1d1d1f; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: calc(100vw - 32px); }
.mb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.mb-toast.bad { background: #b63232; }
.mb-dialog { border: 0; border-radius: 20px; padding: 22px; width: min(480px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.mb-dialog::backdrop { background: rgba(0,0,0,.35); }
.mb-dialog form { display: grid; gap: 12px; }
.mb-dialog h3 { margin: 0; font-size: 19px; }
.mb-dlg-btns { display: flex; justify-content: flex-end; gap: 8px; }
.mb-copy { display: flex; gap: 6px; }
.mb-copy .tool-select { flex: 1; font-size: 13px; }
@media (max-width: 900px) {
  .mb-home { grid-template-columns: minmax(0, 1fr); }
  .mb-grid { columns: 2 140px; }
  .mb-top { top: var(--hdr, 56px); }
  .mb-title { flex: 1 1 100%; min-width: 0; }
  .mb-gap { display: none; }
}

/* ── анализ света по фото (закрытый тест, 21.11.2026) ───────────────────────────────────────── */
.tool-shell:has([data-tool="light-analyze"]) { height: auto; }
.calc .tool-body[data-tool="light-analyze"] { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; }
[data-tool="light-analyze"] .la-drop { min-height: 180px; }
.la-photo img { width: 100%; border-radius: 14px; display: block; }
.la-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.la-out { display: grid; gap: 16px; }
.la-card { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 20px; padding: 18px; box-shadow: var(--tile-shadow); display: grid; gap: 10px; }
.la-card header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.la-card header span { font-size: 13px; opacity: .6; }
.la-sum { font-size: 16px; line-height: 1.5; margin: 0; }
.la-card ol, .la-lights { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }
.la-lights small { opacity: .65; }
.la-conf { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: #f0f0f5; }
.la-unc { font-size: 14px; background: #fff7e6; padding: 8px 10px; border-radius: 10px; margin: 0; }
.la-frame { width: 100%; height: 620px; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; }
.la-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.la-cmt { flex: 1 1 200px; background-image: none; }
.la-card pre { font-size: 12px; white-space: pre-wrap; max-height: 300px; overflow: auto; background: #f5f5f7; padding: 10px; border-radius: 10px; }
@media (max-width: 900px) { .calc .tool-body[data-tool="light-analyze"] { grid-template-columns: minmax(0, 1fr); } .la-frame { height: 480px; } }
.mb-saved { font-size: 12.5px; color: #1f8a3b; }
.mb-saved::before { content: "✓ "; }
.mb-saved.wait { color: #86868b; }
.mb-saved.wait::before { content: "⟳ "; }
.mb-saved.bad { color: #b63232; }
.mb-saved.bad::before { content: "! "; }
.mb-ttl { font-size: 13px; color: #6e6e73; margin: -6px 0 0; }
.lt-pv-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.lt-pv-seg button { font-size: 12.5px; padding: 5px 9px; }
.lt-pv-seg button:disabled { opacity: .4; }
.lt-preview canvas[data-lt-face] { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; border-radius: 16px; display: block; }
.lt-preview canvas[hidden] { display: none !important; }

/* ── схема света, 22.11.2026: вид из камеры, точка света на превью, глаз и соло, экспозиция, список для заявки, мудборд ── */
.lt-stage { position: relative; }
.lt-view-seg { position: absolute; left: 14px; top: 14px; z-index: 2; flex-wrap: nowrap; gap: 3px; background: rgba(255,255,255,.94); border-radius: 12px; padding: 3px; box-shadow: 0 1px 5px rgba(0,0,0,.14); }
.lt-view-seg button { font-size: 13px; padding: 5px 10px; }
.lt-stage.is-cam svg { display: none; }
.lt-item.is-off { opacity: .35; }
.lt-cam { position: absolute; inset: 8px; border-radius: 14px; overflow: hidden; background: #1c1c1e; }
.lt-cam[hidden] { display: none; }
.lt-cam canvas { width: 100%; height: 100%; display: block; }
.lt-cam-ctl { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; align-items: center; }
.lt-cam-ctl .tool-select { width: auto; font-size: 13px; padding: 5px 30px 5px 10px; background-color: rgba(255,255,255,.94); color: #1d1d1f; }
.lt-cam-ctl .seg { flex-wrap: nowrap; gap: 3px; background: rgba(255,255,255,.94); border-radius: 10px; padding: 2px; }
.lt-cam-ctl .seg button { font-size: 12.5px; padding: 4px 8px; color: #1d1d1f; }
.lt-cam-ctl .seg button[aria-checked="true"] { color: #fff; }
.lt-cam-info { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.lt-cam-info p { margin: 0; max-width: 100%; font-size: 12.5px; line-height: 1.35; padding: 5px 9px; border-radius: 9px; background: rgba(255,255,255,.94); color: #1d1d1f; }
.lt-cam-info p.warn { border-left: 3px solid #c8372d; }
.lt-cam-info p.ok { color: #1f6b35; }
.lt-pv-box { position: relative; width: 100%; max-width: 260px; }
.lt-pv-box:has(canvas[data-lt-preview]:not([hidden])) { max-width: 180px; }
.lt-pv-box canvas { cursor: crosshair; }
.lt-pv-dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0; border-radius: 50%; border: 2px solid #1d1d1f; background: #fff; color: #1d1d1f; font: 700 12px/22px system-ui, sans-serif; text-align: center; cursor: grab; touch-action: none; box-shadow: 0 0 0 3px rgba(255,255,255,.5), 0 2px 6px rgba(0,0,0,.35); }
.lt-pv-dot::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; } /* зона захвата пальцем */
.lt-pv-dot:active { cursor: grabbing; }
.lt-pv-dot.is-off { opacity: .5; }
.lt-pv-dot[hidden] { display: none; }
.lt-pv-ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; opacity: 0; transition: opacity .2s; }
.lt-pv-ring i { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); font: 600 11px system-ui, sans-serif; font-style: normal; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); white-space: nowrap; }
.lt-pv-box.is-drag .lt-pv-ring, .lt-pv-box:hover .lt-pv-ring { opacity: 1; }
.lt-pv-ring:has(+ .lt-pv-dot[hidden]) { display: none; }
.lt-pv-cap { position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0; font-size: 12.5px; line-height: 1.3; padding: 5px 9px; border-radius: 9px; background: rgba(29,29,31,.84); color: #fff; pointer-events: none; }
.lt-pv-cap[hidden] { display: none; }
.lt-pv-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.lt-pv-foot .hint { font-size: 12.5px; margin: 0; line-height: 1.3; }
.lt-pv-foot .tool-btn { flex: none; }
.lt-pv-foot .tool-btn[aria-pressed="true"] { background: #1d1d1f; color: #fff; }
.lt-lg-ctl { float: right; display: inline-flex; gap: 3px; margin: -2px 0 0 6px; }
.lt-eye, .lt-solo { height: 24px; min-width: 26px; padding: 0 5px; border: 1px solid rgba(0,0,0,.12); border-radius: 8px; background: #fff; color: #1d1d1f; font: 600 11px system-ui, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lt-eye svg { width: 16px; height: 16px; }
.lt-eye[aria-pressed="true"] { color: #8e8e93; }
.lt-solo[aria-pressed="true"] { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }
.lt-legend li.is-off .lt-lg-t { opacity: .45; text-decoration: line-through; }
.lt-lg-x { display: block; font-size: 12px; color: #6e6e73; margin-top: 1px; }
.lt-expo { margin-top: 10px; display: grid; gap: 5px; font-size: 13px; line-height: 1.4; padding: 10px 12px; border-radius: 12px; background: #f5f5f7; }
.lt-expo:empty { display: none; }
.lt-expo p { margin: 0; }
.lt-expo-note { font-size: 11.5px; color: #86868b; }
.lt-kit ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 3px; font-size: 13px; line-height: 1.35; }
.lt-kit .tool-btn[hidden] { display: none; }
.lt-ref { margin-top: 4px; display: grid; gap: 6px; justify-items: start; }
.lt-ref .hint { font-size: 12.5px; margin: 0; }
.lt-pop { position: absolute; z-index: 60; width: min(340px, calc(100vw - 24px)); display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: #fff; color: #1d1d1f; border: 1px solid rgba(0,0,0,.1); box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.lt-pop-h { margin: 0; font-weight: 700; }
.lt-pop .hint { margin: 0; font-size: 13px; }
.lt-pop-boards { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-pop-msg { margin: 0; font-size: 13px; color: #1f6b35; }
.lt-pop-msg:empty { display: none; }
.lt-pop-msg.bad { color: #b63232; }
.lt-pop-msg input { margin-top: 6px; font-size: 12px; background-image: none; }
@media (max-width: 900px) {
  /* на телефоне вид из камеры — картинка 4:3, а управление и подсказки под ней, чтобы не закрывать кадр */
  .lt-stage.is-cam { aspect-ratio: auto; display: block; }
  .lt-stage.is-cam .lt-cam { position: relative; inset: auto; display: flex; flex-direction: column; gap: 8px; background: none; border-radius: 0; overflow: visible; }
  .lt-stage.is-cam .lt-cam canvas { height: auto; aspect-ratio: 4 / 3; border-radius: 12px; background: #1c1c1e; }
  .lt-stage.is-cam .lt-cam-ctl, .lt-stage.is-cam .lt-cam-info { position: static; }
  .lt-stage.is-cam .lt-cam-ctl .seg { border: 1px solid rgba(0,0,0,.08); }
  .lt-stage.is-cam .lt-cam-info p { background: #f5f5f7; font-size: 12.5px; }
  .lt-view-seg { left: 16px; top: 16px; }
  .lt-view-seg button { font-size: 12.5px; padding: 4px 9px; }
  .lt-ref { margin-top: 0; }
}

/* подпись автора 3D-модели обрубовки (CC BY) — 22.11.2026 */
.lt-credit { font-size: 11.5px; line-height: 1.35; opacity: .6; margin-top: 4px; }
.lt-credit a { color: inherit; }

/* ── калькулятор стоимости съёмки (22.11.2026) ───────────────────────────────────────────────── */
.tool-shell:has([data-tool="price"]) { height: auto; min-height: calc(100svh - var(--hdr)); }
.calc .tool-body[data-tool="price"] { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; }
.pc-side { gap: 12px; }
.pc-genres button { font-size: 14px; padding: 7px 12px; }
.pc-group { border-top: 1px solid rgba(0, 0, 0, .08); padding-top: 10px; }
.pc-group summary { cursor: pointer; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: end; }
.pc-f .field-top { font-size: 13.5px; line-height: 1.25; }
.pc-f small { font-size: 12px; opacity: .6; }
.pc-in { position: relative; display: block; }
.pc-in input { width: 100%; padding-right: 34px; font-variant-numeric: tabular-nums; background-image: none; }
.pc-in i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; opacity: .5; pointer-events: none; }
.pc-wide { grid-column: 1 / -1; }
.pc-tog { grid-column: 1 / -1; font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
[data-studio-only][hidden] { display: none; }
.pc-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pc-prices > div { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); }
.pc-prices .pc-main { background: #ff6b4a; color: #fff; }
.pc-prices .pc-main .hint, .pc-prices .pc-main .result-label { color: rgba(255, 255, 255, .9); opacity: 1; }
.pc-p { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.pc-line { font-size: 15px; line-height: 1.45; margin: 6px 0; }
.pc-warn { font-size: 14px; line-height: 1.4; margin: 8px 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 107, 74, .18); color: #ffc2b3; }
.pc-out .panel-label { margin-top: 14px; }
.pc-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.pc-bar i { display: block; min-width: 3px; }
.pc-legend { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; font-size: 13.5px; }
.pc-legend li { display: flex; align-items: center; gap: 6px; }
.pc-legend b { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pc-legend span { margin-left: auto; font-variant-numeric: tabular-nums; opacity: .75; }
.pc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 900px) {
  .calc .tool-body[data-tool="price"] { grid-template-columns: minmax(0, 1fr); }
  .pc-out { order: -1; }
}
@media (max-width: 560px) {
  .pc-prices { grid-template-columns: 1fr 1fr; }
  .pc-prices .pc-main { grid-column: 1 / -1; order: -1; }
  .pc-genres { flex-wrap: wrap; overflow: visible; }
}

/* ── каталог инструментов: ровная сетка по популярности (22.11.2026) ─────────────────────────── */
.hub-ref { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: -24px 0 40px; padding: 18px 22px; border-radius: 20px; background: #f5f5f7; color: inherit; text-decoration: none; transition: background .2s; }
.hub-ref:hover { background: #ececf0; text-decoration: none; }
.hub-ref .tag { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .55; }
.hub-ref strong { font-size: 19px; }
.hub-ref span:last-child { opacity: .7; font-size: 15px; }

/* ── Чек-лист фотографа (22.11.2026) ─────────────────────────────────────────────────────── */
.checklist .tool-body { grid-template-columns: minmax(0, 330px) minmax(0, 1fr); }
.ck-side { gap: 16px; overflow: auto; }
.ck-genres button { font-size: 14px; padding: 7px 12px; }
.ck-lead { margin-top: 8px; }
.ck-conds .chip[aria-pressed="true"] { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
.ck-num { font-size: 15px; margin-bottom: 6px; }
.ck-num b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ck-bar { display: block; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.ck-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--coral); transition: width .3s; }
.ck-body.is-ready .ck-bar i { background: var(--ok); }
.ck-msg { font-size: 13.5px; margin-top: 8px; opacity: .7; }
.ck-body.is-ready .ck-msg { opacity: 1; font-weight: 600; color: #1f8f3a; }
.ck-tog { font-size: 14.5px; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.ck-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-btns .tool-btn { padding: 10px 16px; font-size: 14.5px; }
.ck-btns .tool-btn:first-child { flex: 1 1 100%; }
.ck-restore { font-size: 14px; }
.ck-list { min-height: 0; overflow: auto; padding: 2px 4px 20px 2px; }
.ck-cols { columns: 2 330px; column-gap: 16px; }
.ck-sticky { display: none; }
.ck-sec { break-inside: avoid; margin: 0 0 16px; padding: 16px 16px 12px; border-radius: 20px; background: #fff; border: 1px solid rgba(0, 0, 0, .06); box-shadow: var(--tile-shadow); }
.ck-h { display: flex; align-items: baseline; gap: 8px; font-size: 17px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.01em; }
.ck-h small { font-size: 13px; font-weight: 400; opacity: .55; }
.ck-cnt { margin-left: auto; font-size: 13px; font-weight: 600; opacity: .55; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-sec.is-complete .ck-cnt { color: #1f8f3a; opacity: 1; }
.ck-sec.is-complete .ck-cnt::before { content: "✓ "; }
.ck-ul { list-style: none; margin: 0; padding: 0; }
.ck-item { position: relative; display: flex; align-items: flex-start; border-top: 1px solid rgba(0, 0, 0, .05); }
.ck-item:first-child { border-top: 0; }
.ck-item label { flex: 1; display: flex; gap: 10px; align-items: flex-start; padding: 9px 4px 9px 0; cursor: pointer; font-size: 15px; line-height: 1.38; }
.ck-item input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #1d1d1f; cursor: pointer; }
.ck-t small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--text-dim); }
.ck-t small a { color: var(--link); }
.ck-item.is-done .ck-t { color: var(--text-dim); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .3); }
.ck-item.is-done .ck-t small { display: none; }
.ck-cond .ck-t::before { content: "☂ "; }
.ck-cond.cond-cold .ck-t::before { content: "❄ "; }
.ck-cond.cond-heat .ck-t::before { content: "☀ "; }
.ck-cond.cond-dark .ck-t::before { content: "☾ "; }
.ck-cond.cond-travel .ck-t::before { content: "✈ "; }
.ck-cond .ck-t::before { opacity: .55; }
.ck-own .ck-t { font-style: italic; }
.ck-x { flex: none; width: 30px; height: 30px; margin-top: 5px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 19px; line-height: 1; opacity: 0; cursor: pointer; transition: opacity .15s, background .15s; }
.ck-item:hover .ck-x, .ck-x:focus-visible { opacity: .45; }
.ck-x:hover { opacity: 1 !important; background: #f5f5f7; }
.hide-done .ck-item.is-done { display: none !important; }
.ck-add { display: flex; gap: 6px; margin-top: 6px; }
.ck-add input { flex: 1; min-width: 0; border: 1px dashed rgba(0, 0, 0, .18); border-radius: 12px; background: transparent; font: inherit; font-size: 14.5px; padding: 8px 12px; color: inherit; }
.ck-add input:focus { outline: none; border-style: solid; border-color: #1d1d1f; }
.ck-add button { padding: 7px 14px; font-size: 14px; display: none; }
.ck-add:focus-within button { display: inline-flex; }
@media (hover: none) { .ck-x { opacity: .35; } }
@media (max-width: 900px) {
  .checklist .tool-body { grid-template-columns: minmax(0, 1fr); }
  .ck-side { overflow: visible; gap: 12px; }
  .ck-progress, .ck-side .hint:not(.ck-lead), .ck-side .panel-label { display: none; }
  .ck-btns { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ck-btns .tool-btn, .ck-btns .tool-btn:first-child { flex: none; padding: 8px 14px; font-size: 14px; }
  .ck-btns .tool-btn.ghost { background: #fff; border: 1px solid rgba(0, 0, 0, .08); }
  .ck-restore { flex: none; white-space: nowrap; }
  .ck-genres { flex-wrap: wrap; overflow: visible; }
  .ck-conds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ck-conds::-webkit-scrollbar { display: none; }
  .ck-list { overflow: visible; padding: 0; }
  .ck-cols { columns: auto; }
  .ck-sticky { display: flex; align-items: center; gap: 10px; position: sticky; top: var(--hdr); z-index: 4; margin: 0 -14px 10px; padding: 9px 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0, 0, 0, .06); font-size: 14px; }
  .ck-sticky .ck-bar { flex: 1; height: 6px; }
  .ck-sticky span:last-child { font-variant-numeric: tabular-nums; opacity: .7; }
  .ck-sec { padding: 14px 14px 10px; border-radius: 18px; margin-bottom: 12px; }
  .ck-item label { font-size: 15.5px; padding: 10px 2px 10px 0; }
  .ck-item input { width: 22px; height: 22px; }
}
@media print {
  .site-header, .site-footer, .tool-seo, .ck-side, .ck-add, .ck-x, .crumbs-mini, .tool-sub, .modal, .modal-overlay, .ck-t small { display: none !important; }
  body { background: #fff !important; }
  .tool-shell, .tool-shell.light { height: auto !important; min-height: 0 !important; background: none !important; padding: 0 !important; }
  .checklist .tool-body { display: block; }
  .ck-list { overflow: visible; padding: 0; }
  .ck-cols { columns: 2; column-gap: 10mm; }
  .ck-sec { box-shadow: none; border: 1px solid #ccc; border-radius: 8px; padding: 8px 10px; margin-bottom: 6mm; }
  .ck-item label { padding: 4px 0; font-size: 11.5pt; }
  .ck-item.is-done .ck-t { text-decoration: none; color: #000; }
  .hide-done .ck-item.is-done { display: flex !important; }
  .tool-h1 { font-size: 20pt; margin-bottom: 1mm; }
  .ck-sticky { display: block !important; position: static; margin: 0 0 4mm; padding: 0; font-size: 13pt; background: none; border: 0; }
  .ck-sticky .ck-bar, .ck-sticky span:last-child { display: none; }
}

/* ── бриф на съёмку (22.11.2026, assets/brief.js) ───────────────────────────────────────────── */
.tool-shell:has([data-tool="brief"]) { height: auto; min-height: calc(100svh - var(--hdr)); }
.brief .tool-body[data-tool="brief"] { display: block; max-width: 980px; width: 100%; margin: 0 auto; }
.br-linked .tool-seo { display: none; }
.br-linked .brief .tool-head .tool-sub { display: none; }
.br-loading { padding: 40px 0; opacity: .6; }
.br-card { background: #fff; border: 1px solid rgba(0, 0, 0, .08); border-radius: 22px; padding: 22px; box-shadow: var(--tile-shadow); display: grid; gap: 14px; align-content: start; }
.br-card h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.br-card h3 { margin: 6px 0 0; font-size: 18px; }
.br-home { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.br-lead { margin: 0; color: #424245; }
.br-hint { margin: 0; font-size: 13.5px; color: #6e6e73; }
.br-opt { font-weight: 400; color: #86868b; font-size: 13px; }
.br-field { display: grid; gap: 6px; }
.br-label { font-weight: 600; font-size: 14.5px; }
.br-card textarea.tool-select { min-height: 70px; resize: vertical; line-height: 1.45; padding-top: 10px; height: auto; }
.br-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.br-tiles button { border: 1px solid rgba(0, 0, 0, .12); background: #fff; border-radius: 999px; padding: 9px 15px; font: inherit; font-size: 14.5px; cursor: pointer; color: #1d1d1f; }
.br-tiles button[aria-checked="true"] { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }
.br-tiles button:focus-visible, .br-marks button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.br-contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.br-contacts label { display: grid; gap: 3px; font-size: 13px; color: #6e6e73; }
.br-more summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.br-more[open] summary { margin-bottom: 8px; }
.br-skip { display: grid; gap: 6px; max-height: 260px; overflow: auto; font-size: 14px; padding: 6px 0; }
.br-skip label { display: flex; gap: 8px; align-items: flex-start; }
.br-own { display: grid; gap: 6px; margin-top: 8px; }
.br-mine > ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.br-mine > ul > li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: #f5f5f7; border-radius: 12px; }
.br-mine > ul > li a { flex: 1; font-weight: 600; }
.br-mine > ul > li span { font-size: 13px; color: #6e6e73; }
.br-how { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: #424245; }
.br-x { border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: #86868b; padding: 2px 6px; }
.br-x:hover { color: #1d1d1f; }
.br-linkrow { display: flex; gap: 8px; flex-wrap: wrap; }
.br-linkrow .tool-select { flex: 1 1 220px; min-width: 0; }
.br-linkbox { display: grid; gap: 6px; }
.br-mykey { padding: 14px; border-radius: 14px; background: #f5f5f7; }
.br-sharerow, .br-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.br-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.br-kicker { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #6e6e73; }
.br-saved { margin: 0; font-size: 13px; color: #86868b; }
.br-hello { margin: 0; padding: 14px 16px; background: #f5f5f7; border-radius: 14px; font-style: normal; }
.br-hello cite { display: block; margin-top: 6px; font-style: normal; color: #6e6e73; font-size: 13.5px; }
.br-steplist { margin: 0; padding-left: 20px; columns: 2; color: #424245; }
.br-progress { display: flex; gap: 6px; flex-wrap: wrap; }
.br-progress button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.br-progress button.is-done { background: #e8f5ec; border-color: #b9e2c6; }
.br-progress button.is-cur { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
.br-stepname { font-size: 20px !important; }
.br-q { display: grid; gap: 7px; padding: 14px 0; border-top: 1px solid rgba(0, 0, 0, .06); }
.br-qq { font-weight: 600; font-size: 16px; margin: 0; }
.br-date { max-width: 220px; }
.br-decide { justify-self: start; border: 0; background: transparent; color: var(--link, #0066cc); font: inherit; font-size: 14px; padding: 2px 0; cursor: pointer; }
.br-decide.is-on { color: #1d1d1f; font-weight: 600; }
.br-decide.is-on::before { content: "✓ "; }
.br-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.br-list li { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: #f5f5f7; border-radius: 12px; }
.br-list li span { flex: 1; }
.br-sug { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.br-sug .br-hint { width: 100%; }
.br-nav { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; }
.br-rev { border-top: 1px solid rgba(0, 0, 0, .08); padding-top: 12px; }
.br-rev h3 { display: flex; gap: 10px; align-items: baseline; margin: 0 0 6px; }
.br-rev dl { margin: 0; display: grid; gap: 2px; }
.br-rev dt { font-weight: 600; margin-top: 8px; font-size: 14.5px; }
.br-rev dd { margin: 0; color: #1d1d1f; }
.br-rev dd ul { margin: 2px 0; padding-left: 20px; }
.br-none { color: #86868b; }
.br-banner { margin: 0; padding: 12px 14px; background: #fff1ec; border-radius: 12px; color: #9a3412; }
.br-status { margin: 0; padding: 14px 16px; border-radius: 14px; font-weight: 600; font-size: 16px; }
.br-status.s-agreed { background: #e8f5ec; color: #1f6b35; }
.br-status.s-accepted { background: #e8f1fd; color: #0b4fa3; }
.br-status.s-sent { background: #fff1ec; color: #9a3412; }
.br-status.s-wait { background: #f5f5f7; color: #424245; }
.br-mark { margin: 2px 0; padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.br-mark.m-ask, .br-mark.m-alt { background: #fff1ec; color: #9a3412; }
.br-mark.m-no { background: #fdecec; color: #a12222; }
.br-pq { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, .05); }
.br-pq.is-changed { background: #fff8f5; margin: 0 -10px; padding: 12px 10px; border-radius: 12px; }
.br-new { font-size: 12px; font-weight: 600; color: #fff; background: var(--coral); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.br-ans { color: #1d1d1f; }
.br-marks { display: flex; gap: 6px; flex-wrap: wrap; }
.br-marks button { border: 1px solid rgba(0, 0, 0, .12); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.br-marks button[aria-checked="true"][data-m="ok"] { background: #1f8a3a; border-color: #1f8a3a; color: #fff; }
.br-marks button[aria-checked="true"][data-m="ask"], .br-marks button[aria-checked="true"][data-m="alt"] { background: var(--coral); border-color: var(--coral); color: #fff; }
.br-marks button[aria-checked="true"][data-m="no"] { background: #c0392b; border-color: #c0392b; color: #fff; }
.br-vers { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.br-danger { color: #c0392b !important; }
.br-setup { display: grid; gap: 10px; padding: 14px; background: #f5f5f7; border-radius: 14px; }
.br-error h2 { color: #a12222; }
.br-cta { margin-top: 20px; }
.br-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s; background: #1d1d1f; color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 50; max-width: calc(100vw - 32px); }
.br-toast.on { opacity: 1; transform: translate(-50%, 0); }
.br-toast.bad { background: #a12222; }
@media (max-width: 860px) {
  .br-home { grid-template-columns: minmax(0, 1fr); }
  .br-card { padding: 16px; border-radius: 18px; }
  .br-steplist { columns: 1; }
  .br-nav .tool-btn { flex: 1; text-align: center; }
}
@media print { .br-cta, .br-toast { display: none !important; } }
.br-card input.tool-select, .br-card textarea.tool-select { background-image: none; padding-right: 12px; }
.br-navr { display: flex; gap: 8px; }
@media (max-width: 860px) { .br-card .tool-select { font-size: 16px; } } /* iOS не увеличивает страницу при вводе */
