
/* Libertad — notebook lessons 1–3 */

.libnb-sheet {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #e5e2f5;
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(122,108,231,.055) 1px, transparent 1px),
    linear-gradient(#fff, #fff);
  background-size: 100% 34px, 100% 100%;
  box-shadow: 0 16px 44px rgba(62,54,122,.08);
  color: #252d46;
}

.libnb-paper-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #f1efff;
  font-size: 34px;
}

.libnb-kicker {
  display: block;
  margin-bottom: 7px;
  text-align: center;
  color: #7666e9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
}

.libnb-sheet > h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.1;
  color: #2f2b73;
}

.libnb-lead {
  max-width: 720px;
  margin: 14px auto 20px;
  text-align: center;
  line-height: 1.55;
  color: #69718f;
}

.libnb-note {
  max-width: 760px;
  margin: 0 auto 22px;
  padding: 13px 16px;
  border-radius: 14px;
  background: #fff8db;
  color: #72580b;
  line-height: 1.45;
}

.libnb-group {
  max-width: 760px;
  margin: 22px auto 0;
}

.libnb-group h3 {
  margin: 0 0 10px;
  color: #37315f;
  font-size: 19px;
}

.libnb-optional-note {
  margin: -4px 0 10px;
  color: #77758a;
  font-size: 13px;
}

.libnb-table {
  overflow: hidden;
  border: 1px solid #e5e3ef;
  border-radius: 17px;
  background: rgba(255,255,255,.96);
}

.libnb-row {
  display: grid;
  grid-template-columns: minmax(190px, .9fr) minmax(220px, 1.1fr);
  gap: 18px;
  padding: 10px 15px;
  border-bottom: 1px solid #eeedf5;
  align-items: center;
}

.libnb-row:last-child { border-bottom: 0; }

.libnb-row strong {
  color: #312a68;
  font-size: 16px;
}

.libnb-row span {
  color: #59617a;
  line-height: 1.35;
}

.libnb-head {
  padding-top: 9px;
  padding-bottom: 9px;
  background: #f5f3ff;
}

.libnb-head span {
  color: #6658c9;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.libnb-finish {
  max-width: 760px;
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px dashed #d9d5ef;
  text-align: center;
}

.libnb-finish p {
  color: #66708a;
  line-height: 1.5;
}

.libnb-done-btn,
.libnb-return-btn {
  border: 0;
  border-radius: 14px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.libnb-done-btn {
  background: linear-gradient(135deg,#7362e9,#8978ef);
  color: #fff;
  box-shadow: 0 9px 22px rgba(112,95,226,.18);
}

.libnb-done-btn:disabled {
  background: #4fa978;
  opacity: 1;
  cursor: default;
}

.libnb-return-btn {
  display: block;
  margin: 12px auto 0;
  background: #f1eff8;
  color: #554b9c;
}

.libnb-save-status {
  min-height: 21px;
  margin-top: 10px;
  color: #ba4655;
  font-size: 13px;
}

.libnb-save-status.is-good { color: #2e8358; }

/* Первые минуты */
.libnb-lpm-section {
  margin-top: 22px;
}

.libnb-lpm-heading {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: start;
  margin: 18px 0 12px;
}

.libnb-lpm-heading h2 {
  margin: 2px 0 5px !important;
}

.libnb-lpm-heading p {
  margin: 0;
  color: #69718f;
  line-height: 1.45;
}

.libnb-round-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #7766e9;
  color: #fff;
  font-weight: 900;
}

#libertad-first-minutes .libnb-lpm-card {
  width: 100%;
  max-width: 480px;
  margin: 0;
  text-align: left;
}

#libertad-first-minutes .libnb-lpm-card.is-done {
  border-color: #a9dfbf;
  background: #effaf4;
}

/* Числа / Дни недели */
.libnb-lsw-card .libnb-no-test {
  color: #6f7288;
}

.libnb-lsw-card.is-mastered .libnb-no-test {
  color: #2f8058;
}

/* Карта A0 */
.llc-route-mission.libnb-numbered-lesson {
  grid-template-columns: 78px 1fr auto;
}

.llc-route-mission .llc-route-num.libnb-route-num {
  width: 74px;
  min-width: 74px;
  padding: 0 7px;
  font-size: 12px;
  white-space: nowrap;
}

.libnb-route-notebook {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f3f2f7;
  color: #888596;
  font-size: 10px;
  font-weight: 800;
}

.libnb-route-notebook.is-done {
  background: #eaf8ef;
  color: #2e8058;
}

.libnb-generic-lesson-num {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .libnb-sheet {
    padding: 22px 14px;
    border-radius: 20px;
  }

  .libnb-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .libnb-head {
    display: none;
  }

  .libnb-row strong {
    font-size: 17px;
  }

  .llc-route-mission.libnb-numbered-lesson {
    grid-template-columns: 70px 1fr;
  }

  .llc-route-mission.libnb-numbered-lesson .llc-route-action {
    grid-column: 1 / -1;
  }

  .llc-route-mission .llc-route-num.libnb-route-num {
    width: 68px;
    min-width: 68px;
    font-size: 11px;
  }
}


/* Нижняя навигация уроков 1–3 */
.libnb-bottom-nav {
  display: flex;
  justify-content: center;
  margin: 28px auto 2px;
  padding-top: 4px;
}

.libnb-bottom-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  max-width: 100%;
  padding: 13px 24px;
  border: 0;
  border-radius: 15px;
  background: #f1eff8;
  color: #554b9c;
  text-decoration: none !important;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.libnb-bottom-return:hover {
  background: #ebe8f6;
  color: #4b428f;
  transform: translateY(-1px);
}

.libnb-main-a0-return {
  margin-top: 30px;
}

@media (max-width: 560px) {
  .libnb-bottom-return {
    width: 100%;
    font-size: 15px;
    padding-left: 14px;
    padding-right: 14px;
  }
}
