/* =====================================================================
   Aula Virtual (index) — blanco, #87220E y sombras.
   ===================================================================== */

/* ---------------------------------------------------------------- Cabecera */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  transition: box-shadow var(--t);
}
.top.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(31, 26, 25, .18); }
.top-in { max-width: 1200px; margin: 0 auto; padding: .8rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--c-500), var(--c) 55%, var(--c-800));
  box-shadow: 0 1px 2px rgba(82, 20, 8, .35), 0 8px 18px -8px rgba(135, 34, 14, .7), inset 0 1px 0 rgba(255,255,255,.18);
}
.brand b { display: block; font-size: 1.06rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.brand small { display: block; font-size: .76rem; color: var(--muted); font-weight: 500; }

.top-nav { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  height: 38px; padding: 0 .85rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--ink-2); transition: color var(--t), background var(--t);
}
.nav-link::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--c); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--c); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.sess { display: flex; align-items: center; gap: .6rem; margin-left: .5rem; padding-left: .9rem; border-left: 1px solid var(--line); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: .78rem; font-weight: 700; color: var(--c); background: var(--c-50); box-shadow: inset 0 0 0 1px var(--c-100);
}
.sess-who { display: flex; align-items: center; gap: .55rem; line-height: 1.2; }
.sess-who b { display: block; font-size: .84rem; font-weight: 650; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sess-who small { font-size: .74rem; color: var(--muted); }
.sess-timer { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.sess-timer.warn { color: var(--c); }

/* ---------------------------------------------------------------- Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.view { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.hero { margin: .5rem 0 1.6rem; }
.hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.12; margin: .35rem 0 .5rem; }
.hero h1 em { font-style: normal; color: var(--c); }
.hero p { color: var(--muted); max-width: 60ch; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.side { display: flex; flex-direction: column; gap: 1.25rem; }

/* ---------------------------------------------------------------- Banner evaluación */
.exam-banner {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem;
  border-radius: var(--r-lg); color: #fff; background: linear-gradient(120deg, var(--c-700), var(--c) 60%, var(--c-500));
  box-shadow: var(--sh-3);
}
.exam-banner .ico-wrap { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); flex: none; }
.exam-banner p { font-size: .84rem; opacity: .85; }
.exam-banner .btn { margin-left: auto; background: #fff; color: var(--c); }

/* ---------------------------------------------------------------- Stepper de acceso */
.entry { position: relative; overflow: clip; min-height: 420px; display: flex; flex-direction: column; }
#entry-body { flex: 1; }
.entry-foot { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--muted); }
.entry-foot span { display: inline-flex; align-items: center; gap: .4rem; }
.entry-foot .ico { color: var(--c-300); }
.entry::before {
  content: ''; position: absolute; inset: -40% -30% auto auto; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c-50), transparent); pointer-events: none;
}
.steps { position: relative; display: flex; gap: .4rem; list-style: none; margin-bottom: 1.5rem; }
.steps li {
  flex: 1; display: flex; flex-direction: column; gap: .5rem;
  font-size: .76rem; font-weight: 600; color: var(--muted);
}
.steps li::before { content: ''; height: 4px; border-radius: 4px; background: var(--line-2); transition: background .4s var(--ease); }
.steps li.done::before, .steps li.active::before { background: var(--c); }
.steps li.active { color: var(--c); }
.steps li span { display: flex; align-items: center; gap: .35rem; }

.step-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .3rem; }
.step-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }
.step { animation: rise .35s var(--ease); position: relative; }

.tiles { display: grid; gap: .8rem; }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tiles-7 { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.6rem;
  padding: 1.1rem 1.1rem 1rem; border-radius: var(--r); text-align: left;
  background: var(--white); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
  transition: transform var(--t), box-shadow var(--t), color var(--t);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-3), inset 0 0 0 1px var(--c-200); }
.tile:active { transform: translateY(-1px); }
.tile .big { font-size: 2.3rem; font-weight: 750; letter-spacing: -.04em; line-height: 1; color: var(--c); }
.tile .lbl { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.tile .arrow { position: absolute; top: 1rem; right: 1rem; color: var(--c-300); transition: transform var(--t), color var(--t); }
.tile:hover .arrow { transform: translateX(3px); color: var(--c); }
.tile-sm { align-items: center; justify-content: center; gap: .1rem; padding: 1rem .5rem; aspect-ratio: 1 / .92; }
.tile-sm .big { font-size: 1.9rem; }
.tile-sm .lbl { font-size: .72rem; color: var(--muted); }
.tile.last { box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--c-300); }
.tile.last::after { content: 'Último'; position: absolute; top: .45rem; right: .5rem; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c); }

