/* Единая фитнес-база — слой редизайна «Помост».
   Подключается после app.css и переопределяет только внешний вид. Цвета прежние — олимпийские блины:
   синий 20 кг, жёлтый 15 кг, зелёный 10 кг, красный 25 кг (ошибки). Главная деталь — штанга на помосте
   на первом экране; всё вокруг неё спокойное и плотное. */

:root {
  --rubber: #353a44;
  --rubber-2: #424854;
  --oak: #d9b98a;
  --oak-2: #c9a370;
  --steel-hi: #f1f3f6;
  --steel: #a9b1bd;
  --steel-lo: #5d6573;
  --blue-rim: #163aa3;
  --yellow-rim: #c79500;
  --green-rim: #0f6243;
  --r-xl: 28px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rubber: #0b0e13; --rubber-2: #151a22; --oak: #8a6c45; --oak-2: #765a36;
    --blue-rim: #3d63d6; --yellow-rim: #b98d0a; --green-rim: #23855c;
  }
}

/* --- Общие мелочи публичной части ----------------------------------------------------- */
body:not(.shell) h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
body:not(.shell) .page-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.08; }
.btn { border-radius: 12px; font-weight: 600; }
.btn-lg { border-radius: 14px; }
.btn-primary { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }

.topbar { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.topnav a, .topnav button.linklike { font-size: .92rem; }

/* --- Первый экран: штанга на помосте ------------------------------------------------------ */
.fb { overflow: hidden; }
.rk-hero { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
.rk-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "copy stage" "legend legend";
  column-gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 0; }
.rk-copy { grid-area: copy; position: relative; z-index: 2; padding-bottom: 24px; }
.rk-copy h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: .98; letter-spacing: -.035em; margin: 0 0 22px; max-width: 9ch; }
.rk-copy .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 26px; }
.rk-copy .actions { gap: 10px; }

.rk-wrap { grid-area: stage; position: relative; }
.rk-stage { position: relative; height: 420px; perspective: 1300px; perspective-origin: 50% 40%; margin-right: -60px; --sc: .77; }
.rk-scene { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: scale(var(--sc, 1)) rotateX(var(--rx, -16deg)) rotateY(var(--ry, -28deg)); }
.rk-scene > *, .rk-bar > *, .rk-sleeve > *, .rk-plate > * { position: absolute; transform-style: preserve-3d; }

/* помост: дубовый центр, резиновые края; чёткие грани и мягкая тень под блинами */
.rk-floor { left: 50%; top: 50%; width: 640px; height: 380px; margin: -190px 0 0 -320px; transform: translateY(116px) rotateX(90deg);
  border-radius: 14px; background: var(--rubber);
  background-image: repeating-linear-gradient(90deg, transparent 0 69px, rgba(255, 255, 255, .05) 69px 70px), repeating-linear-gradient(0deg, transparent 0 107px, rgba(255, 255, 255, .05) 107px 108px);
  box-shadow: 0 0 0 3px var(--rubber-2), 0 30px 80px 10px rgba(24, 32, 47, .22); }
.rk-wood { position: absolute; inset: 0 31%; border-left: 3px solid var(--rubber-2); border-right: 3px solid var(--rubber-2); background:
    repeating-linear-gradient(0deg, transparent 0 53px, rgba(80, 50, 20, .22) 53px 54px),
    repeating-linear-gradient(90deg, var(--oak) 0 26px, var(--oak-2) 26px 27px, var(--oak) 27px 54px); }
.rk-cs { position: absolute; top: 50%; width: 120px; height: 300px; margin: -150px 0 0 -60px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.rk-cs.l { left: calc(50% - 190px); } .rk-cs.r { left: calc(50% + 188px); }

/* гриф */
.rk-bar { left: 50%; top: 50%; width: 0; height: 0; }
.rk-shaft { width: 640px; height: 12px; left: -320px; top: -6px; border-radius: 6px;
  background: linear-gradient(180deg, var(--steel-hi), var(--steel) 45%, var(--steel-lo)); }
.rk-shaft::before { content: ""; position: absolute; left: 34%; right: 34%; top: 0; bottom: 0; border-radius: inherit; opacity: .5;
  background: repeating-linear-gradient(45deg, transparent 0 2px, rgba(0, 0, 0, .35) 2px 3px), repeating-linear-gradient(-45deg, transparent 0 2px, rgba(0, 0, 0, .35) 2px 3px); }
.rk-shaft::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transform: rotateX(90deg);
  background: linear-gradient(180deg, var(--steel-lo), var(--steel) 50%, var(--steel-lo)); }

.rk-collar { width: 64px; height: 64px; left: -32px; top: -32px; border-radius: 50%;
  background: radial-gradient(circle, var(--steel-hi) 0 22%, var(--steel) 23% 60%, var(--steel-lo) 62%); }
.rk-l .rk-collar { transform: translateX(-150px) rotateY(90deg); }
.rk-r .rk-collar { transform: translateX(150px) rotateY(90deg); }

/* блин: слои по 4 px вдоль грифа */
.rk-plate { --d: 232px; left: 0; top: 0; transform: translateX(calc(var(--x) + var(--off, 0px))) rotateX(var(--spin, 0deg));
  transition: transform .9s cubic-bezier(.2, .9, .25, 1.05), opacity .4s; }
.rk-blue { --c: var(--blue); --rim: var(--blue-rim); }
.rk-yellow { --c: var(--yellow); --rim: var(--yellow-rim); }
.rk-green { --c: var(--green); --rim: var(--green-rim); }
.rk-l .rk-blue { --x: -182px; } .rk-l .rk-yellow { --x: -206px; } .rk-l .rk-green { --x: -226px; }
.rk-r .rk-blue { --x: 150px; } .rk-r .rk-yellow { --x: 182px; } .rk-r .rk-green { --x: 206px; }

.rk-disc { width: var(--d); height: var(--d); left: calc(var(--d) / -2); top: calc(var(--d) / -2); border-radius: 50%; background: var(--rim); }
.rk-disc:nth-child(1) { transform: translateX(0) rotateY(-90deg); }
.rk-disc:nth-child(2) { transform: translateX(4px) rotateY(90deg); }
.rk-disc:nth-child(3) { transform: translateX(8px) rotateY(90deg); }
.rk-disc:nth-child(4) { transform: translateX(12px) rotateY(90deg); }
.rk-disc:nth-child(5) { transform: translateX(16px) rotateY(90deg); }
.rk-disc:nth-child(6) { transform: translateX(20px) rotateY(90deg); }
.rk-disc:nth-child(7) { transform: translateX(24px) rotateY(90deg); }
.rk-disc:nth-child(8) { transform: translateX(28px) rotateY(90deg); }
.rk-face, .rk-back { backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle, var(--steel-hi) 0 9%, var(--steel-lo) 9.5% 13%, var(--steel) 13.5% 17%,
    color-mix(in srgb, var(--c) 82%, #000) 17.5% 19%, var(--c) 19.5% 63%, color-mix(in srgb, var(--c) 85%, #000) 63.5% 65%, var(--c) 65.5%); }
.rk-plate > .rk-back { transform: translateX(var(--t)) rotateY(90deg); }
.rk-blue { --t: 28px; } .rk-yellow { --t: 20px; } .rk-green { --t: 16px; }
.rk-hub { inset: 41%; border-radius: 50%; background: var(--rubber); }
.rk-face > .rk-hub, .rk-back > .rk-hub { inset: 46.5%; }
.rk-disc b { left: 0; right: 0; top: 23%; text-align: center; font: 800 1.35rem/1 var(--display); color: rgba(255, 255, 255, .92); letter-spacing: -.02em; }
.rk-yellow b { color: rgba(40, 30, 0, .78); }

/* загрузка страницы: блины надеваются на гриф один за другим — один короткий момент, текст виден сразу */
.rk-stage.is-loading .rk-l .rk-plate { --off: -340px; opacity: 0; }
.rk-stage.is-loading .rk-r .rk-plate { --off: 340px; opacity: 0; }
.rk-sleeve .rk-yellow { transition-delay: .08s; } .rk-sleeve .rk-green { transition-delay: .16s; }
.rk-stage[data-hl] .rk-plate { opacity: .35; }
.rk-stage[data-hl="blue"] .rk-blue, .rk-stage[data-hl="yellow"] .rk-yellow, .rk-stage[data-hl="green"] .rk-green { opacity: 1; --spin: 180deg; }
.rk-stage[data-hl="blue"] .rk-l .rk-blue, .rk-stage[data-hl="yellow"] .rk-l .rk-yellow, .rk-stage[data-hl="green"] .rk-l .rk-green { --spin: -180deg; }

/* три роли под штангой — те же блины в плоском виде */
.rk-legend { grid-area: legend; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 0 -16px; }
.rk-legend a { display: flex; align-items: center; gap: 14px; padding: 18px 16px; color: var(--ink-3); text-decoration: none; font-size: .9rem; line-height: 1.35;
  border-right: 1px solid var(--line); transition: background .2s; }
.rk-legend a:last-child { border-right: 0; }
.rk-legend a:hover { background: var(--surface-2); color: var(--ink-2); }
.rk-legend b { display: block; color: var(--ink); font: 700 1.02rem/1.25 var(--display); letter-spacing: -.01em; }
.rk-legend .disc, .rl .disc { width: 38px; height: 38px; box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .12); }
.rk-legend .disc::after, .rl .disc::after { width: 10px; height: 10px; background: var(--steel); box-shadow: 0 0 0 3px var(--rubber); }

/* --- Роли: одна роль на экране вместо трёх длинных разделов ---------------------------------- */
.rl { padding: 64px 0 56px; }
.rl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.rl-head h2, .ab h2, .hs h2, .fq h2, .pt h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.rl-head p { margin: 0; color: var(--ink-3); }

.rl-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 18px; }
.rl-tabs[hidden] { display: none; }
.rl-tab { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 8px 14px; border: 0; border-radius: 13px; background: transparent;
  font: 700 1rem/1.2 var(--display); letter-spacing: -.01em; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.rl-tab .disc { width: 28px; height: 28px; }
.rl-tab .disc::after { width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--rubber); }
.rl-tab:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.rl-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(24, 32, 47, .08), 0 6px 18px rgba(24, 32, 47, .06); }

