/* «Master Wang CSCA»: the public page /csca (webapp.csca_page) and its band on the landing (webapp._csca_band), on the
   landing's own tokens and bands (landing.css). Motion: answers, tabs and the band's paper card only; still under
   reduced motion. */
.page { padding: 0; }
.page h1, .page h2 { margin: 0; line-height: 1.12; text-wrap: balance; }
.page h1 { font-size: clamp(34px, 4.6vw, 56px); }
.page h2 { font-size: clamp(28px, 3.6vw, 44px); }
.cx-hero .hero-in { align-items: start; }
.cx-hero .lead { margin-top: 16px; }
.cx-free { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.cx-free a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.cx-free a:hover { text-decoration-color: currentColor; }
.cx-try { scroll-margin-top: 16px; }
/* a phone: the buttons right under the lead, inside the first screen; what is free and what a pass opens after them */
@media (max-width: 640px) {
  .cx-hero .hero-text { display: flex; flex-direction: column; }
  .cx-hero .cta-row { order: 1; margin-top: 20px; }
  .cx-hero .cta-row .btn { flex: 1 1 100%; }
  .cx-deal { order: 2; }
  .cx-free { order: 3; }
}

/* what is free and what a pass opens, side by side under the lead */
.cx-deal { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 0; max-width: 560px; }
.cx-deal > div { padding: 14px 16px; border-radius: 16px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule); }
.cx-deal .paid { box-shadow: 0 0 0 2px var(--accent); }
.cx-deal-k { margin: 0 0 8px; font: 700 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--seal); }
.cx-deal ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.cx-deal li { position: relative; padding-left: 20px; }
.cx-deal li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border: solid var(--good);
  border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.cx-all { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--seal); text-decoration: underline;
  text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.cx-all:hover { text-decoration-color: currentColor; }
@media (max-width: 520px) { .cx-deal { grid-template-columns: 1fr; } }

/* the short paper to try */
.cx-try { min-width: 0; padding: 18px; border-radius: 22px; background: var(--sheet);
  box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -24px rgba(60, 30, 0, .35); }
.cx-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.cx-tabs button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: none; color: var(--ink);
  font: 500 14px/1 var(--sans); box-shadow: inset 0 0 0 1px var(--rule); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.cx-tabs button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.cx-tabs [aria-selected=true] { background: var(--ink); color: var(--paper); box-shadow: none; }
.cx-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--rule);
  font-size: 14px; color: var(--ink-2); }
.cx-count b { color: var(--ink); }
.cx-dots { display: flex; gap: 5px; flex: 1; }
.cx-dots i { flex: 1; max-width: 34px; height: 5px; border-radius: 3px; background: var(--rule); transition: background .25s; }
.cx-dots i.on { background: var(--ink-2); }
.cx-dots i.ok { background: var(--good); }
.cx-dots i.no { background: var(--seal); }
.cx-clock { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--paper);
  font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.cx-clock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--seal); }
.cx-clock.run::before { animation: cx-blink 1s steps(2, start) infinite; }
@keyframes cx-blink { to { visibility: hidden; } }
.cx-k { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.cx-text { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper); max-height: 220px; overflow: auto; }
.cx-text b { display: block; margin-bottom: 4px; font-size: 17px; }
.cx-text p { margin: 0; white-space: pre-line; font-size: 17px; line-height: 1.7; }
.cx-q { margin: 0 0 14px; font: 600 18px/1.4 var(--sans); overflow-wrap: anywhere; white-space: pre-line; }
.cx-q[lang=zh] { font-size: 20px; font-weight: 500; line-height: 1.6; }
.cx-fig { --fig-a: var(--accent); margin: 0 0 14px; padding: 10px 6px; border-radius: 14px; background: var(--paper); color: var(--ink); }
.cx-fig svg { display: block; width: 100%; max-width: 380px; max-height: 240px; height: auto; margin: 0 auto; font-family: var(--sans); }
.cx-masses { margin: -6px 0 12px; font-size: 13px; color: var(--ink-2); }
.cx-opts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cx-opts.cx-six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .cx-opts.cx-six { grid-template-columns: 1fr 1fr; } }
.cx-opts button { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 50px; padding: 8px 14px; border: 0; border-radius: 14px;
  background: none; color: var(--ink); font: 400 16px/1.3 var(--sans); text-align: left; box-shadow: inset 0 0 0 1px var(--rule); cursor: pointer;
  transition: box-shadow .15s, background .15s, transform .15s; }
