*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--aco-bg);
  color: var(--aco-text);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--aco-focus);
  outline-offset: 2px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--aco-text-soft);
}

h1,
h2,
h3 {
  color: var(--aco-text);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 22px;
}

.aco-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aco-muted);
}

.aco-left-rail {
  display: none;
}
@media (min-width: 1024px) {
  .aco-left-rail {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    width: 385px;
    overflow-y: auto;
    padding: 24px 16px 80px;
    background: var(--aco-bg);
  }
}

.aco-left-rail__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aco-left-rail__link {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--aco-text);
  text-decoration: none;
}
.aco-left-rail__link:hover {
  background: var(--aco-panel);
}

.aco-left-rail__link.is-active {
  color: var(--aco-blue);
}

.aco-footer {
  padding: 24px 16px;
  text-align: center;
}

.aco-footer__line {
  font-size: 12px;
  color: var(--aco-muted);
}

.aco-footer__link {
  color: var(--aco-muted);
  text-decoration: none;
}
.aco-footer__link:hover {
  text-decoration: underline;
}

.aco-footer__credit {
  margin-top: 4px;
  font-size: 11px;
}

.aco-footer__crest {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
}

.aco-content {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px calc(80px + 24px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1024px) {
  .aco-content {
    margin-left: calc(385px + (100vw - 385px - 480px) / 2);
    margin-right: 0;
  }
}

.aco-page-title {
  margin: 8px 0 4px;
}

.aco-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  background: var(--aco-bg);
  color: var(--aco-text);
}

.aco-top-row__back {
  font-size: 24px;
  line-height: 1;
  color: var(--aco-text);
  text-decoration: none;
}

.aco-top-row__divider {
  color: var(--aco-text);
  opacity: 0.7;
}

.aco-top-row__title {
  font-size: 21px;
  font-weight: 700;
  color: var(--aco-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 0 1 auto;
}

.aco-top-row__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.aco-top-row__avatar {
  position: relative;
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--aco-panel);
  box-shadow: 0 0 0 2px #3fae6a;
}

.aco-top-row__avatar::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.aco-top-row__avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.aco-top-row__icon-btn {
  position: relative;
  font-size: 20px;
  line-height: 1;
  color: var(--aco-text);
}

.aco-top-row__badge {
  position: absolute;
  top: -6px;
  right: -10px;
  padding: 1px 4px;
  border-radius: 999px;
  background: var(--aco-badge);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .aco-top-row {
    gap: 8px;
    padding: 0 12px;
  }
  .aco-top-row__title {
    font-size: 19px;
  }
  .aco-top-row__actions {
    gap: 12px;
  }
}
.aco-breadcrumb {
  display: flex;
  align-items: center;
  font-size: 12px;
}

.aco-breadcrumb__list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.aco-breadcrumb__help {
  flex: 0 0 auto;
  margin-left: 12px;
  color: var(--aco-breadcrumb);
  text-decoration: none;
  white-space: nowrap;
}
.aco-breadcrumb__help:hover {
  text-decoration: underline;
}

.aco-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.aco-breadcrumb__link {
  color: var(--aco-breadcrumb);
  text-decoration: none;
}
.aco-breadcrumb__link:hover {
  text-decoration: underline;
}

.aco-breadcrumb__sep {
  color: var(--aco-breadcrumb);
}

.aco-breadcrumb__current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
  color: var(--aco-breadcrumb);
}

.aco-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  height: 80px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--aco-bottom-bar);
  color: var(--aco-bottom-bar-text);
}

.aco-bottom-nav__list {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.aco-bottom-nav__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}

.aco-bottom-nav__link,
.aco-bottom-nav__more-btn,
.aco-bottom-nav__action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  color: var(--aco-bottom-bar-text);
  text-decoration: none;
}

.aco-bottom-nav__link.is-active {
  color: var(--aco-blue);
}

.aco-bottom-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.aco-bottom-nav__icon-svg {
  width: 26px;
  height: 26px;
}

.aco-bottom-nav__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .aco-bottom-nav__label {
    font-size: 9px;
    letter-spacing: 0.03em;
  }
}
@media (max-width: 380px) {
  .aco-bottom-nav__label {
    font-size: 8.5px;
    letter-spacing: 0.02em;
  }
}
.aco-bottom-nav__action-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  background: var(--aco-pink);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--aco-bg);
}

.aco-more-panel {
  position: fixed;
  right: 0;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  left: 0;
  z-index: 99;
  max-height: 60vh;
  overflow-y: auto;
  padding: 12px;
  background: var(--aco-panel);
}

