/* Matis Academy — виджеты статей Wiki: единый светлый стиль виджетов (BRAND_KIT §6.8, эталон — урок 2.2, классы b22-*; §9). Claude, 16.11.2026, пилот D-121. Откат: удалить файл. */
.mwk-widget[data-mwk-widget="softness"]:not([data-mws-on]) { min-height: 910px; }   /* резерв до отрисовки: телефон после сжатия 17.11.2026 (было 1560) */
@media (min-width: 700px) { .mwk-widget[data-mwk-widget="softness"]:not([data-mws-on]) { min-height: 780px; } }
@media (min-width: 768px) { .mwk-widget[data-mwk-widget="softness"]:not([data-mws-on]) { min-height: 1017px; } }

.mws { --mws-paper: #f2efe8; --mws-band: #e8e3d7; --mws-card: #fbfaf6; --mws-line: #d8d0c0; --mws-ink: #0e0e0c; --mws-text: #2a2723; --mws-muted: #686056; --mws-brown: #894a1f; --mws-good: #2a7247; --mws-bad: #a33a2a;
  container-type: inline-size; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 26px 28px 24px;
  background: var(--mws-card); border: 1px solid var(--mws-line); border-radius: 20px; color: var(--mws-text);
  font-family: Montserrat, system-ui, sans-serif; font-size: 14.5px; line-height: 1.55; text-align: left; }
@media (max-width: 640px) { .mws { padding: 22px 16px 18px; border-radius: 16px; } }
.mws *, .mws *::before, .mws *::after { box-sizing: border-box; }
.mws p { margin: 0; }
.mws button, .mws input { font-family: inherit; }

/* заголовок и вводная */
.mws .mws-h { display: flex; align-items: center; gap: 10px; margin: 0; font-family: "Russo One", "Arial Black", sans-serif; font-weight: 400; text-transform: uppercase; font-size: 21px; line-height: 1.1; color: var(--mws-ink); }
/* заголовок виджета — 21 px на всех ширинах (BRAND_KIT §6.8; 17.11.2026 было 26 px на ПК) */
html body .mws .mws-h, html body .mwp .mwp-h { font-size: 21px; }   /* html body — чтобы H3 темы и правило статьи «.mwk .mwk-body h3 {18px}» не перебили */
.mws .mws-ico { flex: none; width: 24px; height: 24px; color: var(--mws-brown); }
.mws .mws-lead { margin-top: -4px; font-size: 15px; line-height: 1.6; color: var(--mws-muted); max-width: 640px; }

