: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-letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--purple);
  color: white;
}
.brand-mobile-logo,
.nav-toggle {
  display: none;
}
.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;
  bottom: auto;
  left: auto;
  width: min(280px, calc(100vw - 24px));
  margin: 0;
  padding: 20px;
  border: 1px solid #e7e3f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(49, 39, 91, 0.16);
}
.profile-popover:not([open]),
.profile-close {
  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 {
  min-width: 0;
  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);
  overflow-wrap: anywhere;
  hyphens: auto;
}
.info-page .lead {
  max-width: 720px;
  margin-bottom: 42px;
}
.info-content {
  display: grid;
  gap: 18px;
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: none;
}
.info-content section {
  min-width: 0;
  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 {
  padding: 14px 16px 22px;
}
.course-journey-media {
  height: 158px;
  margin: 0 0 16px;
  padding: 7px;
  overflow: hidden;
}
.course-journey-visual {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  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: #fff;
  box-shadow: 0 16px 44px rgba(75, 66, 128, 0.06);
}
.courses-catalog-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  height: 225px;
  flex: 0 0 225px;
  place-items: center;
  overflow: hidden;
  padding: 14px 24px 0;
  background: transparent;
}
.courses-catalog-visual::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(
    ellipse 48% 44% at 50% 54%,
    rgba(125, 89, 220, 0.16) 0%,
    rgba(149, 116, 230, 0.07) 38%,
    rgba(149, 116, 230, 0) 72%
  );
  pointer-events: none;
  content: '';
}
.courses-catalog-visual img {
  position: absolute;
  z-index: 1;
  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%);
}
.video-placeholder[hidden] {
  display: none;
}
.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;
}
.footer-brand {
  max-width: 360px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  max-width: 600px;
}
.footer-links a {
  font-size: 0.9rem;
}
.footer-seller {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.seller-details {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}
.seller-details > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
}
.seller-details dt {
  color: var(--muted);
}
.seller-details dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.legal-page .info-content p + p,
.legal-page .info-content p + .seller-details {
  margin-top: 14px;
}
.legal-steps {
  margin-bottom: 0;
  padding-left: 22px;
  color: var(--muted);
}
.legal-steps li + li {
  margin-top: 12px;
}
.commerce-notice,
.payment-example {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
  background: var(--purple-soft);
}
.commerce-notice p {
  margin: 8px 0 0;
  color: var(--muted);
}
.document-version,
.checkout-help,
.course-purchase-terms {
  font-size: 0.85rem;
  color: var(--muted);
}
.checkout-help {
  margin-bottom: 0;
}
.checkout-consent {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.form-error-summary {
  padding: 16px;
  border: 1px solid var(--danger);
  border-radius: 10px;
  color: var(--danger);
}
.form-error-summary ul {
  padding-left: 20px;
  margin-bottom: 0;
}
.preserve-lines {
  white-space: pre-line;
}
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .footer-links a {
    display: block;
    padding-block: 10px;
  }
  .seller-details > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .commerce-notice,
  .payment-example {
    padding: 20px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 820px) {
  :root {
    --mobile-card-title-size: 1.104rem;
    --mobile-card-body-size: 0.816rem;
  }
  html.profile-modal-open {
    overflow: hidden;
  }
  .profile-popover {
    position: fixed;
    inset: 0;
    width: min(340px, calc(100vw - 32px));
    height: fit-content;
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 28px 24px 24px;
    overflow-y: auto;
    border-radius: 22px;
  }
  .profile-popover::backdrop {
    background: rgba(33, 26, 44, 0.28);
  }
  .profile-popover strong {
    padding-right: 36px;
  }
  .profile-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--purple-dark);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
  }
  .profile-close:hover {
    background: var(--purple-soft);
  }
  .course-journey-steps h3,
  .course-card h3,
  .courses-catalog-card h2 {
    font-family: inherit;
    font-size: var(--mobile-card-title-size);
    font-weight: 740;
    line-height: 1.28;
    letter-spacing: -0.02em;
  }
  .course-journey-steps p,
  .course-card p,
  .courses-catalog-card p {
    font-family: inherit;
    font-size: var(--mobile-card-body-size);
    font-weight: 400;
    line-height: 1.62;
    white-space: normal;
  }
  .section-heading.popular-courses-heading {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
  }
  .header-inner {
    grid-template-columns: 1fr auto auto;
    min-height: 72px;
    gap: 12px;
    padding-block: 12px;
  }
  .brand {
    justify-self: start;
    min-width: 44px;
    min-height: 44px;
  }
  .brand-letter,
  .brand-name {
    display: none;
  }
  .brand-mobile-logo {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
  }
  .header-control {
    width: 44px;
    height: 44px;
    padding: 10px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--purple);
    cursor: pointer;
    box-shadow: none;
  }
  .site-header[data-nav-ready] .nav-toggle {
    display: grid;
    grid-column: 3;
    grid-row: 1;
  }
  .header-control:hover,
  .header-control[aria-expanded='true'] {
    border-color: transparent;
    background: transparent;
    color: var(--purple-dark);
  }
  .header-control:focus-visible {
    outline: 3px solid #b49bf1;
    outline-offset: 3px;
  }
  .profile-trigger img {
    width: 24px;
    height: 24px;
  }
  .nav-toggle-icon {
    display: grid;
    width: 22px;
    gap: 5px;
  }
  .nav-toggle-icon span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
      transform 160ms ease,
      opacity 160ms ease;
  }
  .nav-toggle-icon span:nth-child(2) {
    width: 16px;
    justify-self: end;
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle-icon span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle-icon span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .site-header[data-nav-ready] .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
  }
  .site-header[data-menu-open='true'] .nav {
    display: flex;
  }
  .nav a {
    display: flex;
    min-height: 48px;
    padding: 12px 14px;
    align-items: center;
    border-radius: 12px;
    font-size: 0.94rem;
    line-height: 1.4;
  }
  .nav a:hover,
  .nav a.active {
    background: var(--purple-soft);
  }
  .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: flex;
    flex-direction: column;
    width: min(100%, 540px);
    min-height: auto;
    padding: 0 12px 36px;
  }
  .hero-copy {
    width: 100%;
    padding: 16px 4px 0;
  }
  .hero-copy .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
  }
  .hero-copy .button {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    font-size: clamp(0.75rem, 3.3vw, 0.86rem);
  }
  .hero-copy h1 {
    font-size: clamp(1.5rem, 7.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;
    order: -1;
    inset: auto;
    height: clamp(240px, 86vw, 400px);
    margin: 0 -12px;
  }
  .hero-art img {
    position: static;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
  }
  .hero-benefits {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 28px 0 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);
  }
  .info-page {
    width: min(100% - 24px, 860px);
    padding-top: 52px;
    padding-bottom: 64px;
  }
  .info-page > h1 {
    font-size: clamp(1.9rem, 9vw, 3.2rem);
  }
  .privacy-page > h1 {
    font-size: clamp(1.5rem, 7.3vw, 2.6rem);
    hyphens: none;
  }
  .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-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 20px;
  }
  .course-card-copy {
    width: 100%;
  }
  .course-card .course-card-visual {
    position: static;
    width: min(75%, 240px);
    height: 180px;
    align-self: center;
    margin: 12px 0;
    object-fit: contain;
  }
  .course-card-footer {
    position: static;
    margin-top: auto;
  }
  .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 {
    padding: 14px 16px 24px;
  }
  .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;
  }
}

