/* Russian Placement Test — Minimal / White UI */
.rpt-app{
  --rpt-primary:#1C4668;
  --rpt-dark:#091016;
  --rpt-soft:#E7F4FF;
  --rpt-deep:#0C2133;
  --rpt-bg:#ffffff;
  --rpt-text:#091016;
  --rpt-muted:#64727d;
  --rpt-border:#dfe7ec;
  --rpt-border-strong:#cbd7df;
  max-width:100%;
  width:100%;
  margin:32px auto;
  font-family:inherit;
  color:var(--rpt-text);
  box-sizing:border-box;
}
.rpt-app *,
.rpt-app *::before,
.rpt-app *::after{box-sizing:border-box}

.rpt-card{
  background:#fff;
  border:1px solid var(--rpt-border);
  border-radius:22px;
  padding:34px;
  box-shadow:0 14px 45px rgba(9,16,22,.06);
}
.rpt-intro,
.rpt-result{max-width:1000px;margin-inline:auto}

.rpt-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--rpt-primary);
  font-weight:800;
}
.rpt-card h2{
  font-size:32px;
  line-height:1.3;
  margin:10px 0 12px;
  color:var(--rpt-dark);
}
.rpt-card h3{
  margin:10px 0 20px;
  font-size:22px;
  line-height:1.8;
  color:var(--rpt-dark);
}
.rpt-card p{
  color:var(--rpt-muted);
  line-height:1.9;
}
.rpt-info{
  padding-right:20px;
  line-height:2.1;
  color:var(--rpt-muted);
}
.rpt-info li::marker{color:var(--rpt-primary)}

.rpt-btn{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--rpt-primary);
  border-radius:12px;
  padding:12px 22px;
  background:var(--rpt-primary);
  color:#fff!important;
  text-decoration:none!important;
  font-weight:800;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.rpt-btn:hover{
  background:var(--rpt-deep);
  border-color:var(--rpt-deep);
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(28,70,104,.14);
}
.rpt-btn:disabled{
  opacity:.42;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.rpt-quiz{width:100%}
.rpt-quiz-layout{
  display:grid;
  grid-template-columns:270px minmax(0,1fr);
  gap:18px;
  width:100%;
  align-items:stretch;
}

/* Question list */
.rpt-question-panel{
  height:720px;
  min-width:0;
  background:#fff;
  border:1px solid var(--rpt-border);
  border-radius:22px;
  padding:22px;
  box-shadow:0 14px 45px rgba(9,16,22,.05);
  display:flex;
  flex-direction:column;
}
.rpt-panel-head{
  display:flex;
  flex-direction:column;
  gap:7px;
  padding-bottom:15px;
  border-bottom:1px solid var(--rpt-border);
}
.rpt-panel-head strong{
  display:block;
  font-size:20px;
  color:var(--rpt-dark);
}
.rpt-muted{
  display:block;
  color:var(--rpt-muted);
  font-size:12px;
  margin-bottom:3px;
}
.rpt-answered-count{
  color:var(--rpt-muted);
  font-size:12px;
  font-weight:700;
}
.rpt-panel-progress{
  height:6px;
  background:#edf2f5;
  border-radius:99px;
  overflow:hidden;
  margin:16px 0;
}
.rpt-panel-progress span{
  display:block;
  height:100%;
  width:0;
  background:var(--rpt-primary);
  transition:width .25s ease;
}
.rpt-question-nav{
  flex:1;
  min-height:0;
  overflow:auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  align-content:start;
  gap:8px;
  padding:2px 1px 8px;
  scrollbar-width:thin;
}
.rpt-question-number{
  width:100%;
  aspect-ratio:1;
  min-width:0;
  border:1px solid var(--rpt-border);
  border-radius:10px;
  background:#fff;
  color:var(--rpt-muted);
  font:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}
.rpt-question-number:hover{
  border-color:var(--rpt-primary);
  color:var(--rpt-primary);
}
.rpt-question-number.is-current{
  background:var(--rpt-primary);
  border-color:var(--rpt-primary);
  color:#fff;
}
.rpt-question-number.is-answered:not(.is-current){
  background:var(--rpt-soft);
  border-color:#b8d6e9;
  color:var(--rpt-primary);
}
.rpt-panel-legend{
  display:grid;
  gap:8px;
  padding-top:14px;
  border-top:1px solid var(--rpt-border);
  color:var(--rpt-muted);
  font-size:11px;
}
.rpt-panel-legend span{
  display:flex;
  align-items:center;
  gap:7px;
}
.rpt-legend-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#dfe7ec;
  flex:none;
}
.rpt-legend-dot.is-current{background:var(--rpt-primary)}
.rpt-legend-dot.is-answered{background:#a9cde2}

/* Fixed-height question area */
.rpt-question-card{
  height:720px;
  min-height:720px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.rpt-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
}
.rpt-counter{
  font-size:15px;
  color:var(--rpt-dark);
}
.rpt-level-badge{
  font-weight:900;
  padding:8px 13px;
  border-radius:999px;
  background:var(--rpt-soft);
  color:var(--rpt-primary);
}
.rpt-progress{
  height:6px;
  background:#edf2f5;
  border-radius:99px;
  overflow:hidden;
  margin:18px 0 30px;
}
.rpt-progress span{
  display:block;
  height:100%;
  background:var(--rpt-primary);
  width:0;
  transition:width .25s ease;
}
.rpt-question{
  min-height:116px;
}
.rpt-question-level{
  font-size:13px;
  color:var(--rpt-primary);
  font-weight:800;
  margin-bottom:6px;
}
.rpt-question h3{
  margin:0;
  font-size:25px;
  line-height:1.8;
  font-weight:800;
}
.rpt-options{
  display:grid;
  gap:11px;
  margin-top:4px;
}
.rpt-option{
  min-height:58px;
  display:flex;
  align-items:center;
  gap:13px;
  border:1px solid var(--rpt-border);
  border-radius:13px;
  padding:13px 15px;
  cursor:pointer;
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
  background:#fff;
  line-height:1.7;
}
.rpt-option:hover{
  border-color:#a8c0cf;
  background:#fbfdfe;
}
.rpt-option.selected{
  border-color:var(--rpt-primary);
  background:var(--rpt-soft);
  box-shadow:0 0 0 2px rgba(28,70,104,.06);
}
.rpt-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.rpt-letter{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#eef2f4;
  color:var(--rpt-deep);
  font-weight:900;
  flex:none;
}
.rpt-option.selected .rpt-letter{
  background:var(--rpt-primary);
  color:#fff;
}
.rpt-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:auto;
  padding-top:22px;
  border-top:1px solid var(--rpt-border);
}
.rpt-prev{
  background:#fff;
  color:var(--rpt-primary)!important;
}
.rpt-prev:hover{
  background:var(--rpt-soft);
  color:var(--rpt-deep)!important;
}
.rpt-next{margin-inline-start:auto}

