:root {
  --bg: #1b1d24;
  --bg-soft: #20232d;
  --panel: #252937;
  --panel-2: #20232d;
  --panel-3: #1d2028;
  --stroke: #363b4a;
  --text: #f5f3f8;
  --muted: #b8bcc8;
  --muted-2: #8f94a3;

  --course: #65d39b;
  --course-2: #b9f7d2;
  --course-dark: #183127;
  --course-soft: rgba(101, 211, 155, 0.15);
  --course-border: rgba(101, 211, 155, 0.38);

  --accent: #65d39b;
  --accent-2: #b9f7d2;
  --accent-warm: #ffd84d;
  --expectation: #ffd84d;
  --self: #65d39b;
  --blue: #42e8ff;
  --red: #ff7b7b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(101, 211, 155, 0.055), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(185, 247, 210, 0.045), transparent 34%),
    radial-gradient(circle at 70% 54%, rgba(66, 232, 255, 0.025), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
}

button, input { font: inherit; }
a { color: inherit; }

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 110px;
}

.section { margin-top: 72px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--course);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 840px;
  margin-bottom: 20px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: .92;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 820px;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.48;
}

.lead--secondary {
  color: var(--muted);
}

/* top nav */

.course-dashboard {
  margin: 0 0 48px;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.top a {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #181a21;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: all .25s ease;
}

.top a:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: var(--course-border);
  box-shadow:
    0 8px 20px rgba(0,0,0,.25),
    0 0 16px rgba(101, 211, 155, .15);
}

.line {
  position: relative;
  height: 2px;
  overflow: hidden;
}

.line::before,
.line::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(101,211,155,.75), rgba(185,247,210,.7), rgba(66,232,255,.35), transparent);
  animation: moveLine 4s linear infinite;
}

.line::after {
  filter: blur(8px);
  opacity: .7;
}

@keyframes moveLine {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* lesson topic */

.lesson-topic {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 28px;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(101, 211, 155, .10);
  border: 1px solid var(--course-border);
}

.lesson-topic__label {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--course);
  color: #142019;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.lesson-topic__title {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

/* course cover */

.course-cover {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--stroke);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(37,41,55,.88), rgba(29,32,40,.96));
  box-shadow: 0 22px 46px rgba(6,8,14,.18);
}

.course-cover--green {
  border-color: var(--course-border);
  background:
    radial-gradient(circle at 0% 0%, rgba(101, 211, 155, .20), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(185, 247, 210, .10), transparent 36%),
    linear-gradient(180deg, rgba(31,45,40,.94), rgba(29,32,40,.98));
}

.course-cover__image {
  border-radius: 28px;
  overflow: hidden;
  background: #181a21;
  border: 1px solid rgba(255,255,255,.06);
}

.course-cover__image img {
  display: block;
  width: 100%;
  height: auto;
}

.course-description {
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.course-cover__action {
  margin-top: 32px;
}

.course-cover__action--bottom {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.course-start-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--course), var(--course-2));
  color: #142019;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(101, 211, 155, .18);
}

.course-start-button__icon {
  font-size: 22px;
}

/* topics */

.course-topics {
  padding: 28px;
  border: 1px solid var(--stroke);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(37,41,55,.88), rgba(29,32,40,.96));
}

.course-topics__header { margin-bottom: 24px; }
.topics-list { display: grid; gap: 12px; }

.topic-item {
  border: 1px solid var(--stroke);
  border-radius: 22px;
  overflow: hidden;
  background: #1b1d24;
}

.topic-toggle {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.topic-toggle__icon { color: var(--course); }

.topic-content {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.5;
}

.topic-item.is-open .topic-content { display: block; }

/* story */

.story-card {
  border: 1px solid var(--stroke);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(37,41,55,.88), rgba(29,32,40,.96));
  overflow: hidden;
  box-shadow: 0 22px 46px rgba(6,8,14,.18);
}

.story-card--green {
  border-color: var(--course-border);
}

.story-card__top,
.story-card__bottom {
  padding: 28px;
}