/* The same language control is visible on desktop and mobile. */
.header-inner {
  grid-template-columns: 1fr auto auto auto;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.language-switch a {
  display: grid;
  min-width: 40px;
  min-height: 38px;
  padding: 6px;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
.language-switch a:hover {
  background: var(--purple-soft);
  color: var(--purple-dark);
}
.language-switch a[aria-current='true'] {
  background: var(--purple);
  color: #fff;
}
.language-switch a:focus-visible {
  outline: 3px solid #b49bf1;
  outline-offset: 3px;
}
@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
  }
  .language-switch {
    grid-column: 2;
    grid-row: 1;
  }
  .language-switch a {
    min-width: 38px;
    min-height: 38px;
  }
  .profile-menu {
    grid-column: 3;
  }
  .site-header[data-nav-ready] .nav-toggle {
    grid-column: 4;
  }
}

.home-author {
  max-width: 860px;
  margin: 56px auto 72px;
  padding: 36px 40px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}
.home-author h2 {
  margin: 0 0 14px;
  color: var(--purple-dark);
}
.home-author p {
  margin: 0 auto 14px;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.6;
}
.home-author a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}
.home-author a:hover {
  text-decoration: underline;
}
@media (max-width: 560px) {
  .home-author {
    margin: 36px 16px 48px;
    padding: 26px 20px;
  }
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.cert-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(75, 66, 128, 0.06);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cert-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  background: var(--purple-soft);
  padding: 12px;
}
.cert-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.cert-card div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}
.cert-card strong {
  font-size: 15px;
  line-height: 1.35;
}
.cert-card span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 560px) {
  .cert-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .cert-card a {
    height: 140px;
  }
}

