.academy-site {
  --ink: #14243f;
  --blue: #2161ed;
  --muted: #64748b;
  --line: #e0e8f5;
  color: var(--ink);
}
.academy-site [hidden],
.academy-dialog [hidden] {
  display: none !important;
}
.academy-site button,
.academy-dialog button {
  font: inherit;
  cursor: pointer;
}
.academy-site :is(a, button):focus-visible,
.academy-dialog :is(input, textarea, button):focus-visible {
  outline: 3px solid #2161ed;
  outline-offset: 4px;
}
.academy-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 30px;
}
.academy-top .breadcrumb {
  margin: 0;
}
.academy-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #dce6f7;
  border-radius: 30px;
  color: #2161ed;
  background: #f5f8ff;
  font-size: 12px !important;
}
.academy-account svg,
.academy-user-icon svg {
  width: 21px;
  height: 21px;
}
.academy-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  padding-block: 40px 75px;
}
.academy-intro h1 {
  font-size: clamp(50px, 5.6vw, 78px);
  line-height: 1.35;
  letter-spacing: -2px;
  margin: 20px 0;
}
.academy-intro em {
  font-style: normal;
  color: #2161ed;
}
.academy-intro p {
  color: #64748b;
  line-height: 2;
  font-size: 15px;
}
.academy-intro .button {
  margin-top: 22px;
}
.academy-method {
  background: #142e56;
  color: white;
  border-radius: 20px;
  padding: 30px 36px;
  box-shadow: 0 18px 55px #14243f12;
}
.method-header,
.method-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: #b8cdf0;
}
.method-header {
  padding-bottom: 14px;
  border-bottom: 1px solid #ffffff24;
}
.academy-method article {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 20px 0;
}
.academy-method article > b {
  font-size: 24px;
  color: #92b8ff;
  font-weight: 400;
}
.academy-method h2 {
  font-size: 25px;
  font-weight: 500;
  margin: 0 0 4px;
}
.academy-method p {
  font-size: 12px;
  color: #bdd0ef;
  margin: 0;
}
.method-foot {
  border-top: 1px solid #ffffff24;
  padding-top: 20px;
  flex-wrap: wrap;
}
.academy-courses {
  padding-block: 25px 70px;
  scroll-margin-top: 110px;
}
.academy-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.academy-section-title h2 {
  font-size: 35px;
  font-weight: 500;
  margin: 10px 0 0;
}
.academy-section-title > span {
  font-size: 12px;
  color: #64748b;
}
.academy-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.academy-filters button {
  border: 1px solid #dfe8f6;
  background: white;
  border-radius: 8px;
  padding: 11px 20px;
  color: #64748b;
  font-size: 12px;
}
.academy-filters button[aria-pressed="true"] {
  background: #2161ed;
  color: white;
  border-color: #2161ed;
}
.academy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.academy-card {
  border: 1px solid #e0e8f5;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: white;
  transition: box-shadow 0.2s;
}
.academy-card:hover {
  box-shadow: 0 12px 30px #14243f09;
}
.academy-photo {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #edf2fa;
}
.academy-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.academy-photo > span {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  color: #14243f;
  border-radius: 6px;
  padding: 6px 11px;
  font-size: 11px;
}
.academy-card[data-course-type="free"] .academy-photo > span {
  background: #e9f7ef;
  color: #146744;
}
.academy-card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.academy-card-body > .eyebrow {
  font-size: 11px;
}
.academy-card h3 {
  font-size: 23px;
  line-height: 1.65;
  font-weight: 500;
  margin: 12px 0;
}
.academy-card h3 a {
  color: inherit;
}
.academy-card-body > p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.95;
  margin: 0 0 20px;
  flex: 1;
}
.academy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  color: #64748b;
}
.academy-output {
  background: #f5f8fe;
  border-radius: 8px;
  padding: 15px;
  margin-top: 22px;
  display: grid;
  gap: 7px;
}
.academy-output span {
  font-size: 10px;
  color: #64748b;
}
.academy-output strong {
  font-size: 12px;
  font-weight: 500;
}
.academy-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 23px;
}
.academy-price {
  font-size: 23px;
  font-weight: 500;
  color: #14243f;
}
.academy-price small {
  font-size: 11px;
  font-weight: 400;
}
.academy-price .sample-price {
  display: block;
  color: #64748b;
  font-size: 9px;
  margin-top: 5px;
}
.academy-card-bottom > a {
  color: #2161ed;
  font-size: 12px;
}
.academy-demo {
  display: block;
  font-size: 11px;
  line-height: 1.9;
  color: #748197;
}
.catalogue-note {
  margin-top: 22px;
}
.academy-apply {
  padding-block: 65px;
  background: #f4f7fd;
  border-block: 1px solid #e0e8f5;
}
.academy-apply h2 {
  font-size: 36px;
  font-weight: 500;
  margin: 15px 0;
}
.academy-apply p {
  font-size: 15px;
  color: #64748b;
  line-height: 2;
  max-width: 740px;
}
.academy-apply a {
  display: inline-block;
  margin-top: 12px;
  color: #2161ed;
  font-size: 13px;
}
.academy-back {
  display: inline-block;
  margin: 15px 0 35px;
  font-size: 12px;
  color: #64748b;
}
.academy-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.85fr);
  gap: 55px;
  padding-bottom: 80px;
  align-items: start;
}
.academy-detail-grid h1 {
  font-size: 43px;
  line-height: 1.55;
  margin: 17px 0;
}
.course-lead {
  font-size: 16px;
  color: #64748b;
  line-height: 2;
}
.course-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
  margin: 30px 0;
}
.academy-detail-grid h2 {
  font-size: 29px;
  font-weight: 500;
  margin: 25px 0 15px;
}
.academy-detail-grid > div > p:not(.course-lead) {
  color: #64748b;
  font-size: 14px;
  line-height: 2;
}
.academy-enroll {
  position: sticky;
  top: 120px;
  border: 1px solid #e0e8f5;
  border-radius: 16px;
  padding: 28px;
  background: white;
}
.enroll-price {
  font-size: 45px;
  font-weight: 500;
  margin: 20px 0 5px;
}
.enroll-price small {
  font-size: 15px;
}
.academy-enroll > p {
  font-size: 13px;
  color: #64748b;
  line-height: 2;
  margin: 23px 0;
}
.academy-enroll .button {
  width: 100%;
  justify-content: center;
  font-size: 12px;
  margin-bottom: 12px;
  padding-inline: 15px;
}
.enroll-account {
  display: block;
  border: 0;
  background: none;
  color: #2161ed;
  font-size: 12px !important;
  margin: 0 auto 20px;
}
.academy-enroll ul {
  padding-inline-start: 20px;
  color: #64748b;
  font-size: 12px;
  line-height: 2.6;
  margin: 20px 0;
}
.course-host {
  display: flex;
  gap: 12px;
  align-items: center;
  border-block: 1px solid #e0e8f5;
  padding: 20px 0;
  margin-bottom: 20px;
}
.course-host img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #edf2fa;
  object-position: top;
}
.course-host strong {
  font-size: 13px;
  font-weight: 500;
}
.course-host span {
  display: block;
  font-size: 10px;
  color: #64748b;
  margin-top: 5px;
}
.course-curriculum {
  list-style: none;
  padding: 0;
  margin: 0;
}
.course-curriculum li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid #e0e8f5;
}
.course-curriculum li > span {
  color: #2161ed;
  font-size: 12px;
}
.course-curriculum strong {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}
.course-curriculum small {
  font-size: 10px;
  color: #64748b;
}
.academy-dialog {
  width: min(490px, calc(100% - 32px));
  border: 1px solid #e0e8f5;
  border-radius: 18px;
  padding: 36px;
  color: #14243f;
  background: white;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
.academy-dialog::backdrop {
  background: #0c1c36a6;
  backdrop-filter: blur(5px);
}
.academy-dialog h2 {
  font-size: 30px;
  line-height: 1.5;
  margin: 15px 0 10px;
  font-weight: 500;
}
.academy-dialog > p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.8;
}
.academy-close {
  position: absolute;
  top: 12px;
  left: 15px;
  border: 0;
  background: #f2f6fc;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 23px !important;
  color: #14243f;
}
.academy-user-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #edf3ff;
  color: #2161ed;
}
.auth-switch {
  display: flex;
  border-bottom: 1px solid #e0e8f5;
  margin: 25px 0;
}
.auth-switch button {
  flex: 1;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px;
  background: none;
  color: #64748b;
  font-size: 13px;
}
.auth-switch button[aria-pressed="true"] {
  color: #2161ed;
  border-color: #2161ed;
}
.academy-dialog label {
  display: grid;
  gap: 9px;
  font-size: 12px;
  margin-bottom: 18px;
}
.academy-dialog input,
.academy-dialog textarea {
  width: 100%;
  border: 1px solid #dfe8f6;
  background: #f8faff;
  border-radius: 8px;
  padding: 13px;
  font: inherit;
  color: #14243f;
  box-sizing: border-box;
  resize: vertical;
}
.academy-dialog form > .button {
  width: 100%;
  justify-content: center;
}
.academy-dialog [role="status"] {
  font-size: 12px;
  color: #2161ed;
  line-height: 1.9;
}
.lesson-dialog {
  width: min(690px, calc(100% - 32px));
}
.lesson-step {
  padding: 20px;
  background: #f4f7fd;
  border-radius: 10px;
  margin: 18px 0;
}
.lesson-step b,
.academy-dialog label > b {
  font-size: 14px;
  color: #2161ed;
}
.lesson-step p {
  font-size: 14px;
  line-height: 2;
  margin: 8px 0 0;
  color: #52637d;
}
.academy-dialog label > span {
  font-size: 13px;
  line-height: 1.9;
  color: #64748b;
}
.exercise-actions {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.exercise-actions .button {
  font-size: 12px;
  padding: 12px 20px;
}
@media (max-width: 1050px) {
  .academy-intro {
    gap: 35px;
  }
  .academy-method {
    padding: 25px;
  }
  .academy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .academy-detail-grid {
    gap: 25px;
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .academy-detail-grid h1 {
    font-size: 32px;
  }
  .academy-enroll {
    padding: 22px;
  }
}
@media (max-width: 800px) {
  .academy-intro {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 25px 50px;
  }
  .academy-intro h1 {
    font-size: 60px;
  }
  .academy-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .academy-enroll {
    position: static;
    grid-row: 2;
  }
  .academy-method {
    max-width: 620px;
  }
  .academy-top {
    align-items: center;
  }
}
@media (max-width: 600px) {
  .academy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .academy-top {
    gap: 12px;
    padding-block: 25px;
  }
  .academy-top .breadcrumb {
    font-size: 10px;
  }
  .academy-account {
    padding: 9px 11px;
    font-size: 10px !important;
    gap: 6px;
  }
  .academy-account svg {
    width: 18px;
    height: 18px;
  }
  .academy-intro h1 {
    font-size: 54px;
  }
  .academy-intro p {
    font-size: 14px;
  }
  .academy-method h2 {
    font-size: 23px;
  }
  .academy-section-title h2 {
    font-size: 28px;
  }
  .academy-section-title {
    align-items: start;
  }
  .academy-section-title > span {
    white-space: nowrap;
    margin-top: 32px;
  }
  .academy-filters {
    gap: 7px;
  }
  .academy-filters button {
    font-size: 11px;
    padding: 10px 12px;
  }
  .academy-card-body {
    padding: 22px;
  }
  .academy-apply h2 {
    font-size: 29px;
  }
  .academy-apply {
    padding-block: 40px;
  }
  .academy-detail-grid h1 {
    font-size: 31px;
  }
  .academy-dialog {
    padding: 26px 22px;
  }
  .academy-dialog h2 {
    font-size: 26px;
  }
  .course-curriculum li {
    gap: 10px;
  }
  .course-curriculum strong {
    font-size: 12px;
  }
  .course-curriculum small {
    font-size: 9px;
  }
  .academy-hero .button {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .academy-card {
    transition: none;
  }
}
