/* =========================================================
   ENGLISH LEVEL TEST
   Page-specific styles only

   Общая визуальная система находится в ../styles.css
========================================================= */


/* =========================================================
   INTRO / TEST AREA
========================================================= */

.test-section{
  padding-top: 28px;
}


/* =========================================================
   TEST SHELL
========================================================= */

.test-start,
.test-box{
  width: 100%;

  margin-inline: 0;
  padding: clamp(28px, 5vw, 48px);

  border: 1px solid var(--silver-300);
  border-radius: var(--radius-xl);

  background:
    radial-gradient(
      600px 240px at 0% 0%,
      rgba(182,192,203,0.20),
      transparent 65%
    ),
    var(--surface);

  box-shadow: var(--shadow-lg);
}

.test-start{
  text-align: center;
}


/* =========================================================
   START SCREEN
========================================================= */

.test-start__label,
.test-result__label{
  display: inline-flex;
  align-items: center;

  margin-bottom: var(--space-4);
  padding: 7px 13px;

  border: 1px solid var(--silver-300);
  border-radius: var(--radius-pill);

  color: var(--navy-800);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      var(--platinum-200)
    );

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.test-start__lead{
  max-width: 680px;

  margin: 0 auto var(--space-7);

  color: var(--muted);

  font-size: 16px;
  line-height: 1.75;
}


/* =========================================================
   TEST INFO
========================================================= */

.test-info{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);

  margin: var(--space-7) 0;
}

.test-info__item{
  padding: 20px 14px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--surface-soft);
}

.test-info__item strong{
  display: block;

  margin-bottom: 4px;

  color: var(--navy-800);

  font-size: 20px;
  line-height: 1.25;
}

.test-info__item span{
  color: var(--muted);
  font-size: 13px;
}


/* =========================================================
   CHECKED SKILLS
========================================================= */

.test-checks{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;

  margin: 28px 0 32px;
}

.test-check{
  display: inline-flex;
  align-items: center;

  color: var(--text);

  font-size: 14px;
  font-weight: 700;
}

.test-check__icon{
  width: 24px;
  height: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-right: 7px;

  border: 1px solid var(--silver-300);
  border-radius: 50%;

  color: var(--navy-700);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      var(--platinum-200)
    );

  font-size: 12px;
  font-weight: 800;
}

.test-start__button{
  min-width: 220px;
  min-height: 52px;

  font-size: 16px;
}

.test-start__note{
  max-width: 580px;

  margin: var(--space-6) auto 0;

  color: var(--muted-2);

  font-size: 13px;
  line-height: 1.65;
}


/* =========================================================
   PROGRESS
========================================================= */

.test-progress{
  margin-bottom: var(--space-6);

  color: var(--muted-2);

  font-size: 13px;
}

.test-progress-top{
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);

  margin-bottom: 10px;

  color: var(--muted-2);

  font-size: 13px;
}

.test-progress-bar{
  width: 100%;
  height: 8px;

  margin-bottom: 36px;

  overflow: hidden;

  border-radius: var(--radius-pill);

  background: var(--platinum-300);
}

.test-progress-bar__fill{
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--navy-600),
      var(--navy-700)
    );

  transition:
    width var(--t-slow) var(--ease);
}


/* =========================================================
   QUESTION
========================================================= */

.test-question{
  margin-bottom: 30px;
}


/* =========================================================
   OPTIONS
========================================================= */

.test-options{
  display: grid;
  gap: 12px;
}

.test-option{
  width: 100%;

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 15px 16px;

  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);

  color: var(--text);
  background: var(--surface);

  text-align: left;
  font: inherit;
  font-size: 15px;

  cursor: pointer;

  transition:
    color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    background var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease);
}

.test-option:hover{
  border-color: var(--silver-500);

  background: var(--surface-soft);

  box-shadow: var(--shadow-sm);

  transform: translateY(-1px);
}

.test-option__letter{
  flex: 0 0 36px;

  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--silver-300);
  border-radius: 10px;

  color: var(--navy-800);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      var(--platinum-200)
    );

  font-size: 13px;
  font-weight: 800;
}

.test-option.is-selected{
  color: var(--navy-900);

  border-color: var(--navy-600);

  background: rgba(24,59,114,0.045);

  box-shadow:
    0 0 0 3px rgba(24,59,114,0.08);
}

.test-option.is-selected .test-option__letter{
  color: #fff;

  border-color: var(--navy-700);
  background: var(--navy-700);
}


/* =========================================================
   TEST NAVIGATION
========================================================= */

.test-navigation{
  display: flex;
  justify-content: flex-end;

  margin-top: 30px;
}


/* =========================================================
   RESULT
========================================================= */

.test-result{
  text-align: center;
}

.test-result__score{
  margin: 20px 0;

  color: var(--navy-800);

  font-size: 42px;
  line-height: 1;
  font-weight: 800;
}

.test-result__percent{
  margin: -8px 0 24px;

  color: var(--muted);

  font-weight: 700;
}

.test-result__eyebrow{
  margin: 12px 0 4px;

  color: var(--muted-2);

  font-size: 13px;
}

.test-result__level{
  margin: 0 0 10px;

  color: var(--navy-800);

  font-family:
    "Lora",
    Georgia,
    serif;

  font-size: clamp(56px, 10vw, 92px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.test-result__summary{
  margin: 0 0 var(--space-6);

  color: var(--heading);

  font-weight: 800;
}

.test-result__description{
  max-width: 700px;

  margin: 0 auto var(--space-8);

  color: var(--muted);

  line-height: 1.75;
}


/* =========================================================
   RESULT PANELS
========================================================= */

.test-result-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);

  margin: var(--space-7) 0;

  text-align: left;
}

.test-result-panel{
  padding: var(--space-6);

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  background: var(--surface-soft);
}

.test-result-row{
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);

  padding: 10px 0;

  border-bottom: 1px solid var(--border);
}

.test-result-row:last-child{
  border-bottom: 0;
}


/* =========================================================
   SKILLS
========================================================= */

.test-skill{
  margin-bottom: var(--space-5);
}

.test-skill:last-child{
  margin-bottom: 0;
}

.test-skill__top{
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);

  margin-bottom: 8px;

  color: var(--muted);

  font-size: 13px;
}

.test-skill__bar{
  height: 8px;

  overflow: hidden;

  border-radius: var(--radius-pill);

  background: var(--platinum-300);
}

.test-skill__fill{
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--silver-500),
      var(--navy-700)
    );
}


/* =========================================================
   RESULT NOTE
========================================================= */

.test-result__note{
  max-width: 720px;

  margin: 30px auto;
  padding: 18px 20px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  color: var(--muted);

  background: var(--surface-soft);

  font-size: 13px;
  line-height: 1.65;
}


/* =========================================================
   RESULT ACTIONS
========================================================= */

.test-result__actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px){

  .test-start,
  .test-box{
    padding: 28px 20px;
  }

  .test-info{
    grid-template-columns: 1fr;
  }

  .test-start__button{
    width: 100%;
  }

  .test-navigation .btn{
    width: 100%;
  }

  .test-result-grid{
    grid-template-columns: 1fr;
  }

  .test-result__score{
    font-size: 34px;
  }

  .test-result__actions{
    flex-direction: column;
  }

  .test-result__actions .btn{
    width: 100%;
  }

}