/* ==========================================================================
   Artistic Academy – catalog + course pages
   ========================================================================== */

.page-academy { background: var(--bg-2); }
.page-academy main { padding-top: var(--header-h); min-height: 70vh; }
.page-academy .header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom-color: var(--line);
}
.page-academy .header.is-menu-open { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- Account button ---------- */
.account { position: relative; }
.account__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.account__btn svg { font-size: 19px; color: var(--gold); }
.account__btn:hover { border-color: var(--gold); }
.account__btn.is-in { background: var(--dark); border-color: var(--dark); color: #fff; }
.account__menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 5;
  min-width: 230px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.account__email {
  font-size: 14px;
  color: var(--muted);
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  direction: ltr;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account__logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 6px;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s;
}
.account__logout:hover { background: var(--surface-2); }
.account__logout svg { font-size: 19px; color: var(--gold); }

/* ---------- Catalog hero ---------- */
.ac-hero {
  padding-block: clamp(50px, 7vw, 90px) 10px;
  background:
    radial-gradient(ellipse 60% 70% at 85% 0%, rgba(240, 165, 0, 0.12), transparent 65%),
    linear-gradient(180deg, #fff, var(--bg-2));
}
.ac-hero__title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.12;
  max-width: 760px;
  margin-bottom: 16px;
}
.ac-hero__sub { font-size: clamp(16px, 1.7vw, 19px); color: var(--text-soft); max-width: 620px; }
.ac-perks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ac-perks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 500;
}
.ac-perks svg { color: var(--gold); font-size: 18px; }

/* ---------- Course cards ---------- */
.ac-catalog { padding-top: 40px; }
.ac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}
.ac-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.ac-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-gold); }
.ac-card--skeleton {
  min-height: 420px;
  background: linear-gradient(100deg, #fff 30%, var(--bg-2) 50%, #fff 70%) 0 0 / 200% 100%;
  animation: skeleton 1.4s linear infinite;
}
@keyframes skeleton { to { background-position: -200% 0; } }

.ac-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark); }
.ac-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ac-card:hover .ac-card__media img { transform: scale(1.06); }
.ac-card__level,
.ac-card__owned {
  position: absolute;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.ac-card__level { inset-inline-start: 14px; background: rgba(255, 255, 255, 0.92); }
.ac-card__owned {
  inset-inline-end: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1f9d55;
  color: #fff;
}
.ac-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gold);
  font-size: 26px;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.ac-card:hover .ac-card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ac-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.ac-card__body h2 { font-size: 21px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.ac-card__body h2 a:hover { color: var(--gold); }
.ac-card__body > p { color: var(--text-soft); font-size: 15.5px; margin-bottom: 16px; }
.ac-card__meta { display: flex; gap: 18px; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.ac-card__meta li { display: inline-flex; align-items: center; gap: 6px; }
.ac-card__meta svg { font-size: 17px; color: var(--gold); }
.ac-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.ac-card__price { font-family: var(--font-en); font-size: 24px; font-weight: 800; }
.ac-card__price--owned { font-family: var(--font); font-size: 16px; color: #1f9d55; }

.ac-empty { padding: 60px 20px; text-align: center; color: var(--text-soft); grid-column: 1 / -1; }
.ac-empty a { color: var(--gold); font-weight: 600; }

.ac-card__example {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(13, 12, 10, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ac-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
}
.ac-card__cat svg { font-size: 16px; }
.ac-card__cat:hover { text-decoration: underline; }

/* ---------- Academy home sections ---------- */
.ac-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ac-section { padding-block: clamp(60px, 8vw, 100px); }
.ac-section--white { background: #fff; border-top: 1px solid var(--line); }
.ac-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.ac-head .section__title { margin-bottom: 0; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 230px;
  padding: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--dark);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.cat-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.cat-card__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(13, 12, 10, 0.88) 0%, rgba(13, 12, 10, 0.35) 55%, rgba(13, 12, 10, 0.1) 100%);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card:hover img { transform: scale(1.07); }
.cat-card__icon {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gold-grad);
  color: #15120c;
  font-size: 24px;
  box-shadow: var(--shadow-gold);
}
.cat-card__body { display: flex; flex-direction: column; gap: 2px; }
.cat-card__body strong { font-size: 21px; font-weight: 700; line-height: 1.3; }
.cat-card__body small { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.cat-card__go {
  position: absolute;
  bottom: 22px;
  inset-inline-end: 22px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 19px;
  transition: background 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.cat-card:hover .cat-card__go { background: #fff; color: var(--gold); transform: translateX(-4px); }
.cat-card--skeleton {
  background: linear-gradient(100deg, #fff 30%, var(--bg-2) 50%, #fff 70%) 0 0 / 200% 100%;
  animation: skeleton 1.4s linear infinite;
  box-shadow: none;
  border: 1px solid var(--line);
}

/* ---------- Page heads (all courses / category) ---------- */
.ac-page-head {
  padding-block: 8px 34px;
  background:
    radial-gradient(ellipse 60% 70% at 85% 0%, rgba(240, 165, 0, 0.12), transparent 65%),
    linear-gradient(180deg, #fff, var(--bg-2));
  border-bottom: 1px solid var(--line);
}
.ac-page-head__title {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.cat-chip svg { color: var(--gold); font-size: 18px; }
.cat-chip small {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 12px;
  text-align: center;
}
.cat-chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.cat-chip.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }

.ac-group + .ac-group { margin-top: 64px; }
.ac-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.ac-group__head h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.ac-group__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(240, 165, 0, 0.12);
  color: var(--gold);
  font-size: 22px;
}
.ac-group__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.ac-group__link:hover .btn__arrow { transform: translateX(-5px); }

.cat-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.cat-hero__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--gold-grad);
  color: #15120c;
  font-size: 28px;
  box-shadow: var(--shadow-gold);
}
.cat-hero__icon:empty { display: none; }
.cat-hero__count {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14.5px;
}
.cat-hero__count:empty { display: none; }
.cat-hero__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
.cat-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero__media img:not([src]) { visibility: hidden; }

.ac-more { background: #fff; border-top: 1px solid var(--line); padding-block: 60px; }
.ac-more__title { font-size: 24px; font-weight: 800; }
.ac-more .cat-chips { margin-block: 18px 28px; }

/* ---------- FAQ ---------- */
.ac-faq { background: #fff; border-top: 1px solid var(--line); }
.ac-faq__inner { max-width: 820px; }
.ac-faq .section__title { margin-bottom: 30px; }
.ac-faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 4px;
}
.ac-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.ac-faq summary::-webkit-details-marker { display: none; }
.ac-faq summary::after {
  content: "+";
  font-size: 26px;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}
.ac-faq details[open] summary::after { transform: rotate(45deg); }
.ac-faq details p { color: var(--text-soft); padding-bottom: 18px; }
.ac-faq details a { color: var(--gold); font-weight: 600; }

.footer--slim { padding-top: 0; }

/* ---------- Course page ---------- */
.course { padding-bottom: 80px; }
.course__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d0c0a;
  box-shadow: var(--shadow);
  user-select: none;
  -webkit-user-select: none;
}
.player__stage,
.player__stage iframe,
.player__cover,
.player__cover img,
.player__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.player__stage iframe { border: 0; }
.player__cover { z-index: 1; }
.player__cover[hidden] { display: none; }
.player__cover img { object-fit: cover; opacity: 0.45; }
.player__overlay {
  display: grid;
  place-items: center;
  padding: 20px;
  color: #fff;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(13, 12, 10, 0.2), rgba(13, 12, 10, 0.7));
}
.player__start {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #15120c;
  font-size: 34px;
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.14), var(--shadow-gold);
  transition: transform 0.4s var(--ease);
}
.player__start svg { margin-inline-start: 4px; }
.player__start:hover { transform: scale(1.08); }
.player__msg { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; }
.player__msg strong { font-size: clamp(17px, 2.2vw, 22px); }
.player__msg small { color: rgba(255, 255, 255, 0.75); font-size: 14.5px; margin-bottom: 8px; }
.player__msg .btn--outline { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.player__lock {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 26px;
  color: var(--gold-light);
}
.player__spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--gold-light);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.player__wm {
  position: absolute;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.12);
  direction: ltr;
  pointer-events: none;
  white-space: nowrap;
  transition: top 1.6s var(--ease), left 1.6s var(--ease);
}
.player__wm[hidden] { display: none; }
.player__fs {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(13, 12, 10, 0.55);
  color: #fff;
  font-size: 19px;
  opacity: 0.75;
  transition: opacity 0.3s, background 0.3s;
}
.player__fs:hover { opacity: 1; background: var(--gold); color: #15120c; }
.player__fs[hidden] { display: none; }

.player:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.player:-webkit-full-screen { border-radius: 0; width: 100%; height: 100%; }
.player.is-pseudo-fs {
  position: fixed;
  inset: 0;
  z-index: 3000;
  border-radius: 0;
  aspect-ratio: auto;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

.course__now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px 0;
}
.course__now small { color: var(--gold); font-weight: 600; font-size: 13.5px; }
.course__now h2 { font-size: 20px; font-weight: 700; line-height: 1.35; }

.course__about {
  margin-top: 26px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.course__about .eyebrow { margin-bottom: 10px; }
.course__title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.course__subtitle { font-size: 18px; color: var(--text-soft); margin-bottom: 18px; }
.course__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.course__meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 14px;
  font-weight: 500;
}
.course__meta svg { color: var(--gold); font-size: 17px; }
.course__desc { color: var(--text-soft); }

.course__side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }

.buy-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-soft);
}
.buy-card:empty { display: none; }
.buy-card__price {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
}
.buy-card__price small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 6px; }
.buy-card__perks { display: grid; gap: 8px; margin-top: 18px; font-size: 14.5px; color: var(--text-soft); }
.buy-card__perks li { display: flex; align-items: center; gap: 8px; }
.buy-card__perks svg { color: #1f9d55; }
.buy-card__owned { display: flex; align-items: center; gap: 14px; }
.buy-card__owned > svg {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 50%;
  background: rgba(31, 157, 85, 0.12);
  color: #1f9d55;
}
.buy-card__owned strong { display: block; font-size: 17px; }
.buy-card__owned small { color: var(--muted); font-size: 14px; }

.lessons {
  padding: 22px 14px 14px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.lessons h3 { font-size: 17px; font-weight: 700; padding-inline: 10px; margin-bottom: 10px; }
.lessons__list { display: grid; gap: 4px; }
.lesson {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 10px;
  border-radius: 14px;
  text-align: start;
  transition: background 0.25s;
}
.lesson:hover { background: var(--bg-2); }
.lesson.is-current { background: rgba(240, 165, 0, 0.1); }
.lesson__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-2);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
}
.lesson.is-current .lesson__num { background: var(--gold-grad); color: #15120c; }
.lesson__title { font-size: 15px; font-weight: 500; line-height: 1.4; }
.lesson.is-locked .lesson__title { color: var(--text-soft); }
.lesson__free {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(31, 157, 85, 0.12);
  color: #1f9d55;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}
.lesson__dur {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--muted);
}
.lesson__dur svg { color: var(--muted); }

/* ---------- Login dialog ---------- */
.login {
  width: min(420px, calc(100% - 32px));
  padding: 34px 28px 26px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.login[open] { animation: pop 0.35s var(--ease); }
.login::backdrop { background: rgba(13, 12, 10, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.login__close {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--muted);
  transition: background 0.2s;
}
.login__close:hover { background: var(--bg-2); }
.login__logo { width: 76px; margin: 0 auto 14px; }
.login__step { display: grid; gap: 14px; }
.login__step[hidden] { display: none; }
.login h2 { font-size: 23px; font-weight: 800; }
.login p { color: var(--text-soft); font-size: 15px; margin-top: -6px; }
.login .field { text-align: start; }
.login__code { font-family: var(--font-en); font-size: 22px !important; letter-spacing: 0.4em; text-align: center; }
.login__link { font-size: 14px; font-weight: 600; color: var(--gold); padding: 4px; }
.login__error { min-height: 22px; margin-top: 12px; font-size: 14px; color: #d63b2a; }

.btn.is-loading { pointer-events: none; opacity: 0.7; }
.btn.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-hero { grid-template-columns: 1fr; }
  .cat-hero__media { max-width: 620px; }
  .course__layout { grid-template-columns: 1fr; gap: 0; }
  .course__main { display: contents; }
  .player { order: 1; }
  .course__now { order: 2; padding-bottom: 20px; }
  .course__side { order: 3; position: static; }
  .course__about { order: 4; }
}

@media (max-width: 767px) {
  .page-academy { padding-bottom: 0; }
  .account__btn { height: 42px; padding-inline: 12px; }
  .account__btn span { display: none; }
  .ac-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; gap: 14px; }
  .cat-hero__media { display: none; }
  .cat-card { min-height: 170px; }
  .ac-head { flex-direction: column; align-items: flex-start; }
  .ac-hero__actions .btn { width: 100%; }
  .ac-group__head { flex-direction: column; align-items: flex-start; }
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .cat-chips::-webkit-scrollbar { display: none; }
  .cat-chip { flex-shrink: 0; }
  .ac-perks li { font-size: 13.5px; padding: 8px 13px; }
  .player { border-radius: 16px; margin-inline: -4px; }
  .course__now { flex-direction: column; align-items: flex-start; }
  .course__about { padding: 22px 20px; }
  .player__wm { font-size: 11px; }
}