.story-card__label {
  margin-bottom: 12px;
  color: var(--course);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.story-card__title { max-width: 860px; }

.story-card__middle {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 22px;
  padding: 0 28px 28px;
}

.story-card__image-wrap {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  background: #181a21;
}

.story-card__image {
  display: block;
  width: 100%;
}

.story-points {
  display: grid;
  gap: 12px;
}

.story-point {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: #1b1d24;
}

.story-point__title {
  display: block;
  margin-bottom: 8px;
  color: var(--course);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
}

.story-point p,
.story-card__caption {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.story-points--five {
  grid-template-columns: 1fr;
}

/* chat */

.chat-block__header { margin-bottom: 20px; }

.chat-block__eyebrow,
.mentor-section__eyebrow {
  margin-bottom: 10px;
  color: var(--course);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.chat-frame {
  padding: 22px;
  border: 1px solid var(--stroke);
  border-radius: 30px;
  background: #20232d;
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
}

.chat-frame--inner {
  border-color: var(--course-border);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 216, 77, .09), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(101, 211, 155, .13), transparent 34%),
    #20232d;
}

.chat-meta {
  margin-bottom: 18px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.chat-thread {
  display: grid;
  gap: 18px;
}

.chat-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
}

.chat-row--you,
.chat-row--self {
  grid-template-columns: 1fr 96px;
}

.chat-row--you .chat-person,
.chat-row--self .chat-person {
  grid-column: 2;
  grid-row: 1;
}

.chat-row--you .message,
.chat-row--self .message {
  grid-column: 1;
  grid-row: 1;
}

.chat-person {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.avatar--chat { object-fit: cover; }

.chat-person__name {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.message__bubble {
  max-width: 720px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #181a21;
  color: var(--text);
  line-height: 1.5;
  border: 1px solid rgba(255,255,255,.06);
}

.message--you .message__bubble,
.message--self .message__bubble {
  margin-left: auto;
}

.message--you .message__bubble {
  background: rgba(101, 211, 155, .12);
  border-color: rgba(101, 211, 155, .25);
}

.message--expectation .message__bubble {
  background: rgba(255, 216, 77, .10);
  border-color: rgba(255, 216, 77, .24);
}

.message--self .message__bubble {
  background: rgba(101, 211, 155, .12);
  border-color: rgba(101, 211, 155, .28);
}

.message__bubble--typing {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--course);
  animation: typing 1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }

@keyframes typing {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.reveal,
.reveal-on-show {
  animation: revealMessage .55s ease both;
  animation-delay: var(--delay);
}

@keyframes revealMessage {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.scene-outcome {
  max-width: 840px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

/* inner */

.mentor-section__intro { margin-bottom: 20px; }

.mentor-section__text {
  max-width: 820px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

/* decision */

.decision h2 { margin-bottom: 10px; }

.decision-hint {
  color: var(--muted);
  font-size: 18px;
}

.answers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.answer-card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid var(--stroke);
  background: #1b1d24;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.answer-card:hover {
  transform: translateY(-5px);
  border-color: var(--course-border);
  box-shadow: 0 18px 38px rgba(101, 211, 155, .08);
}

.answer-card.is-selected {
  border-color: rgba(101,211,155,.78);
  box-shadow: 0 18px 44px rgba(101, 211, 155, .12);
}

.answer-index {
  color: var(--course);
  font-weight: 900;
}

.answer-copy {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.feedback,
.reflection-text {
  margin-top: 22px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: #20232d;
}

.feedback-status {
  margin-bottom: 10px;
  color: var(--course);
  font-size: 22px;
  font-weight: 900;
}

.feedback-text,
.feedback-note,
.reflection-text p {
  color: var(--muted);
  line-height: 1.5;
}

.reflection-text p {
  margin-bottom: 0;
  font-size: 18px;
}

.hidden { display: none !important; }

/* formula */

.formula-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(101,211,155,.16), transparent 34%),
    linear-gradient(180deg, rgba(37,41,55,.88), rgba(29,32,40,.96));
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 28px 28px;
}

.formula-grid article {
  padding: 18px;
  border-radius: 22px;
  background: #1b1d24;
  border: 1px solid var(--stroke);
}

.formula-grid__accent {
  border-color: var(--course-border) !important;
  background:
    radial-gradient(circle at 80% 0%, rgba(101,211,155,.14), transparent 42%),
    #1b1d24 !important;
}

.formula-grid span {
  color: var(--course);
  font-weight: 900;
  font-size: 24px;
}

.formula-grid h3 {
  margin: 12px 0 10px;
  font-size: 20px;
}

.formula-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* lesson nav */

.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.lesson-nav__link {
  flex: 1;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--stroke);
  background: #1b1d24;
  text-decoration: none;
  color: var(--text);
}

.lesson-nav__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--course);
  color: #142019;
}

.lesson-nav__svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lesson-nav__label {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

@media (max-width: 980px) {
  .course-cover,
  .story-card__middle,
  .answers,
  .formula-grid {
    grid-template-columns: 1fr;
  }

  .chat-row,
  .chat-row--you,
  .chat-row--self {
    grid-template-columns: 72px 1fr;
  }

  .chat-row--you .chat-person,
  .chat-row--you .message,
  .chat-row--self .chat-person,
  .chat-row--self .message {
    grid-column: auto;
    grid-row: auto;
  }

  .message--you .message__bubble,
  .message--self .message__bubble {
    margin-left: 0;
  }

  .lesson-nav {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page { padding: 22px 18px 86px; }
  .section { margin-top: 46px; }

  .top { flex-direction: column; }
  .top a { text-align: center; }

  .lead { font-size: 19px; }

  .lesson-topic {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 24px;
  }

  .story-card__top,
  .story-card__bottom,
  .story-card__middle,
  .course-topics,
  .chat-frame {
    padding: 18px;
  }

  .chat-row,
  .chat-row--you,
  .chat-row--self {
    grid-template-columns: 1fr;
  }

  .chat-person {
    justify-items: start;
    grid-template-columns: 48px 1fr;
    align-items: center;
  }
}


/* answer feedback states */

.feedback {
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.feedback.is-correct {
  border-color: rgba(101, 211, 155, .38);
  box-shadow:
    0 18px 42px rgba(101, 211, 155, .08),
    inset 0 1px 0 rgba(255,255,255,.04);
  background:
    radial-gradient(circle at 0% 0%, rgba(101, 211, 155, .12), transparent 36%),
    #20232d;
}

.feedback.is-wrong {
  border-color: rgba(255, 123, 123, .30);
  box-shadow:
    0 18px 42px rgba(255, 123, 123, .07),
    inset 0 1px 0 rgba(255,255,255,.04);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 123, 123, .105), transparent 36%),
    #20232d;
}

.feedback.is-wrong .feedback-status {
  color: #ff9a9a;
}

.answer-card.is-wrong {
  border-color: rgba(255, 123, 123, .35);
  box-shadow: 0 18px 44px rgba(255, 123, 123, .08);
}

.answer-card.is-correct {
  border-color: rgba(101,211,155,.78);
  box-shadow: 0 18px 44px rgba(101, 211, 155, .12);
}

/* lesson 2 inner voices */
.message--importance .message__bubble {
  background: rgba(255, 216, 77, .10);
  border-color: rgba(255, 216, 77, .24);
}

.message--emotions .message__bubble {
  background: rgba(255, 123, 123, .10);
  border-color: rgba(255, 123, 123, .24);
}

/* lesson stub / 404 */
.stub { margin-top: 48px; }

.stub-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(101, 211, 155, .18), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(66, 232, 255, .06), transparent 38%),
    linear-gradient(180deg, rgba(37,41,55,.88), rgba(29,32,40,.96));
}