/* переключатель задач: дорожка-пилюля */
.mws .mws-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--mws-band); }
.mws .mws-seg button { appearance: none; border: 0; border-radius: 999px; padding: 10px 8px; min-height: 44px; background: none; color: var(--mws-text); font: 600 13.5px/1.2 Montserrat, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.mws .mws-seg button:hover { background: rgba(137, 74, 31, .1); }
.mws .mws-seg button[aria-pressed="true"] { background: var(--mws-brown); color: #fff; }
.mws .mws-seg button:focus-visible, .mws .mws-range:focus-visible { outline: 2px solid var(--mws-brown); outline-offset: 3px; }
.mws .mws-task { color: var(--mws-text); min-height: calc(1.55em * 5); }
@container (min-width: 560px) { .mws .mws-task { min-height: calc(1.55em * 2); } }

/* сцена: две светлые панели с метками-пилюлями */
.mws .mws-figs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@container (min-width: 600px) { .mws .mws-figs { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; } }
.mws .mws-pane { position: relative; overflow: hidden; border-radius: 14px; background: var(--mws-paper); isolation: isolate; min-width: 0; }
.mws .mws-svg { display: block; width: 100%; height: auto; }
.mws .mws-svg-wall { aspect-ratio: 3 / 1; }
@container (min-width: 600px) { .mws .mws-svg-wall { aspect-ratio: auto; height: 100%; min-height: 120px; } }
.mws .mws-tag { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 4px 10px; border-radius: 999px; background: rgba(251, 250, 246, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(137, 74, 31, .35); color: var(--mws-text); font: 600 12px/1.3 Montserrat, sans-serif; }
.mws .mws-cap { font-size: 12.5px; line-height: 1.45; color: var(--mws-muted); }

/* шкала углового размера */
.mws .mws-scale { display: flex; flex-direction: column; gap: 6px; }
.mws .mws-scale-t { font-size: 12.5px; color: var(--mws-muted); }
.mws .mws-track { position: relative; display: flex; height: 28px; border-radius: 14px; border: 1px solid var(--mws-line); background: var(--mws-paper); }
.mws .mws-z { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 12px; font-weight: 600; color: var(--mws-text); white-space: nowrap; overflow: hidden; }
.mws .mws-z-h { background: rgba(137, 74, 31, .30); border-radius: 13px 0 0 13px; }
.mws .mws-z-m { background: rgba(137, 74, 31, .15); }
.mws .mws-z-s { background: rgba(137, 74, 31, .05); border-radius: 0 13px 13px 0; }
.mws .mws-sun { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fbfaf6; border: 2px solid var(--mws-brown); pointer-events: none; }
.mws .mws-mark { position: absolute; top: -5px; bottom: -5px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--mws-ink); pointer-events: none; transition: left .25s cubic-bezier(.16, 1, .3, 1); }
.mws .mws-mark::before { content: ""; position: absolute; left: -5px; top: -7px; border: 7px solid transparent; border-top: 8px solid var(--mws-ink); border-bottom: 0; }
.mws .mws-ticks { position: relative; height: 18px; }
.mws .mws-tick { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--mws-muted); white-space: nowrap; }
.mws .mws-tick:first-child { transform: translateX(-35%); }
.mws .mws-tick-end { transform: translateX(-100%); }

/* ползунки: коричневая дорожка, белый бегунок; кнопки − и + добавляет общий скрипт сайта (.mrg) */
.mws .mws-ctrls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@container (min-width: 600px) { .mws .mws-ctrls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.mws .mws-ctl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: end; }
.mws .mws-ctl-l { font-size: 12.5px; color: var(--mws-muted); }
.mws .mws-ctl-v { font-family: "Russo One", "Arial Black", sans-serif; font-size: 18px; line-height: 1.1; color: var(--mws-ink); text-align: right; white-space: nowrap; }
.mws .mws-ctl.is-lock .mws-ctl-v { font-size: 15px; }
.mws .mws-ctl > .mrg, .mws .mws-ctl > .mws-range, .mws .mws-ends { grid-column: 1 / -1; width: 100%; }
.mws .mws-ctl .mrg-b { width: 44px; height: 44px; }
.mws .mws-ctl .mrg-b:disabled { opacity: .45; cursor: not-allowed; }
.mws .mws-range { -webkit-appearance: none; appearance: none; height: 28px; margin: 0; padding: 0; background: transparent; cursor: pointer; }
.mws .mws-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--mws-brown) var(--p, 50%), var(--mws-line) var(--p, 50%)); }
.mws .mws-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--mws-line); }
.mws .mws-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--mws-brown); }
.mws .mws-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 4px solid var(--mws-brown); }
.mws .mws-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--mws-brown); }
.mws .mws-range:disabled { cursor: not-allowed; opacity: .55; }
/* цель нажатия 44 px на всех ширинах (17.11.2026; было 28 px на ПК): высоту ряда не меняем — бегунок на 44 px, отрицательный отступ у делений и нулевой зазор внутри ряда, как на телефоне.
   Общий стиль сайта (matis-range.php) задаёт 28 px / 40 px с большей специфичностью, поэтому селектор длиннее */
