.cefr-page {
  background: var(--bg-gradient);
}

.cefr-header .nav {
  align-items: center;
}

.cefr-header .nav-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.test-main {
  flex: 1;
  padding: 40px 0 90px;
}

.test-container {
  max-width: 860px;
}

.test-card {
  padding: 32px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.test-intro h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 3vw, 40px);
}

.test-subtitle {
  color: var(--text-muted);
  margin: 0 0 18px;
}

.test-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.test-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
}

.test-list li {
  position: relative;
  padding-left: 18px;
}

.test-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.test-start,
.result-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
}

.test-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.test-progress-text {
  font-weight: 600;
}

.progress-bar {
  flex: 1;
  min-width: 180px;
  height: 10px;
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.test-prompt {
  color: var(--text-muted);
  margin: 0 0 12px;
}

.test-question-text {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0 0 20px;
}

.reading-text {
  white-space: pre-line;
  background: var(--accent-soft);
  border: 1px solid var(--border-soft);
  padding: 16px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  margin: 0 0 16px;
}

.test-options {
  display: grid;
  gap: 12px;
}

.test-option {
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.test-option:hover,
.test-option:focus {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(123, 92, 255, 0.16);
  transform: translateY(-1px);
}

.test-option:disabled {
  cursor: default;
  transform: none;
  box-shadow: none;
}

.test-option.is-correct {
  border-color: #2ecc71;
  background: #f2fbf5;
}

.test-option.is-wrong {
  border-color: #e74c3c;
  background: #fdf3f2;
}

.test-result {
  display: grid;
  gap: 16px;
}

.result-level {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  color: var(--accent);
}

.result-description {
  color: var(--text-muted);
  margin: 0;
}

.result-breakdown {
  display: grid;
  gap: 10px;
}

.result-cta-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #fff;
  display: grid;
  gap: 12px;
}

.result-cta-card h3 {
  margin: 0;
  font-size: 18px;
}

.result-cta-card p {
  margin: 0;
  color: var(--text-muted);
}

.bot-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bot-section {
  margin-top: 25px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--text-main);
}

.result-disclaimer {
  color: var(--text-muted);
  margin: 0;
}

.test-error {
  text-align: center;
  color: var(--text-muted);
}

.seo-section {
  margin-top: 32px;
}

.seo-content h2 {
  margin: 6px 0 12px;
  font-size: clamp(22px, 2.4vw, 30px);
}

.seo-content h3 {
  margin: 18px 0 10px;
  font-size: 18px;
}

.seo-content p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.level-grid {
  display: grid;
  gap: 18px;
  margin: 18px 0 24px;
}

.level-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #fff;
}

.seo-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  display: grid;
  gap: 8px;
}

.seo-cta {
  display: inline-flex;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .test-card {
    padding: 24px;
  }

  .test-progress {
    align-items: flex-start;
  }

  .test-option {
    padding: 12px 14px;
  }
}