.stub-card__title {
  margin-bottom: 24px;
  font-size: clamp(48px, 6vw, 76px);
}

.stub-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.stub-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #1b1d24;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .25s ease;
}

.stub-link-button:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: var(--course-border);
  box-shadow: 0 18px 36px rgba(101, 211, 155, .1);
}

.stub-card__visual {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(circle at 50% 45%, rgba(101, 211, 155, .18), transparent 35%),
    #181a21;
  overflow: hidden;
}

.stub-404 {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: stubFloat 3.6s ease-in-out infinite;
}

.stub-404 span {
  font-size: clamp(72px, 9vw, 130px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: var(--text);
}

.stub-404__image {
  width: clamp(86px, 12vw, 150px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(101, 211, 155, .16));
}

.stub-visual-text {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 3;
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.stub-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(101, 211, 155, .18);
  animation: stubPulse 4s ease-in-out infinite;
}

.stub-orbit--one { width: 260px; height: 260px; }
.stub-orbit--two { width: 360px; height: 360px; animation-delay: .8s; }

@keyframes stubFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes stubPulse {
  0%, 100% { opacity: .35; transform: scale(.96); }
  50% { opacity: .8; transform: scale(1.04); }
}

@media (max-width: 980px) {
  .stub-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .stub-card { padding: 22px; }
  .stub-card__visual { min-height: 280px; }
  .stub-card__actions { flex-direction: column; }
  .course-start-button, .stub-link-button { justify-content: center; width: 100%; }
}


/* === FIX: положение плашки "печатает" у сообщений героя ===
   Проблема была в том, что у .chat-row--you блок .message растягивался
   на всю левую колонку сетки, поэтому короткая плашка "печатает"
   визуально уезжала далеко от аватарки "Ты".

   Эти правила прижимают сообщение героя к правому краю своей колонки,
   то есть ближе к аватарке. Работает и для обычных сообщений героя,
   и для короткой typing-плашки.
*/

.chat-row--you .message {
  justify-self: end;
}

/* Короткая плашка "печатает" теперь занимает только свою реальную ширину,
   а не растягивается на всю доступную область. */
.chat-row--you .message--typing {
  width: fit-content;
  max-width: 100%;
}

/* Сам пузырь typing тоже прижимается вправо внутри блока сообщения. */
.chat-row--you .message--typing .message__bubble--typing {
  margin-left: auto;
}

/* На мобильных экранах сетка перестраивается в одну колонку,
   поэтому возвращаем естественное выравнивание, чтобы чат не ломался. */
@media (max-width: 980px) {
  .chat-row--you .message {
    justify-self: start;
  }

  .chat-row--you .message--typing .message__bubble--typing {
    margin-left: 0;
  }
}


/* === Course progress / VERSION: course-progress-mvp-20260519 === */
.course-progress-card,
.lesson-progress-card {
  margin-top: 26px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--course-border);
  background:
    radial-gradient(circle at 0% 0%, rgba(101,211,155,.12), transparent 34%),
    rgba(27,29,36,.72);
}