/* ---- Photo slider (CSS scroll-snap) ---- */
.photo-slider {
  position: relative;
}
.photo-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 18px) / 4);
  gap: 18px;
  margin: 0;
  padding: 4px 2px 14px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #cbbdea transparent;
}
.photo-slider-track:focus-visible {
  outline: 3px solid #b49bf1;
  border-radius: 12px;
}
.photo-slide {
  scroll-snap-align: start;
  min-width: 0;
}
.photo-slide figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(75, 66, 128, 0.06);
}
.photo-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.photo-slide figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.photo-slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.photo-slider-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(75, 66, 128, 0.08);
}
.photo-slider-button:hover {
  border-color: var(--purple);
  background: var(--purple-soft);
}
.photo-slider-button .course-icon {
  width: 20px;
  height: 20px;
}
@media (max-width: 900px) {
  .photo-slider-track {
    grid-auto-columns: calc((100% - 18px) / 2.3);
  }
}
@media (max-width: 560px) {
  .photo-slider-track {
    grid-auto-columns: 78%;
    gap: 12px;
  }
}
.home-gallery {
  margin: 56px auto 0;
}
.home-gallery h2 {
  margin: 0 0 8px;
  color: var(--purple-dark);
  font-size: clamp(1.6rem, 2.25vw, 2rem);
}
.home-gallery > p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* ---- Author page ---- */
.author-page {
  padding: 48px 0 72px;
}
.author-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: center;
}
.author-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}
.author-hero .lead {
  margin-bottom: 22px;
}
.author-quote {
  margin: 0 0 26px;
  padding: 14px 20px;
  border-left: 4px solid var(--purple);
  border-radius: 0 12px 12px 0;
  background: var(--purple-soft);
}
.author-quote p {
  margin: 0;
  color: var(--purple-dark);
  font-weight: 600;
  font-size: 1.08rem;
}
.author-hero-photo {
  margin: 0;
}
.author-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.author-section {
  margin-top: 64px;
}
.author-section > h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.author-intro {
  max-width: 780px;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.72;
}
.author-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}
.author-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 26px 26px;
}
.author-timeline li::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px #fff;
}
.author-timeline-year {
  color: var(--purple-dark);
  font-weight: 700;
}
.author-timeline h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}
.author-timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.author-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.author-cards-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.author-cards li,
.author-reviews li {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(75, 66, 128, 0.05);
}
.author-cards h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--purple-dark);
}
.author-cards p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.author-note,
.author-disclaimer {
  margin-block: 14px 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.author-disclaimer {
  margin-top: 48px;
}
.author-media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.author-media a {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.author-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.author-media span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
}
.author-media small {
  color: var(--muted);
}
.author-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.author-reviews blockquote {
  margin: 0 0 12px;
}
.author-reviews blockquote p {
  margin: 0;
  line-height: 1.65;
}
.author-review-name {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.author-course {
  padding: 32px 36px;
  border-radius: 20px;
  background: var(--purple-soft);
}
.author-course h2 {
  margin-bottom: 10px;
}
.author-course p {
  max-width: 720px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .author-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .author-hero-photo {
    max-width: 420px;
  }
  .author-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .author-page {
    padding-top: 28px;
  }
  .author-section {
    margin-top: 44px;
  }
  .author-cards,
  .author-cards-two {
    grid-template-columns: 1fr;
  }
  .author-timeline li {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-left: 20px;
  }
  .author-course {
    padding: 24px 20px;
  }
}

/* ---- Knowledge section ---- */
.knowledge-page {
  padding: 48px 0 72px;
  max-width: 1000px;
}
.knowledge-page > h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.knowledge-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(75, 66, 128, 0.05);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.knowledge-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.knowledge-card-number {
  color: var(--purple);
  font-weight: 700;
  font-size: 0.9rem;
}
.knowledge-card h2 {
  margin: 0;
  font-size: 1.2rem;
}
.knowledge-card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.knowledge-card h2 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.knowledge-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.knowledge-card-meta {
  margin-top: auto;
  color: var(--purple-dark);
  font-size: 0.88rem;
}
.knowledge-course {
  margin: 40px 0 0;
  padding: 30px 32px;
  border-radius: 20px;
  background: var(--purple-soft);
}
.knowledge-course h2 {
  margin: 0 0 8px;
  color: var(--purple-dark);
}
.knowledge-course p {
  max-width: 680px;
  color: var(--muted);
}
.knowledge-disclaimer {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.knowledge-article {
  max-width: 780px;
}
.knowledge-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  text-decoration: none;
  font-weight: 600;
}
.knowledge-back .course-icon {
  width: 18px;
  height: 18px;
}
.knowledge-article h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}
.knowledge-figure {
  margin: 6px 0 30px;
}
.knowledge-figure img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.knowledge-section {
  margin: 0 0 28px;
}
.knowledge-section h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}
.knowledge-section p,
.knowledge-section li {
  color: #3d3548;
  line-height: 1.75;
}
.knowledge-section p {
  margin: 0 0 14px;
}
.knowledge-section ul {
  margin: 0 0 14px;
  padding-left: 1.3em;
}
.knowledge-section li {
  margin-bottom: 6px;
}
.knowledge-key {
  margin: 36px 0 0;
  padding: 24px 28px;
  border: 1px solid #d9cdf3;
  border-radius: 18px;
  background: var(--purple-soft);
}
.knowledge-key h2 {
  margin: 0 0 10px;
  color: var(--purple-dark);
  font-size: 1.3rem;
}
.knowledge-key ul {
  margin: 0;
  padding-left: 1.2em;
}
.knowledge-key li {
  margin-bottom: 6px;
  line-height: 1.6;
}
.knowledge-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.knowledge-next span {
  color: var(--muted);
  font-size: 0.9rem;
}
.knowledge-next a {
  font-weight: 600;
  font-size: 1.08rem;
  text-decoration: none;
}
@media (max-width: 700px) {
  .knowledge-grid {
    grid-template-columns: 1fr;
  }
  .knowledge-page {
    padding-top: 28px;
  }
  .knowledge-course {
    padding: 24px 20px;
  }
  .knowledge-key {
    padding: 20px;
  }
}