.aco-more-panel[hidden] {
  display: none;
}

.aco-more-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  margin: 0 auto 8px;
}

.aco-more-panel__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--aco-text);
}

.aco-more-panel__close {
  padding: 2px 10px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--aco-text);
}

.aco-more-panel__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.aco-more-panel__link {
  display: block;
  padding: 12px;
  border-radius: 10px;
  background: var(--aco-card);
  color: var(--aco-text);
  font-weight: 600;
  text-decoration: none;
}

.aco-more-panel__link.is-active {
  color: var(--aco-blue);
  box-shadow: inset 0 0 0 2px var(--aco-blue);
}

.aco-btn {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 24px;
  border-radius: 999px;
  background: var(--aco-action);
  color: #fff;
  text-decoration: none;
}

.aco-btn--block {
  display: flex;
  width: 100%;
}

.aco-btn--pink {
  background: var(--aco-pink);
}

.aco-btn--outline {
  background: transparent;
  color: var(--aco-text);
  box-shadow: inset 0 0 0 2px var(--aco-muted);
}

.aco-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--aco-panel);
  color: var(--aco-text);
}

.aco-pill--open {
  background: var(--aco-pill-open);
  color: #131c2f;
}

.aco-pill--high {
  background: var(--aco-pill-high);
  color: #fff;
}

.aco-card {
  padding: 16px;
  border-radius: 10px;
  background: var(--aco-card);
  color: var(--aco-text-soft);
}

.aco-card__title {
  margin-bottom: 8px;
  color: var(--aco-text);
  font-size: 17px;
  font-weight: 700;
}

.aco-card__panel {
  padding: 12px;
  border-radius: 8px;
  background: var(--aco-panel);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 50;
  background: #ff66c4;
  color: #131c2f;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
}

.skip:focus {
  left: 0;
}

.learn-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

.learn-wrap a:focus-visible,
.learn-wrap button:focus-visible,
.learn-wrap input:focus-visible,
.learn-wrap [tabindex]:focus-visible,
#gate input:focus-visible,
#gate button:focus-visible {
  outline: 3px solid #ff66c4;
  outline-offset: 2px;
}

#gate {
  max-width: 420px;
  margin: 32px auto;
  background: #2f4063;
  border-radius: 10px;
  padding: 24px;
}

#gate .gate-title {
  margin-top: 0;
  color: #ffffff;
}

#gate label {
  display: block;
  margin: 12px 0 4px;
  color: #e8ebf1;
  font-weight: 600;
}

#gate input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #a6a9b1;
  background: #222e46;
  color: #ffffff;
  font-size: 1rem;
}

#gate .gate-error {
  background: #5a1f1f;
  color: #ffd7d7;
  border-radius: 8px;
  padding: 8px 12px;
}

body.locked .learn-app {
  display: none;
}

.aco-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 12px auto 0;
  padding: 0 16px;
  color: #e8ebf1;
}

.learn-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.learn-stat {
  background: #2f4063;
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 104px;
  text-align: center;
}

.learn-stat .num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.learn-stat .lbl {
  color: #e8ebf1;
  font-size: 0.85rem;
}

.learn-stat.xp .num {
  color: #f5c044;
}

.learn-stat.streak .num {
  color: #ff66c4;
}

.learn-courses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .learn-courses {
    grid-template-columns: 1fr 1fr;
  }
}
.course-card {
  background: #2f4063;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.course-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.2rem;
}

.course-card p {
  margin: 0;
  color: #e8ebf1;
}

.course-card .meta {
  color: #a6a9b1;
  font-size: 0.9rem;
  margin-top: auto;
}

.course-card .bar {
  height: 10px;
  border-radius: 999px;
  background: #222e46;
  overflow: hidden;
}

.course-card .bar > span {
  display: block;
  height: 100%;
  background: #4cc38a;
}

.course-card a.open {
  align-self: flex-start;
  margin-top: 8px;
  background: #369eea;
  color: #fff;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.course-card a.open:hover {
  text-decoration: underline;
}

.path-unit {
  margin: 24px 0;
}

.path-unit > h3 {
  background: #222e46;
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 16px;
}

.path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.path-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 132px;
  text-align: center;
  margin-bottom: 16px;
}

.path-node:nth-child(4n+2) {
  margin-left: 18%;
}

.path-node:nth-child(4n+3) {
  margin-left: 36%;
}

.path-node:nth-child(4n+4) {
  margin-left: 18%;
}