.cx-opts span[lang=zh] { font-size: 18px; }
.cx-opts button:hover:enabled { box-shadow: inset 0 0 0 2px var(--accent); transform: translateY(-1px); }
.cx-opts button:active:enabled { transform: translateY(1px); }
.cx-opts button:disabled { cursor: default; }
.cx-opts b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--rule); font-size: 14px; }
.cx-opts .ok { box-shadow: inset 0 0 0 2px var(--good); background: rgba(31, 138, 76, .12); }
.cx-opts .ok b { background: var(--good); color: #fff; }
.cx-opts .no { box-shadow: inset 0 0 0 2px var(--seal); background: rgba(195, 53, 42, .1); animation: cx-shake .3s; }
.cx-opts .no b { background: var(--seal); color: #fff; }
@keyframes cx-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.cx-res { margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--paper); font-size: 15px; line-height: 1.5; }
.cx-res > b { display: block; font-size: 17px; }
.cx-res.right > b { color: var(--good); }
.cx-res.wrong > b { color: var(--seal); }
.cx-why { margin: 2px 0 0; color: var(--ink-2); }
.cx-why:empty { display: none; }
.cx-res h3 { margin: 12px 0 4px; font: 600 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cx-res ol { margin: 0 0 14px; padding-left: 20px; }
.cx-res li { animation: cx-step .35s both; }
.cx-res li:nth-child(2) { animation-delay: .12s; } .cx-res li:nth-child(3) { animation-delay: .24s; } .cx-res li:nth-child(4) { animation-delay: .36s; }
.cx-res li:nth-child(n+5) { animation-delay: .48s; }
@keyframes cx-step { from { opacity: 0; transform: translateY(6px); } }
.cx-end { padding: 6px 0 2px; }
.cx-end .cx-k { margin: 0; font: 700 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--seal); }
.cx-score { margin: 6px 0 10px; font: 700 30px/1.15 var(--serif); }
.cx-end > p:not(.cx-k):not(.cx-score) { margin: 0; color: var(--ink-2); }
.cx-end .cta-row { margin-top: 16px; }
.cx-again { margin-top: 14px; padding: 6px 0; border: 0; background: none; color: var(--ink-2); font: 500 15px/1.2 var(--sans);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cx-again:hover { color: var(--ink); }

/* why practising on papers pays: the stakes, the studies, the teachers' check */
.cx-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 22px; padding: 0; list-style: none; }
@media (max-width: 1000px) { .cx-why { grid-template-columns: repeat(2, 1fr); } }
.cx-why li { display: grid; align-content: start; gap: 8px; padding: 22px; border-radius: 20px; background: var(--sheet);
  box-shadow: 0 0 0 1px var(--rule); }
.cx-why img { width: 80px; height: 80px; margin-bottom: 4px; }
.cx-why b { font: 700 34px/1.1 var(--serif); color: var(--seal); }
.cx-why strong, .cx-proof strong { font: 700 17px/1.3 var(--sans); color: var(--ink); }
.cx-why p { margin: 0; color: var(--ink-2); }
.cx-why a { font-size: 13px; color: var(--ink-2); }
@media (max-width: 640px) {  /* a phone: the picture beside the figure, the text under both at full width */
  .cx-why { grid-template-columns: 1fr; gap: 12px; }
  .cx-why li { grid-template-columns: 48px 1fr; align-items: center; column-gap: 12px; padding: 18px; }
  .cx-why img { width: 48px; height: 48px; margin: 0; }
  .cx-why b { font-size: 24px; }
  .cx-why strong, .cx-why p, .cx-why a { grid-column: 1 / -1; }
}
/* «Проверено на практике»: real classes and doctors, three figures in a row (webapp csca_page) */
.cx-proof { margin: 0 0 22px; padding: 22px; border-radius: 20px; background: var(--sheet); box-shadow: 0 0 0 2px var(--accent); }
.cx-proof h3 { margin: 0 0 14px; font: 700 22px/1.25 var(--serif); }
.cx-proof ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.cx-proof li { display: grid; align-content: start; gap: 6px; }
.cx-proof li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.cx-proof b { font: 700 32px/1.1 var(--serif); color: var(--seal); white-space: nowrap; }
.cx-proof p { margin: 0; color: var(--ink-2); }
.cx-proof a { font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) {
  .cx-proof ul { grid-template-columns: 1fr; gap: 16px; }
  .cx-proof li + li { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) { .cx-proof { padding: 18px; } .cx-proof b { font-size: 26px; } }
.cx-stakes { max-width: 820px; margin: 0 0 22px; padding: 18px 20px; border-radius: 16px; background: var(--accent-soft); }
.cx-stakes p { margin: 0; }
.cx-why-k { max-width: 820px; margin: 26px 0 16px; font: 700 21px/1.35 var(--serif); }
.cx-checked { max-width: 820px; margin: 0 0 22px; padding: 16px 20px; border-radius: 16px; background: var(--sheet);
  box-shadow: 0 0 0 1px var(--rule); border-left: 4px solid var(--accent); }
.cx-checked p { margin: 0; color: var(--ink-2); }
p.cx-checked-k { margin-bottom: 6px; font: 700 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--seal); }

/* how the papers match the real exam */
.cx-match .cx-tabs { margin-bottom: 18px; }
.cx-mpanel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cx-mpanel[hidden], .cx-try [hidden] { display: none; }
@media (max-width: 900px) { .cx-mpanel { grid-template-columns: 1fr; } }
.cx-mcol { min-width: 0; padding: 22px; border-radius: 20px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule); }
.cx-mcol h3 { margin: 22px 0 0; font: 700 19px/1.25 var(--serif); }
.cx-mcol h3:first-child { margin-top: 0; }
.cx-mcol .ticks { margin-top: 12px; font-size: 16px; }
@media (max-width: 520px) { .cx-mcol { padding: 18px 14px; } }  /* the exam table needs the room on a small phone */
.cx-table { width: 100%; border-collapse: collapse; font-size: 16px; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.cx-table th, .cx-table td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.cx-table thead th { font: 700 13px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cx-table thead th:last-child { color: var(--seal); }
.cx-table tbody th { font-weight: 500; color: var(--ink-2); width: 30%; }
.cx-table tbody td:last-child { font-weight: 600; }
@media (max-width: 520px) {  /* row names never break into syllables: the room goes to the values */
  .cx-table { font-size: 14px; }
  .cx-table th, .cx-table td { padding: 9px 5px; }
  .cx-table thead th { letter-spacing: .02em; }
  .cx-table tbody th { width: auto; hyphens: manual; }
}
.cx-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 14px; font-size: 14px; color: var(--ink-2); }
.cx-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 7px; border-radius: 3px; vertical-align: -1px; }
.cx-legend .ex::before { background: var(--ink-2); opacity: .45; }
.cx-legend .we::before { background: var(--accent); }
.cx-parts { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cx-parts li { display: grid; gap: 5px; }
.cx-pn { font-size: 15px; font-weight: 600; }
.cx-pn [lang=zh] { margin-left: 4px; font-weight: 400; color: var(--ink-2); }
.cx-pb { display: grid; grid-template-columns: 1fr 44px; gap: 3px 10px; align-items: center; }
.cx-pb i { position: relative; height: 10px; border-radius: 5px; background: var(--paper); overflow: hidden; }
.cx-pb i::before, .cx-pb i::after { content: ""; position: absolute; inset: 0 auto 0 0; border-radius: 5px; width: 0;
  transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.cx-pb i.ex::after { background: var(--ink-2); opacity: .45; }
.cx-pb i.ex::before { background: var(--ink-2); opacity: .2; }
.cx-pb i.we::after { background: var(--accent); }
.cx-mpanel.in .cx-pb i::after { width: var(--lo); }
.cx-mpanel.in .cx-pb i::before { width: var(--hi); }
.cx-pb b { font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; text-align: right; }
.cx-pb b.ex { color: var(--ink-2); font-weight: 500; }
.cx-src { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.cx-note { margin: 18px 0 0; font-size: 14px; color: var(--ink-2); max-width: 820px; }
.cx-note a { color: inherit; }

/* the sessions */
.cx-dates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1000px) { .cx-dates { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cx-dates { grid-template-columns: 1fr 1fr; } }
.cx-dates li { padding: 18px; border-radius: 18px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule); }
.cx-dates b { display: block; font: 700 19px/1.25 var(--serif); }
.cx-dates span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.cx-dates .next { background: var(--ink); color: var(--paper); box-shadow: none; }
.cx-dates .next span { color: var(--accent); font-weight: 600; }
@media (max-width: 420px) {  /* a session's dates never break, so on a small phone each is one row: dates, then days left */
  .cx-dates { grid-template-columns: 1fr; gap: 8px; }
  .cx-dates li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; }
  .cx-dates b { font-size: 17px; }
  .cx-dates span { margin: 0; white-space: nowrap; }
}

/* how a paper goes, in the app */
.cx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.cx-steps .phone { width: min(100%, 250px); margin: 0 auto 16px; }
.cx-steps b { display: block; font-size: 18px; }
.cx-steps p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 820px) { .cx-steps { grid-template-columns: 1fr; gap: 36px; } }