.rl-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; padding: 34px 36px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl); position: relative; }
.rl-panel + .rl-panel { margin-top: 18px; }
.rl-panel[hidden] { display: none; }
.rl-panel::before { content: ""; position: absolute; left: 36px; top: -1px; width: 72px; height: 4px; border-radius: 0 0 4px 4px; background: var(--c); }
.rl-blue { --c: var(--blue); --soft: var(--blue-soft); }
.rl-yellow { --c: var(--yellow); --soft: var(--yellow-soft); }
.rl-green { --c: var(--green); --soft: var(--green-soft); }
.rl-who { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .92rem; margin-bottom: 14px; }
.rl-who .disc { width: 24px; height: 24px; box-shadow: none; }
.rl-who .disc::after { width: 7px; height: 7px; box-shadow: 0 0 0 2px var(--rubber); }
.rl-main h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 12px; }
.rl-main .lead { color: var(--ink-2); margin-bottom: 14px; }
.rl-cta-text { font-weight: 600; margin-bottom: 18px; }
.rl-main .actions { margin-bottom: 10px; }
.rl-main .hint { margin: 10px 0 0; }
.rl-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.rl-cats > span { font-size: .85rem; color: var(--ink-3); margin-right: 4px; }

.rl-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rl-feats li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rl-feats li:first-child { padding-top: 2px; }
.rl-fi { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--soft); color: color-mix(in srgb, var(--c) 75%, var(--ink)); }
.rl-fi .ic { width: 19px; height: 19px; }
.rl-feats h3 { font-size: .98rem; margin: 0 0 1px; }
.rl-feats p { margin: 0; font-size: .9rem; color: var(--ink-3); line-height: 1.45; }
.rl-fold { margin-top: 14px; }
.rl-fold > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--blue); list-style: none; padding: 6px 0; }
.rl-fold > summary::-webkit-details-marker { display: none; }
.rl-fold > summary .n { font-size: .78rem; padding: 0 7px; border-radius: 99px; background: var(--blue-soft); color: var(--blue-ink); }
.rl-fold .faq { margin-top: 6px; }

/* --- О проекте ------------------------------------------------------------------------- */
.ab { padding: 8px 0 56px; }
.ab-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px 56px; align-items: start; }
.ab .prose { color: var(--ink-2); font-size: 1.04rem; }

/* --- Как начать + программа заработка ---------------------------------------------------- */
.hs { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 52px 0; }
.hs-in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.hs-steps ol { list-style: none; counter-reset: st; margin: 24px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.hs-steps ol::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--steel-hi), var(--steel) 50%, var(--steel-lo)); }
.hs-steps li { counter-increment: st; position: relative; padding-right: 18px; }
.hs-steps li::before { content: counter(st); position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 14px;
  font: 800 1.05rem/1 var(--display); color: var(--on-fill); background: var(--blue); box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .14), 0 0 0 4px var(--surface); }
.hs-steps li:nth-child(2)::before { background: var(--yellow); color: #2a2000; }
.hs-steps li:nth-child(3)::before { background: var(--green); }
.hs-steps h3 { font-size: 1rem; margin-bottom: 4px; }
.hs-steps p { margin: 0; color: var(--ink-3); font-size: .92rem; }
.hs-amb { background: var(--surface-2); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.hs-amb h2 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 10px; }
.hs-amb p { color: var(--ink-2); font-size: .95rem; }
.hs-sub-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 10px; }
.hs-sub-row input { flex: 1 1 auto; min-width: 0; }
.hs-sub-row .btn { flex: none; }
.hs-sub .check { font-size: .85rem; color: var(--ink-3); }

/* --- Вопросы --------------------------------------------------------------------------- */
/* --- Партнёры: бегущая строка логотипов без рамок и плиток (логотипы с прозрачным фоном) -- */
.pt { padding: 52px 0 8px; }
.pt-run { margin-top: 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.pt-track { display: flex; width: max-content; animation: pt-scroll 90s linear infinite; }
.pt-run:hover .pt-track { animation-play-state: paused; }
.pt-list { list-style: none; margin: 0; padding: 0 56px 0 0; display: flex; align-items: center; gap: 56px; flex: none; }
.pt-list li { flex: none; }
.pt-list img { display: block; height: 84px; width: auto; }
.pt-list img[src$="rezhim-sport-klub-v2.png"] { height: 72px; }
@keyframes pt-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Тёмная тема: зелёный логотип чуть светлее, чтобы читался на тёмном фоне */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pt-list img[src$="akademiya-molodykh-liderov-v2.png"] { filter: brightness(1.45) saturate(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .pt-run { -webkit-mask-image: none; mask-image: none; }
  .pt-track { animation: none; width: auto; justify-content: center; }
  .pt-list { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: center; gap: 24px 40px; padding: 0 16px; }
  .pt-list:not(:first-child) { display: none; }
}
.fq { padding: 56px 0 64px; }
.fq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px 56px; align-items: start; }
.fq .faq summary { font-weight: 600; }

/* --- Тарифы ---------------------------------------------------------------------------- */
.pr-head { padding: 48px 0 8px; }
.pr-head h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.02; margin-bottom: 14px; }
.pr-head .lead { color: var(--ink-2); max-width: 64ch; margin: 0; }
.pr { padding: 28px 0 8px; }
.pr-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pr-plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.pr-plan.recommended { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 18px 40px -22px color-mix(in srgb, var(--blue) 60%, transparent); }
.pr-flag { position: absolute; top: -12px; left: 22px; padding: 3px 10px; border-radius: 99px; background: var(--blue); color: var(--on-fill); font-size: .78rem; font-weight: 600; }
.pr-name { display: flex; align-items: center; gap: 12px; }
.pr-name .disc { width: 34px; height: 34px; box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .12); }
.pr-name .disc::after { width: 9px; height: 9px; background: var(--steel); box-shadow: 0 0 0 2px var(--rubber); }
.pr-name h2, .pr-name h3 { font: 800 1.25rem/1.15 var(--display); letter-spacing: -.015em; margin: 0; }
.pr-aud { margin: 2px 0 0; font-size: .88rem; color: var(--ink-3); }
.pr-price { display: flex; align-items: baseline; gap: 8px; }
.pr-price strong { font: 800 2rem/1 var(--display); letter-spacing: -.03em; }
.pr-price span { color: var(--ink-3); font-size: .92rem; }
.pr-year { margin: -6px 0 0; font-size: .86rem; color: var(--ink-3); }
.pr-year b { color: var(--green-ink); }
.pr-limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 0; }
.pr-limits div { display: flex; flex-direction: column; }
.pr-limits strong { font: 800 1.2rem/1.1 var(--display); }
.pr-limits span { font-size: .78rem; color: var(--ink-3); line-height: 1.3; }
.pr-desc { margin: 0; font-size: .9rem; color: var(--ink-2); flex: 1 1 auto; }
.pr-plan .btn { width: 100%; }
.pr-online { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; margin-top: 16px;
  padding: 22px 24px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 24px; }