.crumb { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.back { display: inline-flex; align-items: center; gap: .3rem; font-size: .84rem; font-weight: 600; color: var(--muted); padding: .3rem .5rem .3rem .2rem; border-radius: 8px; }
.back:hover { color: var(--c); background: var(--c-50); }

.quick {
  display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; margin-bottom: 1.1rem;
  border-radius: var(--r); background: var(--c-50); box-shadow: inset 0 0 0 1px var(--c-100);
  font-size: .88rem;
}
.quick b { color: var(--c); }
.quick #quick-go { margin-left: auto; }
.quick #quick-no { margin-left: -.35rem; color: var(--muted); }

.rfc-box { max-width: 440px; }
.rfc-input {
  width: 100%; height: 64px; padding: 0 1.2rem; border-radius: 16px; text-align: center;
  font-size: 1.6rem; font-weight: 650; letter-spacing: .22em; text-transform: uppercase; font-variant-numeric: tabular-nums;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-2);
  transition: border-color var(--t), box-shadow var(--t);
}
.rfc-input::placeholder { color: #D6CFCD; letter-spacing: .22em; }
.rfc-input:focus { outline: none; border-color: var(--c-300); box-shadow: var(--ring), var(--sh-2); }
.rfc-input.bad { border-color: var(--c); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.rfc-help { display: flex; gap: .55rem; margin: .9rem 0 1.2rem; font-size: .8rem; color: var(--muted); }
.rfc-help .ico { flex: none; color: var(--c-300); margin-top: 1px; }
.rfc-err { display: flex; gap: .5rem; align-items: flex-start; padding: .7rem .85rem; margin-bottom: 1rem; border-radius: 12px; background: var(--c-50); color: var(--c-700); font-size: .85rem; font-weight: 500; }
.rfc-err .ico { flex: none; margin-top: 1px; }

/* ---------------------------------------------------------------- Noticias */
.news { display: flex; flex-direction: column; gap: .65rem; max-height: 360px; overflow: auto; margin: 0 -.25rem; padding: 0 .25rem .25rem; }
.news-item { position: relative; padding: .85rem 1rem .9rem 1.1rem; border-radius: var(--r); background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--t); }
.news-item::before { content: ''; position: absolute; left: 0; top: .9rem; bottom: .9rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--c-200); }
.news-item.pinned { background: var(--c-50); box-shadow: inset 0 0 0 1px var(--c-100); }
.news-item.pinned::before { background: var(--c); }
.news-item:hover { box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
.news-meta { display: flex; align-items: center; gap: .45rem; font-size: .72rem; color: var(--muted); font-weight: 500; margin-bottom: .25rem; }
.news-meta .chip { height: 20px; font-size: .66rem; }
.news-title { font-weight: 650; font-size: .93rem; letter-spacing: -.01em; }
.news-body { font-size: .86rem; color: var(--ink-2); margin-top: .25rem; white-space: pre-line; }
.news-body.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { font-size: .78rem; font-weight: 600; color: var(--c); margin-top: .3rem; }

/* ---------------------------------------------------------------- Aula */
.aula-head {
  display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem 1.6rem; margin-bottom: 1.25rem; position: relative; overflow: clip;
}
.aula-head::after {
  content: ''; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c-50), transparent); pointer-events: none;
}
.aula-id { flex: 1; min-width: 0; position: relative; z-index: 1; }
.aula-id h1 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.15; margin: .2rem 0 .45rem; }
.aula-id h1 span { color: var(--c); }
.teacher { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--ink-2); }
.teacher .ico { color: var(--c); }
.stats { display: flex; gap: .75rem; position: relative; z-index: 1; }
.stat {
  min-width: 128px; padding: .85rem 1rem; border-radius: var(--r); background: var(--white);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); text-align: left; transition: box-shadow var(--t), transform var(--t);
}
button.stat:hover { box-shadow: var(--sh-3), inset 0 0 0 1px var(--c-100); transform: translateY(-2px); }
.stat .eyebrow { font-size: .64rem; }
.stat b { display: flex; align-items: baseline; gap: .2rem; font-size: 1.55rem; font-weight: 750; letter-spacing: -.03em; color: var(--ink); margin-top: .15rem; }
.stat b small { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat.accent b { color: var(--c); }
.stat-link { font-size: .7rem; font-weight: 600; color: var(--c); display: inline-flex; gap: .2rem; align-items: center; }

.aula-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }

