:root {
  --ink: #211a2c;
  --muted: #6c6476;
  --purple: #7251c6;
  --purple-dark: #55359f;
  --purple-soft: #f1ecfb;
  --line: #e8e2ef;
  --white: #fff;
  --danger: #a92f4a;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(63, 42, 96, 0.09);
}

* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.6;
}
a {
  color: var(--purple-dark);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--purple);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  outline-offset: 3px;
}
:focus-visible {
  outline: 3px solid #b49bf1;
}
img,
video {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}
h2 {
  line-height: 1.16;
  letter-spacing: -0.025em;
}
.container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 20px;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
}
.skip-link:focus {
  top: 20px;
}
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(232, 226, 239, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}
.header-inner,
.footer-inner,
.section-heading,
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.header-inner {
  position: relative;
  display: grid;
  min-height: 72px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.brand span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--purple);
  color: white;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: center;
}
.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}
.nav a:hover,
.nav a.active {
  color: var(--purple-dark);
}
.profile-menu {
  position: relative;
  justify-self: end;
}
.profile-trigger {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 7px;
  border: 1px solid #e7e3f1;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  place-items: center;
  box-shadow: 0 8px 22px rgba(74, 60, 124, 0.09);
}
.profile-trigger:hover,
.profile-trigger[aria-expanded='true'] {
  border-color: #cfc4ee;
  background: #f8f6ff;
}
.profile-trigger:focus-visible {
  outline: 3px solid rgba(112, 81, 198, 0.28);
  outline-offset: 3px;
}
.profile-trigger img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.profile-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 12px);
  right: 0;
  width: min(280px, calc(100vw - 24px));
  padding: 20px;
  border: 1px solid #e7e3f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(49, 39, 91, 0.16);
}
.profile-popover[hidden] {
  display: none;
}
.profile-popover strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1.05rem;
}
.profile-popover p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.profile-actions {
  display: grid;
  gap: 9px;
}
.profile-secondary-link {
  display: block;
  margin-top: 13px;
  color: var(--purple-dark);
  font-size: 0.88rem;
  text-align: center;
}
.info-page {
  width: min(860px, calc(100% - 40px));
  min-height: calc(100vh - 205px);
  padding-top: 84px;
  padding-bottom: 100px;
}
.info-page > h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}
.info-page .lead {
  max-width: 720px;
  margin-bottom: 42px;
}
.info-content {
  display: grid;
  gap: 18px;
}
.info-content section {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.info-content h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.18rem;
}
.info-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}
.hero {
  overflow: hidden;
  padding: 0;
  background: #fafafd;
}
.hero-shell {
  --hero-top-track: clamp(465px, 50.5vw, 625px);
  position: relative;
  display: grid;
  width: min(1200px, 100%);
  min-height: calc(var(--hero-top-track) + 123px);
  grid-template-columns: 1fr;
  grid-template-rows: var(--hero-top-track) 108px;
  margin-inline: auto;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(410px, calc(100% - 62px));
  padding: 138px 0 0 35px;
}
.hero-copy .eyebrow {
  margin-bottom: 14px;
  color: #6551cf;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}
.hero-copy h1 {
  margin: 0 0 22px;
  color: #181927;
  font-size: clamp(2.2rem, 4.58vw, 3.85rem);
  font-weight: 780;
  line-height: 1.31;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.hero-copy h1 span {
  display: inline-block;
  margin-left: 0;
  white-space: nowrap;
}
.hero-copy .lead {
  max-width: 260px;
  margin: 0;
  color: #66697a;
  font-size: 0.79rem;
  line-height: 1.86;
}
.hero-copy .actions {
  gap: 16px;
  margin-top: 44px;
}
.hero-copy .button {
  width: 150px;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 11px;
  font-size: 0.86rem;
  font-weight: 700;
}
.hero-copy .button-secondary {
  width: 175px;
  background: rgba(255, 255, 255, 0.72);
}
.hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: visible;
  background: #fafafd;
}
.hero-art img {
  position: absolute;
  top: -6px;
  right: 0;
  display: block;
  width: clamp(430px, 50.5vw, 620px);
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
}
@media (min-width: 1200px) {
  .hero-art img {
    right: max(-82px, calc((1200px - 100vw) / 2 + 16px));
  }
}
.hero-benefits {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(calc(100% - 62px), 840px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-self: start;
  margin: 8px auto 0;
  padding: 0;
  list-style: none;
  transform: translateY(-35px);
}
.hero-benefits li {
  display: grid;
  min-width: 0;
  min-height: 108px;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 19px 14px;
  border: 1px solid rgba(232, 232, 242, 0.85);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 13px 34px rgba(75, 66, 128, 0.07);
}
.hero-benefits img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: cover;
}
.hero-benefits strong,
.hero-benefits span {
  display: block;
}
.hero-benefits strong {
  margin: 6px 0 3px;
  color: #262532;
  font-size: 0.76rem;
  line-height: 1.25;
}
.hero-benefits span {
  color: #77798a;
  font-size: 0.64rem;
  line-height: 1.72;
}
.hero-grid,
.detail-grid,
.checkout-layout,
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: start;
}
.hero h1 span {
  color: var(--purple);
}
.detail-grid > section {
  min-width: 0;
}
.course-detail-title {
  max-width: none;
  font-size: clamp(1rem, 3.4vw, 3.7rem);
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.eyebrow,
.card-mark {
  margin-bottom: 12px;
  color: var(--purple-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lead {
  max-width: 710px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.lead.narrow {
  max-width: 640px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 21px;
  border: 1px solid var(--purple);
  border-radius: 12px;
  background: var(--purple);
  color: white;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: 0.18s ease;
}
.button:hover {
  border-color: var(--purple-dark);
  background: var(--purple-dark);
  color: white;
  transform: translateY(-1px);
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}
.button-secondary {
  background: white;
  color: var(--purple-dark);
}
.button-small {
  min-height: 38px;
  padding: 7px 13px;
  font-size: 0.9rem;
}
.button-danger {
  border-color: var(--danger);
  background: var(--danger);
}
.full {
  width: 100%;
}
.hero-panel,
.panel,
.purchase-card,
.card,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.hero-panel {
  overflow: hidden;
}
.hero-panel div {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.hero-panel div:last-child {
  border: 0;
}
.hero-panel strong,
.hero-panel span {
  display: block;
}
.hero-panel strong {
  margin-bottom: 4px;
  color: var(--purple-dark);
}
.hero-panel span {
  color: var(--muted);
}
.section,
.page {
  padding-top: 76px;
  padding-bottom: 92px;
}
.section-tint {
  background: #faf8fd;
}
.popular-courses {
  padding: 58px 0 42px;
  background: #fafafd;
}
.popular-courses-inner {
  width: min(1140px, calc(100% - 68px));
}
.section-heading.popular-courses-heading {
  align-items: flex-end;
  margin-bottom: 28px;
}
.section-heading.popular-courses-heading h2 {
  margin: 0;
  color: #181927;
  font-size: clamp(1.6rem, 2.25vw, 2rem);
  font-weight: 730;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.popular-courses-heading > a {
  margin-right: -4px;
  margin-bottom: 2px;
  color: #6549c9;
  font-size: 0.75rem;
  font-weight: 600;
}
.course-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.course-card {
  position: relative;
  min-height: clamp(255px, 22vw, 320px);
  overflow: hidden;
  padding: 20px 16px;
  border: 1px solid rgba(233, 232, 241, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 15px 38px rgba(75, 66, 128, 0.055);
}
.course-card-copy {
  position: relative;
  z-index: 2;
  width: 64%;
}
.course-card .card-mark {
  margin-bottom: 13px;
  color: #6551cf;
  font-size: 0.59rem;
  letter-spacing: 0.09em;
}
.course-card h3 {
  margin: 0 0 15px;
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
}
.course-card h3 a {
  color: #20202b;
  text-decoration: none;
  white-space: pre-line;
}
.course-card p {
  margin: 0;
  color: #747588;
  font-size: clamp(0.64rem, 0.72vw, 0.74rem);
  line-height: 1.72;
  white-space: pre-line;
}
.course-card-visual {
  position: absolute;
  z-index: 1;
  display: block;
  width: clamp(174px, 18vw, 230px);
  max-width: none;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}
.course-card-shoulders .course-card-visual {
  top: 20px;
  right: -10px;
}
.course-card-back .course-card-visual {
  top: 38px;
  right: -20px;
  width: clamp(184px, 19vw, 240px);
}
.course-card-footer {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 21px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.course-card-footer strong {
  color: #20202b;
  font-size: 0.88rem;
}
.course-card-shoulders .course-card-footer {
  right: 24px;
}
.course-card-footer a {
  color: #6549c9;
  font-size: 0.72rem;
  font-weight: 550;
}
.course-journey {
  padding: 64px 0 74px;
  background: #fafafd;
}
.course-journey-inner {
  width: min(1140px, calc(100% - 68px));
}
.course-journey-heading {
  margin-bottom: 28px;
}
.course-journey-heading h2 {
  margin: 0;
  color: #181927;
  font-size: clamp(1.6rem, 2.25vw, 2rem);
  font-weight: 730;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.course-journey-steps {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.course-journey-steps li {
  position: relative;
  min-height: 330px;
  padding: 14px 16px 22px;
  overflow: hidden;
  border: 1px solid #ebe9f4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 15px 38px rgba(75, 66, 128, 0.045);
}
.course-journey-number {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0edff;
  color: #6547dc;
  font-size: 0.76rem;
  font-weight: 800;
}
.course-journey-media {
  height: 158px;
  margin: 0 0 16px;
  padding: 7px;
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
}
.course-journey-visual {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}
.course-journey-steps h3 {
  margin: 0 0 11px;
  color: #151622;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  font-weight: 740;
  line-height: 1.28;
  letter-spacing: -0.02em;
}
.course-journey-steps p {
  margin: 0;
  color: #737995;
  font-size: clamp(0.68rem, 0.76vw, 0.78rem);
  line-height: 1.62;
}
.courses-page {
  background: #fff;
}
.courses-hero {
  overflow: hidden;
  padding: 34px 0 6px;
  background: #fff;
}
.courses-hero-inner {
  display: grid;
  min-height: 280px;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 28px;
}
.courses-hero-inner,
.courses-catalog > .container {
  width: min(1312px, calc(100% - 40px));
}
.courses-hero-copy {
  position: relative;
  z-index: 2;
}
.courses-hero-copy .eyebrow {
  margin-bottom: 16px;
  color: #6549c9;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.courses-hero-copy h1 {
  margin: 0 0 18px;
  color: #12121d;
  font-size: clamp(3.7rem, 6.1vw, 5.1rem);
  font-weight: 770;
  line-height: 0.98;
  letter-spacing: -0.058em;
  white-space: nowrap;
}
.courses-hero-copy > p:last-child {
  max-width: 520px;
  margin: 0;
  color: #6c7085;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.55;
}
.courses-hero-visual {
  position: relative;
  display: flex;
  min-width: 0;
  height: 290px;
  align-items: center;
  justify-content: center;
}
.courses-hero-visual img {
  width: min(100%, 670px);
  max-width: none;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(100, 73, 196, 0.09));
}
.courses-catalog {
  padding: 10px 0 28px;
  background: #fbfbfe;
}
.courses-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.courses-catalog-card {
  display: flex;
  min-height: 470px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(226, 226, 237, 0.96);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 44px rgba(75, 66, 128, 0.06);
}
.courses-catalog-visual {
  position: relative;
  display: grid;
  height: 225px;
  flex: 0 0 225px;
  place-items: center;
  overflow: hidden;
  padding: 14px 24px 0;
  background: #fff;
}
.courses-catalog-visual img {
  position: absolute;
  top: 14px;
  left: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 14px);
  object-fit: contain;
}
.courses-catalog-copy {
  display: flex;
  min-height: 220px;
  flex: 1;
  flex-direction: column;
  padding: 16px 26px 22px;
}
.courses-catalog-mark {
  margin-bottom: 12px;
  color: #6347c8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.courses-catalog-card h2 {
  max-width: 410px;
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
}
.courses-catalog-card h2 a {
  color: #1b1b25;
  text-decoration: none;
}
.courses-catalog-card h2 a:hover {
  color: #5e3fb6;
}
.courses-catalog-card p {
  max-width: 360px;
  margin: 0;
  color: #717589;
  font-size: 0.9rem;
  line-height: 1.65;
}
.courses-catalog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 26px;
}
.courses-catalog-footer strong {
  color: #1c1c25;
  font-size: 1.05rem;
}
.courses-catalog-footer a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border-radius: 11px;
  background: #6c4acf;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.courses-catalog-footer a:hover {
  background: #5636b2;
  color: #fff;
}
.courses-catalog-footer a:focus-visible {
  outline: 3px solid #b49bf1;
  outline-offset: 3px;
}
.section-heading {
  margin-bottom: 28px;
}
.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cards-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 26px;
}
.card h2,
.card h3 {
  font-size: 1.35rem;
}
.card h2 a,
.card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.card p {
  color: var(--muted);
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
}
.product-placeholder {
  height: 130px;
  margin: -10px -10px 22px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 7%, transparent 8%),
    linear-gradient(135deg, #ded2f6, #8c6bd4);
}
.product-large {
  height: 360px;
  margin: 0 0 30px;
}
.back {
  display: inline-block;
  margin-bottom: 25px;
  text-decoration: none;
}
.purchase-card {
  position: sticky;
  top: 96px;
  padding: 28px;
}
.purchase-card .price,
.price {
  display: block;
  margin: 6px 0 20px;
  font-size: 1.8rem;
}
.purchase-card small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}
.prose {
  white-space: pre-line;
}
.syllabus {
  margin-top: 70px;
}
.module {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.module ol {
  margin: 0;
  padding-left: 22px;
}
.module li,
.plain-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.module li:last-child,
.plain-list li:last-child {
  border: 0;
}
.module li span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}
.auth-card {
  width: min(540px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 42px);
}
.auth-card h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.form-grid {
  display: grid;
  gap: 17px;
}
label {
  display: grid;
  gap: 7px;
  color: #41394a;
  font-size: 0.92rem;
  font-weight: 700;
}
input,
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfc6da;
  border-radius: 10px;
  background: white;
  color: var(--ink);
}
input:hover,
textarea:hover,
select:hover {
  border-color: #9f8dbf;
}
.field-error {
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 650;
}
.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
}
.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.form-help {
  margin: 22px 0 0;
  text-align: center;
}
.form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}
.inline-form {
  display: inline;
}
.link-button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--purple-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.danger {
  color: var(--danger);
}
.alert {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid #ccbceb;
  border-radius: 12px;
  background: var(--purple-soft);
}
.alert-success {
  border-color: #9cd1b0;
  background: #edf9f1;
  color: #185c32;
}
.alert-warning {
  border-color: #e8ca87;
  background: #fff8e8;
  color: #785811;
}
.alert-error {
  border-color: #e4aab6;
  background: #fff0f3;
  color: #86223a;
}
.empty {
  margin: 30px 0;
  padding: 48px;
  border: 2px dashed #dcd1ea;
  border-radius: var(--radius);
  background: #fcfaff;
  text-align: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.stats a {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
}
.stats strong,
.stats span {
  display: block;
}
.stats strong {
  color: var(--purple);
  font-size: 2rem;
}
.stats span {
  color: var(--muted);
}
.dashboard-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel {
  padding: 26px;
}
a.panel {
  color: var(--ink);
  text-decoration: none;
}
.stack {
  display: grid;
  gap: 18px;
}
.plain-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.profile-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.profile-list dt {
  color: var(--muted);
}
.profile-list dd {
  margin: 0;
  font-weight: 700;
}
.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 30px 0;
  border-radius: var(--radius);
  background: #17121e;
  box-shadow: var(--shadow);
}
.video-shell video {
  width: 100%;
  height: 100%;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  color: white;
  text-align: center;
  background: radial-gradient(circle at 30% 20%, #6f50a0, transparent 45%);
}
.watermark {
  position: absolute;
  z-index: 4;
  top: 9%;
  left: 8%;
  color: rgba(255, 255, 255, 0.45);
  font-size: clamp(0.7rem, 1.4vw, 1rem);
  pointer-events: none;
  transition:
    top 0.8s,
    left 0.8s;
}
.cart-layout {
  grid-template-columns: 1fr 330px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}
.cart-actions {
  min-width: 180px;
}
.checkout-layout {
  grid-template-columns: 1fr 380px;
}
.total {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
  font-size: 1.15rem;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-nav a {
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--purple-soft);
  text-decoration: none;
}
details > summary {
  cursor: pointer;
  color: var(--purple-dark);
  font-weight: 800;
}
details[open] > summary {
  margin-bottom: 20px;
}
.inline-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.inline-fields label {
  min-width: 150px;
  flex: 1;
}
.inline-fields input,
.inline-fields select {
  min-width: 100px;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
th,
td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: #faf8fd;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 0.75rem;
  font-weight: 800;
}
.error-page {
  max-width: 650px;
  margin: 30px auto;
  text-align: center;
}
.error-page > span {
  color: var(--purple);
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
}
.error-page pre {
  overflow: auto;
  padding: 15px;
  text-align: left;
}
.site-footer {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-inner {
  align-items: start;
}
.footer-inner > div:last-child {
  text-align: right;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 14px;
    padding-top: 8px;
  }
  .profile-menu {
    grid-column: 2;
    grid-row: 1;
  }
  .hero-grid,
  .detail-grid,
  .checkout-layout,
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .purchase-card {
    position: static;
  }
  .cards,
  .cards-two {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .course-journey-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .courses-hero {
    padding-top: 50px;
  }
  .courses-hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .courses-hero-copy {
    padding-left: 0;
  }
  .courses-hero-copy h1 {
    font-size: clamp(3.25rem, 10vw, 4.5rem);
  }
  .courses-hero-visual {
    height: 300px;
  }
}

@media (max-width: 700px) {
  .courses-catalog-grid {
    grid-template-columns: 1fr;
  }
  .courses-catalog-card {
    min-height: 530px;
  }
  .hero-shell {
    display: block;
    width: min(100%, 540px);
    min-height: auto;
    padding: 0 12px 36px;
  }
  .hero-copy {
    width: 100%;
    padding: 48px 4px 0;
  }
  .hero-copy .actions {
    margin-top: 28px;
  }
  .hero-copy h1 {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
    line-height: 1.12;
  }
  .hero-copy .lead {
    max-width: 34rem;
    font-size: 0.94rem;
    line-height: 1.7;
  }
  .hero-art {
    position: relative;
    inset: auto;
    height: min(108vw, 520px);
    margin: 18px -12px 0;
  }
  .hero-art img {
    top: 0;
    right: 0;
    width: min(100%, 430px);
    max-width: none;
    height: auto;
    object-fit: cover;
    object-position: center;
    transform: none;
  }
  .hero-benefits {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    transform: none;
  }
  .hero-benefits li {
    min-height: 92px;
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1140px);
  }
  .header-inner {
    width: min(100% - 24px, 1140px);
  }
  .nav {
    gap: 10px 15px;
  }
  .nav a {
    font-size: 0.78rem;
  }
  .info-page {
    width: min(100% - 24px, 860px);
    padding-top: 52px;
    padding-bottom: 64px;
  }
  .info-page > h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }
  .info-content section {
    padding: 21px 20px;
  }
  .page,
  .section {
    padding-top: 48px;
    padding-bottom: 60px;
  }
  .cards,
  .cards-two,
  .course-cards,
  .dashboard-links,
  .stats {
    grid-template-columns: 1fr;
  }
  .course-journey {
    padding: 46px 0 52px;
  }
  .course-journey-inner {
    width: min(100% - 24px, 1140px);
  }
  .course-journey-heading {
    margin-bottom: 22px;
  }
  .course-journey-heading h2 {
    font-size: clamp(1.72rem, 8vw, 2.2rem);
  }
  .course-journey-steps {
    grid-template-columns: 1fr;
  }
  .course-journey-steps li {
    min-height: 360px;
    padding: 14px 16px 24px;
  }
  .course-journey-number {
    top: 20px;
    left: 20px;
  }
  .course-journey-media {
    height: 210px;
  }
  .courses-hero {
    padding: 42px 0 8px;
  }
  .courses-hero-copy h1 {
    font-size: clamp(2.55rem, 13vw, 3.25rem);
  }
  .courses-hero-copy > p:last-child {
    font-size: 0.98rem;
  }
  .courses-hero-visual {
    height: 250px;
  }
  .courses-catalog {
    padding: 6px 0 40px;
  }
  .courses-catalog-visual {
    height: 250px;
    flex-basis: 250px;
    padding-inline: 12px;
  }
  .courses-catalog-visual img {
    left: 12px;
    width: calc(100% - 24px);
  }
  .courses-catalog-copy {
    min-height: 250px;
    padding: 15px 20px 20px;
  }
  .courses-catalog-footer a {
    min-height: 40px;
    padding: 8px 14px;
  }
  .section-heading,
  .order-head,
  .cart-item,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-inner > div:last-child {
    text-align: left;
  }
  .empty {
    padding: 32px 18px;
  }
  .panel,
  .card,
  .purchase-card {
    padding: 20px;
  }
  .profile-list div {
    grid-template-columns: 1fr;
  }
  .module li,
  .plain-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