.mws .mws-ctl .mrg-mid { gap: 0; }
.mws .mws-ctl .mrg input[type="range"].mrg-r { height: 44px; }
.mws .mws-ctl .mrg-t { margin-top: -12px; }
/* деления лежат поверх нижних 8 px ползунка — не перехватывают нажатие на всех ширинах (ревью Codex 17.11.2026, P2; на телефоне — с шага 2 того же дня) */
.mws .mws-ctl .mrg-t { pointer-events: none; }
.mws .mws-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--mws-muted); }
.mws .mws-ends i { font-style: normal; }

/* показания: плитки */
.mws .mws-read { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mws .mws-cell { padding: 10px 12px; border-radius: 12px; background: var(--mws-paper); border: 1px solid var(--mws-line); min-width: 0; }
.mws .mws-cell-k { display: block; font-size: 12px; line-height: 1.3; color: var(--mws-muted); min-height: 2.6em; }
.mws .mws-cell-v { display: block; margin-top: 4px; font-family: "Russo One", "Arial Black", sans-serif; font-weight: 400; font-size: 19px; line-height: 1.15; color: var(--mws-ink); white-space: nowrap; }
@container (min-width: 600px) { .mws .mws-cell-k { min-height: 0; } .mws .mws-cell-v { font-size: 22px; } }

/* вывод: бежевая плашка с коричневой линией 3 px слева */
.mws .mws-plate { padding: 14px 16px 14px 18px; border-radius: 12px; background: var(--mws-paper); border-left: 3px solid var(--mws-brown); display: flex; flex-direction: column; gap: 6px; min-height: 19.7em; color: var(--mws-text); }
@container (min-width: 600px) { .mws .mws-plate { min-height: 10.2em; } }   /* 8,7em → 10,2em: в задаче «Софтбокс» вывод длиннее, высота прыгала на 20 px (ревью Codex 17.11.2026) */
.mws .mws-status { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
.mws .mws-status strong { color: var(--mws-ink); font-weight: 600; }
.mws .mws-status-i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; line-height: 1; color: #fff; background: var(--mws-brown); }
.mws .mws-plate.is-ok .mws-status-i { background: var(--mws-brown); }   /* §6.8: вывод — коричневая линия и коричневый значок; «получилось / пока нет» различает глиф ✓ / ✕ и жирное начало (17.11.2026, было зелёное/красное) */
.mws .mws-plate.is-pop .mws-status-i { animation: mwsPop .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes mwsPop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.mws .mws-model { font-size: 12px; line-height: 1.45; color: var(--mws-muted); }

@media (prefers-reduced-motion: reduce) {
  .mws *, .mws *::before, .mws *::after { animation: none !important; transition: none !important; }
}

/* ---------- телефон (< 768 px): компактная раскладка, ≈ 900–1000 px вместо ≈ 1565; ПК не затронут. Claude, 17.11.2026 (владелец: «сжать — да») ---------- */
.mws .mws-more, .mws .mws-t-s, .mws .mws-tg-s { display: none; }
@media (max-width: 767px) {
  .mws { gap: 10px; padding: 18px 14px 14px; }
  .mws .mws-lead { display: none; }   /* вводная повторяет задачу: на телефоне убрана */
  .mws .mws-seg button { padding: 8px 6px; }
  .mws .mws-task { font-size: 14px; line-height: 1.45; min-height: calc(1.45em * 4); }
  @container (min-width: 270px) { .mws .mws-task { min-height: calc(1.45em * 3); } }
  @container (min-width: 560px) { .mws .mws-task { min-height: calc(1.45em * 2); } }
  .mws .mws-t-f { display: none; }
  .mws .mws-t-s { display: inline; }   /* короткий текст задачи */
  .mws .mws-figs { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; }
  .mws .mws-pane { border-radius: 12px; }
  .mws .mws-svg-wall { aspect-ratio: auto; height: 100%; min-height: 0; }
  .mws .mws-tag { left: 6px; bottom: 6px; padding: 3px 9px; white-space: nowrap; }   /* шрифт 12 px, как на ПК; метки короткие */
  .mws .mws-tg-f { display: none; }
  .mws .mws-tg-s { display: inline; }
  .mws > .mws-cap, .mws > .mws-model { display: none; }   /* то же самое — в сворачиваемом блоке внизу */
  .mws .mws-more { display: block; border-top: 1px solid var(--mws-line); }
  .mws .mws-more summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font: 600 13px/1.3 Montserrat, sans-serif; color: var(--mws-brown); }
  .mws .mws-more summary::-webkit-details-marker { display: none; }
  .mws .mws-more summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .mws .mws-more[open] summary::after { transform: rotate(-135deg); }
  .mws .mws-more summary:focus-visible { outline: 2px solid var(--mws-brown); outline-offset: 2px; }
  .mws .mws-more p + p { margin-top: 8px; }
  .mws .mws-more[open] { padding-bottom: 4px; }
  .mws .mws-scale { gap: 4px; }
  .mws .mws-scale-t { margin-bottom: 6px; }   /* стрелка метки не наезжает на подпись */
  .mws .mws-ctrls { gap: 8px; }
  .mws .mws-ctl { gap: 0 12px; }
  .mws .mws-ctl-v { font-size: 16px; }
  .mws .mws-lk { display: none; }   /* «· нельзя менять» — на телефоне только в тексте задачи (подпись иначе переносится) */
  .mws .mws-ends { display: none; }   /* крайние значения видны на ползунке и в показаниях */
  .mws .mws-ctl .mrg { gap: 6px; }
  .mws .mws-read { gap: 6px; }
  .mws .mws-cell { padding: 8px 9px; }
  .mws .mws-cell-v { font-size: 17px; }
  /* запас высоты под самый длинный вывод (замерено перебором всех состояний на 320–430 px, RU и UA): при переключении ничего не прыгает */
  .mws .mws-plate { padding: 10px 12px 10px 14px; gap: 4px; font-size: 13px; line-height: 1.45; min-height: 21em; }
  @container (min-width: 270px) { .mws .mws-plate { min-height: 18em; } }
  @container (min-width: 310px) { .mws .mws-plate { min-height: 15em; } }
  @container (min-width: 350px) { .mws .mws-plate { min-height: 13.6em; } }
  @container (min-width: 600px) { .mws .mws-plate { min-height: 9.2em; } }
}


/* =====================================================================================================================
   parallax — «Параллакс» (статья Wiki «Слайдер»). Светлый стиль §6.8, как .mws; движение §9. Claude, 17.11.2026. Откат: удалить блок.
   ===================================================================================================================== */
.mwk-widget[data-mwk-widget="parallax"]:not([data-mws-on]) { min-height: 700px; }   /* резерв до отрисовки: телефон 390 = 696 px (замер 17.11.2026) */
@media (min-width: 768px) { .mwk-widget[data-mwk-widget="parallax"]:not([data-mws-on]) { min-height: 819px; } }   /* ПК = 819 px на живой странице (в превью 804; 17.11.2026) */

.mwp { --mwp-paper: #f2efe8; --mwp-band: #e8e3d7; --mwp-card: #fbfaf6; --mwp-line: #d8d0c0; --mwp-ink: #0e0e0c; --mwp-text: #2a2723; --mwp-muted: #686056; --mwp-brown: #894a1f;
  container-type: inline-size; box-sizing: border-box; display: block; margin: 0; padding: 26px 28px 24px;
  background: var(--mwp-card); border: 1px solid var(--mwp-line); border-radius: 20px; color: var(--mwp-text);
  font-family: Montserrat, system-ui, sans-serif; font-size: 14.5px; line-height: 1.55; text-align: left; }
@media (max-width: 640px) { .mwp { padding: 22px 16px 18px; border-radius: 16px; } }
.mwp .mwp-in { display: flex; flex-direction: column; gap: 12px; }
.mwp *, .mwp *::before, .mwp *::after { box-sizing: border-box; }
.mwp p { margin: 0; }
.mwp button, .mwp input { font-family: inherit; }

.mwp .mwp-h { display: flex; align-items: center; gap: 10px; margin: 0; font-family: "Russo One", "Arial Black", sans-serif; font-weight: 400; text-transform: uppercase; font-size: 21px; line-height: 1.1; color: var(--mwp-ink); }
.mwp .mwp-ico { flex: none; width: 24px; height: 24px; color: var(--mwp-brown); }
.mwp .mwp-lead { margin-top: -4px; font-size: 15px; line-height: 1.6; color: var(--mwp-muted); max-width: 640px; }

/* переключатель режима: дорожка-пилюля */
.mwp .mwp-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--mwp-band); }
.mwp .mwp-seg button { appearance: none; border: 0; border-radius: 999px; padding: 10px 6px; min-height: 44px; background: none; color: var(--mwp-text); font: 600 13.5px/1.2 Montserrat, sans-serif; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.mws .mws-seg button, .mwp .mwp-seg button { text-align: center; }   /* тема сайта выравнивает текст кнопок влево (17.11.2026) */
.mwp .mwp-seg button:hover { background: rgba(137, 74, 31, .1); }
.mwp .mwp-seg button[aria-pressed="true"] { background: var(--mwp-brown); color: #fff; }
.mwp .mwp-seg button:focus-visible, .mwp .mwp-range:focus-visible, .mwp .mwp-more summary:focus-visible { outline: 2px solid var(--mwp-brown); outline-offset: 3px; }

/* сцена: кадр 16:9 и под ним вид сверху */
.mwp .mwp-figs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mwp .mwp-pane { position: relative; overflow: hidden; border-radius: 14px; background: var(--mwp-paper); isolation: isolate; min-width: 0; }
.mwp .mwp-frame { aspect-ratio: 16 / 9; }
.mwp .mwp-top { height: 96px; }
.mwp .mwp-svg { display: block; width: 100%; height: 100%; }
.mwp .mwp-layer { transition: transform .22s cubic-bezier(.16, 1, .3, 1); }
.mwp .mwp-tag { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 4px 10px; border-radius: 999px; background: rgba(251, 250, 246, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(137, 74, 31, .35); color: var(--mwp-text); font: 600 12px/1.3 Montserrat, sans-serif; white-space: nowrap; }
.mwp .mwp-top .mwp-tag { left: auto; right: 10px; bottom: 8px; }

/* ползунок: коричневая дорожка, белый бегунок; кнопки − и + добавляет общий скрипт сайта (.mrg) */
.mwp .mwp-ctl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: end; }
.mwp .mwp-ctl-l { font-size: 12.5px; color: var(--mwp-muted); }
.mwp .mwp-ctl-v { font-family: "Russo One", "Arial Black", sans-serif; font-size: 18px; line-height: 1.1; color: var(--mwp-ink); text-align: right; white-space: nowrap; min-width: 4.5ch; }
.mwp .mwp-ctl > .mrg, .mwp .mwp-ctl > .mwp-range, .mwp .mwp-ends { grid-column: 1 / -1; width: 100%; }
.mwp .mwp-ctl .mrg-b { width: 44px; height: 44px; }
.mwp .mwp-ctl .mrg-b:disabled { opacity: .45; cursor: not-allowed; }
.mwp .mwp-range { -webkit-appearance: none; appearance: none; height: 28px; margin: 0; padding: 0; background: transparent; cursor: pointer; }
.mwp .mwp-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--mwp-brown) var(--p, 0%), var(--mwp-line) var(--p, 0%)); }
.mwp .mwp-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--mwp-line); }
.mwp .mwp-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--mwp-brown); }
.mwp .mwp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 4px solid var(--mwp-brown); }
.mwp .mwp-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--mwp-brown); }
/* цель нажатия 44 px (как у .mws): общий стиль сайта (matis-range.php) задаёт меньше с большей специфичностью */
.mwp .mwp-ctl .mrg { gap: 6px; }
.mwp .mwp-ctl .mrg-mid { gap: 0; }
.mwp .mwp-ctl .mrg input[type="range"].mrg-r { height: 44px; }
/* ревью Codex 17.11.2026: общий скрипт даёт бегунку тень и оранжевый контур фокуса (2,45:1) — здесь без тени и коричневым */
.mwp .mwp-ctl .mrg input[type="range"].mrg-r::-webkit-slider-thumb { box-shadow: none; }
.mwp .mwp-ctl .mrg input[type="range"].mrg-r::-moz-range-thumb { box-shadow: none; }
.mwp .mwp-ctl .mrg .mrg-b:focus-visible, .mwp .mwp-ctl .mrg input[type="range"].mrg-r:focus-visible { outline: 2px solid var(--mwp-brown); outline-offset: 3px; }
.mwp .mwp-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--mwp-muted); }
.mwp .mwp-ends i { font-style: normal; }