/* ---- Extended course info ---- */
.course-info {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}
.course-info-panel {
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(75, 66, 128, 0.05);
}
.course-info-panel h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}
.course-info-panel h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
  color: var(--purple-dark);
}
.course-info-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.course-info-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
}
.course-info-warning {
  padding: 22px 24px;
  border-radius: 16px;
  background: #fff6f0;
  border: 1px solid #f4d9c8;
}
.course-info-warning h2 {
  font-size: 1.2rem;
}
.course-info-warning ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
  color: #5b4a42;
  line-height: 1.6;
}
.course-info-warning li {
  margin-bottom: 6px;
}
.course-check-list,
.course-cross-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.course-check-list li,
.course-cross-list li {
  position: relative;
  padding-left: 30px;
  color: #3d3548;
  line-height: 1.55;
}
.course-check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple-soft) url('/assets/course-icons/check.svg') center/14px no-repeat;
}
.course-cross-list li::before {
  content: '!';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fbe9ec;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 20px;
  text-align: center;
}
.course-check-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}
.course-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.course-steps li {
  position: relative;
  padding: 20px 20px 18px;
  border-radius: 16px;
  background: var(--purple-soft);
  counter-increment: step;
}
.course-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--purple);
  font-weight: 700;
}
.course-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.course-tiles-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.course-tiles li {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.course-info-note {
  margin-top: 14px !important;
}
.course-info-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: center;
}
.course-info-media .course-tiles {
  grid-template-columns: 1fr;
}
.course-info-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.course-info-kids {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--purple-soft);
}
.course-faq {
  display: grid;
  gap: 10px;
}
.course-faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.course-faq summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.course-faq summary::-webkit-details-marker {
  display: none;
}
.course-faq summary::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: url('/assets/course-icons/caret-down.svg') center/18px no-repeat;
  transition: transform 0.2s;
}
.course-faq details[open] summary::after {
  transform: rotate(180deg);
}
.course-faq details p {
  padding: 0 18px 16px;
}
.course-info-author {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.course-info-author img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.course-info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px !important;
}
.course-info-links a {
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 900px) {
  .course-info-split,
  .course-info-media {
    grid-template-columns: 1fr;
  }
  .course-info-media img {
    max-width: 320px;
  }
  .course-steps,
  .course-tiles-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .course-tiles {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .course-info-panel {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .course-check-columns,
  .course-steps,
  .course-tiles-four {
    grid-template-columns: 1fr;
  }
  .course-info-author {
    grid-template-columns: 1fr;
  }
  .course-info-author img {
    max-width: 220px;
  }
}

/* ---- Contacts quick block ---- */
.contact-quick-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 14px;
  padding: 0;
  list-style: none;
}
.contact-quick-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}
.contact-quick-list span {
  color: var(--muted);
  font-size: 0.92rem;
}
.contact-quick-list a,
.contact-quick-list strong {
  font-weight: 600;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .contact-quick-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Practice photos and course cards */
.practice-hero {
  --practice-hero-padding: clamp(24px, 5vw, 68px);
  padding-block: 0 var(--practice-hero-padding);
}
.practice-hero-layout {
  display: grid;
  width: 100%;
  grid-template-columns:
    minmax(20px, 1fr) minmax(0, 550px) clamp(16px, 3vw, 38px)
    minmax(0, 552px) minmax(20px, 1fr);
  align-items: center;
  row-gap: clamp(10px, 1.6vw, 20px);
}
.practice-hero .hero-copy {
  width: auto;
  grid-column: 2 / 4;
  padding: 0;
}
.practice-hero .hero-copy h1,
.practice-hero .hero-copy h1 span {
  white-space: normal;
}
.practice-hero .hero-copy h1 {
  font-size: clamp(2.15rem, 4vw, 3.6rem);
  line-height: 1.13;
}
.practice-hero .hero-copy .lead {
  max-width: 35ch;
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
  line-height: 1.65;
}
.practice-hero .hero-copy .actions {
  margin-top: clamp(24px, 3vw, 36px);
}
.hero-story-photos {
  position: relative;
  grid-column: 4 / -1;
  align-self: start;
  aspect-ratio: 1412 / 1066;
  margin-inline-start: -7vw;
}
.hero-story-photo {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  mask: url('/assets/hero-photo-wave-v4.svg') center / 100% 100% no-repeat;
}
.hero-story-photo[data-story-wide] {
  width: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero-story-photo[hidden],
.hero-story-progress[hidden] {
  display: none;
}
.hero-story-progress {
  display: flex;
  width: min(200px, 75%);
  grid-column: 1 / -1;
  justify-self: center;
  gap: 5px;
}
.hero-story-segment {
  display: grid;
  min-width: 0;
  min-height: 28px;
  flex: 1;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hero-story-line {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 10px;
  background: #c9bfdc;
}
.hero-story-segment[aria-current='true'] .hero-story-line {
  background: #a99bbf;
}
.hero-story-line > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--purple-dark);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-story-segment[data-state='complete'] .hero-story-line > span {
  transform: scaleX(1);
}
.hero-story-segment:focus-visible {
  outline: 2px solid var(--purple-dark);
  outline-offset: 2px;
}
.courses-practice-hero {
  grid-template-areas: 'title gallery';
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}
.courses-practice-hero .courses-hero-copy {
  grid-area: title;
}
.courses-practice-hero .courses-hero-copy h1 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4.3vw, 3.7rem);
  line-height: 1.05;
  white-space: normal;
}
.course-carousel {
  grid-area: gallery;
  min-width: 0;
}
.course-carousel-stage {
  display: grid;
  place-items: center;
  padding-block: 14px 18px;
  perspective: 900px;
}
.course-carousel-slide {
  z-index: 0;
  grid-area: 1 / 1;
  display: block;
  width: min(43%, 244px);
  height: auto;
  aspect-ratio: 852 / 1066;
  border-radius: clamp(13px, 2vw, 24px);
  object-fit: cover;
  box-shadow: 0 14px 25px rgba(43, 32, 72, 0.17);
  opacity: 0;
  transform: translateZ(-200px) scale(0.8);
  transition:
    transform 900ms cubic-bezier(0.22, 0.75, 0.26, 1),
    opacity 650ms ease,
    z-index 900ms step-end;
}
.course-carousel-slide[data-carousel-position='left'],
.course-carousel-slide[data-carousel-position='right'] {
  z-index: 1;
  opacity: 0.78;
  transform: translateX(var(--carousel-offset)) translateZ(-94px) rotateY(var(--carousel-tilt));
}
.course-carousel-slide[data-carousel-position='left'] {
  --carousel-offset: -72%;
  --carousel-tilt: 27deg;
}
.course-carousel-slide[data-carousel-position='right'] {
  --carousel-offset: 72%;
  --carousel-tilt: -27deg;
}
.course-carousel-slide[data-carousel-position='center'] {
  z-index: 2;
  opacity: 1;
  transform: translateZ(0);
  transition-timing-function: cubic-bezier(0.22, 0.75, 0.26, 1), ease, step-start;
}
.course-carousel:focus-visible {
  outline: 2px solid var(--purple-dark);
  outline-offset: 2px;
  border-radius: 16px;
}
@media (prefers-reduced-motion: reduce) {
  .course-carousel-slide {
    transition: none;
  }
}
.courses-catalog-visual.courses-catalog-photo {
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
}
.courses-catalog-photo img.feet-course-photo {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  border-radius: clamp(14px, 2vw, 22px);
  object-fit: cover;
  object-position: center 66%;
}
.single-course-grid .courses-catalog-photo img.feet-course-photo {
  width: auto;
  max-width: 92%;
}
.course-card img.course-card-photo {
  top: 20px;
  right: 16px;
  width: min(30%, 150px);
  height: auto;
  border-radius: clamp(14px, 2vw, 22px);
}
.single-home-course .course-card img.course-card-photo {
  width: min(100%, 216px);
  justify-self: center;
}
.author-credentials-link {
  margin: 0 0 20px;
  font-weight: 700;
}
#certificates-title {
  scroll-margin-top: 100px;
}
.case-slider .photo-slider-track {
  grid-template-columns: none;
  grid-auto-columns: 100%;
  padding: 4px 2px 10px;
}
.author-course,
.knowledge-course {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 240px);
  align-items: center;
  gap: 24px;
}
.author-course .feet-course-photo,
.knowledge-course .feet-course-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.photo-slider-button:focus-visible {
  outline: 3px solid #b49bf1;
  outline-offset: 2px;
}