.course-progress-card__top,
.lesson-progress-card__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.course-progress-card__status,
.lesson-progress-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #142019;
  background: linear-gradient(135deg, var(--course), var(--course-2));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.course-progress-card__status.is-muted,
.lesson-progress-card__status.is-muted {
  color: var(--muted);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.035);
}

.course-progress-card__status.is-done,
.lesson-progress-card__status.is-done {
  color: #142019;
  background: linear-gradient(135deg, var(--course), var(--course-2));
}

.course-progress-card__count,
.lesson-progress-card__count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.course-progress-card__track,
.lesson-progress-card__track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #111318;
}

.course-progress-card__fill,
.lesson-progress-card__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--course), var(--course-2));
  transition: width .28s ease;
}

.course-progress-card__hint,
.lesson-progress-card__hint {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.45;
}

.course-reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-left: 12px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.course-reset-button:hover {
  transform: translateY(-2px);
  color: #ffd0d0;
  border-color: rgba(255,123,123,.36);
}

.lesson-progress-card {
  margin: 0 0 34px;
}

@media (max-width: 640px) {
  .course-progress-card__top,
  .lesson-progress-card__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-cover__action {
    display: grid;
    gap: 12px;
  }

  .course-reset-button {
    width: 100%;
    margin-left: 0;
  }
}
