/*!
 * Strenos Tools: вид калькуляторов, светлое направление.
 * Цвета и радиусы берутся из токенов темы, у каждого есть запасное значение,
 * поэтому калькулятор не разваливается и вне темы Strenos.
 * Одна высота контролов (48), одна форма (капсула или скругление 12),
 * лайм только на плюс-подходе.
 */
.stc, .stc-slot, .stc-head, .stc-print {
  --stc-bg-2: var(--bg-2, #E5E3DF);
  --stc-card: var(--card, #FFFFFF);
  --stc-card-2: var(--card-2, #F7F6F3);
  --stc-ink: var(--ink, #0E0E0F);
  --stc-ink-2: var(--ink-2, #4D4B47);
  --stc-muted: var(--muted, #84817B);
  --stc-line: var(--line, rgba(14, 14, 15, .08));
  --stc-line-2: var(--line-2, rgba(14, 14, 15, .14));
  --stc-lime: var(--lime, #CCFF00);
  --stc-font: var(--font, "Onest", -apple-system, "Segoe UI", Roboto, sans-serif);
  --stc-mono: var(--stc-font);
  --stc-shadow: var(--shadow, 0 1px 2px rgba(14, 14, 15, .04), 0 16px 48px -16px rgba(14, 14, 15, .16));
  --stc-shadow-lift: var(--shadow-lift, 0 2px 4px rgba(14, 14, 15, .05), 0 30px 70px -20px rgba(14, 14, 15, .28));
}
.stc *, .stc-slot * { box-sizing: border-box; }
.stc-k { font: 500 13px/1.2 var(--stc-font); color: var(--stc-muted); }
.stc [hidden], .stc-slot [hidden] { display: none !important; }

/* ── Заголовок раздела цикла ── */
.stc-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px var(--g, 24px); align-items: end; margin-bottom: 40px; }
.stc-head h2 { grid-column: 1 / 8; margin: 0; font: 600 clamp(36px, 4.2vw, 64px)/1 var(--stc-font); letter-spacing: -.04em; text-wrap: balance; color: var(--stc-ink); }
.stc-head p { grid-column: 8 / -1; margin: 0; color: var(--stc-ink-2); font-size: 18px; line-height: 1.5; max-width: 40ch; }
@media (max-width: 1023px) { .stc-head h2, .stc-head p { grid-column: 1 / -1; } }

/* ── Сегмент: капсула, активный вариант белый ── */
.stc-seg { display: inline-flex; height: 44px; padding: 4px; border-radius: 999px; background: #EFEEEB; }
.stc-seg button { min-width: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--stc-ink-2); font: 600 14px var(--stc-font); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.stc-seg button:hover { color: var(--stc-ink); }
.stc-seg button[aria-checked="true"] { background: #fff; color: var(--stc-ink); box-shadow: 0 1px 2px rgba(14, 14, 15, .06), 0 4px 12px -4px rgba(14, 14, 15, .18); }
.stc-seg button:focus-visible { outline: 2px solid var(--stc-ink); outline-offset: 1px; }

/* ── Карточка ввода первого экрана ── */
.stc-calc { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin: 0; padding: 20px 20px 20px 28px; border-radius: 24px; background: var(--stc-card); box-shadow: var(--stc-shadow); max-width: 560px; }
.stc-calc:focus-within { box-shadow: 0 0 0 2px var(--stc-ink), var(--stc-shadow); }
.stc-calc-f { display: grid; gap: 6px; min-width: 0; }
.stc-rm { width: 100%; min-width: 0; border: 0; background: transparent; padding: 0; font: 600 56px/1.05 var(--stc-font); letter-spacing: -.04em; color: var(--stc-ink); font-variant-numeric: tabular-nums; }
.stc-rm:focus { outline: none; }
.stc-calc-side { display: grid; gap: 12px; justify-items: end; }
.stc-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px; background: var(--stc-ink); color: #fff; font: 600 17px/1 var(--stc-font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.stc-go:hover { transform: translateY(-1px); }
.stc-go svg { transition: transform .25s; } .stc-go:hover svg { transform: translateX(3px); }
.stc-go:focus-visible { outline: 2px solid var(--stc-ink); outline-offset: 3px; }
/* Телефон: единицы и кнопка в один ряд, кнопка забирает остаток ширины.
   Русская «Построить цикл» длиннее английской, поэтому поля кнопки уже. */
@media (max-width: 560px) {
  .stc-calc, .stc-calc.is-multi { grid-template-columns: minmax(0, 1fr); padding: 20px; max-width: 100%; }
  .stc-calc-side { display: flex; align-items: center; gap: 8px; }
  .stc-go { flex: 1; min-width: 0; height: 52px; padding: 0 16px; font-size: 16px; }
}
@media (max-width: 359px) { .stc-calc-side { flex-direction: column; align-items: stretch; } .stc-calc-side .stc-seg { align-self: flex-start; } }

/* ── Карточка топ-сета: матовое стекло ── */
.stc-float { display: grid; gap: 10px; padding: 20px; border-radius: 24px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--stc-shadow-lift); color: var(--stc-ink); }
.stc-fv { display: flex; align-items: baseline; gap: 8px; font: 600 44px/1 var(--stc-font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stc-fv small { font-size: 17px; letter-spacing: 0; color: var(--stc-ink-2); font-weight: 500; }
.stc-fv em { font-style: normal; margin-left: auto; font-size: 17px; letter-spacing: 0; padding: 6px 10px; border-radius: 999px; background: var(--stc-lime); }
.stc-fv em:empty { display: none; }
@media (max-width: 560px) { .stc-float { padding: 16px; } .stc-fv { font-size: 36px; } }

/* Без слотов темы обе карточки стоят над таблицей. */
.stc-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 24px; }
@media (max-width: 860px) { .stc-top { grid-template-columns: 1fr; } }

/* ── Блины одной стороны ── */
.stc-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.stc-dot { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; font: 600 12px/1 var(--stc-font); color: #fff; background: #3A3A3E; font-variant-numeric: tabular-nums; }
.stc-dot[data-p="kg25"], .stc-dot[data-p="lb55"] { background: #D8303D; }
.stc-dot[data-p="kg20"], .stc-dot[data-p="lb45"] { background: #2160D8; }
.stc-dot[data-p="kg15"], .stc-dot[data-p="lb35"] { background: #F1C21B; color: var(--stc-ink); }
.stc-dot[data-p="kg10"], .stc-dot[data-p="lb25"] { background: #1E9D57; }
.stc-dot[data-p="kg5"], .stc-dot[data-p="lb10"] { background: #fff; color: var(--stc-ink); box-shadow: inset 0 0 0 1px var(--stc-line-2); }
.stc-dot[data-p="kg2.5"], .stc-dot[data-p="kg1.25"], .stc-dot[data-p="kg0.5"], .stc-dot[data-p="lb5"], .stc-dot[data-p="lb2.5"], .stc-dot[data-p="lb1.25"] { background: #C9CBD1; color: var(--stc-ink); }

/* ── Блины одной стороны «в профиль»: гриф, замок, блины, подпись числами ── */
.stc-plates { --s: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 16px; justify-items: start; min-width: 0; }
.stc-sleeve { position: relative; display: flex; align-items: center; gap: calc(2px * var(--s)); height: calc(52px * var(--s)); padding-right: calc(22px * var(--s)); }
.stc-sleeve::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: calc(6px * var(--s)); transform: translateY(-50%); border-radius: 99px; background: linear-gradient(180deg, #E6E5E1, #B9B7B1); }
.stc-collar { position: relative; flex: none; width: calc(7px * var(--s)); height: calc(22px * var(--s)); margin-right: calc(3px * var(--s)); border-radius: calc(3px * var(--s)); background: linear-gradient(90deg, #6B6964, #9C9A95); }
.stc-pl { position: relative; flex: none; width: calc(var(--pw) * 1px * var(--s)); height: calc(var(--ph) * 1px * var(--s)); border-radius: calc(3px * var(--s)); background: #3A3A3E; box-shadow: inset calc(1.5px * var(--s)) 0 0 rgba(255, 255, 255, .3), inset calc(-1.5px * var(--s)) 0 0 rgba(0, 0, 0, .16); }
.stc-pl[data-p="kg25"], .stc-pl[data-p="lb55"] { background: #D8303D; }
.stc-pl[data-p="kg20"], .stc-pl[data-p="lb45"] { background: #2160D8; }
.stc-pl[data-p="kg15"], .stc-pl[data-p="lb35"] { background: #F1C21B; }
.stc-pl[data-p="kg10"], .stc-pl[data-p="lb25"] { background: #1E9D57; }
.stc-pl[data-p="kg5"], .stc-pl[data-p="lb10"] { background: #F7F6F3; box-shadow: inset 0 0 0 1px rgba(14, 14, 15, .2); }
.stc-pl[data-p="kg2.5"], .stc-pl[data-p="kg1.25"], .stc-pl[data-p="kg0.5"], .stc-pl[data-p="kg0.25"], .stc-pl[data-p="lb5"], .stc-pl[data-p="lb2.5"], .stc-pl[data-p="lb1.25"], .stc-pl[data-p="lb0.75"], .stc-pl[data-p="lb0.5"] { background: linear-gradient(90deg, #B5B7BD, #D5D7DC); }
.stc-plates-t { font: 600 15px/1.2 var(--stc-font); letter-spacing: -.01em; color: var(--stc-ink); font-variant-numeric: tabular-nums; }
.stc-plates.is-sm { --s: .5; gap: 4px 10px; }
.stc-plates.is-sm .stc-plates-t { font-size: 12.5px; font-weight: 500; color: var(--stc-ink-2); }
.stc-plates.is-lg { --s: 1.5; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.stc-plates.is-lg .stc-plates-t { font-size: 17px; }
/* Пояс: блины висят без грифа и замка. */
.stc-plates.is-belt .stc-sleeve { padding-right: 0; }
.stc-plates.is-belt .stc-sleeve::before { display: none; }

/* ── Таблица цикла: белая карточка, настройки, недели ── */
.stc-board { padding: clamp(18px, 2.4vw, 32px); border-radius: 32px; background: var(--stc-card); box-shadow: var(--stc-shadow); color: var(--stc-ink); font-family: var(--stc-font); }
.stc-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--stc-line); }
.stc-opt { display: grid; gap: 8px; min-width: 0; align-content: start; }
.stc-opt .stc-seg { height: 48px; width: 100%; } .stc-opt .stc-seg button { flex: 1; font-size: 14px; padding: 0 8px; }
.stc-sel, .stc-inp { height: 48px; width: 100%; padding: 0 16px; border-radius: 14px; border: 0; background: #F2F1EE; box-shadow: none; font: 500 15px var(--stc-font); color: var(--stc-ink); -webkit-appearance: none; appearance: none; font-variant-numeric: tabular-nums; transition: background-color .2s, box-shadow .2s; }
.stc-sel:hover, .stc-inp:hover { background-color: #ECEBE7; }
.stc-sel { padding-right: 40px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--stc-ink-2) 50%), linear-gradient(135deg, var(--stc-ink-2) 50%, transparent 50%); background-position: calc(100% - 21px) 21px, calc(100% - 16px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.stc-sel:focus, .stc-inp:focus { outline: none; background-color: #fff; box-shadow: 0 0 0 2px var(--stc-ink); }

.stc-weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stc-week { position: relative; padding: 24px 22px 22px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px rgba(14, 14, 15, .08); display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.stc-week:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(14, 14, 15, .1), 0 24px 48px -30px rgba(14, 14, 15, .34); }
.stc-week-h { display: grid; gap: 6px; margin-bottom: 4px; }
.stc-week-h .stc-k { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.stc-h-sub { font-weight: 500; color: var(--stc-muted); }
.stc-week-h h3 { margin: 0; font: 600 21px/1.15 var(--stc-font); letter-spacing: -.025em; color: var(--stc-ink); text-wrap: balance; }
.stc-week.is-deload h3 { color: var(--stc-ink-2); }
.stc-rows { list-style: none; margin: 0; padding: 0; flex: 1; }
.stc-rows .stc-g { padding: 18px 0 8px; font: 600 13px/1.2 var(--stc-font); color: var(--stc-ink-2); }
.stc-rows .stc-g:first-child { padding-top: 12px; }
.stc-rows .stc-g.is-note { font: 400 14px/1.45 var(--stc-font); color: var(--stc-muted); }
.stc-s { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; min-height: 44px; border-top: 1px solid rgba(14, 14, 15, .06); }
.stc-g + .stc-s { border-top-color: transparent; }
.stc-s b { font: 600 19px/1 var(--stc-font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--stc-ink); }
.stc-s b.is-txt { font-size: 15px; letter-spacing: 0; }
.stc-s span { font-size: 13px; color: var(--stc-muted); font-variant-numeric: tabular-nums; }
.stc-s .stc-r { min-width: 46px; padding: 5px 9px; border-radius: 999px; background: #F2F1EE; text-align: center; font: 600 13px/1 var(--stc-font); color: var(--stc-ink-2); }
.stc-s.is-warm b { font-weight: 500; font-size: 16px; color: var(--stc-ink-2); }
.stc-s.is-warm .stc-r { background: transparent; color: var(--stc-muted); font-weight: 500; }
.stc-s.is-plus .stc-r { background: var(--stc-lime); color: var(--stc-ink); }
.stc-week-f { display: grid; gap: 12px; margin-top: 14px; padding-top: 18px; border-top: 1px solid rgba(14, 14, 15, .08); }
.stc-note { margin: 18px 0 0; font-size: 14px; line-height: 1.55; color: var(--stc-muted); max-width: 72ch; }
.stc-note:empty { display: none; }
.stc-empty { grid-column: 1 / -1; margin: 0; padding: 32px 0; text-align: center; color: var(--stc-ink-2); }
@media (max-width: 1100px) { .stc-opts, .stc-weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stc-board { padding: 16px; border-radius: 24px; } .stc-opts, .stc-weeks { grid-template-columns: 1fr; } }

/* ── Вкладки движений: четыре штанговых и два с поясом ── */
.stc-lifts { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 999px; background: #EFEEEB; width: fit-content; max-width: 100%; }
.stc-lifts button { height: 40px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--stc-ink-2); font: 600 14px var(--stc-font); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.stc-lifts button:hover { color: var(--stc-ink); }
.stc-lifts button[data-k="pu"] { margin-left: 12px; position: relative; }
.stc-lifts button[data-k="pu"]::before { content: ""; position: absolute; left: -9px; top: 10px; bottom: 10px; width: 1px; background: var(--stc-line-2); }
.stc-lifts button[aria-checked="true"] { background: #fff; color: var(--stc-ink); box-shadow: 0 1px 2px rgba(14, 14, 15, .06), 0 4px 12px -4px rgba(14, 14, 15, .18); }
.stc-lifts button:focus-visible, .stc-cycles button:focus-visible, .stc-act:focus-visible { outline: 2px solid var(--stc-ink); outline-offset: 1px; }
@media (max-width: 600px) {
  .stc-lifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: 16px; }
  .stc-lifts button { padding: 0 8px; border-radius: 12px; font-size: 13px; }
  .stc-lifts button[data-k="pu"] { margin-left: 0; }
  .stc-lifts button[data-k="pu"]::before { display: none; }
}

/* ── Полоса над неделями: циклы, рабочий макс, ссылка и печать ── */
.stc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 22px; }
.stc-cycles { display: inline-flex; height: 44px; padding: 4px; border-radius: 999px; background: #EFEEEB; }
.stc-cycles button { padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--stc-ink-2); font: 600 14px var(--stc-font); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.stc-cycles button:hover:not(:disabled) { color: var(--stc-ink); }
.stc-cycles button[aria-checked="true"] { background: #fff; color: var(--stc-ink); box-shadow: 0 1px 2px rgba(14, 14, 15, .06), 0 4px 12px -4px rgba(14, 14, 15, .18); }
.stc-cycles button:disabled { color: var(--stc-muted); opacity: .55; cursor: not-allowed; }
.stc-tm { font: 500 15px/1.3 var(--stc-font); color: var(--stc-ink-2); font-variant-numeric: tabular-nums; }
.stc-acts { display: flex; gap: 8px; margin-left: auto; }
.stc-act { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #F2F1EE; box-shadow: none; color: var(--stc-ink); font: 600 14px var(--stc-font); cursor: pointer; white-space: nowrap; transition: background-color .2s, transform .2s; }
/* Значки Tabler Icons (MIT) масками: подпись у кнопки меняется, значок остаётся. */
.stc-act[data-i]::before { content: ""; flex: none; width: 17px; height: 17px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.stc-act[data-i="link"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 15l6 -6'/%3E%3Cpath d='M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464'/%3E%3Cpath d='M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463'/%3E%3C/svg%3E"); }
.stc-act[data-i="print"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2'/%3E%3Cpath d='M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4'/%3E%3Cpath d='M7 15a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2z'/%3E%3C/svg%3E"); }
.stc-act[data-i="csv"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3v4a1 1 0 0 0 1 1h4'/%3E%3Cpath d='M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4'/%3E%3Cpath d='M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0'/%3E%3Cpath d='M10 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75'/%3E%3Cpath d='M16 15l2 6l2 -6'/%3E%3C/svg%3E"); }
.stc-act:hover { background: #E9E8E4; }
.stc-act.is-ink { background: var(--stc-ink); color: #fff; box-shadow: none; }
@media (max-width: 600px) { .stc-acts { flex-wrap: wrap; margin-left: 0; width: 100%; } .stc-acts .stc-act { flex: 1 1 auto; justify-content: center; } }

/* ── Плюс-подход недели 3: сколько сделал ── */
.stc-done { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-top: 1px solid var(--stc-line); }
.stc-reps { width: 64px; height: 40px; padding: 0 8px; border: 0; border-radius: 12px; background: #F2F1EE; box-shadow: none; color: var(--stc-ink); font: 600 18px var(--stc-font); text-align: center; font-variant-numeric: tabular-nums; transition: background-color .2s, box-shadow .2s; }
.stc-reps:focus { outline: none; background: #fff; box-shadow: 0 0 0 2px var(--stc-ink); }

.stc-outcome { grid-column: 1 / -1; order: 5; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 24px; margin-top: 16px; padding: 18px 22px 18px 54px; border-radius: 20px; background: #F6F5F2; position: relative; }
.stc-outcome::before { content: ""; position: absolute; left: 22px; top: 20px; width: 20px; height: 20px; background: var(--stc-ink-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0'/%3E%3Cpath d='M12 9h.01'/%3E%3Cpath d='M11 12h1v4h1'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0'/%3E%3Cpath d='M12 9h.01'/%3E%3Cpath d='M11 12h1v4h1'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 600px) { .stc-outcome { order: 0; } }
.stc-outcome:empty { display: none; }
.stc-outcome p { margin: 0; flex: 1 1 320px; font-size: 15px; line-height: 1.55; color: var(--stc-ink); }

/* ── Лист для печати: только он, без сайта вокруг ── */
.stc-print { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body > *:not(.stc-print) { display: none !important; }
  html, body { background: #fff !important; }
  .stc-print { display: block; color: #000; font: 10.5pt/1.4 var(--stc-font); }
  .stc-print header h2 { margin: 0 0 2mm; font-size: 18pt; letter-spacing: -.02em; }
  .stc-print header p { margin: 0 0 6mm; font-size: 9pt; color: #444; }
  .stc-print table { width: 100%; margin-bottom: 6mm; border-collapse: collapse; table-layout: fixed; page-break-inside: avoid; }
  .stc-print caption { padding-bottom: 2mm; text-align: left; font-weight: 600; font-size: 11pt; }
  .stc-print th { padding: 1.5mm 2mm 1.5mm 0; border-bottom: .3mm solid #000; text-align: left; font: 500 8pt var(--stc-font); color: #444; }
  .stc-print td { padding: 2mm 2mm 2mm 0; border-bottom: .2mm solid #bbb; vertical-align: top; font-variant-numeric: tabular-nums; }
  .stc-print footer { margin-top: 2mm; font-size: 8pt; color: #555; }
}

/* ── 1ПМ: итог крупно и таблицы парой ── */
.stc-result { display: grid; gap: 8px; margin-bottom: 20px; }
.stc-result b { font: 600 clamp(44px, 5vw, 64px)/1 var(--stc-font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stc-weeks.stc-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stc-s .stc-name { font-size: 15px; color: var(--stc-ink-2); }
/* Главная строка 1ПМ: метка только у числа, как плюс-подход у повторов. */
.stc-s.is-best b { background: var(--stc-lime); border-radius: 999px; padding: 6px 10px; }
@media (max-width: 600px) { .stc-weeks.stc-pair { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .stc-week, .stc-go, .stc-go svg { transition: none; } }

/* ── 5/3/1 коротко: карточка главной ── */
/* Движение, 1ПМ слева, топ-сет справа, под ними три рабочие недели полосами:
   видно, как вес растёт к неделе 3. Лайм только на плюс-подходе. */
.stc-mini { display: grid; gap: 24px; padding: 24px; border-radius: 32px; background: var(--stc-card); box-shadow: var(--stc-shadow); color: var(--stc-ink); font-family: var(--stc-font); }
.stc-mini .stc-lifts { margin: 0; }
.stc-mini-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.stc-mini-f { display: grid; gap: 14px; align-content: start; padding: 4px 4px 0; }
.stc-mini-f .stc-rm { font-size: 48px; }
.stc-mini-u .stc-seg { height: 40px; }
.stc-mini-res { display: grid; gap: 10px; align-content: start; padding: 18px 20px 20px; border-radius: 24px; background: var(--stc-card-2); }
.stc-mini-l { display: grid; gap: 10px; }
.stc-ladder { list-style: none; margin: 0; padding: 0; }
.stc-ladder li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 44px; border-top: 1px solid var(--stc-line); }
.stc-ladder b { font: 600 17px/1 var(--stc-font); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stc-ladder-bar { height: 8px; border-radius: 8px; background: var(--stc-bg-2); overflow: hidden; }
.stc-ladder-bar i { display: block; height: 100%; width: 100%; border-radius: 8px; background: var(--stc-ink-2); transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.stc-ladder li.is-top .stc-ladder-bar i { background: var(--stc-ink); }
.stc-ladder li.is-top b { padding: 6px 10px; border-radius: 999px; background: var(--stc-lime); }
.stc-ladder-empty { display: block !important; padding: 16px 0 0; color: var(--stc-ink-2); font-size: 15px; }
.stc-mini > .stc-go { justify-self: start; }
@media (max-width: 600px) {
  .stc-mini { padding: 16px; border-radius: 24px; gap: 20px; }
  .stc-mini-in { grid-template-columns: 1fr; }
  .stc-mini-f .stc-rm { font-size: 44px; }
  .stc-ladder li { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; }
  .stc-ladder b { font-size: 15px; }
  .stc-mini > .stc-go { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .stc-ladder-bar i { transition: none; } }

/* ── 1ПМ: ввод из двух-трёх полей, итог с формулами, вкладки ── */
.stc-calc.is-multi { grid-template-columns: minmax(0, 1fr) auto; max-width: 600px; }
.stc-calc-fs { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0; min-width: 0; align-items: end; }
.stc-calc-fs .stc-k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stc-calc-fs.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Телефон: поля во всю ширину, единицы и кнопка строкой под ними (правило
   стоит здесь, после .is-multi, иначе его перебивает порядок в файле). */
@media (max-width: 560px) { .stc-calc.is-multi { grid-template-columns: minmax(0, 1fr); } }
/* Три поля: поля сверху во всю ширину, единицы и кнопка строкой под ними. */
.stc-calc.is-stack { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.stc-calc.is-stack .stc-calc-side { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stc-calc-fs .stc-calc-f + .stc-calc-f { padding-left: 16px; margin-left: 16px; border-left: 1px solid var(--stc-line); }
.stc-calc-fs.is-three .stc-calc-f + .stc-calc-f { padding-left: 12px; margin-left: 12px; }
.stc-calc-fs.is-three .stc-rm { font-size: 40px; }
.stc-fsub { font-size: 15px; color: var(--stc-ink-2); font-variant-numeric: tabular-nums; }
.stc-fsub:empty { display: none; }
.stc-opts.is-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stc-weeks.stc-1rm { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.stc-res .stc-result { margin: 0; }
.stc-res .stc-result b { font-size: clamp(40px, 4.4vw, 56px); }
.stc-forms li { list-style: none; }
.stc-f { width: 100%; padding: 0; border: 0; border-top: 1px solid var(--stc-line); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; grid-template-columns: minmax(0, 1fr) auto; }
.stc-f:hover .stc-name { color: var(--stc-ink); }
.stc-f:focus-visible { outline: 2px solid var(--stc-ink); outline-offset: 2px; border-radius: 8px; }
.stc-f b { font-size: 18px; }
.stc-tabs-h .stc-seg, .stc-tab > .stc-seg { width: 100%; height: 44px; }
.stc-tabs-h .stc-seg button, .stc-tab > .stc-seg button { flex: 1; padding: 0 8px; font-size: 13px; white-space: nowrap; }
.stc-tab { display: grid; gap: 12px; }
.stc-s3 { grid-template-columns: 48px minmax(0, 1fr) auto; min-height: 52px; padding: 8px 0; }
.stc-s3 .stc-pct { font: 500 13.5px/1 var(--stc-font); color: var(--stc-muted); }
.stc-s3 .stc-name { display: grid; gap: 3px; font-size: 15px; color: var(--stc-ink); }
.stc-s3 .stc-name small { font-size: 13px; color: var(--stc-muted); font-variant-numeric: tabular-nums; }
.stc-s3 b { white-space: nowrap; }
.stc-s3 .stc-plates { grid-column: 2 / -1; padding-bottom: 6px; }
.stc-dots.is-sm { gap: 4px; }
.stc-dots.is-sm .stc-dot { min-width: 22px; height: 22px; padding: 0 5px; font-size: 10.5px; }
.stc-bar-end { justify-content: flex-end; margin: 16px 0 0; }
.stc-bar-end .stc-acts { margin-left: 0; }
/* Пояс: живой пример «процент на бумаге и на деле», вид как на «Стритлифтинге». */
.stc-cmp { margin-bottom: 16px; }
.stc-cmp:empty { display: none; }
.stc-cmp-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.stc-cmp-h h3 { margin: 0; font: 600 clamp(22px, 2.2vw, 28px)/1.15 var(--stc-font); letter-spacing: -.02em; color: var(--stc-ink); }
/* Разбор пояса в калькуляторе: шаги 1 и 2 рядом, два расчёта на всю ширину. */
.stc-cmp .bx { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.stc-cmp .bx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stc-cmp .bx-step { box-shadow: inset 0 0 0 1px var(--stc-line-2); padding: 24px 26px 26px; }
.stc-cmp .bx-step:last-child { grid-column: 1 / -1; }
.stc-cmp .bx-eq b { font-size: clamp(22px, 2vw, 30px); }
@media (max-width: 860px) { .stc-cmp .bx-steps { grid-template-columns: minmax(0, 1fr); } }
/* Пунктир цели виден на полосах, а подписи и пояснения лежат поверх него. */
@media (max-width: 1199px) { .stc-opts.is-five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .stc-weeks.stc-1rm { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .stc-opts.is-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stc-opts.is-five .stc-opt.is-wide { grid-column: 1 / -1; order: 9; }
  .stc-calc-fs .stc-rm { font-size: 44px; }
  .stc-calc-fs.is-three .stc-rm { font-size: 32px; }
  .stc-calc-fs .stc-calc-f + .stc-calc-f { padding-left: 12px; margin-left: 12px; }
  .stc-calc-fs.is-three .stc-calc-f + .stc-calc-f { padding-left: 10px; margin-left: 10px; }
  .stc-tabs-h .stc-seg button, .stc-tab > .stc-seg button { font-size: 12px; padding: 0 4px; }
}

/* ── Таблица RPE: одна цель, сетка на компьютере, список на телефоне ── */
.stc-calc-fs.is-one { grid-template-columns: minmax(0, 1fr); }
.stc-est:empty { display: none; }
.stc-est { margin: 0 0 16px; font-size: 15px; color: var(--stc-ink-2); }
.stc-target { order: 0; margin-bottom: 16px; justify-content: space-between; align-items: center; padding-left: 26px; }
.stc-target::before { display: none; }
.stc-target-in { display: grid; gap: 6px; }
.stc-target-in b { font: 600 clamp(32px, 3.4vw, 44px)/1 var(--stc-font); letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--stc-ink); }
.stc-target-pl { display: grid; gap: 8px; justify-items: end; }
.stc-rpe-scroll { overflow-x: auto; border-radius: 20px; background: var(--stc-card-2); padding: 8px; }
.stc-rpe-t { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; font-family: var(--stc-font); }
.stc-rpe-t th { padding: 8px 4px; font: 500 13px/1 var(--stc-font); color: var(--stc-muted); text-align: center; transition: color .2s; }
.stc-rpe-t thead th:first-child, .stc-rpe-t tbody th { width: 72px; text-align: left; padding-left: 8px; }
.stc-rpe-t tbody th { font: 600 15px/1 var(--stc-font); color: var(--stc-ink); }
.stc-rpe-t th.is-col { color: var(--stc-ink); }
/* Угол таблицы: RPE вправо вверх, повторы влево вниз. */
.stc-rpe-t th.stc-rpe-c { display: grid; gap: 6px; padding: 6px 8px; }
.stc-rpe-t th.stc-rpe-c span:first-child { justify-self: end; color: var(--stc-ink); }
.stc-rpe-t td { padding: 0; }
.stc-cell { display: grid; gap: 3px; justify-items: center; width: 100%; min-height: 52px; padding: 8px 4px; border: 0; border-radius: 12px; background: #fff; color: var(--stc-ink); cursor: pointer; font: inherit; transition: background-color .15s, color .15s, transform .15s; }
.stc-cell b { font: 600 16px/1 var(--stc-font); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stc-cell small { font: 500 12.5px/1 var(--stc-font); color: var(--stc-muted); }
.stc-cell.is-row, .stc-cell.is-col { background: var(--stc-bg-2); }
.stc-cell:hover { transform: translateY(-1px); }
.stc-cell.is-on { background: var(--stc-ink); color: #fff; }
.stc-cell.is-on small { color: rgba(255, 255, 255, .7); }
.stc-cell:focus-visible { outline: 2px solid var(--stc-ink); outline-offset: 2px; }
.stc-rpe-m { display: none; }
.stc-rpes { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 999px; background: var(--stc-bg-2); overflow-x: auto; scrollbar-width: none; }
.stc-rpes::-webkit-scrollbar { display: none; }
.stc-rpes button { flex: 1 0 auto; min-width: 44px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--stc-ink-2); font: 600 14px var(--stc-font); cursor: pointer; }
.stc-rpes button[aria-checked="true"] { background: #fff; color: var(--stc-ink); box-shadow: 0 1px 3px rgba(14, 14, 15, .12); }
@media (max-width: 860px) {
  .stc-rpe { display: none; }
  .stc-rpe-m { display: block; }
  .stc-target { flex-direction: column; align-items: flex-start; }
  .stc-target-pl { justify-items: start; }
}
@media (prefers-reduced-motion: reduce) { .stc-cell { transition: none; } }

/* ── Блины и разминка ── */
.stc-optwrap .stc-seg { width: 100%; height: 48px; }
.stc-optwrap .stc-seg button { flex: 1; font-size: 14px; }
.stc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stc-chip { display: inline-flex; padding: 4px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--stc-line-2); cursor: pointer; transition: opacity .2s, box-shadow .2s; }
.stc-chip .stc-dot { min-width: 36px; height: 36px; font-size: 13px; }
.stc-chip[aria-pressed="false"] { opacity: .35; box-shadow: inset 0 0 0 1px var(--stc-line); }
.stc-chip[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--stc-ink); }
.stc-chip:focus-visible { outline: 2px solid var(--stc-ink); outline-offset: 2px; }
.stc-dots.is-lg { gap: 8px; }
.stc-dots.is-lg .stc-dot { min-width: 48px; height: 48px; padding: 0 8px; font-size: 16px; }
.stc-fplates .stc-dots.is-lg .stc-dot { min-width: 40px; height: 40px; font-size: 14px; }
.stc-fplates .stc-plates.is-lg { --s: 1.15; gap: 10px; }
.stc-res .stc-week-h h3 { font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stc-res .stc-fsub { margin: 0; }
.stc-alt { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--stc-line); }
.stc-alt-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stc-alt-h b { font: 600 22px/1 var(--stc-font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stc-s3.is-top b { padding: 6px 10px; border-radius: 999px; background: var(--stc-ink); color: #fff; }
@media (max-width: 600px) {
  .stc-dots.is-lg .stc-dot { min-width: 42px; height: 42px; font-size: 15px; }

}


/* Цели разминки длинные (по-русски особенно): пока карточка узкая, сеткой два на два. */
@media (max-width: 1279px) {
  .stc-board-pl .stc-tab > .stc-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; gap: 2px; border-radius: 20px; }
  .stc-board-pl .stc-tab > .stc-seg button { height: 38px; white-space: normal; line-height: 1.15; }
}

/* ── nSuns: день, решение «1+», неделя целиком ── */
.stc-weeks.is-ns { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .85fr); align-items: start; }
.stc-week-lead { margin: -4px 0 0; font-size: 14px; line-height: 1.45; color: var(--stc-muted); }
.stc-s.is-hit { margin: 0 -10px; padding: 0 10px; border-radius: 12px; border-top-color: transparent; background: var(--stc-ink); }
.stc-s.is-hit .stc-r { background: rgba(255, 255, 255, .14); }
.stc-s.is-hit b, .stc-s.is-hit span, .stc-s.is-hit .stc-r { color: #fff; }
.stc-s.is-hit + .stc-s { border-top-color: transparent; }
.stc-ns-out:empty { display: none; }
.stc-ns-out { display: grid; gap: 12px; padding: 16px 18px; border-radius: 16px; background: #F6F5F2; }
.stc-ns-out p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--stc-ink); }
.stc-ns-out .stc-act { justify-self: start; }
.stc-out-end { margin: 0; }
.stc-outcome p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--stc-ink); }
@media (max-width: 1100px) { .stc-weeks.is-ns { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stc-weeks.is-ns .is-glance { grid-column: 1 / -1; } }
@media (max-width: 600px) { .stc-weeks.is-ns { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .stc-cycles { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .stc-cycles::-webkit-scrollbar { display: none; } .stc-cycles button { flex: none; padding: 0 10px; } }

/* ── GZCLP: тренировки недели в ряд, под ними недобор и неделя по движениям ── */
.stc-weeks.is-gz { align-items: start; }
.stc-weeks.is-gz.is-d3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stc-weeks.is-gz.is-d3 .is-decide { grid-column: span 2; }
.stc-weeks.is-gz.is-d4 .is-decide, .stc-weeks.is-gz.is-d4 .is-glance { grid-column: span 2; }
@media (max-width: 1100px) {
  .stc-weeks.is-gz.is-d3, .stc-weeks.is-gz.is-d4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stc-weeks.is-gz.is-d3 .is-decide, .stc-weeks.is-gz .is-glance { grid-column: auto; }
  .stc-weeks.is-gz .is-decide { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .stc-weeks.is-gz.is-d3, .stc-weeks.is-gz.is-d4 { grid-template-columns: 1fr; } }

/* ── Техасский метод: три дня в ряд, решение тяжёлого дня во всю ширину ── */
.stc-weeks.is-tx { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.stc-weeks.is-tx .is-decide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 32px; align-content: start; }
.stc-weeks.is-tx .is-decide > .stc-week-h, .stc-weeks.is-tx .is-decide > .stc-week-lead { grid-column: 1 / -1; }
.stc-weeks.is-tx .is-decide > .stc-done, .stc-weeks.is-tx .is-decide > .stc-ns-out { grid-column: 1; }
.stc-weeks.is-tx .is-decide > .stc-rows { grid-column: 2; grid-row: 3 / span 3; align-self: start; }
.stc-done.is-rpe { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 0; }
.stc-done.is-rpe .stc-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: auto; gap: 2px; }
.stc-done.is-rpe .stc-seg button { height: 38px; padding: 0 6px; white-space: nowrap; }
@media (max-width: 1100px) {
  .stc-weeks.is-tx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stc-weeks.is-tx .is-decide { grid-template-columns: 1fr; }
  .stc-weeks.is-tx .is-decide > .stc-rows { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) {
  .stc-weeks.is-tx { grid-template-columns: 1fr; }
  .stc-done.is-rpe .stc-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 20px; }
}
/* Длинная подпись в строке решения не должна наезжать на вес: вес держит
   свою ширину, подпись переносится справа. */
.stc-week.is-decide .stc-s, .stc-week.is-glance .stc-s { grid-template-columns: auto minmax(0, 1fr) auto; }
.stc-week.is-decide .stc-s > span:not(.stc-r), .stc-week.is-glance .stc-s > span:not(.stc-r) { text-align: right; line-height: 1.3; padding: 6px 0; }
