@layer page-layout {
/* Computer literacy: two entry options, not sequential course stages. */
.literacy-page .py-hero { background: linear-gradient(120deg, #fff 28%, #f2efff 100%); }
/* .py-hero h1 in python.css (mirrors .hero h1) already sets the shared size. */
.literacy-page .py-hero__grid { gap: 48px; }
.literacy-page .py-hero__content { align-self: start; }
.dl-workspace { margin: 0; min-width: 0; border: 1px solid #dfd7ef; border-radius: 23px; overflow: hidden; background: #ede8fb; box-shadow: 0 18px 60px #44228312; }
.dl-workspace__bar { display: flex; gap: 6px; align-items: center; padding: 17px 20px; background: #fff; border-bottom: 1px solid #e4dcf0; }
.dl-workspace__bar i { width: 7px; height: 7px; border-radius: 50%; background: #d5cae5; }
.dl-workspace__bar strong { margin-left: auto; color: #71677f; font-size: 11px; font-weight: 500; }
.dl-workspace__body { padding: 24px; }
.dl-workspace__label { color: #6f5b91; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.dl-paper { margin-top: 14px; padding: 26px; border-radius: 13px; background: #fff; box-shadow: 0 7px 20px #44228308; }
.dl-paper__tag { display: inline-block; padding: 6px 9px; background: #f0ebfc; border-radius: 6px; color: #6c5093; font-size: 10px; }
.dl-paper__title { display: block; font-size: 27px; line-height: 1.16; margin: 21px 0 18px; max-width: 280px; font-weight: 700; }
.dl-files { display: grid; gap: 9px; }
.dl-files > div { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #eeeaf5; border-radius: 9px; color: #554569; font-size: 12px; }
.dl-files b { display: grid; place-items: center; width: 28px; height: 32px; border-radius: 4px 10px 4px 4px; background: #ede8ff; color: #7654b8; font-size: 12px; }
.dl-files > div:nth-child(2) b { background: #fff1d8; color: #a6772b; }
.dl-files > div:nth-child(3) b { background: #e5f4ee; color: #438572; }
.dl-workspace__result { margin: 18px 0 0; color: #615475; font-size: 12px; line-height: 1.6; }
.dl-workspace figcaption { padding: 0 24px 22px; color: #73667f; font-size: 10px; line-height: 1.6; }
.dl-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.dl-option { display: flex; flex-direction: column; padding: 32px; border: 1px solid #e4dcef; border-radius: 22px; background: #faf8ff; }
.dl-option--older { background: #f3f0fa; }
.dl-option__age { align-self: flex-start; padding: 8px 13px; border-radius: 8px; background: #eae2fb; color: #5f3b9a; font-size: 15px; font-weight: 700; }
.dl-option h3 { margin: 22px 0 14px; font-size: 28px; line-height: 1.15; }
.dl-option p, .dl-option li { color: #6b6077; font-size: 15px; line-height: 1.65; }
.dl-option > p { margin: 0 0 18px; }
.dl-option ul { padding-left: 18px; margin: 0 0 23px; display: grid; gap: 8px; }
.dl-option li::marker { color: #8865bd; }
.dl-option__meta { margin-top: auto; padding-top: 18px; border-top: 1px solid #e3dbee; }
.dl-option__meta strong { display: block; font-size: 14px; color: #563d76; }
.dl-option__meta p { font-size: 13px; margin: 8px 0 20px; }
.dl-option .btn { width: 100%; font-size: 13px; }
.dl-program-note { max-width: 860px; color: #80728f; margin: 22px 0 0; font-size: 13px; line-height: 1.6; }
.dl-topics { background: #faf9fd; padding: 72px 0; }
.dl-topic-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: topic; }
.dl-topic-list li { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid #e9e2f2; border-radius: 14px; background: #fff; color: #59466e; font-size: 14px; line-height: 1.55; counter-increment: topic; }
.dl-topic-list li::before { content: counter(topic, decimal-leading-zero); flex: 0 0 25px; color: #a28abf; font-size: 12px; }
.literacy-page .py-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dl-ready { padding: 64px 0; background: #faf8fe; }
.dl-ready__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dl-ready article { padding: 24px; border: 1px solid #e5ddef; border-radius: 16px; background: #fff; }
.dl-ready h3 { font-size: 18px; line-height: 1.4; margin: 0 0 12px; }
.dl-ready p { color: #75667f; font-size: 14px; line-height: 1.6; margin: 0; }
.literacy-page .trial-form__field select { width: 100%; min-height: 48px; border: 1px solid #ded6e9; border-radius: 10px; background: #fff; color: #45344f; padding: 12px; font: inherit; font-size: 16px; }
@media (max-width: 980px) {
  .literacy-page .py-hero__grid { gap: 28px; }
  .dl-workspace__body { padding: 18px; }
  .dl-paper { padding: 20px; }
  .dl-option { padding: 26px; }
  .dl-topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-ready__grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 680px) {
  .dl-workspace { max-width: 480px; width: 100%; justify-self: center; }
  .dl-options, .literacy-page .py-projects__grid, .dl-topic-list { grid-template-columns: 1fr; }
  .dl-option { padding: 24px; }
  .dl-option h3 { font-size: 26px; }
  .dl-option p, .dl-option li { font-size: 14px; }
  .dl-topics, .dl-ready { padding-block: 48px; }
  .dl-topic-list li { padding: 17px 20px; }
}


/* ===== Computer literacy: full-course price ===== */
.literacy-page .dl-pricing { background: #fff; }
.literacy-page .dl-pricing__heading { margin-bottom: 30px; }
.literacy-page .dl-course-price {
  display: grid;
  grid-template-columns: minmax(300px, .76fr) minmax(0, 1.24fr);
  overflow: hidden;
  border: 1px solid #dfd8e9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(61, 41, 111, .08);
}
.literacy-page .dl-course-price__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
  background: linear-gradient(135deg, #faf8ff 0%, #f2edff 100%);
}
.literacy-page .dl-course-price__label {
  color: #756781;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.literacy-page .dl-course-price__main > strong {
  margin-top: 14px;
  color: #2d2733;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -.05em;
}
.literacy-page .dl-course-price__main > p {
  margin: 12px 0 0;
  color: #706777;
  font-size: 13px;
  line-height: 1.45;
}
.literacy-page .dl-course-price__details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr);
  gap: 28px;
  padding: 32px;
}
.literacy-page .dl-course-price__details > div:first-child > span,
.literacy-page .dl-course-price__trial > span {
  display: block;
  color: #817887;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.literacy-page .dl-course-price__details ul {
  display: grid;
  gap: 11px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}
.literacy-page .dl-course-price__details li {
  position: relative;
  padding-left: 21px;
  color: #4f4756;
  font-size: 12px;
  line-height: 1.45;
}
.literacy-page .dl-course-price__details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6c49c8;
  font-weight: 700;
}
.literacy-page .dl-course-price__trial {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #e4ddef;
  border-radius: 16px;
  background: #faf8ff;
}
.literacy-page .dl-course-price__trial strong {
  margin-top: 7px;
  color: #312b38;
  font-size: 18px;
}
.literacy-page .dl-course-price__trial p {
  margin: 8px 0 18px;
  color: #756d7b;
  font-size: 11.5px;
  line-height: 1.5;
}
.literacy-page .dl-course-price__trial .btn {
  width: 100%;
  margin-top: auto;
}
@media (max-width: 980px) {
  .literacy-page .dl-course-price { grid-template-columns: 1fr; }
  .literacy-page .dl-course-price__main { padding: 30px; }
}
@media (max-width: 680px) {
  .literacy-page .dl-pricing__heading { margin-bottom: 24px; }
  .literacy-page .dl-course-price { border-radius: 19px; }
  .literacy-page .dl-course-price__main { padding: 24px; }
  .literacy-page .dl-course-price__details {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }
}
}