/* Recursos */
.toolbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--line-2); }
.seg button { height: 30px; padding: 0 .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted); transition: background var(--t), color var(--t), box-shadow var(--t); }
.seg button.on { background: var(--white); color: var(--c); box-shadow: var(--sh-1); }
.search { position: relative; flex: 1; min-width: 160px; }
.search .ico { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { height: 36px; padding-left: 2.2rem; border-radius: 999px; font-size: .86rem; }

.res-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; }
.res {
  display: flex; flex-direction: column; gap: .8rem; padding: 1rem; border-radius: var(--r);
  background: var(--white); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2);
  transition: box-shadow var(--t), transform var(--t); user-select: none;
}
.res:hover { box-shadow: var(--sh-3), inset 0 0 0 1px var(--c-100); transform: translateY(-2px); }
.res-top { display: flex; gap: .8rem; align-items: flex-start; }
.res-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: var(--c-50); }
.res-thumb { width: 42px; height: 42px; flex: none; border-radius: 12px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--line); background: var(--c-50); }
.res-title { font-weight: 650; font-size: .92rem; line-height: 1.3; letter-spacing: -.01em; }
.res-desc { font-size: .8rem; color: var(--muted); margin-top: .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-foot { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .7rem; border-top: 1px dashed var(--line); }
.res-foot .meta { font-size: .72rem; color: var(--muted); margin-right: auto; }
.res-new { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--c); padding: 2px 6px; border-radius: 6px; margin-left: .35rem; vertical-align: 2px; }

/* Temario */
.prog-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.ring { --p: 0; --s: 64px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line-2) 0); transition: --p 1s; }
.ring::before { content: ''; grid-area: 1 / 1; width: calc(var(--s) - 14px); height: calc(var(--s) - 14px); border-radius: 50%; background: var(--white); box-shadow: var(--sh-1); }
.ring span { grid-area: 1 / 1; position: relative; font-weight: 750; font-size: .95rem; letter-spacing: -.02em; }
.ring-lg { --s: 132px; }
.ring-lg::before { width: calc(var(--s) - 20px); height: calc(var(--s) - 20px); }
.ring-lg span { font-size: 2.2rem; }
.next-topic { font-size: .82rem; color: var(--muted); }
.next-topic b { display: block; color: var(--ink); font-size: .92rem; font-weight: 650; }

.units { display: flex; flex-direction: column; gap: .5rem; max-height: 480px; overflow: auto; }
.unit { border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); }
.unit > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; font-size: .82rem; font-weight: 650; }
.unit > summary::-webkit-details-marker { display: none; }
.unit > summary .chev { margin-left: auto; color: var(--muted); transition: transform var(--t); }
.unit[open] > summary .chev { transform: rotate(180deg); }
.unit .u-bar { width: 56px; height: 5px; }
.unit .u-pct { font-size: .74rem; color: var(--muted); font-weight: 600; min-width: 34px; text-align: right; }
.topics { list-style: none; padding: 0 .85rem .7rem; }
.topics li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; font-size: .87rem; border-top: 1px dashed var(--line-2); }
.topics li .ico { flex: none; color: var(--c-200); }
.topics li.ok { color: var(--muted); }
.topics li.ok .ico { color: var(--c); }
.topics li.next { font-weight: 650; }
.topics li.next .ico { color: var(--c); }
.topics li.next::after { content: 'Siguiente'; margin-left: auto; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c); background: var(--c-50); padding: 2px 7px; border-radius: 6px; }

/* ---------------------------------------------------------------- Modales del aula */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; }
.day-box h3 { font-size: .95rem; font-weight: 650; margin-bottom: .75rem; }
.day-box h3::first-letter, .eyebrow::first-letter { text-transform: uppercase; }