/* показания: три плитки */
.mwp .mwp-rd { display: flex; flex-direction: column; gap: 6px; }
.mwp .mwp-rd-t { font-size: 12.5px; color: var(--mwp-muted); }
.mwp .mwp-read { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mwp .mwp-cell { padding: 8px 10px; border-radius: 12px; background: var(--mwp-paper); border: 1px solid var(--mwp-line); min-width: 0; }
.mwp .mwp-cell-k { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--mwp-text); white-space: nowrap; }
.mwp .mwp-cell-r { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: 2px; }
.mwp .mwp-cell-d { font-size: 12px; line-height: 1.3; color: var(--mwp-muted); white-space: nowrap; }
.mwp .mwp-cell-v { display: block; font-family: "Russo One", "Arial Black", sans-serif; font-weight: 400; font-size: 19px; line-height: 1.15; color: var(--mwp-ink); white-space: nowrap; }
@container (min-width: 600px) { .mwp .mwp-cell-v { font-size: 22px; } }

/* вывод: бежевая плашка с коричневой линией 3 px слева; обе формулировки в одной ячейке — высоту держит длинная */
.mwp .mwp-plate { display: grid; padding: 14px 16px 14px 18px; border-radius: 12px; background: var(--mwp-paper); border-left: 3px solid var(--mwp-brown); color: var(--mwp-text); }
.mwp .mwp-mode { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 6px; visibility: hidden; }
.mwp .mwp-mode.is-on { visibility: visible; }
.mwp .mwp-c1 strong { color: var(--mwp-ink); font-weight: 600; }
.mwp .mwp-c2 { font-size: 13px; line-height: 1.5; color: var(--mwp-muted); }
.mwp .mwp-model { font-size: 12px; line-height: 1.45; color: var(--mwp-muted); }
.mwp .mwp-c2-m { display: none; }
/* длинное пояснение модели — в сворачиваемом блоке на всех ширинах (ПК: компактность, 17.11.2026) */
.mwp .mwp-in > .mwp-model { display: none; }
.mwp .mwp-more { display: block; border-top: 1px solid var(--mwp-line); }
.mwp .mwp-more summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font: 600 13px/1.3 Montserrat, sans-serif; color: var(--mwp-brown); }
.mwp .mwp-more summary::-webkit-details-marker { display: none; }
.mwp .mwp-more summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mwp .mwp-more[open] summary::after { transform: rotate(-135deg); }
.mwp .mwp-more[open] { padding-bottom: 4px; }
.mwp .mwp-stack { display: grid; }
.mwp .mwp-stack .mwp-mode { grid-area: 1 / 1; }