.pr-online .pr-price strong { font-size: 1.6rem; }
.pr-online p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.pr-online .pr-desc { margin-top: 8px; }

.pr-cmp { padding: 36px 0 8px; }
.pr-cmp h2, .pr-pay h2 { font: 800 clamp(1.3rem, 2.6vw, 1.7rem)/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 16px; }
.pr-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.pr-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; table-layout: fixed; }
.pr-table th:first-child { width: 48%; }
.pr-table th, .pr-table td { white-space: normal; }
.pr-table th, .pr-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.pr-table tr:last-child th, .pr-table tr:last-child td { border-bottom: 0; }
.pr-table thead th { font: 700 .92rem/1.2 var(--display); background: var(--surface-2); position: sticky; top: 0; }
.pr-table tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.pr-table .col-rec { background: color-mix(in srgb, var(--blue-soft) 45%, transparent); }
.pr-yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); }
.pr-yes .ic { width: 14px; height: 14px; }
.pr-no { color: var(--line-strong); }

.pr-pay { padding: 40px 0 64px; }
.pr-pay-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: start; }
.pr-steps { list-style: none; counter-reset: ps; margin: 0; padding: 0; display: grid; gap: 14px; }
.pr-steps li { counter-increment: ps; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.pr-steps li::before { content: counter(ps); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); font: 800 .95rem/1 var(--display); }
.pr-steps h3 { font-size: 1rem; margin: 0 0 2px; }
.pr-steps p { margin: 0; color: var(--ink-3); font-size: .92rem; }

/* --- Каталог и специалисты: фильтры не занимают пол-экрана ------------------------------------ */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; gap: 10px; }
.filters .field > label, .filters .field > .label { font-size: .82rem; color: var(--ink-3); font-weight: 500; }
.filters .btn-primary { min-height: 44px; }
.flt-more { flex: 1 0 100%; }
.flt-more > summary { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; color: var(--blue); font-weight: 600; font-size: .9rem; list-style: none; }
.flt-more > summary::-webkit-details-marker { display: none; }
.flt-more > summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.flt-more[open] > summary::after { content: "−"; }
.flt-more-in { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.flt-more-in .field { flex: 1 1 180px; }

.browse-filters {
  display: grid;
  gap: 10px;
  padding: clamp(14px, 2vw, 20px);
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.browse-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.browse-filters .field { min-width: 0; }
.browse-search .btn, .browse-event-filters .btn { min-height: 44px; }
.browse-filter-controls { display: flex; flex-wrap: wrap; align-items: start; gap: 4px 12px; }
.browse-filters .flt-more { flex: 1 1 auto; min-width: 0; }
.browse-filters .flt-more[open] { flex-basis: 100%; }
.browse-filters .flt-more > summary { min-height: 44px; }
.browse-filter-count { padding: 1px 7px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-ink); }
.browse-filter-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr));
  align-items: end;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.browse-filter-fields > .btn { min-height: 44px; }
.browse-filter-controls .browse-reset { min-height: 44px; }
.browse-event-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
.browse-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.browse-empty h2 { font-size: clamp(1.05rem, 2vw, 1.35rem); }
.browse-empty p { color: var(--ink-2); }
.browse-empty :is(h2, p) { margin: 0; }
.browse-empty-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--blue); background: var(--blue-soft); }
@media (max-width: 600px) {
  .browse-event-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browse-event-filters > .actions { grid-column: 1 / -1; }
  .browse-event-filters > .actions .btn-primary { flex: 1; }
}
body:not(.shell) .item-card { border-radius: 20px; display: flex; flex-direction: column; gap: 8px; padding: 20px; transition: border-color .2s, box-shadow .2s; }
body:not(.shell) .item-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 30px -18px rgba(24, 32, 47, .35); }
body:not(.shell) .item-card h3 { margin: 0; font-size: 1.05rem; }
body:not(.shell) .item-card h3 a { color: var(--ink); text-decoration: none; }
body:not(.shell) .item-card h3 a::after { content: ""; position: absolute; inset: 0; }
body:not(.shell) .item-card { position: relative; }
body:not(.shell) .item-card .btn, body:not(.shell) .item-card a:not(h3 a) { position: relative; z-index: 1; }
body:not(.shell) .item-card > p { margin: 0; }
body:not(.shell) .item-card > .btn { margin-top: auto; align-self: flex-start; }

/* вход и регистрация */
body:not(.shell) .page.narrow > .card.form, body:not(.shell) .page.narrow > form.card { border-radius: 22px; padding: 26px; }

/* --- Подвал ---------------------------------------------------------------------------- */
.footer { padding-top: 40px; }
.footer .brand { font-size: .95rem; }

/* --- Кабинеты: меню, разделы и кнопки на своих местах; меньше пустых крупных блоков ------------------- */
.shell h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 1.5rem; }
.shell .card { border-radius: 16px; }
/* карточка, в которой только заголовок и строка «пока пусто», — низкая и тихая */
.shell .card:has(> .card-head + p.muted:last-child), .shell .card:has(> .card-head + p.muted + .btn:last-child) { padding-top: 14px; padding-bottom: 14px; background: color-mix(in srgb, var(--surface) 70%, var(--bg)); box-shadow: none; }
.shell .card:has(> .card-head + p.muted:last-child) .card-head, .shell .card:has(> .card-head + p.muted + .btn:last-child) .card-head { margin-bottom: 4px; }
.shell .card:has(> .card-head + p.muted:last-child) h2, .shell .card:has(> .card-head + p.muted + .btn:last-child) h2 { font-size: 1rem; }
.shell .card > .card-head + p.muted { font-size: .9rem; margin-bottom: 0; }
.shell .card > .card-head + p.muted + .btn { margin-top: 10px; }
/* отметка дня: шкалы ниже и уже, поля в один ряд с кнопкой */
.shell .checkin .scale-pill > span { height: 38px; font-size: 1.15rem; border-color: var(--line); }
.shell .checkin .scale-row { max-width: 420px; }
.shell .checkin .scale legend { font-size: .85rem; color: var(--ink-3); }
.shell .checkin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; align-items: end; }
.shell .checkin-form > .scale { margin: 0; min-width: 0; }
.shell .checkin-form > .pair, .shell .checkin-form > .btn { grid-column: span 1; }
.shell .checkin-form > .btn { align-self: end; min-height: 46px; }
.shell .checkin-form > input[type=hidden] { display: none; }
/* «записаться ещё» — не огромная синяя плитка, а аккуратная кнопка */
.next-bk .nb-add { width: 48px; background: var(--blue-soft); color: var(--blue); border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent); font-size: 1.4rem; }
.next-bk .nb-add:hover { background: var(--blue); color: var(--on-fill); }
@media (max-width: 760px) {
  .shell .checkin-form { grid-template-columns: minmax(0, 1fr); }
  .shell .checkin .scale-row { max-width: none; }
}