/* the passes, each straight to its checkout */
.cx-pass { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.cx-pass .price-card { padding: 22px; transition: transform .2s, box-shadow .2s; }
.cx-pass .price-card:hover { transform: translateY(-2px); }
.cx-pass .ticks { flex: 1; align-content: start; }
.cx-pass .btn { align-self: stretch; }
.cx-buy { border-top: 4px solid var(--accent); }
.cx-buy.best { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.cx-day { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.cx-buy .btn { margin-top: auto; }
.cx-buy .cx-covers { margin-bottom: 22px; }
.cx-covers { margin: 10px 0 0; padding: 6px 10px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; font-weight: 600; }
@media (max-width: 980px) { .cx-pass { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .cx-pass { grid-template-columns: 1fr; } }

/* «Купить пропуск» that stays at hand once the first screen is gone */
.cx-stick { position: fixed; z-index: 30; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px;
  border-radius: 999px; background: var(--ink); color: var(--paper); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); font-size: 15px;
  transition: transform .25s, opacity .25s; }
.cx-stick[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
.cx-stick b { color: var(--accent); }
@media (max-width: 640px) { .cx-stick { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; } }
@media (max-width: 480px) { .cx-stick { padding: 8px; } .cx-stick > span { display: none; } .cx-stick .btn { flex: 1; } }  /* the button already names the price */

.final .van-slot.xl img { display: block; width: 100%; }
.final .cta-row { margin-top: 0; }
.final .btn-line { border-color: #1d1410; color: #1d1410; }
@media (min-width: 760px) { .final-in { grid-template-columns: auto 1fr; } }

/* the landing's band: a paper card that answers each subject's question by itself */
.cxb .sec-lead { max-width: 34em; }
.cxb-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .cxb-in { grid-template-columns: 1fr 1fr; gap: 56px; } }
.cxb h2 { color: #f6ead8; }
.cxb .cta-row { margin-top: 26px; }
.cxb-stage { position: relative; padding-bottom: 48px; }
.cxb-deck { display: grid; }
.cxb-card { grid-area: 1 / 1; position: relative; align-self: start; padding: 20px; border-radius: 22px; background: #fffaf2; color: #1d1410;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(26px) scale(.96);
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .45s; }
.cxb-card.on { opacity: 1; transform: none; }
.cxb-card.next { opacity: .55; transform: translateY(18px) scale(.94); z-index: -1; }
.cxb-card.out { opacity: 0; transform: translateY(-20px) scale(.98); }
.cxb-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid #e2d4bd; font-size: 14px; color: #4b3f36; }
.cxb-head b { font: 700 17px/1.2 var(--serif); color: #1d1410; }
.cxb-q { margin: 0 0 14px; font: 600 17px/1.45 var(--sans); white-space: pre-line; }
.cxb-q[lang=zh] { font-size: 20px; font-weight: 500; }
.cxb-fig { --fig-a: #f2841c; margin: 0 0 12px; color: #1d1410; }
.cxb-fig svg { display: block; width: 100%; max-width: 300px; max-height: 150px; height: auto; margin: 0 auto; }
.cxb-opts { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.cxb-opts li { display: flex; gap: 10px; align-items: center; min-height: 42px; padding: 6px 12px; border-radius: 12px; font-size: 15px;
  box-shadow: inset 0 0 0 1px #e2d4bd; transition: box-shadow .2s, background .2s; }
.cxb-opts b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; background: #e2d4bd; font-size: 13px; }
.cxb-opts .look { box-shadow: inset 0 0 0 2px #f2841c; }
.cxb-opts .ok { box-shadow: inset 0 0 0 2px #127237; background: rgba(18, 114, 55, .1); }
.cxb-opts .ok b { background: #127237; color: #fff; }
.cxb-ok { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: #127237; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.cxb-card.done .cxb-ok { opacity: 1; transform: none; }
.cxb-pause { position: absolute; right: 10px; bottom: 0; width: 36px; height: 36px; border: 1px solid #4b3f36; border-radius: 50%;
  background: transparent; color: #f6ead8; cursor: pointer; }
.cxb-pause::before, .cxb-pause::after { content: ""; position: absolute; top: 11px; width: 4px; height: 12px; border-radius: 1px; background: currentColor; }
.cxb-pause::before { left: 12px; } .cxb-pause::after { left: 18px; }
.cxb-pause[aria-pressed=true]::before { left: 13px; width: 0; height: 0; border-radius: 0; background: none;
  border-style: solid; border-width: 6px 0 6px 11px; border-color: transparent transparent transparent currentColor; }
.cxb-pause[aria-pressed=true]::after { display: none; }
.cxb-pause:hover { border-color: #f2841c; color: #f2841c; }
@media (max-width: 520px) { .cxb-card { padding: 16px; } }

@media (prefers-reduced-motion: reduce) {
  .cx-res li, .cx-opts .no { animation: none; }
  .cx-clock.run::before { animation: none; }
  .cx-pb i::before, .cx-pb i::after, .cxb-card, .cx-stick { transition: none; }
  .cxb-pause { display: none; }
}

/* the paper's questions in the exam's language, its solutions in the page's */
.cx-lang { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }

/* the first question's examples, one a subject */
.faq .cx-eg { margin: -6px 0 18px; padding-left: 1.2em; max-width: 46em; display: grid; gap: 8px; color: var(--ink-2); }
.faq details p b { color: var(--ink); }