.avg-modal { text-align: center; padding: .5rem 0 .5rem; }
.avg-modal .ring { margin: .5rem auto 1rem; }
.avg-modal p { color: var(--muted); font-size: .88rem; }
.avg-scale { display: flex; justify-content: center; gap: 1rem; margin-top: 1.1rem; flex-wrap: wrap; }

.foot { text-align: center; font-size: .76rem; color: var(--muted); padding: 0 1rem 2rem; }


/* ---------------------------------------------------------------- Accesos rápidos del aula */
.tools { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.25rem; }
.tool { display: flex; align-items: center; gap: .8rem; min-width: 240px; padding: .75rem 1rem .75rem .8rem; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); color: var(--ink); text-decoration: none; transition: box-shadow var(--t), transform var(--t); }
.tool:hover { box-shadow: var(--sh-2), inset 0 0 0 1px var(--c-100); transform: translateY(-1px); }
.tool-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--c-50); color: var(--c); }
.tool-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tool-txt b { font-size: .92rem; }
.tool-txt small { font-size: .76rem; color: var(--muted); }
.tool-go { color: var(--muted); }
.tool:hover .tool-go { color: var(--c); }
@media (max-width: 640px) { .tool { flex: 1 1 100%; min-width: 0; } }

/* ---------------------------------------------------------------- Responsivo */
@media (max-width: 980px) {
  .home-grid, .aula-grid { grid-template-columns: 1fr; }
  .aula-head { flex-direction: column; align-items: flex-start; }
  .stats { width: 100%; }
  .stat { flex: 1; min-width: 0; }
  .cal-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top-in { padding: .65rem 1rem; }
  .brand small { display: none; }
  .nav-link span { display: none; }
  .sess-who div, .sess-timer { display: none; }
  #btn-fin span { display: none; }
  #btn-fin { width: 34px; padding: 0; }
  .nav-link { padding: 0 .55rem; }
  .tiles-3 .tile { padding-right: 2.8rem; }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat .eyebrow { font-size: .58rem; letter-spacing: .05em; }
  .stat b { flex-wrap: wrap; }
  .sess { padding-left: .5rem; margin-left: .25rem; }
  .wrap { padding: 1.25rem 1rem 2.5rem; }
  .panel-pad { padding: 1.15rem; }
  .tiles-3 { grid-template-columns: 1fr; }
  .tiles-3 .tile { flex-direction: row; align-items: center; gap: 1rem; }
  .tiles-3 .tile .arrow { top: 50%; transform: translateY(-50%); }
  .stats { gap: .5rem; }
  .stat { padding: .7rem .75rem; }
  .stat b { font-size: 1.25rem; }
  .exam-banner { flex-wrap: wrap; }
  .exam-banner .btn { margin-left: 0; width: 100%; }
}

/* =====================================================================
   Evaluación diagnóstica (examen.html)
   ===================================================================== */
.exam-wrap { max-width: 820px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.exam-card { padding: 2rem; }
.exam-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.2rem 0 1.5rem; }
.exam-rules div { padding: .9rem 1rem; border-radius: var(--r); background: var(--c-50); }
.exam-rules b { display: block; font-size: 1.4rem; font-weight: 750; color: var(--c); letter-spacing: -.03em; }
.exam-rules span { font-size: .78rem; color: var(--ink-2); }
.exam-form { display: flex; flex-direction: column; gap: 1rem; max-width: 460px; }
.exam-form .seg { background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
.exam-form .seg button.on { background: var(--c); color: #fff; }

/* registro del alumno antes de la evaluación */
.exam-reg { max-width: 640px; gap: 1.1rem; }
.exam-reg .seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 999px; gap: 2px; max-width: 100%; }
.exam-reg .seg button { height: 36px; min-width: 40px; padding: 0 .85rem; border-radius: 999px; font-size: .88rem; font-weight: 650; color: var(--muted); transition: background var(--t), color var(--t); }
.exam-reg .seg button:hover { color: var(--ink); }
.exam-reg .seg button.on { color: #fff; box-shadow: 0 4px 10px -4px rgba(135,34,14,.6); }
.exam-reg .seg-wide { display: flex; }
.exam-reg .seg-wide button { flex: 1; }
.reg-row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.reg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.reg-full { grid-column: 1 / -1; }
.reg-up { text-transform: uppercase; }
.reg-up::placeholder { text-transform: none; }
.exam-reg .input { height: 46px; font-size: .98rem; }
#r-fec { letter-spacing: .08em; font-variant-numeric: tabular-nums; }

.reg-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin: 1.3rem 0 1rem; padding: 1.1rem 1.25rem; border-radius: var(--r-lg); background: var(--c-50); box-shadow: inset 0 0 0 1px var(--c-100); }
.reg-who b { display: block; font-size: 1.05rem; text-transform: uppercase; letter-spacing: -.01em; }
.reg-who span { font-size: .85rem; color: var(--ink-2); }
.reg-rfc { text-align: right; }
.reg-rfc b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: .14em; color: var(--c); font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: .15rem; }
.reg-rfc small { font-size: .74rem; color: var(--muted); }
.reg-rules { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .88rem; color: var(--ink-2); }
.reg-rules li { display: flex; gap: .55rem; align-items: flex-start; }
.reg-rules .ico { flex: none; color: var(--c); margin-top: .1rem; }
.reg-acts { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }

.exam-bar { position: sticky; top: 66px; z-index: 30; display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; margin-bottom: 1rem; border-radius: var(--r-lg); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: var(--sh-2); }
.exam-bar .who { font-size: .86rem; font-weight: 600; }
.exam-bar .bar { flex: 1; }
.clock { display: inline-flex; align-items: center; gap: .4rem; height: 36px; padding: 0 .9rem; border-radius: 999px; font-weight: 750; font-variant-numeric: tabular-nums; background: var(--c-50); color: var(--c); }
.clock.low { background: var(--c); color: #fff; animation: pulse 1s infinite; }

.q-card { padding: 1.75rem; }
.q-num { font-size: .76rem; font-weight: 700; color: var(--c); letter-spacing: .06em; text-transform: uppercase; }
.q-text { font-size: 1.2rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.4; margin: .5rem 0 1.25rem; }
.opts { display: flex; flex-direction: column; gap: .6rem; }
.opt { display: flex; align-items: center; gap: .85rem; width: 100%; padding: .9rem 1rem; border-radius: var(--r); text-align: left; background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); font-size: .95rem; transition: box-shadow var(--t), background var(--t), transform var(--t); }
.opt:hover { box-shadow: inset 0 0 0 1px var(--c-200), var(--sh-2); }
.opt .k { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 750; font-size: .82rem; color: var(--c); background: var(--c-50); }
.opt.on { background: var(--c-50); box-shadow: inset 0 0 0 2px var(--c); }
.opt.on .k { background: var(--c); color: #fff; }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.4rem; }
.dots-nav { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 1.2rem; }
.dots-nav button { width: 32px; height: 32px; border-radius: 9px; font-size: .76rem; font-weight: 700; color: var(--muted); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.dots-nav button.ok { background: var(--c-50); color: var(--c); box-shadow: inset 0 0 0 1px var(--c-100); }
.dots-nav button.cur { background: var(--c); color: #fff; box-shadow: none; }
.result { text-align: center; padding: 2.5rem 2rem; }
.result .ring { margin: 1rem auto 1.2rem; }
.result h2 { font-size: 1.6rem; font-weight: 750; letter-spacing: -.03em; }
@media (max-width: 640px) {
  .exam-rules { grid-template-columns: 1fr; }
  .reg-grid { grid-template-columns: 1fr; }
  .reg-row, .reg-row .field { width: 100%; }
  .exam-reg #s-gr, .exam-reg #s-gp { display: grid; width: 100%; border-radius: 14px; }
  .exam-reg #s-gr { grid-template-columns: repeat(3, 1fr); }
  .exam-reg #s-gp { grid-template-columns: repeat(7, 1fr); }
  .exam-reg #s-gr button, .exam-reg #s-gp button { min-width: 0; padding: 0; border-radius: 11px; }
  .exam-card .exam-rules { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .exam-card .exam-rules div { padding: .7rem .6rem; }
  .exam-card .exam-rules b { font-size: 1.15rem; }
  .exam-card .exam-rules span { font-size: .7rem; line-height: 1.3; display: block; }
  .reg-rfc { text-align: left; }
  .reg-acts { flex-direction: column-reverse; }
  .reg-acts .btn { width: 100%; justify-content: center; }
  .exam-card, .q-card { padding: 1.25rem; }
  .q-text { font-size: 1.05rem; }
  .exam-bar .who { display: none; }
}