@media (prefers-reduced-motion: reduce) {
  .mwp *, .mwp *::before, .mwp *::after { animation: none !important; transition: none !important; }
}

/* телефон (контейнер < 600 px): компактно; вторая фраза вывода — в сворачиваемый блок */
@media (max-width: 640px) { .mwp { padding: 16px 14px 6px; } }
@container not (min-width: 600px) {   /* логическое отрицание ПК-блока: ровно один из двух работает при любой дробной ширине (ревью Codex 17.11.2026) */
  .mwp .mwp-in { gap: 9px; }
  .mwp .mwp-lead { display: none; }   /* на телефоне задача видна из подписи ползунка (как у .mws) */
  .mwp .mwp-seg button { padding: 8px 4px; font-size: 13px; }
  .mwp .mwp-top { height: 78px; }
  .mwp .mwp-top .mwp-tag { padding: 2px 9px; bottom: 6px; }
  .mwp .mwp-frame .mwp-tag { bottom: 8px; left: 8px; }
  .mwp .mwp-plate .mwp-c2 { display: none; }
  .mwp .mwp-more .mwp-c2-m { display: block; margin-top: 2px; }
  .mwp .mwp-ends { display: none; }
  .mwp .mwp-ctl { gap: 0 12px; }
  .mwp .mwp-ctl-v { font-size: 16px; }
  .mwp .mwp-plate { padding: 10px 12px 10px 14px; font-size: 13.5px; line-height: 1.45; }
  .mwp .mwp-c2 { font-size: 12.5px; }
  .mwp .mwp-read { gap: 6px; }
  .mwp .mwp-cell { padding: 7px 6px; }
  .mwp .mwp-cell-k { letter-spacing: -.01em; }
  .mwp .mwp-cell-v { font-size: 17px; }
}