@media (min-width: 821px) and (max-height: 900px) {
  .practice-hero {
    padding-block-end: 24px;
  }
  .practice-hero-layout {
    row-gap: 12px;
  }
  .hero-story-photos {
    width: min(calc(100% + 7vw), calc(min(68svh, 100svh - 140px) * 1412 / 1066));
    justify-self: end;
  }
}

@media (max-width: 820px) {
  .courses-practice-hero {
    grid-template-areas: 'title' 'gallery';
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .course-carousel {
    width: min(100%, 540px);
    justify-self: center;
  }
  .practice-hero {
    padding-block-start: var(--practice-hero-padding);
  }
  .practice-hero-layout {
    grid-template-columns: minmax(16px, 1fr) minmax(0, 560px) minmax(16px, 1fr);
  }
  .practice-hero .hero-copy {
    grid-column: 2;
  }
  .practice-hero .hero-copy h1 {
    font-size: clamp(1.8rem, 7.8vw, 2.7rem);
  }
  .hero-story-photos {
    grid-column: 1 / -1;
    margin-inline-start: 0;
  }
  .hero-story-photo {
    mask: none;
  }
  .hero-story-photo[data-story-wide] {
    object-fit: contain;
    object-position: center;
  }
  .course-card img.course-card-photo,
  .single-home-course .course-card img.course-card-photo {
    width: min(100%, 176px);
  }
}

@media (max-width: 560px) {
  .author-course,
  .knowledge-course {
    grid-template-columns: minmax(0, 1fr);
  }
  .author-course .feet-course-photo,
  .knowledge-course .feet-course-photo {
    width: min(100%, 280px);
  }
}

/* Registration methods share sizing, focus and selected states. */
.auth-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 24px 0 16px;
}
.auth-method {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--purple-dark);
  font-weight: 700;
  text-decoration: none;
}
.auth-method:hover,
.auth-method.is-selected {
  border-color: var(--purple-dark);
  background: var(--purple-dark);
  color: white;
}
.auth-notice {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--purple-soft);
}
.auth-card .form-grid {
  gap: 10px;
}
.auth-card .form-grid > label:not(:first-child) {
  margin-top: 8px;
}
.auth-card .form-grid > .button {
  margin-top: 10px;
}