@media (max-width: 520px) {
  .path-node:nth-child(4n+2) {
    margin-left: 10%;
  }
  .path-node:nth-child(4n+3) {
    margin-left: 20%;
  }
  .path-node:nth-child(4n+4) {
    margin-left: 10%;
  }
}
.node-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid #a6a9b1;
  background: #222e46;
  color: #ffffff;
  font-size: 1.45rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-btn.done {
  background: #4cc38a;
  border-color: #4cc38a;
  color: #10261a;
}

.node-btn.current {
  border-color: #ff66c4;
  background: #2f4063;
}

.node-btn.locked {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: no-preference) {
  .node-btn.current {
    animation: node-pulse 1.8s ease-in-out infinite;
  }
  @keyframes node-pulse {
    0%, 100% {
      box-shadow: 0 0 0 0 rgba(255, 102, 196, 0.45);
    }
    50% {
      box-shadow: 0 0 0 10px rgba(255, 102, 196, 0);
    }
  }
}
.node-label {
  margin-top: 4px;
  color: #e8ebf1;
  font-size: 0.92rem;
  line-height: 1.3;
}

.node-state {
  color: #a6a9b1;
  font-size: 0.8rem;
}

.lesson-body {
  color: #e8ebf1;
  font-size: 1.05rem;
  line-height: 1.65;
}

.lesson-body p {
  margin: 0 0 12px;
}

.lesson-body li {
  margin-bottom: 4px;
}

.lesson-key {
  background: #222e46;
  border-left: 5px solid #369eea;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  color: #ffffff;
}

.quiz {
  margin-top: 24px;
}

.quiz fieldset {
  border: 2px solid #2f4063;
  border-radius: 10px;
  padding: 16px;
  margin: 0 0 16px;
  background: rgba(47, 64, 99, 0.35);
}

.quiz legend {
  font-weight: 700;
  color: #ffffff;
  padding: 0 8px;
  font-size: 1.05rem;
}

.quiz label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: #e8ebf1;
}

.quiz label:hover {
  background: #222e46;
}

.quiz input[type=radio] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: #369eea;
  flex: none;
}

.quiz .why {
  color: #e8ebf1;
  margin: 8px 0 0;
}

.quiz .why strong {
  color: #4cc38a;
}

.quiz .why.wrong strong {
  color: #ff9d9d;
}

.btn-primary {
  background: #369eea;
  color: #fff;
  border: 0;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  min-height: 48px;
}

.btn-primary:hover {
  text-decoration: underline;
}

.btn-primary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 2px solid #a6a9b1;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
}

.feedback {
  border-radius: 10px;
  padding: 12px 16px;
  margin: 16px 0;
  background: #222e46;
  color: #ffffff;
}

.feedback.good {
  border-left: 6px solid #4cc38a;
}

.feedback.tryagain {
  border-left: 6px solid #ff66c4;
}

.back-link {
  color: #cfe3f7;
}

.learn-footer {
  color: #a6a9b1;
  text-align: center;
  padding: 24px 16px;
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

[data-theme=dark],
.aco-theme-dark {
  --aco-bg: #131c2f;
  --aco-card: #2f4063;
  --aco-panel: #222e46;
  --aco-blue: #369eea;
  --aco-action: #369eea;
  --aco-bottom-bar: #3d5a98;
  --aco-bottom-bar-text: #ffffff;
  --aco-pink: #ff66c4;
  --aco-edit-blue: #3ba0ea;
  --aco-breadcrumb: #2c8dd8;
  --aco-muted: #a6a9b1;
  --aco-text: #ffffff;
  --aco-text-soft: #e8ebf1;
  --aco-badge: #b93939;
  --aco-focus: #369eea;
  --aco-pill-open: #cfe3f7;
  --aco-pill-high: #793446;
}

[data-theme=light],
.aco-theme-light {
  --aco-bg: #f4f6fa;
  --aco-card: #ffffff;
  --aco-panel: #e8edf5;
  --aco-blue: #1f7fc4;
  --aco-action: #1f7fc4;
  --aco-bottom-bar: #ffffff;
  --aco-bottom-bar-text: #131c2f;
  --aco-pink: #e84393;
  --aco-edit-blue: #1f7fc4;
  --aco-breadcrumb: #1f6fb2;
  --aco-muted: #5b6472;
  --aco-text: #131c2f;
  --aco-text-soft: #2f3a4f;
  --aco-badge: #b93939;
  --aco-focus: #1f7fc4;
  --aco-pill-open: #d7e9fa;
  --aco-pill-high: #793446;
}

/*# sourceMappingURL=style.css.map */