/* узкий виджет (телефон 320–375 px): текст не переносится и не обрезается — меняем раскладку, а не шрифт ниже 12 px (измерено: «Поворот (панорама)» 13 px = 141 px, 12 px = 130 px; «Кофемашина» 12 px = 86 px) */
@container (max-width: 309px) { .mwp .mwp-seg button { font-size: 12px; padding-left: 2px; padding-right: 2px; } }
@container (max-width: 287px) {
  .mwp .mwp-seg { grid-auto-flow: row; border-radius: 26px; }
}
@container (max-width: 311px) {
  .mwp .mwp-read { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mwp .mwp-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 10px; padding: 6px 12px; }
  .mwp .mwp-cell-r { display: contents; }
}

/* ПК (контейнер ≥ 600 px): компактно ≈ 850 px — кадр слева, плитки столбиком справа, вид сверху и ползунок во всю ширину (владелец 17.11.2026: «на ПК сделать компактнее») */
@container (min-width: 600px) {
  .mwp .mwp-in { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px 14px; }
  .mwp .mwp-in > * { grid-column: 1 / -1; }
  .mwp .mwp-in > .mwp-figs { display: contents; }
  .mwp .mwp-in > .mwp-h { grid-row: 1; }
  .mwp .mwp-in > .mwp-lead { grid-row: 2; max-width: none; }
  .mwp .mwp-in > .mwp-seg { grid-row: 3; }
  .mwp .mwp-in .mwp-frame { grid-column: 1; grid-row: 4; }
  .mwp .mwp-in > .mwp-rd { grid-column: 2; grid-row: 4; }
  .mwp .mwp-in .mwp-top { grid-column: 1 / -1; grid-row: 5; height: 92px; }
  .mwp .mwp-in > .mwp-ctl { grid-row: 6; }
  .mwp .mwp-in > .mwp-plate { grid-row: 7; padding: 12px 16px 12px 18px; }
  .mwp .mwp-in > .mwp-more { grid-row: 8; }
  .mwp .mwp-rd { display: flex; flex-direction: column; }
  .mwp .mwp-read { flex: 1; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 8px; }
  .mwp .mwp-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 14px; }
  .mwp .mwp-cell-r { display: contents; }
  .mwp .mwp-cell-k { font-size: 13px; }
  .mwp .mwp-cell-d { font-size: 12.5px; }
  .mwp .mwp-ctl { gap: 0 12px; }
}