/* --- Адаптив --------------------------------------------------------------------------- */
@media (max-width: 1240px) and (min-width: 1001px) { .rk-stage { --sc: .66; margin-right: -16px; } }
@media (max-width: 1000px) {
  .rk-hero-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "legend"; padding-top: 28px; }
  .rk-copy { padding-bottom: 0; }
  .rk-copy h1 { max-width: none; }
  .rk-stage { height: 300px; margin: -6px 0 0; --sc: .78; }
  .rl-panel { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; gap: 22px; }
  .rl-panel::before { left: 24px; }
  .ab-in, .fq-in, .hs-in, .pr-pay-in { grid-template-columns: minmax(0, 1fr); }
  .pr-plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .pr-online { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 640px) {
  .rk-copy h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .rk-copy .lead { font-size: 1rem; }
  .rk-copy .actions .btn { flex: 1 1 100%; }
  .rk-stage { height: 220px; --sc: .5; }
  .rk-legend { grid-template-columns: minmax(0, 1fr); }
  .rk-legend a { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .rk-legend a:last-child { border-bottom: 0; }
  .rl { padding: 44px 0 40px; }
  .rl-tabs { gap: 4px; padding: 4px; border-radius: 15px; }
  .rl-tab { flex-direction: column; gap: 4px; min-height: 64px; font-size: .82rem; padding: 6px; }
  .rl-panel { padding: 24px 18px; border-radius: 22px; }
  .rl-panel::before { left: 18px; }
  .rl-main .actions .btn { flex: 1 1 100%; }
  .hs { padding: 40px 0; }
  .hs-steps ol { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hs-steps ol::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 4px; height: auto; }
  .hs-steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; padding: 0; }
  .hs-steps li::before { grid-row: span 2; margin: 0; }
  .hs-sub-row { flex-direction: column; }
  .fq { padding: 40px 0 48px; }
  .pt { padding: 40px 0 4px; }
  .pt-list { gap: 40px; padding-right: 40px; }
  .pt-list img { height: 64px; }
  .pt-list img[src$="rezhim-sport-klub-v2.png"] { height: 56px; }
  .pt-track { animation-duration: 64s; }
  .pr-head { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .rk-plate { transition: none; }
  .rk-stage.is-loading .rk-plate { --off: 0px; opacity: 1; }
}

/* --- Вход и регистрация: только форма, по центру ---------------------------------------------- */
.au { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-inline: auto; }
.au-form { grid-column: 1; grid-row: 1; }
.au-form h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
.au-form .card.form, .au-form form.card { border-radius: 22px; padding: 24px; }
.au-login { max-width: 500px; }
.au-login-card { padding: clamp(20px, 5vw, 36px); border-radius: var(--r-lg); }
.au-login-card h1 { margin-bottom: 22px; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.au-login-card .au-forgot { justify-self: end; padding-block: 7px; margin-top: -8px; }
.au-password { position: relative; }
.au-password:has(button:not([hidden])) input { padding-inline-end: 98px; }
.au-password button { position: absolute; inset: auto 4px 2px auto; min-height: 40px; }
.au-password button[hidden] { display: none; }
.au-register-link { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.au-role { min-inline-size: 0; border: 0; margin: 0; padding: 0; }
.au-role legend { padding: 0; margin-bottom: 8px; }
.au-role .hint { margin: 10px 0 0; }
.au-register form > .btn, .support-page form > .btn { min-height: 46px; }
@media (min-width: 601px) { .support-page form > .btn { justify-self: start; } }
.au-art { grid-column: 1; grid-row: 1; position: sticky; top: 84px; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); padding: 0 0 22px; }
.au-art .rk-stage { height: 300px; margin: 0; --sc: .6; }
.au-art p { margin: 0 26px; color: var(--ink-2); font: 700 1.05rem/1.35 var(--display); letter-spacing: -.01em; max-width: 30ch; }
.role-pick label { border-radius: 14px; font-weight: 600; }
.role-pick label::after { content: ""; order: -1; width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .14); }
.role-pick label:has(input[value="participant"])::after { background: var(--blue); }
.role-pick label:has(input[value="expert"])::after { background: var(--yellow); }
.role-pick label:has(input[value="organization"])::after { background: var(--green); }
body:not(.shell) .spec-card { border-radius: 20px; }
.role-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.role-pick label { position: relative; justify-content: flex-start; }
.role-pick input { position: absolute; opacity: 0; pointer-events: none; }
.role-pick label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.role-pick label:has(input:checked) { background: var(--blue-soft); }
@media (max-width: 520px) { .role-pick { grid-template-columns: minmax(0, 1fr); } }
.shell .grid-2 > .card, .shell .grid-2 > section.card { align-self: start; }
/* дни без отметки в таблице самочувствия — обычная строка таблицы, а не блок «пусто» (общий класс .empty давал рамку и отступы) */
.shell .ci-row.empty { padding: 7px 12px; text-align: left; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink-3); }
/* тарифы на телефоне — листаются вбок, как раньше, а не тянутся на три экрана */
@media (max-width: 640px) {
  .pr-plans { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%; max-width: none; overflow-x: auto;
    scroll-snap-type: x mandatory; margin: 0 -16px; padding: 14px 16px 8px; scroll-padding: 0 16px; overscroll-behavior-x: contain; }
  .pr-plan { scroll-snap-align: start; }
}

/* --- Гиря роли между текстом и возможностями -------------------------------------------------- */
.rl-panels { position: relative; }
.rl-art { position: absolute; z-index: 2; left: 50%; top: calc(50% - 160px); width: 260px; height: 300px; margin-left: -130px; pointer-events: none; }
.rl-art canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .5s; }
.rl-art.is-ready canvas { opacity: 1; }
@media (min-width: 1001px) {
  .rl-panel { grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr); column-gap: 28px; }
  .rl-main { grid-column: 1; }
  .rl-side { grid-column: 3; }
}
@media (max-width: 1000px) {
  .rl-art { left: auto; right: 14px; top: -34px; width: 150px; height: 170px; margin: 0; }
  .rl-main { padding-right: 120px; }
}
@media (max-width: 640px) {
  .rl-art { right: 6px; top: -28px; width: 112px; height: 128px; }
  .rl-main { padding-right: 0; }
  .rl-who { padding-right: 96px; }
}

/* --- Подсказки вокруг штанги ------------------------------------------------------------------ */
.rk-chips { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.rk-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(24, 32, 47, .06), 0 14px 34px -14px rgba(24, 32, 47, .35);
  font-size: .78rem; line-height: 1.3; color: var(--ink-3); white-space: nowrap;
  transform: translate(calc(var(--px, 0) * var(--d) * 1px), calc(var(--py, 0) * var(--d) * 1px)); }
.rk-chip b { display: block; color: var(--ink); font-size: .86rem; font-weight: 700; }
.rk-ci { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex: none; }
.rk-ci .ic { width: 17px; height: 17px; }
.rk-ci.blue { background: var(--blue-soft); color: var(--blue); }
.rk-ci.green { background: var(--green-soft); color: var(--green); }
.rk-ci.yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.rk-chip.c1 { left: 4%; top: 9%; --d: 14; }
.rk-chip.c2 { right: 2%; top: 4%; --d: -10; }
.rk-chip.c3 { right: 10%; bottom: 6%; --d: 18; }
@media (max-width: 1240px) { .rk-chip.c2 { display: none; } }
@media (max-width: 640px) { .rk-chip { font-size: .7rem; padding: 6px 10px 6px 6px; } .rk-chip b { font-size: .76rem; } .rk-ci { width: 26px; height: 26px; }
  .rk-chip.c1 { left: 0; top: 2%; } .rk-chip.c3 { right: 0; bottom: 2%; } }