/* Result */
.rpt-level-result{
  font-size:70px;
  font-weight:900;
  line-height:1;
  margin:20px 0;
  color:var(--rpt-primary);
}
.rpt-score-wrap{
  display:flex;
  align-items:center;
  gap:22px;
  border:1px solid var(--rpt-border);
  border-radius:18px;
  padding:20px;
  margin:25px 0;
}
.rpt-score-ring{
  width:100px;
  height:100px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:conic-gradient(var(--rpt-primary) 0deg,#e7edf1 0deg);
  position:relative;
  flex:none;
}
.rpt-score-ring:after{
  content:"";
  position:absolute;
  inset:9px;
  background:#fff;
  border-radius:50%;
}
.rpt-score-ring span{
  position:relative;
  z-index:1;
  font-weight:900;
  color:var(--rpt-dark);
}
.rpt-skills{
  display:grid;
  gap:12px;
  margin:15px 0 28px;
}
.rpt-skill{
  border:1px solid var(--rpt-border);
  border-radius:14px;
  padding:14px;
}
.rpt-skill-head{
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin-bottom:9px;
  font-size:14px;
}
.rpt-skill-head strong{font-size:13px;color:var(--rpt-primary)}
.rpt-bar{
  height:7px;
  background:#edf2f5;
  border-radius:99px;
  overflow:hidden;
}
.rpt-bar span{
  display:block;
  height:100%;
  background:var(--rpt-primary);
}
.rpt-recommendation{
  border:1px solid #cfe3ef;
  border-radius:18px;
  padding:22px;
  background:var(--rpt-soft);
  margin-bottom:18px;
}
.rpt-recommendation h3{
  font-size:20px;
  margin-top:0;
}
.rpt-retry{
  margin-top:12px;
  background:var(--rpt-deep);
  border-color:var(--rpt-deep);
}

@media(max-width:900px){
  .rpt-quiz-layout{grid-template-columns:1fr}
  .rpt-question-panel{
    height:auto;
    order:2;
  }
  .rpt-question-card{
    order:1;
  }
  .rpt-question-nav{
    max-height:155px;
    flex:none;
  }
  .rpt-panel-legend{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:600px){
  .rpt-app{margin:18px auto}
  .rpt-card{padding:22px;border-radius:18px}
  .rpt-card h2{font-size:26px}
  .rpt-card h3{font-size:19px}
  .rpt-question-card{
    height:680px;
    min-height:680px;
    padding:20px;
  }
  .rpt-question-panel{
    padding:18px;
    border-radius:18px;
  }
  .rpt-question-nav{
    grid-template-columns:repeat(6,1fr);
    max-height:145px;
  }
  .rpt-question-number{border-radius:8px;font-size:12px}
  .rpt-panel-legend{font-size:10px}
  .rpt-question{min-height:112px}
  .rpt-question h3{font-size:19px;line-height:1.75}
  .rpt-option{min-height:54px;padding:11px 12px;font-size:14px}
  .rpt-actions{gap:8px}
  .rpt-btn{padding-inline:15px}
  .rpt-level-result{font-size:58px}
  .rpt-score-wrap{align-items:flex-start}
  .rpt-skill-head{flex-direction:column;gap:5px}
}


/* User requested typography, direction and fixed desktop width */
.rpt-app {
  direction: ltr;
}

.rpt-quiz {
  width: 1000px;
  max-width: 1000px;
  min-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.rpt-quiz,
.rpt-quiz * {
  font-family: "فونت 2", sans-serif;
}

.rpt-options,
.rpt-options .rpt-option,
.rpt-options .rpt-option * {
  direction: ltr;
  text-align: left;
}

.rpt-question h3,
.rpt-options label.rpt-option span {
  font-family: "فونت روسی", sans-serif !important;
  direction: ltr;
  text-align: left;
}

.rpt-question-panel,
.rpt-question-nav,
.rpt-question-number {
  direction: ltr;
}

.rpt-question-number {
  font-family: "فونت 2", sans-serif;
  text-align: center;
}

.rpt-panel-head {
  align-items: flex-end;
}

.rpt-topbar {
  flex-direction: row-reverse;
}

.rpt-topbar .rpt-muted {
  text-align: right;
}

button.rpt-question-number:hover {
  background: #dedede;
}

@media (max-width: 1000px) {
  .rpt-quiz {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
