/* =========================================
   ivEng — КУРС «Неправильные глаголы за 30 дней»
   Палитра как на главной (home.css)
========================================= */

.course-hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(112, 231, 162, 0.32), transparent 48%),
    linear-gradient(135deg, #f5fff8 0%, #e6faee 55%, #d4f7e2 100%);
}

.course-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  margin-bottom: 18px;
  background: #d8f8e4;
  border-radius: 30px;
  color: #166534;
  font-size: 14px;
  font-weight: 600;
}

.course-title {
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: #064e3b;
  margin-bottom: 12px;
}

.course-title--day {
  font-size: clamp(26px, 2.6vw, 38px);
}

.course-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 12px;
}

.course-description {
  font-size: 17px;
  line-height: 1.7;
  color: #426457;
  max-width: 580px;
  margin-bottom: 24px;
}

.course-finished {
  font-weight: 700;
  color: #166534;
  font-size: 18px;
}

.course-card {
  background: #fff;
  border: 1px solid #e2eee6;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.course-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.course-stats strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #064e3b;
  line-height: 1.1;
}

.course-stats span {
  font-size: 13px;
  color: #5b7a6c;
}

.course-progress-track {
  height: 8px;
  border-radius: 8px;
  background: #e6f4eb;
  overflow: hidden;
}

.course-progress-bar {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #34d399, #16a34a);
}

.course-messages {
  max-width: 720px;
  margin-bottom: 16px;
}

/* ---------- Как устроен курс ---------- */

.course-how {
  padding-top: 32px;
}

.course-how-item {
  height: 100%;
  padding: 22px;
  border-radius: 16px;
  background: #f6fcf8;
  border: 1px solid #e2eee6;
}

.course-how-item i {
  font-size: 24px;
  color: #16a34a;
}

.course-how-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: #064e3b;
  margin: 10px 0 6px;
}

.course-how-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #426457;
  margin: 0;
}

/* ---------- Карта курса ---------- */

.course-map {
  padding: 40px 12px 64px;
}

.course-section-title {
  font-size: 24px;
  font-weight: 800;
  color: #064e3b;
  margin-bottom: 18px;
}

.course-week {
  margin-bottom: 26px;
}

.course-week-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.course-week-number {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #16a34a;
}

.course-week-title {
  font-weight: 700;
  color: #064e3b;
}

.course-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.course-day {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2eee6;
  color: #064e3b;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

a.course-day:hover {
  border-color: #86efac;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.10);
  transform: translateY(-1px);
  color: #064e3b;
}

.course-day-number {
  flex: 0 0 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef8f2;
  font-weight: 800;
  color: #166534;
}

.course-day-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.course-day-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.course-day-meta {
  font-size: 12px;
  color: #6b8a7c;
}

.course-day--review .course-day-number,
.course-day--final_review .course-day-number,
.course-day--final_test .course-day-number {
  background: #fff4d6;
  color: #92600a;
}

.course-day--done .course-day-number {
  background: #16a34a;
  color: #fff;
}

.course-day--current {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.course-day--current .course-day-number {
  background: #16a34a;
  color: #fff;
}

div.course-day {
  opacity: .75;
}

/* ---------- Страница дня ---------- */

.course-day-page {
  max-width: 820px;
  padding-top: 28px;
  padding-bottom: 64px;
}

.course-back,
.course-train-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
}

.course-back:hover,
.course-train-back:hover {
  text-decoration: underline;
}

.course-rule {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  margin: 8px 0 22px;
  border-radius: 14px;
  background: #ecfdf3;
  border-left: 4px solid #16a34a;
}

.course-rule i {
  color: #16a34a;
  font-size: 20px;
}

.course-rule p {
  margin: 0;
  color: #1f3d31;
  line-height: 1.6;
}

.course-verbs-table th {
  background: #f6fcf8;
  color: #5b7a6c;
  font-size: 13px;
  font-weight: 700;
}

.course-verbs-table th,
.course-verbs-table td {
  padding: 12px 16px;
  vertical-align: middle;
}

.course-verbs-table td {
  font-size: 17px;
}

.course-verb-link {
  font-weight: 700;
  color: #064e3b;
  text-decoration: none;
}

.course-verb-link:hover {
  color: #16a34a;
  text-decoration: underline;
}

.course-verb-ru {
  font-size: 13px;
  color: #6b8a7c;
}

.course-review-row {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #e2eee6;
}

.course-review-row:last-of-type {
  border-bottom: 0;
}

.course-review-day {
  flex: 0 0 64px;
  font-weight: 700;
  color: #16a34a;
  text-decoration: none;
}

.course-task {
  padding: 16px 18px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fde7a7;
}

.course-task-label {
  display: inline-flex;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #92600a;
  margin-bottom: 6px;
}

.course-task p {
  margin: 0;
  color: #3d3418;
}

.course-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 32px;
}

.course-day-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #e2eee6;
}

.course-day-nav a {
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Результат ---------- */

.course-save-card {
  margin-top: 20px;
  text-align: center;
}

.course-result-icon--retry i {
  color: #d97706;
}

/* ---------- Вход / регистрация ---------- */

.auth-page {
  padding: 56px 0 72px;
  background: linear-gradient(135deg, #f5fff8 0%, #e6faee 60%, #d4f7e2 100%);
}

.auth-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid #e2eee6;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.08);
}

.auth-brand {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  color: #064e3b;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: #5b7a6c;
  margin-bottom: 20px;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
}

.auth-links a {
  color: #16a34a;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .course-hero { padding: 36px 0 28px; }
  .course-verbs-table th,
  .course-verbs-table td { padding: 10px 10px; font-size: 15px; }
  .course-days { grid-template-columns: 1fr; }
}

.course-verbs-table .verb-audio-btn {
  position: static;
  top: auto !important;
  vertical-align: middle;
  cursor: pointer;
}