/* --- Подвал: тёмный, как резиновое покрытие зала --------------------------------------------- */
.footer.footer-dark { --ft: #151920; position: relative; overflow: hidden; background: var(--ft); border-top: 0; color: #aab2c0; padding: 56px 0 30px; }
.footer-dark .brand, .footer-dark .brand:hover { color: #fff; font-size: 1.05rem; }
.footer-dark .muted { color: #8d96a6; max-width: 40ch; margin-top: 10px; }
.footer-dark .footer-h { font: 700 .95rem/1.2 var(--display); color: #fff; margin: 0 0 12px; letter-spacing: -.01em; }
.footer-dark a { color: #c9d0db; text-decoration: none; }
.footer-dark a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-dark ul { gap: 8px; }
.footer-dark .legal { color: #737c8c; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 18px; margin-top: 36px; font-size: .82rem; }
@media (min-width: 900px) { .footer-dark .footer-in { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; } }
/* --- Тарифы: стопка блинов на стойке --------------------------------------------------------- */
.pr-head-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: center; }
.pk-stage { position: relative; height: 230px; perspective: 900px; }
.pk-scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-24deg); }
.pk-scene > * { position: absolute; left: 50%; top: 58%; transform-style: preserve-3d; }
.pk-shadow { width: 250px; height: 250px; margin: -125px 0 0 -125px; border-radius: 50%; transform: translateY(2px) rotateX(90deg);
  background: radial-gradient(closest-side, rgba(24, 32, 47, .35), transparent); }
.pk-bar { width: 0; height: 0; transform: rotateY(var(--pk, 0deg)) rotateZ(-90deg); animation: pk-spin 24s linear infinite; }
.pk-bar > * { position: absolute; transform-style: preserve-3d; }
.pk-peg { width: 120px; height: 18px; left: -2px; top: -9px; border-radius: 9px; background: linear-gradient(180deg, var(--steel-hi), var(--steel) 50%, var(--steel-lo)); }
.pk-peg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transform: rotateX(90deg); background: linear-gradient(180deg, var(--steel-lo), var(--steel) 50%, var(--steel-lo)); }
.pk-bar .rk-plate { --d: 190px; }
.pk-bar .rk-blue { --x: 0px; } .pk-bar .rk-yellow { --x: 32px; } .pk-bar .rk-green { --x: 56px; }
@keyframes pk-spin { to { transform: rotateY(360deg) rotateZ(-90deg); } }
@media (max-width: 860px) { .pr-head-in { grid-template-columns: minmax(0, 1fr); } .pk-stage { display: none; } }
@media (prefers-reduced-motion: reduce) { .pk-bar { animation: none; transform: rotateY(-30deg) rotateZ(-90deg); } }
/* цифры и втулка — часть самого слоя блина: с обратной стороны их не видно */
.rk-plate > .rk-disc { transform-style: flat; }
/* цифры только на открытых сторонах блинов — между блинами их не видно, как в жизни */
.rk-sleeve .rk-yellow b, .rk-r .rk-blue .rk-back b, .rk-r .rk-green .rk-face b, .rk-l .rk-blue .rk-face b, .rk-l .rk-green .rk-back b { display: none; }
.pk-bar .rk-disc b { display: none; }
.pk-bar .rk-green .rk-back b { display: block; }

/* --- Карточки тренировок: длительность и уровень видно сразу ------------------------------------- */
.wk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wk-dur { font-size: .85rem; color: var(--ink-3); }
.wk-dur b { font: 800 1.6rem/1 var(--display); color: var(--ink); letter-spacing: -.03em; margin-right: 2px; }
.wk-lvl { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.wk-bar { position: relative; display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 6px; }
.wk-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: var(--steel); }
.wk-bar i { position: relative; width: 5px; height: 18px; border-radius: 2px; background: var(--line); }
.wk-beginner .wk-bar i:nth-child(1) { background: var(--green); }
.wk-intermediate .wk-bar i:nth-child(-n+2) { background: var(--yellow); }
.wk-advanced .wk-bar i { background: var(--blue); }
.wk-card h3 { margin-top: 4px !important; }
.wk-card:has(.wk-card-link) { position: relative; }
.wk-card-link { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wk-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.wk-card-link .ic { flex: none; color: var(--blue); }
.wk-card:has(.wk-card-link:hover), .wk-card:has(.wk-card-link:focus-visible) { border-color: var(--blue); }
.wk-card .meta { font-size: .82rem; }
.wk-foot { margin: auto 0 0 !important; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 3px; font-size: .8rem; color: var(--ink-3); }
.wk-foot .ic { width: 14px; height: 14px; vertical-align: -2px; }
body:not(.shell) .item-card .badge.plain { align-self: flex-start; }
body:not(.shell) .item-card > p.small { font-size: .82rem; color: var(--ink-3); }

/* =====================================================================================================
   Кабинеты: у каждого свой «блин».
   Участник — синий, тренер/эксперт — жёлтый, администрирование — тёмное меню, как резиновое покрытие.
   Меню и разделы те же; меняются только отметки, по которым сразу видно, где ты находишься.
   ===================================================================================================== */
body.shell-client { --area: var(--blue); --area-soft: var(--blue-soft); --area-ink: var(--blue-ink); }
body.shell-studio { --area: var(--yellow); --area-soft: var(--yellow-soft); --area-ink: var(--yellow-ink); }
body.shell-admin { --area: #c9d0db; --area-soft: rgba(255, 255, 255, .1); --area-ink: #fff; }

.shell .side::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--area); }
.shell .sn.on, .shell .sn-sub a.on { position: relative; background: var(--area-soft); color: var(--area-ink); }
.shell .sn.on .ic, .shell .sn.on-group .ic:not(.sn-chev) { color: var(--area-ink); }
.shell .sn.on::before, .shell .sn-sub a.on::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 20px; margin-top: -10px; border-radius: 0 4px 4px 0; background: var(--area); }
.shell .sn-sub a.on::before { left: -23px; height: 16px; margin-top: -8px; }
.shell .sn-head { text-transform: none; letter-spacing: 0; font-size: .78rem; font-weight: 600; margin-top: 16px; }
.shell .qa-title { text-transform: none; letter-spacing: -.01em; font: 700 1rem/1.2 var(--display); color: var(--ink); margin-bottom: 12px; }
.shell-studio .ws-card > .ava:not(.ava-img) { background: var(--yellow); color: #2a2000; }
.shell-client .ava-user { background: var(--blue); color: var(--on-fill); }

/* администрирование: тёмное меню */
.shell-admin .side { --line-soft: #262c37; background: #151920; border-right-color: #262c37; color: #c3cad6; }
.shell-admin .side-brand, .shell-admin .side-brand:hover { color: #fff; }
.shell-admin .sn, .shell-admin .sn-sub a { color: #b5bdca; }
.shell-admin .sn .ic, .shell-admin .sn-chev { color: #7f8899; }
.shell-admin .sn:hover, .shell-admin .sn-sub a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.shell-admin .sn.on-group { color: #fff; }
.shell-admin .ws-card { background: rgba(255, 255, 255, .05); border-color: #262c37; color: #fff; }
.shell-admin .ws-card:hover { border-color: #3a4250; color: #fff; }
.shell-admin .ws-t span, .shell-admin .me-t span { color: #7f8899; }
.shell-admin .me-t strong, .shell-admin .me-link { color: #fff; }
.shell-admin .side .icon-btn { color: #b5bdca; }
.shell-admin .side .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.shell-admin .ava-admin { background: var(--plate-yellow); color: #151920; }
.shell-admin .side .nav-count { box-shadow: 0 0 0 2px #151920; }
@media (max-width: 1080px) {
  .shell-admin .appbar { background: #151920; border-bottom-color: #262c37; }
  .shell-admin .appbar .appbar-t, .shell-admin .appbar .icon-btn { color: #fff; }
}

/* очереди на обзорах: ноль — тихо, есть дела — заметно */
.shell-admin .tile:not(.hot) .tile-v { color: var(--ink-3); }
.shell-admin .tile:not(.hot) .tile-ic { filter: saturate(.25); opacity: .75; }
.shell-admin .tile.hot { border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }

/* «Платформа в цифрах» — одно табло с перегородками вместо россыпи карточек */
.shell .kpi-grid { gap: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.shell .kpi-c { border: 0; border-radius: 0; background: transparent; box-shadow: 1px 1px 0 var(--line-soft); padding: 14px 16px; }
.shell a.kpi-c:hover { background: var(--surface-2); }
@media (max-width: 760px) { .shell .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shell .kpi-c { padding: 12px; } }

/* --- Меню сайта на телефоне: экран с крупными пунктами, кнопки входа внизу ------------------------- */
@media (max-width: 860px) {
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .topnav { position: fixed; top: 60px; bottom: 0; left: 0; right: 0; z-index: 40; gap: 0; overflow-y: auto;
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); background: var(--surface); border-bottom: 0; }
  .topnav > .topnav-challenges { border: 0; background: transparent; box-shadow: none; justify-content: flex-start; }
  .topnav > a:is(:not(.btn), .topnav-challenges), .topnav button.linklike { display: flex; align-items: center; gap: 12px; padding: 16px 2px; border-radius: 0; border-bottom: 1px solid var(--line);
    font: 800 1.35rem/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); }
  .topnav > a:is(:not(.btn), .topnav-challenges):hover { background: transparent; color: var(--blue); }
  .topnav > a[aria-current="page"] { background: transparent; color: var(--blue); }
  .topnav > a[href="/#participants"]::before, .topnav > a[href="/#experts"]::before, .topnav > a[href="/#organizations"]::before {
    content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .14); }
  .topnav > a[href="/#participants"]::before { background: var(--blue); }
  .topnav > a[href="/#experts"]::before { background: var(--yellow); }
  .topnav > a[href="/#organizations"]::before { background: var(--green); }
  .topnav > a[href="/login"] { margin-top: auto; justify-content: center; border: 1px solid var(--line-strong); border-radius: 14px; font: 600 1rem/1.2 var(--font); padding: 15px; }
  .topnav > .btn:not(.topnav-challenges) { margin-top: 10px; min-height: 52px; font-size: 1rem; border-radius: 14px; }
  .topnav form.inline { margin-top: auto; }
}

/* --- Контент сайта в админке: блоки вместо одной простыни из 30 полей ------------------------------ */
.cms-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 16px; }
.cms-jump a { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 500; }
.cms-jump a:hover { border-color: var(--blue); color: var(--blue-ink); }
.cms-groups { display: grid; gap: 8px; margin-bottom: 8px; }
.cms-group { border: 1px solid var(--line-soft, var(--line)); border-radius: 14px; background: var(--surface-2); }
.cms-group > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 13px 44px 13px 16px; cursor: pointer; list-style: none; position: relative; }
.cms-group > summary::-webkit-details-marker { display: none; }
.cms-group > summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.3rem; color: var(--blue); }
.cms-group[open] > summary::after { content: "−"; }
.cms-group[open] { background: var(--surface); }
.cms-t { font: 700 1rem/1.25 var(--display); letter-spacing: -.01em; }
.cms-n { font-size: .8rem; color: var(--ink-3); }
.cms-note { flex-basis: 100%; font-size: .82rem; color: var(--ink-3); }
.cms-body { display: grid; gap: 14px; padding: 4px 16px 18px; }

/* шапка сайта на телефоне: кнопка «Меню» становится «Закрыть», у «Тарифов» стальной диск */
@media (max-width: 860px) {
  .menu-toggle[aria-expanded="true"] { font-size: 0; }
  .menu-toggle[aria-expanded="true"]::after { content: "Закрыть"; font-size: .9rem; }
  .topnav > a[href="/pricing"]::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--steel); box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .14); }
}

/* обзор администратора: когда очереди пусты */
.adm-clear { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-ink); font-size: .88rem; font-weight: 600; }
.adm-clear .ic { width: 16px; height: 16px; }
.topbar .brand span { white-space: nowrap; }
@media (max-width: 400px) { .topbar .brand { font-size: .9rem; gap: 8px; } .topbar .brand-mark { width: 26px; height: 26px; } }
.nw-head h2 { text-transform: none; letter-spacing: -.01em; font: 700 1rem/1.2 var(--display); color: var(--ink); }

/* --- «Ещё» в кабинете ученика: разделы по группам, с иконками ------------------------------------ */
.cm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.cm-head h1 { margin: 0; }
.cm-head p { margin: 2px 0 0; }
.cm-ava { width: 52px; height: 52px; border-radius: 16px; font-size: 1rem; }
.cm-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; align-items: start; }
.cm-group h2 { font: 700 1rem/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 10px; }
.cm-list { border-radius: 16px; border-color: var(--line-soft, var(--line)); }
.cm-list a { justify-content: flex-start; min-height: 58px; }
.cm-list a > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.cm-list a > span:last-child { margin-left: auto; }
.cm-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; flex: none; background: var(--area-soft, var(--blue-soft)); color: var(--area-ink, var(--blue)); }
.cm-ic .ic { width: 19px; height: 19px; }
.cm-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cm-foot form { margin: 0; }
.cm-foot .btn .ic { margin-right: 4px; }
@media (min-width: 761px) { .shell .menu-legal { display: none; } }
@media (max-width: 760px) {
  .cm-groups { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cm-foot .btn, .cm-foot form { flex: 1 1 100%; } .cm-foot form .btn { width: 100%; }
}

/* --- Раскрывающиеся блоки: вместо системного треугольника — аккуратная стрелка, которая поворачивается -- */
details:not(.fold, .add-book, .sn-group, .cms-group, .rl-fold, .flt-more, .move-box, .builder-item, .faq details, .lp-fold, .hq-more) > summary:not(.btn, .sn) {
  list-style: none; cursor: pointer; }
details:not(.fold, .add-book, .sn-group, .cms-group, .rl-fold, .flt-more, .move-box, .builder-item, .faq details, .lp-fold, .hq-more) > summary:not(.btn, .sn)::-webkit-details-marker { display: none; }
details:not(.fold, .add-book, .sn-group, .cms-group, .rl-fold, .flt-more, .move-box, .builder-item, .faq details, .lp-fold, .hq-more) > summary:not(.btn, .sn)::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 2px 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .18s ease; opacity: .6; vertical-align: middle; }
details:not(.fold, .add-book, .sn-group, .cms-group, .rl-fold, .flt-more, .move-box, .builder-item, .faq details, .lp-fold, .hq-more)[open] > summary:not(.btn, .sn)::before { transform: rotate(45deg); margin-bottom: 4px; }

/* --- Подписи без капса: обычный регистр читается легче и спокойнее ---------------------------------- */
.time-group h3, .book-label, .audit-day, .lb-label, .ws-facts dt, .dir-group-t, .dp-g, .ci-head, .shell th, .cert-meta dt {
  text-transform: none; letter-spacing: 0; }
.book-label, .time-group h3 { font: 700 .95rem/1.2 var(--display); color: var(--ink); letter-spacing: -.01em; }
.shell th { font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.ci-head, .dir-group-t, .dp-g { font-size: .8rem; font-weight: 600; }
/* карусель тарифов в кабинете: поля контейнера здесь 14 px, а не 16 — иначе страница уезжает вбок на 2 px */
@media (max-width: 760px) { .shell .plans { margin: 0 -14px; padding-left: 14px; padding-right: 14px; scroll-padding: 0 14px; } }

/* --- Таблицы на телефоне: первая колонка — заголовок карточки, остальное — короткой строкой под ним ----
   Раньше каждая ячейка шла отдельной строкой «подпись — значение», и список из 20 упражнений тянулся на 10 экранов. */
@media (max-width: 700px) {
  table.stack tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 14px; border-radius: 14px; }
  table.stack td { display: block; width: auto; padding: 0; font-size: .86rem; color: var(--ink-2); }
  table.stack td::before { content: attr(data-label) ": "; font-size: inherit; }
  table.stack td:first-child { flex: 1 0 100%; font-size: 1rem; font-weight: 600; color: var(--ink); }
  table.stack td:first-child::before { content: none; }
  table.stack td[data-empty] { display: none; }
  table.stack td:first-child .small { font-weight: 400; }
  table.stack td[colspan] { flex: 1 0 100%; }
  table.stack td:empty { display: none; }
}
/* 1.21.4: кнопка «Записаться» рядом с ближайшей записью — с подписью */
.next-bk .nb-add { width: auto; padding: 0 16px; display: flex; align-items: center; gap: 6px; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.next-bk .nb-add > span[aria-hidden] { font-size: 1.3rem; line-height: 1; }
@media (max-width: 480px) { .next-bk .nb-add { flex-direction: column; justify-content: center; gap: 2px; padding: 0 10px; } .next-bk .nb-add-t { font-size: .72rem; } }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }

/* =======================================================================================
   1.23 — доступность и адаптивность (аудит интерфейса 10.11.2026).
   Светлая тема на компьютере не меняется: правки касаются тёмной темы, узких экранов,
   устройств с касанием и увеличенного текста.
   ======================================================================================= */

/* мелкий текст в тёмном подвале: было 4,19:1, стало 5,2:1 */
.footer-dark .legal { color: #838c9c; }
.footer-dark .legal a { text-decoration: underline; text-underline-offset: .15em; }
/* инициалы в аватаре: светлый край градиента темнее (белый текст — 4,75:1 вместо 3,45:1) */
.ava { background: linear-gradient(140deg, var(--plate-blue), #3f69ea); }

/* шапка: на 320 px название сжимается, а не выталкивает страницу; при увеличенном тексте пункты переносятся */
.brand { min-width: 0; }
.brand > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 359px) {
  .topbar-in { gap: 8px; }
  .brand { font-size: .86rem; gap: 8px; }
  .brand-mark { width: 26px; height: 26px; }
}
@media (min-width: 861px) {
  .topnav { flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
  .topnav > .topnav-challenges { border-color: var(--blue); color: var(--blue-ink); white-space: nowrap; }
  .topnav > .topnav-challenges:hover { background: var(--blue-soft); }
}

/* переключатель темы: виден только там, где устройство просит тёмную тему */
.theme-toggle, .theme-li { display: none; }
.theme-toggle { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left;
  text-decoration: underline; text-underline-offset: 2px; }
button.sn.theme-toggle { width: 100%; padding: 0 10px; text-decoration: none; }
@media (prefers-color-scheme: dark) {
  .theme-toggle { display: inline; }
  .theme-li { display: list-item; }
  button.sn.theme-toggle { display: flex; }
}

/* устройства с касанием: цель не меньше 44 px. Мелким элементам увеличена область нажатия, вид прежний */
@media (pointer: coarse) {
  .btn:not(.btn-sm), .shell .btn:not(.btn-sm), .chip:not(.chip-sm), .tabs-bar [role=tab] { min-height: 44px; }
  .btn-sm, .chip-sm, .card-head > a, .nw-head > a, .crumbs a, .hint-more > summary, .flt-more > summary { position: relative; }
  .btn-sm:not(.menu-toggle)::after, .card-head > a::after, .nw-head > a::after, .crumbs a::after,
  .hint-more > summary::after { content: ""; position: absolute; inset: -12px -4px; }
  .btn-sm:not(.menu-toggle)::after { inset: -4px 0; }
  .chip-sm::after { content: ""; position: absolute; inset: -7px 0; }
  .icon-btn { width: 44px; height: 44px; }
  .cat-list .icon-btn { width: 44px; height: 44px; }
  .brand, .appbar-t, .side-brand { min-height: 44px; }
  .footer ul { gap: 0; }
  .footer ul a, .footer .theme-toggle, .app-foot a { display: inline-block; padding: 12px 0; }
  .subtabs-in > a, .segmented a { display: inline-flex; align-items: center; min-height: 44px; }
  .rl-fold > summary { min-height: 44px; }
  .actions > a:not(.btn) { position: relative; }
  .actions > a:not(.btn)::after { content: ""; position: absolute; inset: -10px -4px; }
}


/* Профиль: список уведомлений свёрнут в одну строку, в развёрнутом виде — в две колонки на широком экране */
.ntf-pick { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ntf-pick > summary { cursor: pointer; font-weight: 600; }
.ntf-pick[open] > summary { margin-bottom: 8px; }
@media (min-width: 701px) { .ntf-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; } }
/* «С чего начать» на телефоне: текст шага во всю ширину, кнопка — строкой ниже (раньше текст сжимался в узкий столбик) */
@media (max-width: 560px) {
  .fs-list li:not(.done) .grow { flex: 1 1 calc(100% - 40px); }
  .fs-list li:not(.done) .btn { margin-left: 40px; }
}

/* Региональные челленджи: те же карточки, акценты и отступы, что на главной ЕФБ. */
.challenge-home { margin-block: 44px; }
.challenge-callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: clamp(20px, 4vw, 38px); }
.challenge-callout p { max-width: 54ch; }
.challenge-callout img { width: min(27vw, 300px); max-height: 200px; object-fit: cover; border-radius: var(--r-md); }
.challenge-mark { padding: 20px; color: var(--accent, #1f4fd8); }
.challenge-mark .ic { width: clamp(40px, 8vw, 94px); height: auto; }
.challenge-hero {
  --challenge-title-scale: 1;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  min-height: clamp(400px, 44vw, 540px);
  padding: clamp(26px, 6vw, 82px);
  border-radius: var(--r-lg);
  color: #fff;
  background: linear-gradient(120deg, #101633 10%, #192d72 70%, #254bd1);
}
.challenge-hero[data-title-size="small"] { --challenge-title-scale: .88; }
.challenge-hero[data-title-size="compact"] { --challenge-title-scale: .76; }
.challenge-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: repeating-radial-gradient(ellipse at 82% 48%, transparent 0 36px, #8ca9ff40 37px 38px, transparent 39px 55px);
  transform: skewX(-11deg) scale(1.15);
  mask-image: linear-gradient(98deg, transparent 34%, #000 84%);
}
.challenge-hero-cover {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.challenge-hero:has(.challenge-hero-cover:not([hidden]))::before { display: none; }
.challenge-hero:has(.challenge-hero-cover:not([hidden]))::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #101633 22%, #101633ea 45%, #10163349 73%, #1016330f);
}
.challenge-hero-content { display: grid; gap: 18px; max-width: 720px; }
.challenge-hero-content:has(> .challenge-title) { container-type: inline-size; }
.challenge-title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: calc(clamp(1.125rem, 5.3vw, 4.25rem) * var(--challenge-title-scale));
  font-size: calc(clamp(1.125rem, 10.2cqi, 4.25rem) * var(--challenge-title-scale));
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.challenge-hero p { margin: 0; }
.challenge-hero .lead { color: #e5ebff; max-width: 36ch; font-size: clamp(1.02rem, 2vw, 1.3rem); }
.challenge-hero-kicker { color: #d2e0ff; font-weight: 700; }
.challenge-hero-kicker span { padding-inline: 4px; color: #efbf50; }
.challenge-hero-dates { display: grid; gap: 3px; padding-inline-start: 13px; border-inline-start: 2px solid #efbf50; }
.challenge-hero-dates span { color: #d2e0ff; }
.challenge-hero .btn-primary { background: #efbf50; border-color: #efbf50; color: #181f39; min-height: 48px; padding-inline: 24px; }
.challenge-hero .btn-primary:hover { background: #ffd579; border-color: #ffd579; }
.challenge-hero .btn-primary:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.challenge-rules, .challenge-faq { overflow-wrap: anywhere; }
.challenge-rules > ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-inline-start: 2rem;
}
.challenge-rules > ol > li {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--blue);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.challenge-rules > ol > li::marker { color: var(--blue-ink); font-weight: 700; }
.challenge-rules > ol > li > :last-child, .challenge-faq details > div > :last-child { margin-bottom: 0; }
.challenge-edit-list legend { padding-inline: 7px; font-weight: 700; }
.challenge-edit-list [data-challenge-rows] {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding-inline-start: 1.5rem;
}
.challenge-edit-list .challenge-faq-fields { list-style: none; padding: 0; }
.challenge-edit-list li::marker { color: var(--blue-ink); font-weight: 700; }
.challenge-edit-row {
  padding: 12px;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.challenge-edit-row > * + * { margin-block-start: 8px; }
.challenge-edit-list [hidden] { display: none; }
.challenge-season-links { margin-block: 0 6px; }
.challenge-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr)); gap: 14px; }
.challenge-photo { width: 72px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.challenge-logo { width: 180px; max-height: 84px; max-width: 100%; object-fit: contain; object-position: left; }
.challenge-form select, .challenge-form input, .challenge-form textarea { width: 100%; }
.challenge-form input:is([type="checkbox"], [type="radio"]) { width: auto; }
.challenge-form .field { min-width: 0; }
.challenge-cards .card { min-width: 0; }
.challenge-table { overflow-x: auto; }
.challenge-registration { max-width: 940px; }
.challenge-signup { margin-block-start: 6px; max-width: 650px; gap: 20px; }
.challenge-signup > .btn { justify-self: start; }
.challenge-curator-picker { gap: 12px; }
.challenge-curator-picker [hidden], .challenge-cover-editor [hidden] { display: none; }
.challenge-invited-curator, .challenge-selected-curator {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}
.challenge-invited-curator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.challenge-invited-curator .stack { gap: 6px; }
.challenge-curator-summary { display: flex; align-items: center; gap: 10px; min-width: 0; }
.challenge-curator-avatar {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  font-weight: 700;
  color: var(--accent);
  background: var(--blue-soft);
}
.challenge-curator-name { display: grid; gap: 2px; overflow-wrap: anywhere; }
.challenge-curator-name span { color: var(--muted); font-size: .875rem; }
.challenge-curator-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 0 20px; padding: 0; list-style: none; }
.challenge-curator-directory li { display: grid; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.challenge-shared-curator { margin-block-start: 14px; }
.challenge-cover-editor { min-width: 0; }
.challenge-cover-editor legend { padding: 0 7px; font-weight: 700; }
.challenge-cover-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 17px 18px;
  border: 1px dashed var(--blue);
  border-radius: var(--r-md);
  background: var(--blue-soft);
}
.challenge-cover-drop:hover, .challenge-cover-drop.is-dragging {
  background: color-mix(in srgb, var(--blue-soft), var(--blue) 11%);
  border-style: solid;
}
.challenge-cover-drop:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.challenge-cover-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.challenge-cover-upload-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--blue);
}
.challenge-cover-drop-copy, .challenge-cover-file > span { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.challenge-cover-drop-copy strong { color: var(--blue); }
.challenge-cover-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
@media (pointer: coarse) { .challenge-cover-drag-hint { display: none; } }
.challenge-cover-previews { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); align-items: start; gap: 12px; }
.challenge-cover-preview { display: grid; gap: 6px; margin: 0; min-width: 0; }
.challenge-cover-preview .challenge-hero { min-height: 0; padding: 7%; }
.challenge-cover-preview .challenge-hero-content { gap: 6px; }
.challenge-cover-preview .challenge-title { font-size: calc(10.2cqi * var(--challenge-title-scale)); }
.challenge-cover-preview-desktop .challenge-hero { aspect-ratio: 2.25; }
.challenge-cover-preview-desktop .challenge-hero-content { max-width: 73%; }
.challenge-cover-preview-desktop .challenge-title { font-size: calc(9.44cqi * var(--challenge-title-scale)); }
.challenge-cover-preview-mobile .challenge-hero { aspect-ratio: .84; align-items: end; }
.challenge-cover-preview-mobile .challenge-hero-cover { width: 100%; object-position: 65% center; }
.challenge-cover-preview-mobile .challenge-hero:has(.challenge-hero-cover:not([hidden]))::after {
  background: linear-gradient(0deg, #101633 12%, #101633df 44%, #10163333 78%, #1016330d);
}
.pt-run:focus-within .pt-track { animation-play-state: paused; }
.pt-list img { max-width: min(42vw, 250px); object-fit: contain; }
@media (max-width: 620px) {
  .challenge-callout { grid-template-columns: 1fr; }
  .challenge-callout img { width: 100%; }
  section.challenge-hero { align-items: end; }
  section.challenge-hero .challenge-hero-cover { width: 100%; object-position: 65% center; }
  section.challenge-hero:has(.challenge-hero-cover:not([hidden])) { min-height: 490px; }
  section.challenge-hero:has(.challenge-hero-cover:not([hidden]))::after { background: linear-gradient(0deg, #101633 12%, #101633df 44%, #10163333 78%, #1016330d); }
  .challenge-signup > .btn { width: 100%; }
  .challenge-cover-previews { grid-template-columns: minmax(0, 1fr); }
  .challenge-cover-preview-mobile { max-width: 170px; }
  .challenge-cover-preview .challenge-hero { min-height: 0; }
  .challenge-mark { display: none; }
}

.challenge-expert-search { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-block: 16px; }
.challenge-expert-search .field { flex: 1 1 200px; min-width: 0; }
.challenge-expert-options { min-width: 0; }
.challenge-expert-options option { padding: 7px 5px; }

/* Обложка каталога оставляет поиск в пределах первого экрана. */
.catalog-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 4vw, 44px);
  color: #fff;
  border-radius: var(--r-lg);
  background: linear-gradient(112deg, #102450, #193c8c 70%, #254ca5);
}
.catalog-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -6rem;
  top: -9rem;
  width: 20rem;
  height: 20rem;
  border: 2.4rem solid #ffffff12;
  box-shadow: 0 0 0 2.4rem #ffffff09;
  border-radius: 50%;
}
body:not(.shell) .catalog-head h1 { color: inherit; max-width: 23ch; text-wrap: balance; }
.catalog-head .muted { color: #e4edff; max-width: 65ch; }
.catalog-page .item-card:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.au-login { padding-block: clamp(24px, 5vw, 72px); }
.au-login-card { border-top: 4px solid var(--blue); box-shadow: 0 16px 42px -30px #17295080; }
.au-login-card .field input { min-height: 48px; }
.au-login-card .au-forgot { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 360px) {
  .shell-admin .dash .page-head h1 { font-size: 1.4rem; overflow-wrap: anywhere; }
}
.campaign-fold {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.campaign-fold > summary {
  display: list-item;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 700;
}
.campaign-fold > summary::marker { color: var(--accent); }
.campaign-fold[open] > summary { border-bottom: 1px solid var(--line); }
.campaign-fold > fieldset, .campaign-fold > .challenge-cards {
  margin: 0;
  padding: 16px;
  min-inline-size: 0;
  border: 0;
}
@media (min-width: 720px) {
  .shell .dash > .page-head, .shell .client-overview > .page-head {
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--blue);
    border-radius: var(--r-lg);
    background: linear-gradient(105deg, var(--blue-soft), var(--surface) 70%);
  }
  .shell-studio .dash > .page-head { border-inline-start-color: var(--yellow); }
}
.ref-admin .sched-head { flex-wrap: wrap; }
.ref-admin .sched-head > div { min-width: 0; overflow-wrap: anywhere; }

.expert-profile { display: flex; flex-direction: column; gap: 16px; overflow-wrap: anywhere; }
.expert-identity, .expert-upload-row { display: flex; align-items: center; gap: 14px; }
.expert-identity > div { min-width: 0; }
.expert-identity h3, .expert-identity p { margin: 0; }
.expert-identity img, .expert-initial { flex: 0 0 72px; }
.expert-initial { height: 72px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); font-size: 1.5rem; }
.expert-action { margin-top: auto; }
.season-fields { padding: 16px; display: grid; gap: 12px; }
.season-fields p { margin: 0; }
.expert-upload { display: grid; justify-items: start; gap: 8px; }
.expert-upload-row { flex-wrap: wrap; }
.photo-picker-button { position: relative; overflow: hidden; }
.photo-picker-button input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-picker-button:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }

.org-list { list-style: none; padding: 0; margin: 0; }
.org-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.org-list li > div { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }

[data-section][hidden] { display: none; }
.challenge-section-menu .btn[aria-current="location"] { background: var(--blue); border-color: var(--blue); color: white; }
.challenge-section-menu { flex-wrap: wrap; }
