/* Каталог сезона: выбор уровня, следующая серия, затем список юнитов. */
.sx-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 20px; margin-bottom:18px; }
.sx-heading h1 { font-size:clamp(30px,4vw,44px); letter-spacing:-.045em; }
.sx-levels { display:flex; gap:4px; padding:4px; border:1px solid var(--line); border-radius:15px; background:var(--white); }
.sx-levels a { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:6px 12px; border-radius:11px; text-decoration:none; color:var(--muted); }
.sx-levels b { color:var(--plum); font-family:var(--display); font-size:15px; }
.sx-levels span { text-align:center; font-size:13px; font-weight:750; }
.sx-levels a[aria-current=page] { color:#fff2ec; background:#7d1838; }
.sx-levels a[aria-current=page] b { color:#fff2ec; }
.sx-hero {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center;
  gap:18px; padding:clamp(18px,3vw,34px); border-radius:24px;
  color:#fff4ea; background:radial-gradient(ellipse at 100% 15%,#a74850,transparent 65%),linear-gradient(115deg,#4c0a23,#83213d);
  box-shadow:var(--shadow-1); overflow:hidden;
}
.sx-ht { min-width:0; overflow-wrap:anywhere; }
.sx-ey { color:#ffdd89; font-size:14px; font-weight:850; }
.sx-hero .sx-h1 { color:#fff8ef; font-size:clamp(25px,3.4vw,41px); line-height:1.18; margin:5px 0; letter-spacing:-.035em; }
.sx-for, .sx-prog { color:#ffe7df; font-size:15px; line-height:1.45; }
.sx-prog { display:grid; gap:5px; max-width:360px; font-size:14px; margin:12px 0; }
.sx-prog progress { width:100%; height:6px; appearance:none; border:0; border-radius:8px; background:#ffffff38; color:#ffda77; }
.sx-prog progress::-webkit-progress-bar { border-radius:8px; background:#ffffff38; }
.sx-prog progress::-webkit-progress-value { border-radius:8px; background:#ffda77; }
.sx-prog progress::-moz-progress-bar { border-radius:8px; background:#ffda77; }
.sx-hero .sx-next { margin:12px 0 0; font-weight:800; font-size:15px; }
.sx-actions { display:flex; flex-wrap:wrap; gap:2px 14px; align-items:center; margin-top:8px; }
.sx-cta { min-height:44px; max-width:100%; padding:10px 16px; line-height:1.25; border-radius:13px; background:#ffdc77; }
.ap.season-page .sx-hero .sx-cta { color:#351322; background:#ffdc77; box-shadow:none; }
.sx-ht>.sx-cta { margin-top:14px; }
.sx-textlink { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; text-underline-offset:3px; font-weight:800; font-size:14px; }
.sx-hero :focus-visible { outline-color:white; }
.sx-cast { display:flex; align-items:flex-end; padding:8px; }
.sx-cast img { height:clamp(62px,9vw,108px); width:auto; max-width:10vw; margin-left:-17px; filter:drop-shadow(0 8px 7px #390c273d); }
.sx-cast img:first-child { margin:0; }
.sx-cast .c2 { height:clamp(72px,10vw,120px); }
.sx-listhead { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:7px 16px; margin:22px 0 12px; }
.sx-listhead h2 { font-size:clamp(18px,2.3vw,24px); }
.sx-goal-filter { margin:0; min-height:44px; border-radius:12px; border:1px solid var(--line); background:var(--white); color:var(--muted); font-size:14px!important; font-weight:800!important; padding:6px 14px; cursor:pointer; }
.sx-goal-filter[aria-pressed=true] { background:var(--rose); border-color:var(--accent-text); color:var(--accent-text); }
.sx-goal-filter[hidden] { display:none; }
.sx-current { align-self:center; font-size:12px; font-weight:850; color:var(--plum); }
@media (prefers-reduced-motion:no-preference) {
  @keyframes sx-greet { from { transform:translateY(6px); } }
  .sx-cast { animation:sx-greet .45s ease-out; }
}
@media (max-width:1020px) {
  .sx-cast img { max-width:8vw; }
}
@media (max-width:650px) {
  .sx-heading { display:grid; grid-template-columns:minmax(0,1fr); gap:9px; }
  .sx-levels { width:100%; max-width:370px; min-width:0; }
  .sx-levels a { flex:1 1 auto; min-width:0; flex-direction:column; gap:0; line-height:1.2; padding:4px 3px; }
  .sx-levels span { font-size:12px; }
  .sx-cast { display:none; }
  .sx-hero { display:block; }
}
.sx-path{scroll-margin-top:14px;list-style:none;margin:8px 0 0;padding:0;position:relative}
.sx-unit{scroll-margin-top:16px;position:relative;padding-left:60px;padding-bottom:16px;--uc:#D41F36;--ui:#fff;--ut:#FFE3E6}
.sx-unit::before{content:"";position:absolute;left:21px;top:34px;bottom:-14px;width:4px;border-radius:4px;background:repeating-linear-gradient(180deg,var(--line) 0 8px,transparent 8px 14px)}
.sx-unit:last-child::before{display:none}
.sx-unit.done::before{background:var(--leaf)}
.c0{--uc:#D41F36;--ui:#fff;--ut:#FFE3E6}.c1{--uc:#E39A00;--ui:#2A1C00;--ut:#FFF1CC}.c2{--uc:#1F7A4F;--ui:#fff;--ut:#DDF3E8}
.c3{--uc:#2368C3;--ui:#fff;--ut:#DEEBFF}.c4{--uc:#7A3FC8;--ui:#fff;--ut:#EBDFFB}.c5{--uc:#AE4519;--ui:#fff;--ut:#FFE5D6}
html[data-theme=dark] .c0{--ut:#3B1822}html[data-theme=dark] .c1{--ut:#3A2D10}html[data-theme=dark] .c2{--ut:#143027}
html[data-theme=dark] .c3{--ut:#18284A}html[data-theme=dark] .c4{--ut:#2B1D45}html[data-theme=dark] .c5{--ut:#3C2216}
.sx-node{position:absolute;left:0;top:10px;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--uc);color:var(--ui);
  font-family:var(--display);font-weight:900;font-size:var(--fs-md);box-shadow:0 0 0 5px var(--paper),0 10px 18px -8px var(--uc);z-index:1}
.sx-node .ck{width:15px;height:15px}
.sx-unit:not(.soon) .sx-node{width:24px;height:24px;left:11px;top:24px}.sx-track-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.ck{fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.sx-unit.done .sx-node{background:var(--leaf);color:#fff;box-shadow:0 0 0 5px var(--paper),0 10px 18px -8px var(--leaf)}
.sx-unit.now .sx-node{box-shadow:0 0 0 3px var(--paper),0 0 0 5px var(--uc)}
.sx-card{background:var(--white);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-1);overflow:hidden;transition:box-shadow .25s var(--ease)}
.sx-card[open]{box-shadow:var(--shadow-2)}
.sx-unit.now .sx-card{border-color:var(--uc);border-width:2px}
.sx-card>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:16px;align-items:center;padding:16px 20px;cursor:pointer;list-style:none;background:linear-gradient(100deg,var(--ut),transparent 70%)}
.sx-card>summary::-webkit-details-marker{display:none}
.sx-card>summary::after{content:"";justify-self:end;width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .25s;margin-left:6px}
.sx-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;width:68px;height:68px;border-radius:20px;background:var(--uc);color:var(--ui);font-family:var(--display);font-weight:900;font-size:26px;line-height:1;box-shadow:inset 0 -6px 0 rgba(0,0,0,.14)}
.sx-tile small{font-family:var(--body);font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:3px;}
.sx-ut{display:flex;flex-direction:column;gap:3px;min-width:0}
.sx-ut b{font-family:var(--display);font-size:var(--fs-lg);font-weight:900;line-height:1.15}
.sx-card:not([open]) .sx-ut>small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.sx-ut>small{color:var(--muted);font-size:var(--fs-sm);font-weight:700}
.sx-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.sx-chip{display:inline-flex;align-items:center;gap:6px;background:var(--white);border:1px solid var(--line);border-radius:99px;padding:3px 10px 3px 8px;font-size:var(--fs-xs);font-weight:800;color:var(--wine)}
.sx-chip .i{width:14px;height:14px}
.sx-st{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:58px}
.sx-cnt{font-size:var(--fs-sm);color:var(--muted);font-weight:800}.sx-cnt b{font-family:var(--display);font-size:var(--fs-lg);color:var(--plum)}
.sx-mbar{width:58px;height:6px;border-radius:99px;background:var(--line);overflow:hidden}.sx-mbar i{display:block;height:100%;background:var(--uc);border-radius:99px}
.sx-unit.done .sx-mbar i{background:var(--leaf)}
.goalmark{margin-left:8px;font-family:var(--body);font-size:var(--fs-xs);font-weight:800;background:#FFE08A;color:#4A3300;border-radius:99px;padding:2px 9px;white-space:nowrap;vertical-align:middle}
.sx-card[open]>summary::after{transform:rotate(-135deg)}

.sx-body{padding:6px 20px 20px}
.sx-story{color:var(--muted);margin:6px 0 14px;max-width:70ch}
.sx-days{display:flex;flex-direction:column;gap:8px}
.sx-day{display:grid;grid-template-columns:44px minmax(0,1fr) auto auto;gap:6px 14px;align-items:center;padding:10px 14px 10px 10px;border-radius:18px;background:var(--paper);border:1px solid var(--line);text-decoration:none;color:inherit;
  transition:transform .2s var(--ease),border-color .2s,box-shadow .2s}
a.sx-day:hover{transform:translateX(4px);border-color:var(--uc);box-shadow:var(--shadow-1)}
.sx-dn{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--white);border:2px solid var(--line);font-family:var(--display);font-weight:900;color:var(--muted)}
.sx-dn .ck{width:20px;height:20px}.sx-dn .i{width:20px;height:20px}
.sx-dt{display:flex;flex-direction:column;min-width:0}.sx-dt b{font-family:var(--display);font-size:var(--fs-md);font-weight:800;line-height:1.2}
.sx-dt small{color:var(--muted);font-size:var(--fs-sm);margin-top:2px}
.sx-dm{font-size:var(--fs-xs);font-weight:800;color:var(--muted);white-space:nowrap;display:inline-flex;align-items:center;gap:4px}.sx-dm .i{width:14px;height:14px}
.sx-go{font-family:var(--display);font-size:var(--fs-xs);font-weight:800;color:var(--berry);white-space:nowrap;text-align:right;min-width:96px}
.sx-day.done{background:linear-gradient(90deg,rgba(31,122,79,.12),rgba(31,122,79,.03));border-color:rgba(31,122,79,.35)}
.sx-day.done .sx-dn{background:var(--leaf);border-color:var(--leaf);color:#fff}.sx-day.done .sx-go{color:var(--leaf)}
.sx-day.cur{background:var(--uc);border-color:var(--uc);color:var(--ui);box-shadow:0 14px 26px -16px var(--uc)}
.sx-day.cur .sx-dn{background:rgba(255,255,255,.22);border-color:transparent;color:inherit}
.sx-day.cur .sx-dt small,.sx-day.cur .sx-dm{color:inherit;opacity:.85}.sx-day.cur .sx-go{color:inherit}
.sx-day.soon{opacity:.55;border-style:dashed}.sx-day.soon .sx-go{color:var(--muted)}
.sx-day.rev{background:#1E1B2E;border-color:#1E1B2E;color:#FFF7EC}.sx-day.rev .sx-dt b{color:#FFF7EC}
html[data-theme=dark] .sx-day.rev{background:#2B2640;border-color:rgba(255,212,59,.35)}
.sx-day.rev .sx-dn{background:rgba(255,212,59,.2);border-color:transparent;color:#FFD43B}.sx-day.rev .sx-dt small,.sx-day.rev .sx-dm{color:rgba(255,247,236,.75)}
.sx-day.rev .sx-go,.sx-day.rev.done .sx-go{color:#FFD43B}.sx-day.rev.done .sx-dn{background:var(--leaf);color:#fff}
.sx-day.rev.soon{background:var(--paper);color:inherit;border-color:var(--line)}.sx-day.rev.soon .sx-dt b{color:var(--plum)}.sx-day.rev.soon .sx-dn{background:var(--white);color:var(--muted)}.sx-day.rev.soon .sx-dt small{color:var(--muted)}.sx-day.rev.soon .sx-go{color:var(--muted)}

.sx-about{margin-top:14px;border-top:1px dashed var(--line);padding-top:10px}
.sx-about>summary{cursor:pointer;font-weight:800;color:var(--wine);font-size:var(--fs-sm);list-style:none;padding:6px 0}
.sx-about>summary::-webkit-details-marker{display:none}.sx-about>summary::before{content:"+";display:inline-grid;place-items:center;width:22px;height:22px;margin-right:8px;border-radius:50%;background:var(--rose);font-weight:900}
.sx-about[open]>summary::before{content:"–"}
.sx-about .unit-info{padding:10px 0 0}

.sx-unit.soon{padding-bottom:10px}
.sx-unit.soon .sx-node{top:4px;width:38px;height:38px;left:4px;font-size:var(--fs-sm);background:var(--white);color:var(--muted);box-shadow:0 0 0 4px var(--paper),inset 0 0 0 2px var(--line)}
.sx-unit.soon::before{left:21px;top:30px}
.sx-mini{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;border-radius:16px;border:1px dashed var(--line);color:var(--muted)}
.sx-mt{display:flex;flex-direction:column;min-width:0}.sx-mt b{font-family:var(--display);font-size:var(--fs-md);font-weight:800;color:var(--plum)}.sx-mt small{font-size:var(--fs-sm)}
.sx-soon{font-family:var(--display);font-size:var(--fs-xs);font-weight:800;text-transform:uppercase;letter-spacing:.1em;white-space:nowrap}
.units-goal .sx-unit[data-goal="0"]{display:none}

@media (max-width:640px) {
  .sx-unit { padding-left:0; padding-bottom:11px; }
  .sx-unit::before, .sx-node { display:none; }
  .sx-card { border-radius:16px; }
  .sx-card>summary { grid-template-columns:42px minmax(0,1fr) auto; gap:6px 9px; padding:12px; }
  .sx-tile { width:42px; height:43px; font-size:18px; border-radius:11px; }
  .sx-tile small { font-size:8px; }
  .sx-st { grid-column:2; grid-row:2; justify-self:start; flex-direction:row; align-items:center; gap:8px; }
  .sx-cnt, .sx-cnt b { font-size:12px; }
  .sx-mbar { width:39px; height:4px; }
  .sx-card>summary::after { grid-column:3; grid-row:1; margin:0 2px 0 0; }
  .sx-ut, .sx-dt, .sx-mt { overflow-wrap:anywhere; }
  .sx-ut b { font-size:16px; }
  .sx-chips { display:flex; }
  .sx-chip { white-space:normal; line-height:1.35; border-radius:10px; }
  .sx-body { padding:4px 10px 12px; }
  .sx-day { grid-template-columns:27px minmax(0,1fr) auto; gap:4px 8px; padding:10px; border-radius:12px; }
  .sx-dn { width:27px; height:27px; font-size:13px; grid-row:1/3; align-self:start; }
  .sx-dn :is(.ck,.i) { width:15px; height:15px; }
  .sx-dt { grid-column:2/4; }
  .sx-dm { grid-column:2; grid-row:2; }
  .sx-go { grid-column:3; grid-row:2; min-width:0; font-family:var(--body); white-space:normal; }
  .sx-day.soon .sx-go { grid-column:2/4; justify-self:start; }
  .sx-mini { padding:10px; }
  .sx-listhead { margin-top:18px; }
}
.sx-card>summary:focus-visible, .sx-about>summary:focus-visible { outline-offset:-3px; }
.sx-about>summary { min-height:44px; display:flex; align-items:center; }
.sx-path:focus-visible { outline-offset:2px; }
.sx-go { color:var(--accent-text); }
.sx-day.cur .sx-dt small, .sx-day.cur .sx-dm { opacity:1; }
@media (prefers-reduced-motion:reduce) {
  .season-page :is(.sx-day,.sx-card,.sx-card>summary::after,.sx-cta) { transition:none; }
  .season-page .sx-day:hover, .season-page .sx-cta:hover { transform:none; }
}

/* нижнее меню на узких телефонах: подписи не слипаются */
@media (max-width:420px){.menu a{font-size:10.5px;padding:6px 2px;letter-spacing:-.01em}}


.course-scopes {display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;min-width:0;}
.course-scopes .sx-levels {max-width:100%;min-width:0;}
.course-scopes .scope-own {font-weight:900;font-size:.8rem;}
.scope-more {display:flex;align-items:center;gap:12px;}
.scope-more a {display:inline-flex;align-items:center;color:var(--muted);min-height:44px;font-size:.86rem;font-weight:780;text-underline-offset:4px;}
.scope-more a[aria-current] {color:var(--accent-text);text-decoration-thickness:2px;}
@media(max-width:680px){.course-scopes {width:100%;}.course-scopes .sx-levels {width:100%;}.course-scopes .sx-levels a{position:relative;flex:1 1 0;}.course-scopes .scope-own{position:absolute;right:4px;top:1px;}.scope-more{min-height:38px;}}

.sx-practice {display:grid; gap:20px; padding-top:12px}
.sx-practice h3 {font:800 1.08rem/1.35 var(--body); margin:0 0 8px; color:var(--plum)}
.sx-practice p {margin:0; line-height:1.5}
.sx-brief {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:12px}
.sx-brief section, .sx-advice {background:var(--paper); border-radius:14px; padding:14px}
.sx-brief .can {margin:0}
.sx-reading {list-style:none; padding:0; margin:0; border:1px solid var(--line); border-radius:14px}
.sx-reading li {padding:10px 15px}
.sx-reading li+li {border-top:1px solid var(--line)}
.sx-reading a {display:grid; grid-template-columns:minmax(0,1fr) auto; min-height:44px; align-content:center; gap:2px 12px; text-decoration:none; color:var(--plum); overflow-wrap:anywhere}
.sx-reading a small {grid-column:1; color:var(--muted)}
.sx-reading a strong {grid-column:1; line-height:1.35}
.sx-reading a:is(:hover,:focus-visible) strong {text-decoration:underline}
.sx-external {grid-column:2; grid-row:1/3; align-self:center; color:var(--wine)}
.sx-reading li p {margin-top:5px; font-size:var(--fs-sm); color:var(--muted)}
.sx-advice {display:flex; align-items:flex-start; gap:12px; font-size:var(--fs-sm)}
.sx-advice img {flex:none}
