:root {
  --blue: #0b6fff;
  --blue-dark: #005de0;
  --blue-soft: #eaf4ff;
  --blue-softer: #f4f8ff;
  --ink: #07142f;
  --text: #182542;
  --muted: #5d6b82;
  --line: #d9e6f8;
  --line-soft: #eaf0fa;
  --surface: #ffffff;
  --page: #f7faff;
  --green: #31c46b;
  --red: #e43f5a;
  --violet: #7b4df5;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family:
    Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

img,
video,
iframe {
  max-width: 100%;
}

.page {
  min-height: 100vh;
}

.seo-fallback {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
  color: var(--text);
}

.seo-fallback section + section {
  margin-top: 32px;
}

.seo-fallback h1 {
  margin: 8px 0 14px;
  color: var(--ink);
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: 2.6rem;
  line-height: 1.08;
}

.seo-fallback h2,
.seo-fallback h3 {
  color: var(--ink);
}

.seo-fallback p,
.seo-fallback li {
  line-height: 1.65;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.site-header__leading,
.lesson-topbar__leading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.course-app-back {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid #b8d2ff;
  border-radius: 14px;
  background: #f3f8ff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(11, 111, 255, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.course-app-back:hover,
.course-app-back:focus-visible {
  transform: translateY(-1px);
  border-color: #82b3ff;
  background: #eaf3ff;
  box-shadow: 0 12px 24px rgba(11, 111, 255, 0.13);
}

.course-app-back .icon {
  width: 17px;
  height: 17px;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(11, 111, 255, 0.22);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: white;
}

.brand-mark::before {
  inset: 8px 11px 12px;
  border-radius: 14px 14px 4px 4px;
}

.brand-mark::after {
  width: 13px;
  height: 13px;
  left: 11px;
  top: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 4px solid white;
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}

.brand-title {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1;
}

.site-header--app-return .brand-title,
.lesson-topbar--app-return .brand-title {
  display: none;
}

.site-header--app-return .brand,
.lesson-topbar--app-return .brand {
  gap: 0;
  min-width: 34px;
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #334155;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active,
.nav a[aria-current="page"] {
  transform: translateY(-1px);
  background: #eef6ff;
  color: var(--blue);
  box-shadow: 0 10px 22px rgba(11, 111, 255, 0.09);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-auth {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.top-cta,
.top-menu-btn,
.logout-icon-btn {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #123456;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.top-cta:hover,
.top-menu-btn:hover,
.logout-icon-btn:hover {
  transform: translateY(-1px);
  border-color: #a7c8ff;
  color: var(--blue);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.header-start {
  min-height: 44px;
  padding: 0 24px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(11, 111, 255, 0.2);
}

.header-start:hover,
.header-start:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(11, 111, 255, 0.28);
}

.top-login {
  background: #eef6ff;
  border-color: #cfe1ff;
  color: var(--blue);
}

.top-account-btn {
  min-height: 42px;
  padding: 0 16px;
  border-color: rgba(11, 111, 255, 0.26);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(11, 111, 255, 0.86), rgba(91, 181, 255, 0.5)) border-box;
  color: #0b6fff;
  box-shadow: 0 10px 24px rgba(11, 111, 255, 0.08);
}

.top-account-btn .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.top-account-btn:hover,
.top-account-btn:focus-visible {
  border-color: rgba(11, 111, 255, 0.38);
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%) padding-box,
    linear-gradient(135deg, #0b6fff, #65c4ff) border-box;
  color: #005ee4;
}

.top-user-name {
  max-width: 220px;
  overflow: hidden;
  color: #53637a;
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-icon-btn {
  width: 40px;
  padding: 0;
}

.logout-icon-btn .icon {
  width: 18px;
  height: 18px;
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3e4da;
  color: #8a4a2b;
  font-weight: 800;
}

.lesson-auth,
.mobile-auth {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.lesson-auth [data-auth-user] {
  max-width: 240px;
  overflow: hidden;
  color: #07142f;
  font-size: 0.94rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-3d-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hamburger {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  box-shadow: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.format-tab:focus-visible,
.lesson-card:focus-visible,
.plan-card:focus-visible {
  outline: 3px solid rgba(11, 111, 255, 0.24);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 22px rgba(11, 111, 255, 0.22);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-outline {
  border-color: #a7c8ff;
  color: var(--blue);
  background: white;
}

.btn-outline:hover {
  background: var(--blue-softer);
}

.btn-muted {
  background: #edf4ff;
  color: #405373;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-bottom: 1px solid var(--line-soft);
}

.hero__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 28px;
  min-height: 650px;
  padding: 44px 0 38px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid #cfe1ff;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 18px;
  color: var(--ink);
  font-size: 4rem;
  line-height: 0.98;
  font-weight: 900;
}

.hero__lead {
  max-width: 620px;
  margin: 0 0 22px;
  color: #253657;
  font-size: 1.25rem;
  line-height: 1.55;
}

.check-list,
.simple-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.simple-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-dot {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  margin-top: 2px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.trust-item {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.trust-icon,
.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.trust-item strong {
  display: block;
  color: var(--ink);
}

.trust-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero__visual {
  align-self: end;
}

.hero__visual-mobile {
  display: none;
}

.hero__visual img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.section {
  padding: 78px 0;
}

.section-tight {
  padding: 54px 0;
}

.section-white {
  background: white;
}

.section-blue {
  background: #f4f9ff;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-kicker {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 850;
  text-transform: uppercase;
}

.section-title {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 1.08;
  font-weight: 900;
}

.section-copy {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.course-list {
  display: grid;
  gap: 12px;
}

.lesson-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 18px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.lesson-card--free {
  border-color: #cfe1ff;
}

.lesson-number {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 900;
}

.lesson-card--locked .lesson-number {
  color: #41516f;
  background: #eef4fc;
  font-size: 1rem;
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 850;
}

.lesson-card p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.format-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.format-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lesson-card__actions {
  min-width: 230px;
  display: grid;
  gap: 10px;
}

.grid-3,
.grid-4,
.grid-5,
.grid-6 {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.info-card,
.format-card,
.bonus-card,
.plan-card,
.faq-item,
.cta-band {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.info-card,
.format-card,
.bonus-card {
  padding: 22px;
}

.info-card h3,
.format-card h3,
.bonus-card h3 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 1.05rem;
}

.info-card p,
.format-card p,
.bonus-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.format-card {
  min-height: 154px;
}

.bonus-card {
  min-height: 180px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-softer);
  color: #31547f;
  font-size: 0.78rem;
  font-weight: 700;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-color: #a7c8ff;
  background: linear-gradient(90deg, #f8fbff, #ffffff);
}

.cta-band h2,
.cta-band h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.cta-band p {
  margin: 6px 0 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: steps;
}

.step-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  counter-increment: steps;
}

.step-card::before {
  content: counter(steps);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 900;
}

.step-card h3 {
  margin: 18px 0 8px;
  color: var(--ink);
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.plans {
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 24px;
}

.plan-card--featured {
  border-color: var(--blue);
  box-shadow: 0 16px 40px rgba(11, 111, 255, 0.12);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
}

.plan-card h3 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 1.25rem;
}

.price {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.plan-note {
  margin: 8px 0 18px;
  color: var(--muted);
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: #253657;
  line-height: 1.45;
}

.plan-card li {
  display: flex;
  gap: 9px;
}

.plan-card .btn {
  margin-top: auto;
  width: 100%;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-item {
  padding: 22px;
}

.faq-item h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.03rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line-soft);
  background: white;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.disclaimer {
  max-width: 840px;
  margin: 20px 0 0;
  color: #6d7890;
  font-size: 0.9rem;
  line-height: 1.55;
}

.lesson-layout {
  min-height: 100vh;
  background: var(--page);
}

.lesson-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}

.lesson-topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  gap: 18px;
  width: min(100% - 40px, 1600px);
  margin: 0 auto;
}

.lesson-topbar nav {
  display: flex;
  justify-content: center;
  gap: 42px;
  color: var(--ink);
  font-weight: 700;
}

.lesson-user {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.lesson-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  width: min(100% - 32px, 1600px);
  margin: 0 auto;
  padding: 24px 0;
}

.format-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

.sidebar-toggle {
  margin-bottom: 26px;
}

.format-sidebar.is-showing-lessons .sidebar-toggle {
  color: var(--blue);
  background: #f0f6ff;
  border-color: #a7c8ff;
}

.format-sidebar-panel[hidden] {
  display: none;
}

.format-sidebar-panel--lessons {
  min-height: 0;
}

.format-sidebar-panel--lessons .study-course-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.format-sidebar-panel--lessons .study-course-head {
  margin-bottom: 12px;
}

.format-sidebar-panel--lessons .study-course-head h2 {
  max-width: 150px;
  line-height: 1.05;
}

.format-sidebar-panel--lessons .study-lesson-list--scroll {
  max-height: calc(100vh - 230px);
  min-height: 360px;
}

.format-menu {
  display: grid;
  gap: 10px;
}

.format-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.format-link:hover {
  background: var(--blue-softer);
}

.format-link.active {
  border-color: #a7c8ff;
  background: #f0f6ff;
  color: var(--blue);
}

.sidebar-note {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  line-height: 1.45;
}

.format-account-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  border: 1px solid #bfdbff;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
  color: var(--blue);
  font-weight: 850;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.format-account-link:hover {
  transform: translateY(-1px);
  border-color: #8fbaff;
  box-shadow: 0 12px 24px rgba(12, 111, 255, 0.12);
}

.lesson-canvas {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

.lesson-heading {
  padding: 28px 34px 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--blue);
  font-weight: 750;
}

.lesson-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--blue);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.lesson-back-link:hover,
.lesson-back-link:focus-visible {
  background: #f4f8ff;
  border-color: #cfe1ff;
  box-shadow: 0 8px 18px rgba(11, 111, 255, 0.08);
  transform: translateX(-2px);
}

.lesson-back-link .icon {
  width: 17px;
  height: 17px;
  transition: transform 180ms ease;
}

.lesson-back-link:hover .icon,
.lesson-back-link:focus-visible .icon {
  transform: translateX(-2px);
}

.lesson-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.lesson-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: 3.9rem;
  line-height: 0.95;
  font-weight: 900;
}

.lesson-heading h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.12;
}

.lesson-inline-title {
  display: none;
}

@media (min-width: 761px) {
  .lesson-heading {
    padding: 16px 26px 12px;
  }

  .lesson-heading .breadcrumbs {
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 0;
  }

  .lesson-inline-title {
    display: block;
    justify-self: start;
    min-width: 0;
    max-width: min(720px, 56vw);
    color: var(--ink);
    font-family: Unbounded, Manrope, system-ui, sans-serif;
    font-size: clamp(1.02rem, 1.35vw, 1.34rem);
    font-weight: 900;
    line-height: 1.22;
    text-align: left;
    overflow-wrap: normal;
    word-break: normal;
  }

  .lesson-title-row {
    display: none;
  }

  .lesson-body {
    padding-top: 0;
  }
}

.mobile-lesson-head,
.mobile-format-tabs {
  display: none;
}

.lesson-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 0 28px 28px;
}

.lesson-body--pdf {
  grid-template-columns: minmax(0, 1fr);
}

.lesson-main {
  min-width: 0;
}

.lesson-aside {
  display: grid;
  align-content: start;
  gap: 16px;
}

.side-card {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.side-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--ink);
}

.side-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.side-card ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-card li {
  display: flex;
  gap: 10px;
  color: #34425f;
  line-height: 1.45;
}

.lesson-aside--preview {
  gap: 18px;
}

.side-card--preview {
  border-color: #dce8f7;
  background:
    radial-gradient(circle at 12% 8%, rgba(11, 111, 255, 0.07), transparent 28%),
    #ffffff;
}

.side-card--preview h3 {
  margin-bottom: 14px;
}

.preview-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #eef6ff;
}

.preview-card-icon .course-3d-icon {
  width: 38px;
  height: 38px;
}

.preview-check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--blue);
}

.preview-check::before {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translate(1px, -1px);
}

.side-card--preview p {
  line-height: 1.62;
}

.lesson-article {
  max-width: 790px;
  margin-inline: auto;
  color: #22324f;
  line-height: 1.82;
  font-size: 1.11rem;
  font-weight: 480;
  letter-spacing: 0;
}

.lesson-article h2:first-child {
  display: none;
}

.lesson-article h2,
.lesson-article h3,
.lesson-article h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0;
}

.lesson-article h2 {
  margin: 0 0 20px;
  font-size: 2.05rem;
  font-weight: 950;
}

.lesson-article h3 {
  position: relative;
  margin: 44px 0 18px;
  padding: 0 0 0 18px;
  color: #07142f;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 950;
}

.lesson-article h3::before {
  content: "";
  position: absolute;
  top: 0.19em;
  left: 0;
  width: 5px;
  height: 1.1em;
  border-radius: 999px;
  background: linear-gradient(180deg, #0b6fff 0%, #5bb5ff 100%);
}

.lesson-article h4 {
  margin: 30px 0 12px;
  color: #102246;
  font-size: 1.18rem;
  font-weight: 900;
}

.lesson-article p {
  margin: 0 0 18px;
}

.lesson-article > p:first-of-type {
  margin-bottom: 24px;
  color: #53637a;
  font-size: 1.18rem;
  line-height: 1.72;
  font-weight: 560;
}

.lesson-article ul {
  display: grid;
  gap: 10px;
  margin: 4px 0 24px;
  padding-left: 0;
  list-style: none;
}

.lesson-article ol {
  display: grid;
  gap: 12px;
  margin: 6px 0 26px;
  padding-left: 0;
  counter-reset: lesson-step;
  list-style: none;
}

.lesson-article li {
  position: relative;
  margin: 0;
  padding-left: 34px;
  line-height: 1.72;
}

.lesson-article ul > li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(11, 111, 255, 0.1);
}

.lesson-article ol > li {
  counter-increment: lesson-step;
  padding-left: 46px;
}

.lesson-article ol > li::before {
  content: counter(lesson-step);
  position: absolute;
  top: 0.08em;
  left: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe0f5;
  border-radius: 9px;
  background: #f4f8ff;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 950;
}

.lesson-article a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.lesson-article a:hover {
  text-decoration: underline;
}

.lesson-article blockquote {
  position: relative;
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid #a7c8ff;
  border-left: 5px solid var(--blue);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(11, 111, 255, 0.1), transparent 34%),
    #f8fbff;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.68;
  box-shadow: 0 14px 34px rgba(20, 54, 114, 0.06);
}

.lesson-callout,
.lesson-footnote {
  position: relative;
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid #a7c8ff;
  border-left: 5px solid var(--blue);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(11, 111, 255, 0.1), transparent 34%),
    #f8fbff;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.68;
  box-shadow: 0 14px 34px rgba(20, 54, 114, 0.06);
}

.lesson-callout p,
.lesson-footnote p {
  margin: 0;
}

.lesson-callout strong,
.lesson-footnote strong {
  color: #07142f;
}

.lesson-article blockquote:nth-of-type(4n + 2),
.lesson-callout:nth-of-type(4n + 2),
.lesson-footnote:nth-of-type(4n + 2) {
  border-color: #afe3c4;
  border-left-color: #28b765;
  background: #f3fff7;
}

.lesson-article blockquote:nth-of-type(4n + 3),
.lesson-callout:nth-of-type(4n + 3),
.lesson-footnote:nth-of-type(4n + 3) {
  border-color: #ffd796;
  border-left-color: #f29b21;
  background: #fffaf0;
}

.lesson-article blockquote:nth-of-type(4n + 4),
.lesson-callout:nth-of-type(4n + 4),
.lesson-footnote:nth-of-type(4n + 4) {
  border-color: #dac9ff;
  border-left-color: #7b4df5;
  background: #fbf8ff;
}

.lesson-article blockquote:nth-of-type(4n + 5),
.lesson-callout:nth-of-type(4n + 5),
.lesson-footnote:nth-of-type(4n + 5) {
  border-color: #ffc4d6;
  border-left-color: #e43f7a;
  background: #fff7fa;
}

.lesson-guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 30px 0;
  padding: 18px;
  border: 1px solid #cfe0f5;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 16px 38px rgba(20, 54, 114, 0.09);
}

.lesson-guide-card__icon {
  display: none;
}

.lesson-guide-card__icon svg {
  width: 22px;
  height: 22px;
}

.lesson-guide-card__body strong {
  display: block;
  margin-bottom: 5px;
  color: #07142f;
  font-size: 1.04rem;
  line-height: 1.3;
}

.lesson-guide-card__body p {
  margin: 0;
  color: #63718c;
  font-size: 0.96rem;
  line-height: 1.55;
}

.lesson-guide-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(11, 111, 255, 0.24);
  border-radius: 12px;
  background: #ffffff;
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.lesson-guide-link:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 111, 255, 0.46);
  background: rgba(11, 111, 255, 0.06);
  text-decoration: none;
}

.lesson-article blockquote p:last-child {
  margin-bottom: 0;
}

.lesson-article pre {
  overflow-x: auto;
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid #cfe0f5;
  border-radius: 18px;
  background: #f4f8ff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.62;
}

.lesson-article code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.lesson-divider {
  height: 1px;
  margin: 38px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, #cfe0f5, transparent);
}

.lesson-image-block {
  margin: 34px 0;
}

.lesson-image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #d6e5fb;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(20, 54, 114, 0.11);
}

.lesson-image-block--infographic .lesson-image-frame {
  cursor: zoom-in;
}

.lesson-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.lesson-image-download {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 211, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(11, 111, 255, 0.72);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20, 54, 114, 0.08);
  backdrop-filter: blur(10px);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.lesson-image-download svg {
  width: 18px;
  height: 18px;
}

.lesson-image-download:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 111, 255, 0.7);
  background: rgba(255, 255, 255, 0.88);
  color: #0b6fff;
}

.lesson-image-caption {
  margin: 12px 6px 0;
  color: #5f6f8c;
  font-size: 0.93rem;
  line-height: 1.55;
}

.lesson-image-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lesson-image-row .lesson-image-block {
  margin: 22px 0;
}

.lesson-note {
  display: block;
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid #a7c8ff;
  border-left: 5px solid var(--blue);
  border-radius: 18px;
  background: #f8fbff;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.68;
  box-shadow: 0 12px 30px rgba(20, 54, 114, 0.055);
}

.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

th {
  background: var(--blue-softer);
  color: var(--ink);
}

.gender-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.gender-card {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
}

.gender-card--female {
  border-color: #f3c8d8;
  background: #fff7fa;
}

.media-player,
.pdf-viewer,
.audio-player {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #101828;
  box-shadow: var(--shadow-sm);
}

.media-player {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-player {
  border-color: #cfe0f5;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(11, 111, 255, 0.18), transparent 34%),
    #07142f;
}

.media-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111827;
}

.video-player video {
  position: relative;
  z-index: 1;
  background: #07142f;
}

.video-poster-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  overflow: hidden;
  border: 0;
  background: #07142f;
  color: white;
  cursor: pointer;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.video-poster-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px;
}

.video-poster-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 20, 47, 0.06) 0%, rgba(7, 20, 47, 0.5) 100%);
}

.video-cover-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-poster-button > span,
.video-poster-content > span,
.video-poster-content > div,
.video-poster-content > small {
  position: relative;
  z-index: 2;
}

.video-player.has-started .video-poster-button,
.video-poster-button[hidden] {
  opacity: 0;
  pointer-events: none;
}

.video-poster-button__icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue);
  box-shadow: 0 18px 42px rgba(7, 20, 47, 0.24);
}

.video-poster-button__icon .icon {
  width: 36px;
  height: 36px;
  fill: currentColor;
  transform: translateX(2px);
}

.video-poster-button strong,
.video-poster-button small {
  display: block;
  text-align: center;
}

.video-poster-button strong {
  font-size: 1.18rem;
  font-weight: 900;
}

.video-poster-button small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
}

.video-poster-actions,
.video-poster-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.video-poster-action {
  min-width: 128px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 34px rgba(7, 20, 47, 0.2);
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.video-poster-action:hover,
.video-poster-action:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.7);
}

.video-poster-action--primary {
  background: rgba(11, 111, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.36);
}

.video-poster-resume-time {
  min-height: 18px;
}

.media-loading-label {
  width: max-content;
  max-width: calc(100% - 32px);
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 7px 14px;
  border: 1px solid rgba(11, 111, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0b5fd7;
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(7, 20, 47, 0.12);
}

.media-loading-label--video {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
}

.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 34px 36px minmax(84px, 1fr) 36px minmax(0, auto) 34px;
  align-items: center;
  gap: 7px;
  min-height: 52px;
  padding: 8px 12px 10px;
  border: 0;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, rgba(7, 20, 47, 0.02), rgba(7, 20, 47, 0.82));
  color: white;
  backdrop-filter: blur(10px);
  box-shadow: none;
  box-sizing: border-box;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.video-player:not(.has-started) .video-controls,
.video-player.is-playing:not(.is-controls-visible) .video-controls {
  opacity: 0;
  transform: translateY(104%);
  pointer-events: none;
}

.video-volume--floating {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(7, 20, 47, 0.62);
  color: white;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(7, 20, 47, 0.2);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.video-player:not(.has-started) .video-volume--floating,
.video-player.is-playing:not(.is-controls-visible) .video-volume--floating {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.video-control-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
}

.video-control-btn .icon {
  width: 17px;
  height: 17px;
}

.video-control-btn .icon polygon {
  transform: translateX(1.5px);
}

.video-control-btn:hover,
.video-speed-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.video-time {
  min-width: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 850;
  text-align: center;
}

.video-range {
  width: 100%;
  height: 4px;
  appearance: none;
  background: transparent;
  accent-color: var(--blue);
  cursor: pointer;
}

.video-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.video-range::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 4px 12px rgba(7, 20, 47, 0.22);
}

.video-range::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.video-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--blue);
}

.video-speed-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  min-width: 0;
  overflow-x: auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  scrollbar-width: none;
}

.video-speed-group::-webkit-scrollbar {
  display: none;
}

.media-volume {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.media-volume__button {
  flex: 0 0 auto;
}

.media-volume__button.is-muted {
  opacity: 0.58;
}

.media-volume__range {
  width: 72px;
  height: 4px;
  appearance: none;
  background: transparent;
  accent-color: var(--blue);
  cursor: pointer;
}

.video-volume--floating .media-volume__range {
  width: 86px;
  height: 6px;
  accent-color: white;
  transform: rotate(90deg);
  transform-origin: center;
  margin: 34px -28px 28px;
}

.media-volume__range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.media-volume--audio .media-volume__range::-webkit-slider-runnable-track {
  background: #cfe0f5;
}

.media-volume__range::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 4px 10px rgba(7, 20, 47, 0.18);
}

.media-volume__range::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.media-volume--audio .media-volume__range::-moz-range-track {
  background: #cfe0f5;
}

.media-volume__range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--blue);
}

.video-speed-btn {
  min-width: 27px;
  min-height: 27px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.64rem;
  font-weight: 900;
  cursor: pointer;
}

.video-speed-btn.is-active {
  background: white;
  color: var(--blue);
}

.video-player:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

.video-player:fullscreen video {
  height: 100vh;
}

.video-lesson-summary {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  margin: 18px 0 16px;
  padding: 18px;
  border: 1px solid #dce8f7;
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 18%, rgba(11, 111, 255, 0.08), transparent 26%),
    #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.045);
}

.video-lesson-summary__icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #eef6ff;
}

.video-lesson-summary h2 {
  margin: 4px 0 8px;
  color: #07142f;
  font-size: 1.55rem;
  line-height: 1.18;
}

.video-lesson-summary p {
  margin: 0;
  color: #53637a;
  line-height: 1.58;
}

.video-lesson-summary .tag-list {
  margin-top: 12px;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.big-play {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
}

.format-description {
  margin: 16px 0 14px;
  color: #253657;
  font-size: 1.03rem;
  line-height: 1.58;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 22px;
  color: var(--muted);
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pdf-viewer {
  border-color: #d9e6f7;
  background: #f8fbff;
}

.pdf-reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #dbe7f6;
  background: rgba(255, 255, 255, 0.94);
}

.pdf-reader-zoom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pdf-reader-zoom strong {
  min-width: 54px;
  color: #07142f;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
}

.pdf-tool-btn {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #cfe0f4;
  border-radius: 12px;
  background: #ffffff;
  color: #0b6fff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.pdf-tool-btn:hover,
.pdf-tool-btn:focus-visible {
  transform: translateY(-1px);
  border-color: #9fc2f5;
  background: #f4f8ff;
}

.pdf-tool-btn--text {
  min-width: auto;
  color: #07142f;
  font-size: 0.86rem;
}

.pdf-frame-shell {
  height: 660px;
  overflow: auto;
  background: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: #9fb2ce #edf4ff;
}

.pdf-frame-shell::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.pdf-frame-shell::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #9fb2ce;
}

.pdf-frame-stage {
  width: 100%;
  min-height: 660px;
  transform-origin: top left;
  transition:
    width 180ms ease,
    min-height 180ms ease;
}

.pdf-frame {
  width: 100%;
  height: 660px;
  min-height: 660px;
  max-width: none;
  display: block;
  border: 0;
  background: #ffffff;
  transform-origin: top left;
  transition:
    transform 180ms ease,
    width 180ms ease,
    height 180ms ease,
    min-height 180ms ease;
}

.pdf-mobile-reader {
  display: none;
}

.pdf-mobile-status {
  padding: 5px 10px;
  border-bottom: 1px solid #d9e6f7;
  color: #53637a;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.15;
}

.pdf-mobile-pages {
  overflow: auto;
  padding: 6px;
  background: #edf4ff;
  -webkit-overflow-scrolling: touch;
}

.pdf-mobile-page {
  width: max-content;
  max-width: none;
  margin: 0 auto 8px;
  overflow: hidden;
  border: 1px solid #d9e6f7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(7, 20, 47, 0.1);
}

.pdf-mobile-page canvas {
  display: block;
  max-width: none;
  background: #ffffff;
}

.pdf-mobile-fallback {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 8px;
  border-top: 1px solid #d9e6f7;
  background: #ffffff;
}

.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--blue-softer);
}

.pdf-actions h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1rem;
}

.pdf-actions p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.lesson-layout--pdf {
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lesson-layout--pdf .lesson-topbar,
.lesson-layout--pdf .mobile-lesson-head,
.lesson-layout--pdf .mobile-format-tabs {
  flex: 0 0 auto;
}

.lesson-shell--pdf {
  flex: 1 1 auto;
  min-height: 0;
}

.lesson-canvas--pdf {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lesson-canvas--pdf .lesson-heading {
  flex: 0 0 auto;
}

.lesson-canvas--pdf .lesson-body--pdf {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 0;
}

.lesson-layout--pdf .lesson-main--wide {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lesson-layout--pdf .pdf-viewer {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9e6f7;
  border-radius: 18px 18px 0 0;
}

.lesson-layout--pdf .pdf-frame-shell {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

.lesson-layout--pdf .pdf-frame-stage {
  min-height: 100%;
}

.lesson-layout--pdf .pdf-frame {
  height: 100%;
  min-height: 100%;
}

.lesson-layout--pdf .pdf-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  padding: 12px;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #ffffff;
  box-shadow: 0 -12px 30px rgba(7, 20, 47, 0.06);
}

.lesson-layout--pdf .pdf-actions .btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 761px) {
  .lesson-layout--pdf {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .lesson-layout--pdf .lesson-shell--pdf {
    flex: initial;
    min-height: 0;
  }

  .lesson-layout--pdf .lesson-canvas--pdf {
    min-height: calc(100vh - 120px);
    display: block;
  }

  .lesson-layout--pdf .lesson-body--pdf {
    min-height: 0;
    padding: 0 24px 20px;
  }

  .lesson-layout--pdf .lesson-main--wide {
    height: auto;
    min-height: 0;
    display: block;
  }

  .lesson-layout--pdf .pdf-viewer {
    height: min(72vh, 780px);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .lesson-layout--pdf .pdf-reader-toolbar {
    padding: 10px 12px;
  }

  .lesson-layout--pdf .pdf-frame-shell {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  .lesson-layout--pdf .pdf-frame-stage,
  .lesson-layout--pdf .pdf-frame {
    width: 100%;
    height: 100%;
    min-height: 100%;
  }
}

@media (min-width: 761px) and (max-height: 760px) {
  .lesson-layout--pdf .pdf-viewer {
    height: calc(100vh - 220px);
    min-height: 380px;
  }
}

.audio-player {
  padding: 38px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  color: var(--ink);
}

.waveform {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 26px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
}

.media-loading-label--audio {
  margin: -14px auto 18px;
}

.waveform::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 54%, rgba(255, 255, 255, 0) 72%);
}

.waveform::after {
  content: "";
  position: absolute;
  inset: 24px 20px;
  z-index: 0;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(11, 111, 255, 0) 0 10px,
      rgba(11, 111, 255, 0.22) 10px 13px,
      rgba(11, 111, 255, 0) 13px 22px
    ),
    linear-gradient(90deg, rgba(218, 236, 255, 0), rgba(218, 236, 255, 0.76), rgba(218, 236, 255, 0));
  opacity: 0.3;
  transform: translateX(0);
}

.waveform span {
  position: relative;
  z-index: 0;
  width: 3px;
  border-radius: 999px;
  background: #9cc8ff;
  opacity: 0.78;
  transform-origin: center;
}

.waveform span:nth-child(3n) {
  height: 80px;
}

.waveform span:nth-child(3n + 1) {
  height: 44px;
}

.waveform span:nth-child(3n + 2) {
  height: 64px;
}

.audio-play {
  position: absolute;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 6px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: linear-gradient(135deg, #0b6fff 0%, #005de0 100%);
  color: white;
  box-shadow:
    0 16px 34px rgba(11, 111, 255, 0.24),
    0 0 0 10px rgba(232, 242, 255, 0.72);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.audio-play:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 38px rgba(11, 111, 255, 0.28),
    0 0 0 10px rgba(232, 242, 255, 0.86);
}

.audio-play:active {
  transform: translateY(0) scale(0.98);
}

.audio-play:focus-visible {
  outline: 3px solid rgba(11, 111, 255, 0.24);
  outline-offset: 8px;
}

.audio-play .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.4;
}

.audio-player.is-playing .waveform::after,
.audio-player.is-loading .waveform::after {
  opacity: 0.5;
  animation: audioTrackMove 1.15s linear infinite;
}

.audio-player.is-playing .waveform span {
  animation: audioBarPulse 720ms ease-in-out infinite alternate;
  background: #0b6fff;
}

.audio-player.is-playing .waveform span:nth-child(3n + 1) {
  animation-delay: -180ms;
}

.audio-player.is-playing .waveform span:nth-child(3n + 2) {
  animation-delay: -360ms;
}

@keyframes audioTrackMove {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 44px 0, 0 0;
  }
}

@keyframes audioBarPulse {
  from {
    transform: scaleY(0.7);
    opacity: 0.55;
  }

  to {
    transform: scaleY(1.18);
    opacity: 1;
  }
}

.audio-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--blue);
  font-weight: 800;
}

.audio-progress input {
  width: 100%;
  accent-color: var(--blue);
}

.audio-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.audio-controls .icon,
.audio-controls .icon * {
  pointer-events: none;
}

.speed-pill {
  min-width: 76px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--ink);
  font-weight: 850;
}

.media-volume--audio {
  min-height: 44px;
  padding: 0 10px 0 4px;
  border: 1px solid #d9e6f6;
  border-radius: 999px;
  background: #f6faff;
}

.media-volume--audio .media-volume__range {
  width: 84px;
}

.audio-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.lesson-bottom {
  display: grid;
  grid-template-columns: 180px 1fr 320px;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  border-top: 1px solid var(--line-soft);
  background: white;
}

.completion-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding: 0 28px 28px;
}

.overview-primary,
.overview-secondary {
  display: grid;
  gap: 16px;
}

.lesson-format-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.lesson-format-card--main {
  min-height: 360px;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  text-align: center;
  border-color: var(--blue);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.format-illustration {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.lesson-format-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.35rem;
}

.lesson-format-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.locked-screen {
  padding: 28px;
}

.locked-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 72px 24px;
  border: 1px solid #cfe1ff;
  border-radius: var(--radius-sm);
  background: #f8fbff;
  text-align: center;
}

.locked-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
}

.locked-panel p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lesson-layout--locked {
  background:
    radial-gradient(circle at 72% 16%, rgba(11, 111, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #f7f9fd 0%, #f4f7fc 100%);
}

.lesson-shell--locked {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: stretch;
}

.format-sidebar--locked {
  min-height: auto;
}

.lesson-canvas--locked {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.locked-lesson {
  display: grid;
  align-items: center;
  padding: 0 28px 28px;
}

.locked-card {
  display: grid;
  justify-items: start;
  gap: 16px;
  min-height: 260px;
  padding: 34px;
  border: 1px solid #d5e4f6;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(11, 111, 255, 0.09), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.055);
}

.locked-card > .icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 14px;
  background: #eef6ff;
  color: var(--blue);
  box-sizing: content-box;
}

.locked-card h2 {
  margin: 0;
  color: #07142f;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.15;
}

.locked-card p {
  max-width: 900px;
  margin: 0;
  color: #53637a;
  font-size: 1.02rem;
  line-height: 1.56;
}

.lesson-dashboard {
  background:
    radial-gradient(circle at 72% 16%, rgba(11, 111, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #f7f9fd 0%, #f4f7fc 100%);
}

.study-dashboard {
  position: relative;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  width: min(100% - 36px, 1600px);
  margin: 0 auto;
  padding: 24px 0 30px;
}

.study-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 18px;
}

.lesson-dashboard.is-study-sidebar-collapsed .study-dashboard {
  grid-template-columns: minmax(0, 1fr);
}

.lesson-dashboard.is-study-sidebar-collapsed .study-sidebar {
  display: none;
}

.lesson-dashboard.is-study-sidebar-collapsed .study-sidebar-toggle--panel {
  display: inline-flex;
}

.study-sidebar-toggle {
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d5e0ef;
  border-radius: 9px;
  background: #ffffff;
  color: #64748b;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
  transition:
    transform 160ms ease,
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.study-sidebar-toggle:hover,
.study-sidebar-toggle:focus-visible {
  transform: translateY(-1px);
  color: var(--blue);
  background: #f6faff;
  border-color: #a7c8ff;
  box-shadow: none;
}

.study-sidebar-toggle .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.study-sidebar-toggle--panel {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: 10px;
  box-shadow: none;
}

.study-sidebar-toggle--floating {
  position: absolute;
  top: 24px;
  left: 0;
  z-index: 70;
  display: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.lesson-dashboard.is-study-sidebar-collapsed .study-sidebar-toggle--floating {
  display: none;
}

.study-progress-card,
.study-course-card,
.study-help-card,
.study-card,
.study-tip {
  border: 1px solid rgba(210, 221, 238, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.055);
  backdrop-filter: blur(14px);
}

.study-progress-card {
  padding: 24px;
  border-radius: 22px;
}

.study-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.study-progress-head h2,
.study-course-head h2 {
  margin: 0;
  color: #07142f;
  font-size: 1.18rem;
  line-height: 1.2;
  font-weight: 850;
}

.study-progress-head strong {
  color: var(--blue);
  font-size: 1.05rem;
}

.side-card--course-progress .study-progress-bar {
  margin-top: 16px;
}

.study-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f8;
}

.study-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b6fff, #3b82f6);
  transition: width 0.35s ease, background 0.25s ease;
}

.study-progress-card--empty .study-progress-head strong,
.study-progress-card--empty [data-course-progress-value] {
  color: #7a879b;
}

.study-progress-card--red .study-progress-head strong,
.study-progress-card--red [data-course-progress-value] {
  color: #dc2626;
}

.study-progress-card--red .study-progress-bar span {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.study-progress-card--yellow .study-progress-head strong,
.study-progress-card--yellow [data-course-progress-value] {
  color: #ca8a04;
}

.study-progress-card--yellow .study-progress-bar span {
  background: linear-gradient(90deg, #facc15, #fde047);
}

.study-progress-card--orange .study-progress-head strong,
.study-progress-card--orange [data-course-progress-value] {
  color: #ea580c;
}

.study-progress-card--orange .study-progress-bar span {
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.study-progress-card--green .study-progress-head strong,
.study-progress-card--green [data-course-progress-value] {
  color: #16a34a;
}

.study-progress-card--green .study-progress-bar span {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.study-progress-card p {
  margin: 22px 0 16px;
  color: #07142f;
  font-weight: 750;
}

.study-progress-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.study-progress-action {
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #d6e4f5;
  border-radius: 12px;
  background: #ffffff;
  color: #07142f;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.study-progress-action:hover {
  border-color: rgba(11, 111, 255, 0.45);
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(11, 111, 255, 0.08);
  transform: translateY(-1px);
}

.study-progress-action .icon {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.study-progress-action--vip {
  border-color: rgba(11, 111, 255, 0.26);
  background: linear-gradient(135deg, #0b6fff 0%, #0a5fe0 100%);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(11, 111, 255, 0.18);
}

.study-progress-action--vip .icon {
  color: #ffffff;
}

.study-progress-action--vip:hover {
  border-color: rgba(11, 111, 255, 0.36);
  background: linear-gradient(135deg, #0b6fff 0%, #0a5fe0 100%);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(11, 111, 255, 0.22);
}

.study-progress-action--vip:hover .icon {
  color: #ffffff;
}

.study-progress-action--upgrade {
  border-color: rgba(11, 111, 255, 0.26);
  background: #f8fbff;
  color: #0b6fff;
}

.study-progress-action--upgrade:hover {
  border-color: rgba(11, 111, 255, 0.48);
  background: #eef6ff;
}

.account-page {
  background:
    radial-gradient(circle at top left, rgba(12, 111, 255, 0.08), transparent 34%),
    var(--page);
}

.account-shell {
  width: min(100% - 40px, 1320px);
  margin: 0 auto;
  padding: 34px 0 64px;
}

.account-hero,
.account-panel,
.account-module {
  border: 1px solid rgba(210, 221, 238, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.055);
  backdrop-filter: blur(14px);
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
}

.account-kicker,
.account-section-head span,
.account-module__head span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-hero h1 {
  margin: 8px 0 8px;
  color: #07142f;
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  line-height: 1;
}

.account-hero p {
  max-width: 620px;
  margin: 0;
  color: #607086;
  font-size: 1.04rem;
  line-height: 1.55;
}

.account-current-lesson {
  min-width: 190px;
  box-shadow: 0 18px 34px rgba(12, 111, 255, 0.18);
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr) minmax(280px, 0.78fr);
  gap: 18px;
  margin-top: 20px;
}

.account-panel {
  padding: 22px;
  border-radius: 20px;
}

.account-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.account-panel h2,
.account-section-head h2,
.account-module__head h2 {
  margin: 0;
  color: #07142f;
  line-height: 1.15;
}

.account-panel__head span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue);
  font-weight: 900;
}

.account-profile {
  display: grid;
  gap: 16px;
}

.account-profile label {
  display: grid;
  gap: 8px;
  color: #53637a;
  font-weight: 850;
}

.account-profile input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d4dfef;
  border-radius: 14px;
  background: #ffffff;
  color: #07142f;
  font: inherit;
  font-weight: 750;
  padding: 0 14px;
  outline: none;
}

.account-profile input:focus {
  border-color: #8fbaff;
  box-shadow: 0 0 0 4px rgba(12, 111, 255, 0.1);
}

.account-profile input[readonly] {
  background: #f5f8fc;
  color: #64748b;
}

.account-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.account-input-row button {
  min-height: 48px;
  border: 1px solid #bfdbff;
  border-radius: 14px;
  background: #eef6ff;
  color: var(--blue);
  font-weight: 900;
  padding: 0 16px;
}

.account-summary p {
  margin: 18px 0 0;
  color: #07142f;
  font-weight: 800;
  line-height: 1.45;
}

.account-actions {
  display: grid;
  gap: 12px;
}

.account-actions h2 {
  margin-bottom: 6px;
}

.account-actions a,
.account-actions button {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #d2ddeb;
  border-radius: 14px;
  background: #fff;
  color: #07142f;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.account-actions a:hover,
.account-actions button:hover {
  transform: translateY(-1px);
  border-color: #a7c8ff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.075);
}

.account-logout-btn {
  grid-template-columns: auto 1fr !important;
  color: #b42318 !important;
  border-color: #ffd2cc !important;
  background: #fff7f6 !important;
}

.upgrade-panel {
  margin-top: 20px;
}

.upgrade-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.upgrade-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 20px;
  border: 1px solid #dbe8f8;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.upgrade-plan-card--vip {
  border-color: rgba(11, 111, 255, 0.42);
  box-shadow: 0 18px 42px rgba(11, 111, 255, 0.11);
}

.upgrade-plan-badge {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 950;
}

.upgrade-plan-card h3 {
  margin: 14px 0 6px;
  color: #07142f;
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: 1.08rem;
}

.upgrade-plan-price {
  color: #07142f;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 950;
}

.upgrade-plan-card p {
  margin: 9px 0 14px;
  color: #637189;
  line-height: 1.42;
}

.upgrade-plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: #253657;
  font-size: 0.86rem;
  line-height: 1.36;
}

.upgrade-plan-card li {
  display: flex;
  gap: 8px;
}

.upgrade-plan-card li .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--blue);
}

.upgrade-recalc-note {
  display: grid;
  gap: 4px;
  margin: auto 0 14px;
  padding: 11px;
  border: 1px solid #dbe8f8;
  border-radius: 12px;
  background: #f8fbff;
  color: #5d6d84;
  font-size: 0.78rem;
  line-height: 1.35;
}

.upgrade-recalc-note strong {
  color: #07142f;
  font-size: 0.82rem;
}

.upgrade-plan-card .btn {
  width: 100%;
}

.account-progress {
  margin-top: 28px;
}

.account-section-head {
  margin-bottom: 16px;
}

.account-section-head h2 {
  margin-top: 6px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.account-module {
  padding: 22px;
  border-radius: 22px;
}

.account-module + .account-module {
  margin-top: 18px;
}

.account-module__head {
  margin-bottom: 16px;
}

.account-module__head h2 {
  margin-top: 5px;
  font-size: 1.22rem;
}

.account-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-lesson-card {
  display: grid;
  gap: 12px;
  min-height: 218px;
  padding: 16px;
  border: 1px solid #dce6f4;
  border-radius: 16px;
  background: #ffffff;
}

.account-lesson-card__head,
.account-lesson-status,
.account-lesson-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-lesson-card__head span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-lesson-card__head strong {
  color: #64748b;
}

.account-lesson-card h3 {
  margin: 0;
  color: #07142f;
  font-size: 1rem;
  line-height: 1.25;
}

.account-mini-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f8;
}

.account-mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #cbd5e1;
}

.account-lesson-card--red .account-mini-bar span {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.account-lesson-card--yellow .account-mini-bar span {
  background: linear-gradient(90deg, #facc15, #fde047);
}

.account-lesson-card--orange .account-mini-bar span {
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.account-lesson-card--green .account-mini-bar span {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.account-lesson-status {
  align-items: flex-start;
  flex-wrap: wrap;
}

.account-lesson-status span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.account-lesson-status .is-done {
  background: #dcfce7;
  color: #15803d;
}

.account-lesson-status .is-progress {
  background: #ffedd5;
  color: #c2410c;
}

.account-lesson-actions {
  margin-top: auto;
}

.account-lesson-actions a,
.account-lesson-actions button {
  min-height: 38px;
  border: 1px solid #d2ddeb;
  border-radius: 11px;
  background: #ffffff;
  color: #07142f;
  font-weight: 900;
  padding: 0 12px;
}

.account-lesson-actions a {
  display: inline-flex;
  align-items: center;
}

.account-lesson-actions button {
  cursor: pointer;
}

.account-lesson-actions a:hover,
.account-lesson-actions button:hover {
  border-color: #a7c8ff;
  color: var(--blue);
}

.account-login-panel {
  max-width: 560px;
  margin-top: 20px;
}

.account-login-panel p {
  color: #607086;
  line-height: 1.55;
}

.study-streak,
.study-help-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 14px;
  border: 1px solid #dce6f5;
  border-radius: 14px;
  color: #07142f;
}

.study-streak__icon,
.study-help-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9fbef;
  font-size: 1.35rem;
}

.study-help-icon {
  background: #edf4ff;
  color: var(--blue);
}

.study-streak strong,
.study-help-card strong {
  display: block;
  font-size: 0.92rem;
}

.study-streak small,
.study-help-card small {
  display: block;
  margin-top: 2px;
  color: #68758e;
  font-size: 0.82rem;
}

.study-course-card {
  padding: 22px;
  border-radius: 22px;
}

.study-course-head,
.study-module__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.study-course-head {
  margin-bottom: 18px;
}

.study-course-head span {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
}

.study-course-head .icon,
.study-module__head .icon {
  width: 18px;
  height: 18px;
}

.study-module__head {
  width: 100%;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #07142f;
  text-align: left;
  font: inherit;
  font-weight: 850;
}

.study-module__head .icon {
  transform: rotate(90deg);
}

.study-module__head--collapsed {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e4ebf5;
}

.study-module__head--collapsed .icon {
  transform: rotate(0deg);
}

.study-lesson-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.study-lesson-list--scroll {
  max-height: calc(100vh - 410px);
  min-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #b8c9e4 transparent;
}

.study-lesson-list--scroll::-webkit-scrollbar {
  width: 6px;
}

.study-lesson-list--scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b8c9e4;
}

.study-lesson-module {
  display: grid;
  gap: 2px;
  padding: 10px 8px 4px;
}

.study-lesson-module:first-child {
  padding-top: 0;
}

.study-lesson-module strong {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.study-lesson-module span {
  color: #53637a;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.25;
  white-space: normal;
}

.study-lesson-module--bonus strong {
  color: #c02667;
}

.study-lesson-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-height: 58px;
  padding: 9px 10px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #07142f;
  font: inherit;
  text-align: left;
}

.study-lesson-item.is-active {
  background: linear-gradient(90deg, #eaf3ff 0%, #f5f9ff 100%);
  color: var(--blue);
}

.study-lesson-item.is-locked {
  opacity: 0.78;
}

.study-lesson-item.is-locked:hover {
  opacity: 1;
}

.study-lesson-item--bonus {
  cursor: pointer;
}

.study-lesson-item--bonus .study-lesson-time {
  color: #c02667;
  font-weight: 850;
}

.study-lesson-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #d7e2f1;
  border-radius: 50%;
  background: white;
  color: #07142f;
  font-weight: 850;
  margin-top: 1px;
}

.study-lesson-item.is-active .study-lesson-number {
  border-color: transparent;
  background: var(--blue);
  color: white;
}

.study-lesson-item.is-locked .study-lesson-number .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
}

.study-lesson-copy {
  min-width: 0;
}

.study-lesson-copy strong,
.study-lesson-copy small {
  display: block;
}

.study-lesson-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.study-lesson-copy small {
  overflow: visible;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.study-lesson-copy small,
.study-lesson-time {
  color: #697892;
  font-size: 0.78rem;
}

.study-help-card {
  padding: 18px;
  border-radius: 18px;
}

.study-main {
  min-width: 0;
}

.study-main-header {
  margin: 6px 0 24px;
}

.study-main-header h1 {
  margin: 0;
  color: #07142f;
  font-size: clamp(3rem, 4.8vw, 4.25rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.study-main-header p {
  margin: 16px 0 0;
  color: #5c6a82;
  font-size: 1.24rem;
}

.study-format-grid {
  display: grid;
  grid-template-columns: minmax(380px, 1.35fr) minmax(230px, 0.9fr) minmax(230px, 0.9fr);
  grid-template-rows: minmax(344px, auto) minmax(188px, auto);
  gap: 22px;
}

.study-card {
  position: relative;
  border-radius: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.study-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.085);
}

.study-card--text {
  grid-row: span 2;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 18px;
  border-color: #0b6fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(11, 111, 255, 0.075), transparent 38%),
    rgba(255, 255, 255, 0.94);
}

.study-main-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 16px;
  border: 1px solid #b9d3ff;
  border-radius: 999px;
  background: #f6faff;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 850;
}

.study-topic-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-doc-art {
  position: relative;
  width: 210px;
  height: 150px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}

.lesson-doc-art .course-3d-icon {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 18px 26px rgba(15, 23, 42, 0.12));
}

.study-card--text > .course-3d-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 10px;
  filter: drop-shadow(0 18px 26px rgba(15, 23, 42, 0.12));
}

.lesson-doc-page {
  position: relative;
  z-index: 2;
  width: 124px;
  min-height: 146px;
  padding: 36px 20px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  transform: scale(0.78);
}

.lesson-doc-page::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 34px solid #edf3fb;
  border-left: 34px solid transparent;
  border-radius: 0 14px 0 0;
}

.lesson-doc-page > span:not(.lesson-doc-bookmark):not(.lesson-doc-label) {
  display: block;
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  background: #9aa6b7;
}

.lesson-doc-page > span:nth-child(5) {
  width: 78%;
}

.lesson-doc-page > span:nth-child(6) {
  width: 62%;
}

.lesson-doc-bookmark {
  position: absolute;
  top: 0;
  right: 22px;
  width: 28px;
  height: 42px;
  background: linear-gradient(180deg, #71c8ff 0%, #0b6fff 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
}

.lesson-doc-label {
  position: absolute;
  top: 24px;
  left: 20px;
  width: 48px;
  height: 13px;
  border-radius: 5px;
  background: linear-gradient(90deg, #6cbaff, #2f75ff);
}

.lesson-doc-leaf {
  position: absolute;
  width: 90px;
  height: 72px;
  opacity: 0.52;
}

.lesson-doc-leaf::before,
.lesson-doc-leaf::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 18px;
  border-radius: 50%;
  background: #dceaff;
}

.lesson-doc-leaf--left {
  left: 16px;
  bottom: 24px;
  transform: rotate(-24deg);
}

.lesson-doc-leaf--right {
  right: 8px;
  bottom: 22px;
  transform: scaleX(-1) rotate(-24deg);
}

.lesson-doc-leaf::before {
  top: 18px;
  left: 0;
  transform: rotate(35deg);
}

.lesson-doc-leaf::after {
  top: 42px;
  left: 24px;
  transform: rotate(-18deg);
}

.study-card--text h2,
.study-card-copy h2 {
  margin: 0;
  color: #07142f;
  line-height: 1.12;
  font-weight: 900;
}

.study-card--text h2 {
  max-width: 420px;
  font-size: clamp(1.55rem, 2.1vw, 2rem);
}

.study-card--text > p,
.study-card-copy p {
  margin: 8px 0 0;
  color: #5f6f88;
  line-height: 1.42;
}

.study-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
  color: #5f6f88;
  font-weight: 700;
}

.study-meta .icon {
  color: var(--blue);
}

.study-main-button {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b6fff, #005de0);
  color: white;
  font-weight: 850;
  box-shadow: 0 16px 30px rgba(11, 111, 255, 0.24);
}

.study-card--text > .study-quick-grid {
  width: 100%;
  margin-top: 12px;
}

.study-lesson-progress {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  border-radius: 14px;
  background: #fffdf3;
  border: 1px solid #ffe7a3;
  text-align: left;
}

.study-lesson-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #7a5a00;
  font-size: 0.78rem;
  font-weight: 900;
}

.study-lesson-progress__bar {
  height: 9px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffe8a8;
}

.study-lesson-progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f6c343;
  transition:
    width 420ms ease,
    background 240ms ease;
}

.study-lesson-progress p {
  margin: 8px 0 0;
  color: #6c5a27;
  font-size: 0.78rem;
  line-height: 1.35;
}

.study-lesson-progress--orange {
  background: #fff7ed;
  border-color: #fed7aa;
}

.study-lesson-progress--orange .study-lesson-progress__head,
.study-lesson-progress--orange p {
  color: #9a3412;
}

.study-lesson-progress--orange .study-lesson-progress__bar {
  background: #ffedd5;
}

.study-lesson-progress--orange .study-lesson-progress__bar span {
  background: #f97316;
}

.study-lesson-progress--green {
  background: #f0fff4;
  border-color: #b7efc5;
}

.study-lesson-progress--green .study-lesson-progress__head,
.study-lesson-progress--green p {
  color: #176b33;
}

.study-lesson-progress--green .study-lesson-progress__bar {
  background: #d9fbe3;
}

.study-lesson-progress--green .study-lesson-progress__bar span {
  background: #22c55e;
}

.study-quick {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 2px dashed #a75cff;
  border-radius: 16px;
  background: #fbf8ff;
}

.study-quick > strong {
  display: block;
  margin-bottom: 8px;
  color: #07142f;
  font-size: 0.86rem;
}

.study-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.study-quick-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.study-quick-link {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #dce6f5;
  border-radius: 12px;
  background: white;
  color: #07142f;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.study-quick-link > span:first-child {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: #f4f8ff;
}

.study-quick-link--summary > span:first-child {
  background: #f3edff;
}

.study-quick-link--task > span:first-child {
  background: #effff4;
}

.study-quick-link strong,
.study-quick-link small {
  display: block;
}

.study-quick-link strong {
  font-size: 0.86rem;
}

.study-quick-link small {
  margin-top: 2px;
  color: #6c7890;
  font-size: 0.76rem;
}

.study-quick-link.is-locked {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.study-quick-link.is-locked:hover {
  transform: none;
  border-color: #dce6f5;
  box-shadow: none;
}

.study-quick-note {
  margin: 6px 0 0;
  color: #8b5cf6;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.lesson-complete-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dce8f7;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  text-align: center;
}

.lesson-complete-panel span {
  color: #53637a;
  font-size: 0.9rem;
  font-weight: 750;
}

.lesson-complete-btn {
  width: 100%;
  min-height: 54px;
  letter-spacing: 0;
}

.lesson-complete-btn.is-complete {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.22);
}

.lesson-complete-btn.is-celebrating {
  animation: completePulse 720ms ease both;
}

@keyframes completePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.34);
  }
  46% {
    transform: scale(1.025);
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(1);
  }
}

.study-card--support {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 20px;
  text-align: center;
  overflow: hidden;
}

.study-card--support:not(.study-card--audio) .study-card-copy {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0;
  width: 100%;
  flex: 1;
}

.study-card--support:not(.study-card--audio) .study-card__button {
  margin-top: auto;
}

.study-card--audio {
  grid-column: 2 / 4;
  min-height: 0;
  grid-template-columns: 132px minmax(0, 1fr) 220px;
  justify-items: stretch;
  align-items: center;
  text-align: left;
}

.study-card-orb {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.study-card-orb .course-3d-icon {
  width: 94px;
  height: 94px;
  filter: drop-shadow(0 15px 24px rgba(15, 23, 42, 0.12));
}

.study-card--audio .study-card-orb {
  margin-bottom: 0;
}

.study-card-orb .icon {
  width: 42px;
  height: 42px;
  stroke-width: 2.4;
}

.study-card-orb--video {
  background: radial-gradient(circle, #ffffff 0 42%, #def8e7 43% 100%);
  color: #31c862;
}

.study-card-orb--pdf {
  background: #fde7ee;
  color: #e11d48;
}

.study-card-orb--audio {
  background: #f1e8ff;
  color: #8b5cf6;
}

.study-card-orb--video::after {
  display: none;
}

.study-pdf-badge {
  display: none;
}

.study-card-copy h2 {
  font-size: 1.38rem;
}

.study-card__button {
  min-height: 46px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  border: 1px solid #d2ddeb;
  border-radius: 12px;
  color: #07142f;
  font-weight: 850;
}

.study-card--audio .study-card__button {
  margin-top: 0;
}

.study-card__button:hover,
.study-quick-link:hover,
.study-main-button:hover {
  transform: translateY(-1px);
}

.study-tip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 18px 22px;
  border-color: #bfebc7;
  border-radius: 16px;
  background: linear-gradient(90deg, #f0fff4 0%, #fbfffc 100%);
}

.study-tip__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #35c862;
  color: white;
}

.study-tip__icon .icon {
  width: 20px;
  height: 20px;
}

.study-tip p {
  margin: 0;
  color: #526176;
  line-height: 1.55;
}

.study-tip p strong {
  color: #07142f;
}

.study-tip button {
  min-width: 112px;
  min-height: 44px;
  border: 1px solid #b9e5c2;
  border-radius: 12px;
  background: white;
  color: #23a64d;
  font-weight: 850;
}

.study-mobile-progress,
.study-mobile-course {
  display: none;
}

@media (min-width: 981px) and (max-height: 820px) {
  .lesson-topbar__inner {
    min-height: 64px;
  }

  .study-dashboard {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
    width: min(100% - 28px, 1600px);
    padding: 14px 0 16px;
  }

  .study-sidebar {
    top: 78px;
    gap: 14px;
  }

  .study-progress-card,
  .study-course-card {
    padding: 18px;
    border-radius: 18px;
  }

  .study-progress-head {
    margin-bottom: 12px;
  }

  .study-progress-card p {
    margin: 14px 0 6px;
  }

  .study-course-head {
    margin-bottom: 12px;
  }

  .study-lesson-list--scroll {
    max-height: calc(100vh - 330px);
    min-height: 0;
  }

  .study-lesson-item {
    min-height: 54px;
    padding: 7px 9px;
  }

  .study-main-header {
    margin: 0 0 14px;
  }

  .study-main-header h1 {
    font-size: clamp(2.85rem, 4.1vw, 3.7rem);
  }

  .study-main-header p {
    margin-top: 8px;
    font-size: 1.08rem;
  }

  .study-format-grid {
    min-height: 0;
    height: auto;
    grid-template-columns: minmax(350px, 1.2fr) minmax(220px, 0.9fr) minmax(220px, 0.9fr);
    grid-template-rows: minmax(300px, auto) minmax(160px, auto);
    gap: 14px;
  }

  .study-card--text {
    padding: 14px;
  }

  .study-main-badge {
    min-height: 32px;
    margin-bottom: 8px;
    padding: 5px 14px;
    font-size: 0.82rem;
  }

  .study-card--text > .course-3d-icon {
    width: 108px;
    height: 108px;
    margin-bottom: 6px;
  }

  .study-topic-label {
    min-height: 20px;
    margin-bottom: 4px;
    font-size: 0.66rem;
  }

  .study-card--text h2 {
    max-width: 360px;
    font-size: clamp(1.38rem, 1.7vw, 1.68rem);
  }

  .study-card--text > p,
  .study-card-copy p {
    margin-top: 6px;
    font-size: 0.88rem;
    line-height: 1.32;
  }

  .study-meta {
    margin-top: 8px;
    font-size: 0.82rem;
  }

  .study-main-button,
  .study-card__button {
    min-height: 40px;
    margin-top: 10px;
    border-radius: 10px;
  }

  .study-card--text > .study-quick-grid {
    margin-top: 10px;
  }

  .study-quick-link {
    min-height: 48px;
    grid-template-columns: 34px 1fr;
    gap: 8px;
    padding: 8px;
  }

  .study-quick-link > span:first-child {
    width: 34px;
    height: 34px;
  }

  .study-quick-link strong {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .study-quick-link small {
    font-size: 0.68rem;
  }

  .study-lesson-progress {
    margin-top: 10px;
    padding: 10px;
  }

  .study-lesson-progress__bar {
    height: 7px;
    margin-top: 7px;
  }

  .study-lesson-progress p {
    margin-top: 6px;
    font-size: 0.72rem;
  }

  .study-card--support {
    padding: 14px;
  }

  .study-card-orb {
    width: 78px;
    height: 78px;
    margin-bottom: 8px;
  }

  .study-card-orb .course-3d-icon {
    width: 70px;
    height: 70px;
  }

  .study-card-copy h2 {
    font-size: 1.15rem;
  }

  .study-card--support:not(.study-card--audio) .study-card__button {
    margin-top: 10px;
  }

  .study-card--audio {
    grid-template-columns: 96px minmax(0, 1fr) 180px;
    gap: 14px;
    padding: 14px;
  }

  .study-card--audio .study-card-orb {
    margin-bottom: 0;
  }
}

@media (max-width: 1180px) {
  .study-dashboard {
    grid-template-columns: 1fr;
  }

  .study-sidebar {
    position: static;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .study-help-card {
    grid-column: 1 / -1;
  }

  .study-format-grid {
    grid-template-columns: minmax(300px, 1.1fr) minmax(260px, 1fr);
    grid-template-rows: auto;
  }

  .study-card--text {
    grid-row: span 3;
  }

  .study-card--audio {
    grid-column: 2;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .study-card--audio .study-card-orb {
    margin-bottom: 18px;
  }

  .study-card--audio .study-card__button {
    margin-top: 22px;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .study-dashboard {
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 18px;
    width: min(100% - 28px, 1180px);
  }

  .study-sidebar {
    position: sticky;
    top: 82px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .study-sidebar-toggle--panel {
    top: 14px;
    left: 14px;
  }

  .study-format-grid {
    grid-template-columns: minmax(300px, 1.05fr) minmax(180px, 0.78fr) minmax(180px, 0.78fr);
    grid-template-rows: minmax(320px, auto) minmax(170px, auto);
    gap: 14px;
  }

  .study-card--text {
    grid-row: span 2;
    overflow: hidden;
    padding: 14px;
  }

  .study-main-header {
    margin-bottom: 14px;
  }

  .study-main-header h1 {
    font-size: clamp(2.25rem, 4.1vw, 3.15rem);
    line-height: 0.98;
  }

  .study-main-header p {
    margin-top: 8px;
    font-size: 1rem;
  }

  .study-card--text .study-main-badge {
    min-height: 30px;
    margin-bottom: 8px;
    padding: 5px 13px;
    font-size: 0.8rem;
  }

  .study-card--text > .course-3d-icon {
    width: 104px;
    height: 104px;
    margin-bottom: 6px;
  }

  .study-card--text .study-topic-label {
    min-height: 20px;
    margin-bottom: 4px;
    font-size: 0.66rem;
  }

  .study-card--text h2 {
    max-width: 340px;
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    line-height: 1.08;
  }

  .study-card--text > p {
    margin-top: 6px;
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .study-card--text > .study-meta {
    margin-top: 8px;
    font-size: 0.8rem;
  }

  .study-card--text .study-main-button {
    min-height: 40px;
    margin-top: 10px;
    border-radius: 10px;
  }

  .study-card--text > .study-quick-grid {
    margin-top: 10px;
    gap: 8px;
  }

  .study-card--text .study-quick-link {
    min-height: 46px;
    grid-template-columns: 32px 1fr;
    gap: 8px;
    padding: 7px;
  }

  .study-card--text .study-quick-link > span:first-child {
    width: 32px;
    height: 32px;
  }

  .study-card--text .study-quick-link strong {
    font-size: 0.76rem;
    line-height: 1.15;
  }

  .study-card--text .study-quick-link small {
    font-size: 0.66rem;
  }

  .study-card--text .study-lesson-progress {
    margin-top: 10px;
    padding: 10px;
  }

  .study-card--text .study-lesson-progress__bar {
    height: 7px;
    margin-top: 7px;
  }

  .study-card--text .study-lesson-progress p {
    margin-top: 6px;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .study-card--support {
    padding: 14px;
  }

  .study-card--support:not(.study-card--audio) .study-card-orb {
    width: 74px;
    height: 74px;
    margin-bottom: 8px;
  }

  .study-card--support:not(.study-card--audio) .study-card-orb .course-3d-icon {
    width: 66px;
    height: 66px;
  }

  .study-card--support .study-card-copy h2 {
    font-size: 1.12rem;
  }

  .study-card--support .study-card-copy p {
    font-size: 0.84rem;
    line-height: 1.32;
  }

  .study-card--support:not(.study-card--audio) .study-card__button {
    min-height: 40px;
    margin-top: 10px;
  }

  .study-card--audio {
    grid-column: 2 / 4;
    grid-template-columns: 90px minmax(0, 1fr) 160px;
    justify-items: stretch;
    text-align: left;
  }

  .study-card--audio .study-card-orb {
    margin-bottom: 0;
  }

  .study-card--audio .study-card__button {
    margin-top: 0;
  }
}

@media (max-width: 980px) {
  .lesson-dashboard .lesson-topbar {
    display: none;
  }

  .study-dashboard {
    display: block;
    width: min(100% - 28px, 720px);
    padding: 16px 0 34px;
  }

  .study-sidebar {
    display: none;
  }

  .study-sidebar-toggle--floating,
  .study-sidebar-toggle--panel {
    display: none !important;
  }

  .study-main-header {
    margin: 0;
    padding: 8px 0 16px;
    text-align: center;
  }

  .study-main-header h1 {
    display: none;
  }

  .study-main-header p {
    margin: 0;
    color: #526176;
    font-size: 1.08rem;
    line-height: 1.45;
  }

  .study-mobile-progress,
  .study-mobile-course {
    display: block;
  }

  .study-mobile-progress {
    margin-bottom: 16px;
  }

  .study-mobile-progress .study-progress-card {
    padding: 20px;
  }

  .study-mobile-progress .study-progress-card p,
  .study-mobile-progress .study-streak,
  .study-mobile-progress .study-progress-actions {
    display: none;
  }

  .study-mobile-course {
    margin-top: 16px;
  }

  .study-format-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .study-card--text {
    grid-row: auto;
    grid-template-columns: 126px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    justify-items: stretch;
    padding: 20px;
    text-align: left;
  }

  .study-card--text .study-main-badge {
    grid-column: 1 / -1;
    justify-self: center;
    margin-bottom: 14px;
  }

  .study-main-badge {
    margin-bottom: 16px;
  }

  .lesson-doc-art {
    grid-column: 1;
    grid-row: 2 / span 3;
    width: 126px;
    height: 126px;
    margin: 0;
  }

  .lesson-doc-art .course-3d-icon {
    width: 116px;
    height: 116px;
  }

  .lesson-doc-page {
    transform: scale(0.66);
  }

  .study-card--text h2,
  .study-card--text .study-topic-label,
  .study-card--text > p,
  .study-card--text > .study-meta {
    grid-column: 2;
  }

  .study-card--text .study-topic-label {
    justify-self: start;
    margin-bottom: 4px;
    font-size: 0.68rem;
  }

  .study-card--text h2 {
    font-size: 1.22rem;
  }

  .study-card--text > p {
    font-size: 0.94rem;
    line-height: 1.36;
  }

  .study-card--text > .study-meta {
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .study-card--text .study-main-button,
  .study-card--text > .study-quick-grid,
  .study-card--text .study-quick-note {
    grid-column: 1 / -1;
  }

  .study-card--text .study-main-button {
    margin-top: 14px;
  }

  .study-card--text > .study-quick-grid {
    margin-top: 12px;
  }

  .study-card--text .study-quick-note {
    display: none;
  }

  .study-card--text .study-quick-link {
    min-height: 42px;
    grid-template-columns: 30px 1fr;
    gap: 8px;
    padding: 7px;
  }

  .study-card--text .study-quick-link > span:first-child {
    width: 30px;
    height: 30px;
  }

  .study-card--text .study-quick-link strong {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .study-card--text .study-quick-link small {
    display: none;
  }

  .study-card--support,
  .study-card--audio {
    grid-column: auto;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 128px;
    align-items: center;
    justify-items: stretch;
    gap: 14px;
    min-height: 0;
    padding: 18px;
    text-align: left;
  }

  .study-card-orb,
  .study-card--audio .study-card-orb {
    width: 80px;
    height: 80px;
    margin: 0;
  }

  .study-card-orb .icon {
    width: 32px;
    height: 32px;
  }

  .study-card-orb .course-3d-icon {
    width: 72px;
    height: 72px;
  }

  .study-card-orb--video::after {
    bottom: 15px;
    left: 24px;
    width: 34px;
  }

  .study-pdf-badge {
    width: 46px;
    height: 28px;
    font-size: 0.82rem;
  }

  .study-card-copy h2 {
    font-size: 1.25rem;
  }

  .study-card-copy p {
    margin-top: 7px;
    font-size: 0.95rem;
  }

  .study-meta {
    justify-content: flex-start;
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .study-card__button,
  .study-card--audio .study-card__button {
    width: 100%;
    min-height: 48px;
    margin-top: 0;
  }

  .study-card--support:not(.study-card--audio) .study-card__button {
    margin-top: 0;
  }

  .study-tip {
    grid-template-columns: auto 1fr;
    align-items: start;
    margin-top: 16px;
    padding: 18px;
  }

  .study-tip button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .study-dashboard {
    width: calc(100% - 24px);
  }

  .video-player {
    border-radius: 18px;
  }

  .video-poster-button__icon {
    width: 68px;
    height: 68px;
  }

  .video-poster-content {
    gap: 9px;
    padding: 14px;
  }

  .video-poster-action {
    min-width: 112px;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.86rem;
  }

  .video-poster-button small {
    display: none;
  }

  .video-controls {
    left: 0;
    right: 0;
    bottom: 0;
    grid-template-columns: 34px 36px minmax(0, 1fr) 36px 34px;
    gap: 7px;
    min-height: 84px;
    padding: 8px 10px 10px;
    border-radius: 0 0 18px 18px;
  }

  .video-control-btn--play {
    grid-column: 1;
    grid-row: 1;
  }

  .video-controls [data-video-current] {
    grid-column: 2;
    grid-row: 1;
  }

  .video-range {
    grid-column: 3;
    grid-row: 1;
  }

  .video-controls [data-video-duration] {
    grid-column: 4;
    grid-row: 1;
  }

  .video-control-btn--fullscreen {
    grid-column: 5;
    grid-row: 1;
  }

  .video-speed-group {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .video-volume--floating {
    top: 10px;
    left: 10px;
    padding: 6px 6px 10px;
    border-radius: 14px;
  }

  .video-volume--floating .media-volume__range {
    width: 72px;
    margin: 28px -22px 22px;
  }

  .video-control-btn {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .video-time {
    min-width: 34px;
    font-size: 0.72rem;
  }

  .video-speed-btn {
    min-width: 34px;
    min-height: 27px;
  }

  .video-lesson-summary {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .video-lesson-summary__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .video-lesson-summary h2 {
    font-size: 1.24rem;
  }

  .video-lesson-summary p {
    font-size: 0.92rem;
  }

  .study-card--support,
  .study-card--audio {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .study-card-orb,
  .study-card--audio .study-card-orb {
    width: 68px;
    height: 68px;
  }

  .study-card__button,
  .study-card--audio .study-card__button {
    grid-column: 2;
    width: 100%;
    margin-top: 4px;
  }

  .study-card--support:not(.study-card--audio) .study-card__button {
    margin-top: 4px;
  }

  .study-course-card,
  .study-progress-card {
    padding: 18px;
  }

  .study-lesson-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .study-lesson-time {
    grid-column: 2;
  }
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.course-payment-check-banner {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 120;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(11, 111, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 18px 46px rgba(7, 20, 47, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.course-payment-check-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.course-payment-check-banner.is-pending {
  border-color: rgba(217, 119, 6, 0.34);
}

.course-payment-check-banner[hidden] {
  display: none;
}

.course-payment-check-banner__spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 3px solid rgba(11, 111, 255, 0.16);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: coursePaymentSpin 800ms linear infinite;
}

.course-payment-check-banner.is-pending .course-payment-check-banner__spinner {
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
  animation: none;
}

.course-payment-check-banner.is-pending .course-payment-check-banner__spinner::before {
  content: "!";
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.course-payment-check-banner__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.course-payment-check-banner__copy strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.course-payment-check-banner__copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

@keyframes coursePaymentSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 720px) {
  .course-payment-check-banner {
    left: 50%;
    right: auto;
    bottom: 32px;
    width: min(560px, calc(100vw - 40px));
    transform: translate(-50%, 12px);
  }

  .course-payment-check-banner.is-visible {
    transform: translate(-50%, 0);
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
}

.modal[hidden],
.toast[hidden],
.course-payment-check-banner[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 47, 0.48);
}

.modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 40px);
  padding: 28px;
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.modal__panel > #modal-content {
  min-height: 0;
}

.modal__panel h2 {
  margin: 0 42px 10px 0;
  color: var(--ink);
}

.modal__panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.auth-modal-copy {
  margin-bottom: 18px;
}

.social-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.social-auth-btn {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #ffffff;
  color: #123456;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.social-auth-btn:hover {
  transform: translateY(-1px);
  border-color: #a7c8ff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.social-auth-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #ffffff;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.social-auth-icon--yandex {
  background: #fc3f1d;
}

.social-auth-icon--vk {
  background: #0077ff;
}

.social-auth-icon--mail {
  background: #168de2;
}

.social-auth-icon--ok {
  background: #ee8208;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #7c8ba3;
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e3edf9;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: #405373;
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-form input {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid #d9e6f8;
  border-radius: 12px;
  background: #f8fbff;
  color: #07142f;
  outline: none;
}

.auth-form input:focus {
  border-color: #0b6fff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 111, 255, 0.12);
}

.auth-note {
  font-size: 0.78rem;
}

.auth-note a {
  color: var(--blue);
  font-weight: 800;
}

.modal-status {
  color: #53637a;
  font-size: 0.85rem;
}

.modal-status.is-error {
  color: #c43232;
}

.course-contact-modal {
  display: grid;
  gap: 18px;
}

.course-contact-copy {
  max-width: 560px;
}

.course-contact-form {
  display: grid;
  gap: 12px;
}

.course-contact-form label {
  display: grid;
  gap: 7px;
  color: #405373;
  font-size: 0.84rem;
  font-weight: 850;
}

.course-contact-form input {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid #d9e6f8;
  border-radius: 12px;
  background: #f8fbff;
  color: #07142f;
  font: inherit;
  outline: none;
}

.course-contact-form input:focus {
  border-color: #0b6fff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 111, 255, 0.12);
}

.modal__panel:has(.support-contacts-modal),
.modal__panel:has(.course-welcome-modal) {
  width: min(680px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  padding: 22px;
  border: 1px solid #d9e6f8;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(7, 20, 47, 0.24);
  overflow: auto;
}

.support-contacts-modal,
.course-welcome-modal {
  display: grid;
  gap: 16px;
}

.support-contacts-hero,
.course-welcome-hero,
.course-welcome-vip {
  border: 1px solid #dbe8f8;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.support-contacts-hero {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  align-items: center;
}

.support-contacts-hero > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eaf3ff;
  color: var(--blue);
}

.support-contacts-hero .icon {
  width: 22px;
  height: 22px;
}

.support-contacts-hero strong {
  display: block;
  color: #07142f;
  font-size: 1rem;
  font-weight: 950;
}

.support-contacts-hero p {
  margin-top: 4px;
  font-size: 0.9rem;
}

.support-message-preview {
  padding: 12px 14px;
  border: 1px dashed #9cc5ff;
  border-radius: 14px;
  background: #f5f9ff;
  color: #07142f;
  font-weight: 850;
}

.support-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.support-contact-grid--vip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-contact-btn {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d9e6f8;
  border-radius: 16px;
  background: #ffffff;
  color: #07142f;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.support-contact-btn:hover {
  border-color: rgba(11, 111, 255, 0.48);
  box-shadow: 0 14px 30px rgba(11, 111, 255, 0.1);
  transform: translateY(-1px);
}

.support-contact-btn__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef6ff;
  color: var(--blue);
}

.support-contact-btn strong {
  display: block;
}

.support-contact-btn strong {
  font-size: 0.94rem;
  font-weight: 950;
}

.support-contact-btn > .icon,
.support-contact-btn__icon .icon {
  width: 18px;
  height: 18px;
}

.support-contact-btn__icon .max-logo-icon {
  width: 20px;
  height: 20px;
}

.support-contact-btn--primary {
  border-color: rgba(11, 111, 255, 0.32);
  background: linear-gradient(135deg, #0b6fff 0%, #0a5fe0 100%);
  color: #ffffff;
}

.support-contact-btn--primary > .icon {
  color: rgba(255, 255, 255, 0.82);
}

.support-contact-btn--primary .support-contact-btn__icon {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.course-welcome-hero {
  padding: 18px;
}

.course-welcome-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eaf8ef;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 950;
}

.course-welcome-badge .icon {
  width: 15px;
  height: 15px;
}

.course-welcome-hero h3 {
  margin: 14px 0 8px;
  color: #07142f;
  font-size: 1.42rem;
  line-height: 1.15;
  font-weight: 950;
}

.course-welcome-hero p strong {
  color: #07142f;
}

.course-welcome-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.course-welcome-steps article {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 14px;
  border: 1px solid #dce8f8;
  border-radius: 16px;
  background: #ffffff;
}

.course-welcome-steps .icon {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.course-welcome-steps strong {
  color: #07142f;
  font-size: 0.92rem;
  font-weight: 950;
}

.course-welcome-steps span {
  color: #65748c;
  font-size: 0.82rem;
  line-height: 1.42;
}

.course-welcome-vip {
  display: grid;
  gap: 8px;
  padding: 15px;
  background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 100%);
}

.course-welcome-vip strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #07142f;
  font-weight: 950;
}

.course-welcome-vip .btn {
  justify-self: start;
}

.course-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-welcome-actions .btn {
  gap: 8px;
}

.modal__panel:has(.course-order-modal) {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 18px;
  border: 1px solid #d9e6f8;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(7, 20, 47, 0.24);
  overflow: auto;
}

.modal__panel:has(.course-order-modal) h2 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.course-order-modal {
  display: grid;
  gap: 12px;
}

.course-order-summary {
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2ecf8;
}

.course-order-kicker {
  color: #07142f;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.course-order-line {
  display: block;
  align-items: center;
  min-height: auto;
}

.course-order-line strong,
.course-order-line span {
  display: block;
}

.course-order-line strong {
  color: #07142f;
  font-size: 0.96rem;
  font-weight: 900;
}

.course-order-line span {
  margin-top: 4px;
  color: #66758d;
  font-size: 0.82rem;
  line-height: 1.35;
}

.course-order-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #07142f;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.course-order-recalc {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #dbe8f8;
  border-radius: 12px;
  background: #f8fbff;
  color: #5d6d84;
  font-size: 0.78rem;
  line-height: 1.35;
}

.course-order-recalc strong {
  color: #07142f;
  font-size: 0.82rem;
}

.course-order-total--bottom {
  margin-top: 2px;
}

.course-order-form {
  display: grid;
  gap: 9px;
}

.course-order-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.course-order-form label:not(.course-order-consent) {
  display: grid;
  gap: 5px;
  color: #637189;
  font-size: 0.78rem;
  font-weight: 800;
}

.course-order-form label em {
  color: #9aa8bb;
  font-style: normal;
  font-weight: 750;
}

.course-order-form input[type="text"],
.course-order-form input[type="email"],
.course-order-form input[type="tel"] {
  min-height: 39px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid #cfdced;
  border-radius: 10px;
  background: #ffffff;
  color: #07142f;
  font: inherit;
  outline: none;
}

.course-order-form input:focus {
  border-color: #0b6fff;
  box-shadow: 0 0 0 3px rgba(11, 111, 255, 0.12);
}

.course-order-form input.is-invalid {
  border-color: #ff5a5f;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.12);
}

.course-order-form input.is-shaking {
  animation: fieldShake 360ms ease;
}

.course-order-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 0;
  color: #4b5a70;
  font-size: 0.73rem;
  line-height: 1.3;
}

.course-order-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
}

.course-order-form a {
  color: #0b6fff;
  font-weight: 850;
}

.course-order-submit {
  min-height: 48px;
  margin-top: 2px;
  border-radius: 12px;
  font-weight: 950;
}

.course-order-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.course-order-note {
  text-align: center;
  color: #6f7d91;
  font-size: 0.78rem;
  line-height: 1.45;
}

@keyframes fieldShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(2px);
  }
}

.modal.modal--wide .modal__panel,
.modal__panel:has(.lesson-section-modal) {
  width: min(720px, calc(100vw - 40px));
}

.modal__panel:has(.lesson-section-modal) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0;
}

.modal__panel:has(.lesson-section-modal) h2 {
  margin: 0;
  padding: 28px 76px 10px 28px;
}

.modal__panel:has(.lesson-section-modal) #modal-content {
  min-height: 0;
  overflow: auto;
  padding: 0 28px 28px;
}

.lesson-section-modal {
  display: grid;
  gap: 18px;
  min-height: 0;
  color: #07142f;
}

.lesson-section-head {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid #dce8f7;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbff, #ffffff);
}

.lesson-section-head > span {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
}

.lesson-section-head p {
  margin: 0;
  color: #53637a;
  line-height: 1.5;
}

.lesson-section-content {
  display: grid;
  gap: 12px;
  padding-right: 4px;
  line-height: 1.62;
}

.lesson-section-content h3,
.lesson-section-content h4 {
  margin: 8px 0 0;
  color: #07142f;
  line-height: 1.2;
}

.lesson-section-content h3 {
  font-size: 1.3rem;
}

.lesson-section-content h4 {
  font-size: 1.06rem;
}

.lesson-section-content p,
.lesson-section-content ul,
.lesson-section-content blockquote {
  margin: 0;
}

.lesson-section-content ul {
  padding-left: 20px;
}

.lesson-section-content a,
.practice-check a {
  color: var(--blue);
  font-weight: 800;
}

.lesson-section-modal--practice {
  gap: 14px;
}

.practice-intro {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dce8f7;
  border-radius: 16px;
  background: #ffffff;
  color: #53637a;
  line-height: 1.56;
}

.practice-intro p,
.practice-intro ul,
.practice-intro ol {
  margin: 0;
}

.practice-checklist {
  display: grid;
  gap: 10px;
}

.practice-check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #dce8f7;
  border-radius: 16px;
  background: #f8fbff;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.practice-check:hover {
  transform: translateY(-1px);
  border-color: #a7c8ff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.practice-check input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--blue);
}

.practice-check__body {
  display: grid;
  gap: 7px;
  color: #53637a;
  line-height: 1.52;
}

.practice-check__body strong {
  color: #07142f;
  font-size: 1rem;
}

.practice-check__content {
  display: grid;
  gap: 8px;
}

.practice-check__content p,
.practice-check__content ul,
.practice-check__content ol,
.practice-check__content blockquote {
  margin: 0;
}

.practice-check__content ul,
.practice-check__content ol {
  padding-left: 18px;
}

.practice-check__content h5,
.practice-check__content h6 {
  margin: 4px 0 0;
  color: #10213d;
  font-size: 0.96rem;
}

.practice-check__content blockquote {
  padding: 10px 12px;
  border-left: 3px solid #97c0ff;
  border-radius: 10px;
  background: #ffffff;
  color: #344966;
}

.practice-check:has(input:checked) {
  border-color: #74d891;
  background: #f1fff5;
}

.practice-check:has(input:checked) .practice-check__body strong {
  color: #177e3b;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.modal__panel:has(.support-contacts-modal) .modal__close,
.modal__panel:has(.course-welcome-modal) .modal__close {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  top: 14px;
  right: 14px;
}

.modal__panel:has(.support-contacts-modal) .modal__close .icon,
.modal__panel:has(.course-welcome-modal) .modal__close .icon {
  width: 16px;
  height: 16px;
}

.modal__panel:has(.course-welcome-modal) .modal__close {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  top: 10px;
  right: 10px;
}

.modal__panel:has(.course-welcome-modal) .modal__close .icon {
  width: 13px;
  height: 13px;
}

.modal.modal--image-viewer {
  padding: 12px;
}

.modal.modal--image-viewer .modal__backdrop {
  background: rgba(7, 20, 47, 0.78);
  backdrop-filter: blur(5px);
}

.modal__panel:has(.image-viewer-modal) {
  width: min(1280px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.modal__panel:has(.image-viewer-modal) h2,
.modal__panel:has(.image-viewer-modal) .modal__close {
  display: none;
}

.modal__panel:has(.image-viewer-modal) > #modal-content {
  padding: 0;
  overflow: visible;
}

.image-viewer-modal {
  display: grid;
  place-items: center;
}

.image-viewer-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
}

.image-viewer-stage.is-zoomed {
  cursor: grab;
}

.image-viewer-stage.is-dragging {
  cursor: grabbing;
}

.image-viewer-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 24px);
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  transform-origin: center center;
  transition: transform 120ms ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.image-viewer-stage.is-dragging .image-viewer-image,
.image-viewer-stage.is-pinching .image-viewer-image {
  transition: none;
}

.image-viewer-actions {
  display: flex;
  justify-content: flex-end;
}

.image-viewer-download {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 211, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(11, 111, 255, 0.58);
  text-decoration: none;
  opacity: 0.68;
  box-shadow: none;
  backdrop-filter: blur(8px);
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.image-viewer-download .icon {
  width: 15px;
  height: 15px;
}

.image-viewer-download:hover {
  transform: translateY(-1px);
  opacity: 1;
  border-color: rgba(11, 111, 255, 0.68);
  background: rgba(255, 255, 255, 0.88);
  color: #0b6fff;
}

@media (max-width: 640px) {
  .modal {
    padding: 12px;
  }

  .modal__panel {
    max-height: calc(100dvh - 24px);
  }

  .modal.modal--wide .modal__panel,
  .modal__panel:has(.lesson-section-modal) {
    width: calc(100vw - 24px);
  }

  .modal__panel:has(.lesson-section-modal) h2 {
    padding: 22px 62px 10px 18px;
    font-size: 1.28rem;
    line-height: 1.18;
  }

  .modal__panel:has(.lesson-section-modal) #modal-content {
    padding: 0 18px 18px;
  }

  .lesson-section-head {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .lesson-section-head > span {
    width: 48px;
    height: 48px;
  }

  .practice-check {
    grid-template-columns: 22px minmax(0, 1fr);
    padding: 12px;
  }
}

@media (max-width: 1180px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__visual {
    order: -1;
    max-width: 720px;
    justify-self: center;
  }

  .lesson-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .lesson-body {
    grid-template-columns: 1fr;
  }

  .lesson-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-6,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 32px, 760px);
  }

  .site-header__inner {
    min-height: 64px;
  }

  .site-header__leading {
    gap: 8px;
  }

  .course-app-back--header {
    width: 36px;
    min-height: 36px;
  }

  .nav,
  .header-actions .btn {
    display: none;
  }

  .hamburger {
    display: inline-grid;
  }

  .site-header.menu-open .nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow-md);
    justify-items: center;
    text-align: center;
  }

  .site-header.menu-open .nav a {
    padding: 14px;
    justify-content: center;
    width: 100%;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero__lead {
    font-size: 1.1rem;
  }

  .trust-grid,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6,
  .faq-grid,
  .timeline,
  .plans {
    grid-template-columns: 1fr;
  }

  .lesson-card {
    grid-template-columns: 58px 1fr;
  }

  .lesson-card__actions {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .section-head {
    display: block;
  }

  .cta-band {
    display: grid;
  }

  .lesson-topbar,
  .format-sidebar {
    display: none;
  }

  .lesson-shell {
    display: block;
    width: 100%;
    padding: 0;
  }

  .lesson-canvas {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mobile-lesson-head {
    position: sticky;
    top: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 94px;
    align-items: center;
    min-height: 58px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
  }

  .mobile-lesson-head--app-return {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .course-app-back--mobile {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 13px;
    font-size: 0.82rem;
  }

  .mobile-lesson-head .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .mobile-auth {
    justify-content: flex-end;
    min-width: 0;
    gap: 7px;
  }

  .mobile-auth .top-cta,
  .mobile-auth .top-menu-btn,
  .mobile-auth .logout-icon-btn {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.82rem;
    line-height: 1;
  }

  .mobile-auth .top-account-btn {
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 36px;
    padding: 0 13px;
    gap: 0;
    border-radius: 999px;
    background:
      linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%) padding-box,
      linear-gradient(135deg, rgba(11, 111, 255, 0.62), rgba(90, 191, 255, 0.34)) border-box;
    box-shadow: none;
    white-space: nowrap;
    overflow: hidden;
  }

  .mobile-auth .top-account-btn .icon {
    display: none;
  }

  .mobile-auth .top-account-btn span {
    min-width: 0;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-lesson-title {
    margin: 0;
    color: var(--ink);
    text-align: center;
    font-size: 1.22rem;
    font-weight: 850;
  }

  .mobile-format-tabs {
    position: sticky;
    top: 58px;
    z-index: 55;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 6px 10px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line-soft);
    background: white;
  }

  .format-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-right: 1px solid var(--line-soft);
    background: white;
    color: #41516f;
    font-size: 0.86rem;
    font-weight: 800;
  }

  .format-tab .icon {
    width: 17px;
    height: 17px;
  }

  .format-tab:last-child {
    border-right: 0;
  }

  .format-tab.active {
    color: var(--blue);
    box-shadow: inset 0 -3px 0 var(--blue);
  }

  .lesson-heading {
    padding: 18px 16px 12px;
  }

  .breadcrumbs {
    display: none;
  }

  .lesson-title-row {
    display: block;
  }

  .lesson-heading h1 {
    display: none;
  }

  .lesson-heading h2 {
    margin-top: 10px;
    font-size: 1.72rem;
  }

  .lesson-body {
    display: block;
    padding: 0 16px 20px;
  }

  .overview-grid {
    display: block;
    padding: 0 16px 96px;
  }

  .overview-secondary {
    margin-top: 16px;
  }

  .lesson-aside {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .lesson-article {
    max-width: 100%;
    font-size: 1.04rem;
    line-height: 1.76;
  }

  .lesson-article h3 {
    margin-top: 36px;
    font-size: 1.3rem;
  }

  .lesson-article > p:first-of-type {
    font-size: 1.08rem;
    line-height: 1.68;
  }

  .lesson-article ol > li {
    padding-left: 42px;
  }

  .lesson-article blockquote,
  .lesson-callout,
  .lesson-footnote,
  .lesson-note {
    padding: 17px;
    border-radius: 16px;
  }

  .lesson-image-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .lesson-image-frame {
    border-radius: 18px;
  }

  .lesson-guide-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 14px;
  }

  .lesson-guide-link {
    grid-column: 1 / -1;
    width: 100%;
  }

  .gender-grid {
    grid-template-columns: 1fr;
  }

  .pdf-frame {
    min-height: 540px;
  }

  .pdf-frame-shell {
    height: 540px;
  }

  .pdf-reader-toolbar {
    align-items: stretch;
    padding: 8px;
  }

  .audio-player {
    padding: 24px 18px;
  }

  .waveform {
    height: 132px;
  }

  .waveform::after {
    inset: 22px 8px;
    opacity: 0.38;
  }

  .audio-play {
    width: 78px;
    height: 78px;
  }

  .audio-download {
    display: grid;
  }

  .lesson-bottom {
    position: static;
    grid-template-columns: 0.7fr 1fr;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--line-soft);
  }

  .completion-hint {
    display: none;
  }

  .lesson-bottom .btn {
    min-height: 58px;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .hero__inner {
    padding: 24px 0 34px;
  }

  .hero__visual {
    width: 100%;
  }

  .hero__visual img {
    content: url("../assets/landing/hero-mobile-transparent.webp");
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .section {
    padding: 54px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero__actions .btn,
  .cta-band .btn {
    width: 100%;
  }

  .lesson-card {
    gap: 14px;
    padding: 16px;
  }

  .lesson-number {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .lesson-card h3 {
    font-size: 1rem;
  }

  .format-row {
    gap: 8px;
  }

  .plan-card {
    min-height: 0;
  }

  .lesson-format-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .lesson-format-card--main {
    justify-items: center;
  }

  .format-tab {
    min-width: 96px;
    font-size: 0.95rem;
  }

  .lesson-heading h2 {
    font-size: 1.85rem;
  }

  .lesson-article blockquote {
    padding: 16px;
  }

  .pdf-frame {
    min-height: 480px;
  }

  .pdf-frame-shell {
    height: 480px;
  }

  .pdf-reader-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pdf-reader-zoom,
  .pdf-tool-btn--text {
    width: 100%;
  }

  .pdf-reader-zoom {
    justify-content: space-between;
  }

  .audio-controls {
    display: grid;
    grid-template-columns: 44px 44px minmax(0, 1fr) 44px 44px;
    grid-template-areas:
      "rewind start spacer end forward"
      "volume volume volume speed speed";
    align-items: center;
    justify-content: stretch;
    gap: 10px;
  }

  .audio-control--rewind {
    grid-area: rewind;
  }

  .audio-control--start {
    grid-area: start;
  }

  .audio-control--end {
    grid-area: end;
  }

  .audio-control--forward {
    grid-area: forward;
  }

  .audio-control--volume {
    grid-area: volume;
    justify-self: stretch;
  }

  .audio-control--speed {
    grid-area: speed;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .media-volume--audio .media-volume__range {
    width: min(42vw, 150px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* FitPush public course landing redesign */
body {
  background: #ffffff;
  color: #1e293b;
  font-family:
    Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page main {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.page main > section:nth-of-type(1) {
  order: 1;
}

.page main > section:nth-of-type(2) {
  order: 2;
}

.page main > section:nth-of-type(3) {
  order: 3;
}

.page main > section:nth-of-type(4) {
  order: 8;
}

.page main > section:nth-of-type(5) {
  order: 5;
}

.page main > section:nth-of-type(6) {
  order: 4;
}

.page main > section:nth-of-type(7) {
  order: 10;
}

.page main > section:nth-of-type(8) {
  order: 6;
}

.page main > section:nth-of-type(9) {
  order: 7;
}

.page main > section:nth-of-type(10) {
  order: 11;
}

.page main > section:nth-of-type(11) {
  order: 8;
}

.container {
  width: min(1180px, calc(100% - 48px));
}

.site-header {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(217, 230, 248, 0.78);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.035);
}

.site-header__inner {
  min-height: 64px;
}

.brand-title,
.hero h1,
.section-title,
.price,
.lesson-heading h1 {
  font-family: Unbounded, Manrope, system-ui, sans-serif;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand-logo {
  width: 34px;
  height: 34px;
}

.brand-title {
  font-size: 1.12rem;
  letter-spacing: 0;
}

.brand-subtitle {
  font-size: 0.82rem;
}

.nav {
  gap: 8px;
  font-size: 0.9rem;
}

.icon-btn.hamburger {
  display: none;
}

.btn {
  min-height: 44px;
  border-radius: 10px;
  padding: 0 22px;
  font-size: 0.92rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0b6fff 0%, #005de0 100%);
  background-size: 180% 100%;
  box-shadow: 0 12px 28px rgba(11, 111, 255, 0.22);
  animation: buttonFlow 9s ease-in-out infinite;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0%, rgba(11, 111, 255, 0.055) 46%, transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 12%, rgba(255, 255, 255, 0.8) 24%, transparent 36%);
  opacity: 0.45;
  transform: translateX(-62%);
  animation: surfaceShine 12s ease-in-out infinite;
  pointer-events: none;
}

.hero__inner {
  grid-template-columns: minmax(610px, 1fr) minmax(0, 0.86fr);
  gap: 20px;
  min-height: 548px;
  padding: 28px 0 42px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 740px;
  margin: 18px 0 18px;
  color: #07142f;
  font-size: 2.8rem;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 540px;
  margin-bottom: 20px;
  color: #203452;
  font-size: 1.23rem;
  line-height: 1.56;
}

.badge {
  min-height: 30px;
  padding: 5px 12px;
  border-color: #d9e9ff;
  background: #eaf4ff;
  font-size: 0.82rem;
}

.check-list {
  gap: 10px;
  color: #203452;
  font-weight: 600;
}

.check-dot {
  width: 18px;
  height: 18px;
}

.check-dot .icon {
  width: 13px;
  height: 13px;
}

.hero__actions {
  margin-top: 24px;
}

.hero__actions .btn {
  min-width: 190px;
  min-height: 52px;
  border-radius: 12px;
}

.trust-grid {
  max-width: 590px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  margin-bottom: 10px;
}

.trust-item {
  min-height: 66px;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border-color: #e2ecfb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.page main .trust-icon,
.page main .card-icon {
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 0;
  color: transparent;
}

.page main .trust-icon .icon,
.page main .card-icon .icon {
  opacity: 0;
}

.trust-item:nth-child(1) .trust-icon {
  background-image: url("../assets/icons/lessons.webp");
}

.trust-item:nth-child(2) .trust-icon {
  background-image: url("../assets/icons/practice.webp");
}

.trust-item:nth-child(3) .trust-icon {
  background-image: url("../assets/icons/research.webp");
}

.trust-item strong {
  font-size: 0.92rem;
}

.trust-item span span {
  font-size: 0.77rem;
  line-height: 1.25;
}

.hero__content {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero__visual {
  align-self: end;
  justify-self: stretch;
  position: relative;
  z-index: 1;
  margin-bottom: -42px;
}

.hero__visual-mobile {
  display: none;
}

.hero__visual img {
  width: 650px;
  max-width: none;
  max-height: 562px;
  margin-left: -110px;
  object-fit: contain;
  object-position: right bottom;
}

@media (min-width: 761px) {
  .hero__visual img {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.section {
  padding: 42px 0;
}

.section-tight {
  padding: 28px 0;
}

.section-white,
.section-blue {
  background: #ffffff;
}

#program {
  padding-top: 58px;
}

.section-head {
  margin-bottom: 18px;
}

.section-kicker {
  color: #0b6fff;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.section-title {
  margin-top: 6px;
  font-size: 2.1rem;
  line-height: 1.14;
  font-weight: 700;
}

.section-copy {
  max-width: 760px;
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.course-modules {
  display: grid;
  gap: 42px;
}

.course-module {
  display: grid;
  gap: 16px;
}

.course-module__head {
  max-width: 760px;
}

.course-module__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.course-module__head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.15;
  font-weight: 900;
}

.course-module__head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #53637a;
  font-size: 0.95rem;
  line-height: 1.55;
}

.course-module--bonus .course-module__eyebrow {
  color: #c02667;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.course-list--collapsed .lesson-card:nth-child(n + 10) {
  display: none;
}

.course-list-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.lesson-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border-color: #e3edf9;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.lesson-card:hover {
  border-color: #a7c8ff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
}

.lesson-card--free {
  min-height: 224px;
  grid-template-rows: minmax(132px, 1fr) auto;
}

.lesson-card--locked {
  min-height: 86px;
  padding: 14px 16px;
}

.lesson-card--bonus {
  border-color: #f3c8dc;
  background: linear-gradient(180deg, #ffffff 0%, #fff2f7 100%);
}

.lesson-number {
  width: 48px;
  height: 48px;
  background: #eaf4ff;
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: 1.38rem;
}

.lesson-number--bonus {
  background: #eef4fc;
  color: #41516f;
}

.lesson-number--bonus .icon {
  opacity: 1;
}

.lesson-card--locked .lesson-number {
  width: 42px;
  height: 42px;
}

.lesson-meta {
  margin-bottom: 4px;
  font-size: 0.68rem;
}

.lesson-card h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.lesson-card p {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: #53637a;
  font-size: 0.82rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.lesson-card--free p {
  -webkit-line-clamp: 2;
}

.lesson-card--locked p {
  display: none;
}

.lesson-card--locked .tag-list {
  display: none;
}

.lesson-card--bonus p {
  display: -webkit-box;
}

.lesson-card--bonus .tag-list {
  display: flex;
}

.lesson-card--bonus .tag {
  background: #ffffff;
}

.lesson-card__actions {
  grid-column: 2;
  min-width: 0;
  align-self: end;
}

.lesson-card__actions .btn {
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
  font-size: 0.78rem;
}

.lesson-card--locked .lesson-card__actions .btn {
  width: auto;
  min-height: 32px;
  padding: 0 13px;
  color: #4b6385;
  background: #eef5ff;
}

.lesson-card--bonus .lesson-card__actions .btn {
  width: 100%;
}

.format-row {
  gap: 10px;
  margin-top: 12px;
  font-size: 0.72rem;
}

.format-row .icon {
  width: 15px;
  height: 15px;
}

.cta-band {
  padding: 22px 26px;
  border-radius: 18px;
  background: linear-gradient(90deg, #f3f8ff 0%, #ffffff 100%);
}

.cta-band > .trust-icon {
  width: 76px;
  height: 76px;
  background-image: url("../assets/icons/gift.webp");
}

.cta-band h2,
.cta-band h3 {
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.info-card,
.format-card,
.bonus-card,
.plan-card,
.faq-item {
  border-radius: 18px;
  border-color: #e4edf8;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.info-card,
.format-card,
.bonus-card {
  padding: 18px;
}

.info-card .card-icon,
.format-card .card-icon,
.bonus-card .card-icon {
  width: 58px;
  height: 58px;
}

.grid-4 .info-card:nth-child(1) .card-icon {
  background-image: url("../assets/icons/diet.webp");
}

.grid-4 .info-card:nth-child(2) .card-icon {
  background-image: url("../assets/icons/health.webp");
}

.grid-4 .info-card:nth-child(3) .card-icon {
  background-image: url("../assets/icons/system.webp");
}

.grid-4 .info-card:nth-child(4) .card-icon {
  background-image: url("../assets/icons/habit.webp");
}

.format-card:nth-child(1) .card-icon {
  background-image: url("../assets/icons/text.webp");
}

.format-card:nth-child(2) .card-icon {
  background-image: url("../assets/icons/video.webp");
}

.format-card:nth-child(3) .card-icon {
  background-image: url("../assets/icons/pdf.webp");
}

.format-card:nth-child(4) .card-icon {
  background-image: url("../assets/icons/audio.webp");
}

.format-card:nth-child(5) .card-icon {
  background-image: url("../assets/icons/task.webp");
}

.grid-3,
.grid-4,
.grid-5,
.grid-6 {
  gap: 12px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.format-card {
  min-height: 128px;
  text-align: center;
}

.format-card .card-icon {
  margin: 0 auto;
}

.format-card h3 {
  margin-top: 8px;
  font-size: 0.93rem;
}

.format-card p {
  display: none;
}

.plans {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-card {
  overflow: hidden;
  min-height: 340px;
  padding: 22px;
}

.plan-card h3 {
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: 1.05rem;
}

.price {
  font-size: 1.8rem;
}

.plan-card li {
  font-size: 0.86rem;
}

.plan-excluded {
  margin-top: 8px;
  color: #7c8ba3;
}

.plan-excluded li .icon {
  color: #94a3b8;
}

.plan-card--featured::after,
.cta-band::after,
.review-card::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -45%;
  width: 38%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.76), transparent);
  opacity: 0;
  animation: cardShine 8.5s ease-in-out infinite;
  pointer-events: none;
}

.cta-band,
.review-card {
  position: relative;
  overflow: hidden;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.review-card {
  min-height: 270px;
  padding: 20px;
  border: 1px solid #dfeafa;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.review-card img {
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(11, 111, 255, 0.16);
}

.review-card h3 {
  margin: 16px 0 8px;
  color: #07142f;
  font-size: 1rem;
}

.review-card p {
  margin: 0;
  color: #53637a;
  font-size: 0.9rem;
  line-height: 1.55;
}

.plan-badge {
  position: static;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  margin: -4px 0 12px;
  padding: 4px 12px;
  transform: none;
  white-space: nowrap;
}

.site-footer {
  background: #ffffff;
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-grid > div {
  padding: 18px;
  border: 1px solid #e3edf9;
  border-radius: 16px;
  background: #f8fbff;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #07142f;
  font-size: 0.96rem;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 7px 0 0;
  color: #53637a;
  font-size: 0.86rem;
  line-height: 1.45;
}

.footer-grid a:hover {
  color: #0b6fff;
}

.footer-action {
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid #cfe1ff;
  border-radius: 12px;
  background: #ffffff;
  color: #0b6fff !important;
  font-weight: 850;
}

.footer-bottom {
  padding-top: 4px;
  color: #7c8ba3;
  font-size: 0.82rem;
  line-height: 1.4;
}

.legal-page {
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 42%);
}

.legal-hero {
  padding: 42px 0 24px;
}

.legal-hero .container {
  max-width: 960px;
}

.legal-back-link {
  width: fit-content;
  margin-bottom: 22px;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 10px 0 12px;
  color: #07142f;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
}

.legal-hero p {
  max-width: 760px;
  margin: 0;
  color: #53637a;
  font-size: 1.06rem;
  line-height: 1.6;
}

.legal-shell {
  max-width: 960px;
  display: grid;
  gap: 14px;
}

.legal-card {
  padding: 22px;
  border: 1px solid #dfeafa;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055);
}

.legal-card h2 {
  margin: 0 0 8px;
  color: #07142f;
  font-size: 1.15rem;
}

.legal-card p {
  margin: 0;
  color: #53637a;
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-docs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.legal-docs-nav a {
  padding: 10px 13px;
  border: 1px solid #d7e6fb;
  border-radius: 999px;
  background: #ffffff;
  color: #30405a;
  font-size: 0.86rem;
  font-weight: 800;
}

.legal-docs-nav a.active,
.legal-docs-nav a:hover {
  border-color: #0b6fff;
  background: #edf5ff;
  color: #0b6fff;
}

.pricing-note {
  max-width: 980px;
  margin: 22px 0 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.legal-page main {
  background: #ffffff;
}

.legal-hero {
  padding: 52px 0 30px;
  border-bottom: 1px solid #e3edf9;
  background:
    radial-gradient(circle at 86% 16%, rgba(11, 111, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #f6faff 0%, #ffffff 100%);
}

.legal-back-link {
  margin-bottom: 20px;
  background: #ffffff;
  border-color: #cfe1ff;
}

.legal-hero h1 {
  max-width: 860px;
  margin: 8px 0 12px;
  color: #07142f;
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
}

.legal-hero p {
  max-width: 760px;
  margin: 0;
  color: #53637a;
  font-size: 1.08rem;
  line-height: 1.58;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.legal-card {
  padding: 24px;
  border: 1px solid #e3edf9;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.legal-card + .legal-card {
  margin-top: 14px;
}

.legal-card h2 {
  margin: 0 0 10px;
  color: #07142f;
  font-size: 1.18rem;
  line-height: 1.22;
}

.legal-card p {
  margin: 0;
  color: #53637a;
  line-height: 1.62;
}

.legal-docs-nav {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e3edf9;
  border-radius: 18px;
  background: #f8fbff;
}

.legal-docs-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  color: #53637a;
  font-weight: 850;
}

.legal-docs-nav a:hover,
.legal-docs-nav a.active {
  background: #eef6ff;
  color: var(--blue);
}

.info-card--plain {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.info-card--plain h3 {
  margin-top: 0;
}

.reveal-in {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease,
    transform 620ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes surfaceShine {
  0%,
  38% {
    transform: translateX(-68%);
  }
  58%,
  100% {
    transform: translateX(82%);
  }
}

@keyframes cardShine {
  0%,
  42% {
    left: -45%;
    opacity: 0;
  }
  52% {
    opacity: 0.75;
  }
  68%,
  100% {
    left: 116%;
    opacity: 0;
  }
}

@keyframes buttonFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes mobileHeroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileHeroImageIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mobileHeroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 1180px) {
  .hero__inner {
    grid-template-columns: 1fr 0.95fr;
  }

  .course-list,
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4,
  .grid-5,
  .grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .page main {
    display: flex;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 22px;
  }

  .hero__visual {
    order: 0;
    margin-top: -8px;
    margin-bottom: 0;
  }

  .hero__content {
    order: -1;
  }

  .hero h1 {
    font-size: 2.85rem;
    max-width: 100%;
  }

  .hero__lead {
    max-width: none;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .trust-grid {
    display: flex;
    max-width: none;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .trust-item {
    min-width: 168px;
  }

  .icon-btn.hamburger {
    display: inline-grid;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 28px);
  }

  .site-header__inner {
    min-height: 64px;
    gap: 10px;
  }

  .site-header .brand-title {
    display: none;
  }

  .site-header .brand {
    gap: 0;
    min-width: 34px;
  }

  .site-header--app-return .brand-title {
    display: none;
  }

  .site-header--app-return .brand {
    gap: 0;
    min-width: 34px;
  }

  .site-header--app-return .top-auth {
    display: inline-flex;
  }

  .hero {
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 190px, rgba(11, 111, 255, 0.08), transparent 230px),
      linear-gradient(180deg, #f2f8ff 0%, #fbfdff 58%, #ffffff 100%);
  }

  .hero__inner {
    min-height: calc(100svh - 64px);
    padding-top: 18px;
    padding-bottom: 24px;
    display: block;
    position: relative;
  }

  .hero__content {
    position: relative;
    z-index: 2;
  }

  .hero__content > .badge {
    display: flex;
    width: fit-content;
    margin: 0 auto;
  }

  .hero__visual {
    display: none;
  }

  .hero__visual-mobile {
    display: block;
    width: min(100%, 292px);
    height: auto;
    margin: 8px auto 10px;
    overflow: visible;
  }

  .hero__visual-mobile img {
    content: normal;
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
    object-position: center top;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .hero__actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .hero h1 {
    max-width: 330px;
    margin: 10px auto 0;
    font-size: 2.18rem;
    line-height: 1.04;
    text-align: center;
  }

  .hero__lead {
    max-width: 100%;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.42;
    text-align: left;
  }

  .badge {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 0.76rem;
  }

  .check-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    max-width: 100%;
    font-size: 0.9rem;
  }

  .check-list li {
    align-items: flex-start;
    line-height: 1.28;
  }

  .check-dot {
    margin-top: 1px;
  }

  .trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
    overflow: visible;
    padding-bottom: 0;
  }

  .trust-item {
    min-width: 0;
    min-height: 74px;
    padding: 9px 8px;
    align-items: start;
    gap: 6px;
  }

  .trust-item .trust-icon {
    width: 30px;
    height: 30px;
  }

  .trust-item strong {
    font-size: 0.78rem;
  }

  .trust-item span span {
    font-size: 0.68rem;
    line-height: 1.18;
  }

  .top-auth {
    gap: 6px;
  }

  .top-cta,
  .top-menu-btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .top-user-name,
  .logout-icon-btn {
    display: none;
  }

  .site-header .top-user-name {
    display: inline-block;
    max-width: clamp(58px, 18vw, 104px);
    overflow: hidden;
    color: #53637a;
    font-size: 0.78rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header--app-return .header-actions {
    gap: 8px;
  }

  .site-header--app-return .top-menu-btn,
  .site-header--app-return .top-cta {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .social-auth-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.72rem;
  }

  .course-modules {
    gap: 34px;
  }

  .course-module {
    gap: 14px;
  }

  .course-module__head h3 {
    font-size: 1.32rem;
  }

  .course-list,
  .plans,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6,
  .reviews-grid,
  .footer-main,
  .footer-grid,
  .faq-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .lesson-card--free {
    min-height: 0;
  }

  .lesson-card--locked {
    grid-template-columns: 42px 1fr;
  }

  .lesson-card--locked .lesson-card__actions .btn {
    width: 100%;
  }

  .format-row {
    gap: 8px;
  }

  .section,
  .section-tight {
    padding: 34px 0;
  }

  .cta-band {
    padding: 18px;
  }

  .cta-band > .trust-icon {
    width: 58px;
    height: 58px;
  }

  .format-card {
    display: flex;
    min-height: 86px;
    align-items: center;
    gap: 14px;
    text-align: left;
  }

  .format-card .card-icon {
    margin: 0;
  }

  .plan-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 380px) {
  .study-quick-grid {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    padding-top: 16px;
  }

  .hero h1 {
    font-size: 2.04rem;
  }

  .hero__visual-mobile {
    width: min(100%, 280px);
    height: auto;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .hero__visual-mobile img {
    width: 100%;
    margin-top: 0;
  }

  .hero__lead {
    font-size: 0.95rem;
    line-height: 1.36;
  }

  .check-list {
    gap: 6px;
    font-size: 0.86rem;
  }

  .hero__actions {
    margin-top: 12px;
  }

  .hero__actions .btn {
    min-height: 44px;
    font-size: 0.82rem;
  }
}

@media (max-width: 760px) {
  .hero {
    overflow: hidden;
    background:
      radial-gradient(circle at 78% 210px, rgba(11, 111, 255, 0.11), transparent 220px),
      linear-gradient(180deg, #f4f9ff 0%, #fbfdff 66%, #ffffff 100%);
  }

  .hero__inner {
    min-height: auto;
    padding-top: 18px;
    padding-bottom: 34px;
  }

  .hero__content > .badge {
    margin: 0;
  }

  .hero h1 {
    position: relative;
    z-index: 2;
    max-width: 310px;
    margin: 12px 0 8px;
    font-size: 2.5rem;
    line-height: 0.98;
    text-align: left;
  }

  .hero__visual {
    display: none;
  }

  .hero__visual-mobile {
    position: relative;
    z-index: 1;
    display: block;
    width: min(calc(100% + 28px), 430px);
    height: auto;
    margin: 0 -14px 18px;
    overflow: visible;
    pointer-events: none;
    animation: mobileHeroImageIn 420ms ease both 40ms;
  }

  .hero__visual-mobile img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    object-position: right top;
    animation: mobileHeroFloat 5.5s ease-in-out 520ms infinite;
  }

  .hero__lead {
    margin: 0 0 12px;
    text-align: left;
  }

  .hero__actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .hero__actions .btn {
    font-size: 0.86rem;
  }

  .trust-grid {
    margin-top: 16px;
  }

  .hero__content > .badge,
  .hero h1,
  .hero__lead,
  .check-list li,
  .hero__actions,
  .trust-item {
    animation: mobileHeroFadeUp 620ms ease both;
  }

  .hero__content > .badge {
    animation-delay: 30ms;
  }

  .hero h1 {
    animation-delay: 90ms;
  }

  .hero__lead {
    animation-delay: 220ms;
  }

  .check-list li:nth-child(1) {
    animation-delay: 270ms;
  }

  .check-list li:nth-child(2) {
    animation-delay: 320ms;
  }

  .check-list li:nth-child(3) {
    animation-delay: 370ms;
  }

  .check-list li:nth-child(4) {
    animation-delay: 420ms;
  }

  .hero__actions {
    animation-delay: 470ms;
  }

  .trust-item:nth-child(1) {
    animation-delay: 520ms;
  }

  .trust-item:nth-child(2) {
    animation-delay: 570ms;
  }

  .trust-item:nth-child(3) {
    animation-delay: 620ms;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    max-width: 296px;
    font-size: 2.26rem;
  }

  .hero__visual-mobile {
    width: calc(100% + 28px);
    height: auto;
    margin: 0 -14px 16px;
  }

  .hero__visual-mobile img {
    width: 100%;
    margin-right: auto;
  }

  .hero__actions .btn {
    padding: 0 8px;
    font-size: 0.74rem;
  }
}

@media (max-width: 1180px) {
  .account-grid,
  .account-progress-grid,
  .upgrade-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .account-shell {
    width: min(100% - 28px, 720px);
    padding: 18px 0 44px;
  }

  .account-hero,
  .account-grid,
  .account-progress-grid,
  .upgrade-plan-grid,
  .account-input-row {
    grid-template-columns: 1fr;
  }

  .account-hero {
    align-items: start;
    padding: 22px;
  }

  .account-current-lesson,
  .account-input-row button {
    width: 100%;
  }

  .account-panel,
  .account-module {
    padding: 18px;
  }

  .upgrade-plan-card {
    min-height: 0;
    padding: 18px;
  }

  .account-lesson-card {
    min-height: 0;
  }

  .legal-hero {
    padding: 28px 0 22px;
  }

  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-docs-nav {
    position: static;
    order: -1;
  }
}

@media (min-width: 981px) and (max-height: 650px) {
  .lesson-dashboard .study-dashboard {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 10px;
    width: min(100% - 18px, 1180px);
    padding: 8px 0 12px;
  }

  .lesson-dashboard .study-main-header,
  .lesson-dashboard .study-mobile-progress,
  .lesson-dashboard .study-mobile-course {
    display: none;
  }

  .lesson-dashboard .study-sidebar {
    position: sticky;
    top: 72px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: calc(100vh - 82px);
    overflow: hidden;
  }

  .lesson-dashboard .study-sidebar > .study-progress-card {
    display: none;
  }

  .lesson-dashboard .study-sidebar .study-course-card {
    min-height: 0;
    padding: 12px;
    border-radius: 16px;
  }

  .lesson-dashboard .study-sidebar .study-course-head {
    margin-bottom: 8px;
  }

  .lesson-dashboard .study-sidebar .study-course-head h2 {
    font-size: 1rem;
  }

  .lesson-dashboard .study-sidebar .study-course-head span {
    font-size: 0.72rem;
  }

  .lesson-dashboard .study-sidebar .study-lesson-list--scroll {
    max-height: calc(100vh - 180px);
    min-height: 0;
  }

  .lesson-dashboard .study-sidebar .study-lesson-item {
    min-height: 46px;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 7px;
  }

  .lesson-dashboard .study-sidebar .study-lesson-number {
    width: 24px;
    height: 24px;
    font-size: 0.78rem;
  }

  .lesson-dashboard .study-sidebar .study-lesson-time {
    display: none;
  }

  .lesson-dashboard .study-sidebar .study-lesson-copy strong {
    font-size: 0.82rem;
  }

  .lesson-dashboard .study-sidebar .study-lesson-copy small {
    font-size: 0.68rem;
    line-height: 1.16;
  }

  .lesson-dashboard .study-sidebar-toggle--panel {
    width: 30px;
    height: 30px;
    min-height: 30px;
    top: 10px;
    left: 10px;
    border-radius: 10px;
  }

  .lesson-dashboard.is-study-sidebar-collapsed .study-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .lesson-dashboard.is-study-sidebar-collapsed .study-sidebar {
    display: none;
  }

  .lesson-dashboard .study-format-grid {
    height: auto;
    display: grid;
    grid-template-columns: minmax(250px, 0.95fr) minmax(155px, 0.68fr) minmax(155px, 0.68fr);
    grid-template-rows: minmax(235px, auto) minmax(132px, auto);
    gap: 12px;
  }

  .lesson-dashboard .study-card {
    border-radius: 18px;
  }

  .lesson-dashboard .study-card--text {
    grid-row: 1 / span 2;
    display: grid;
    align-content: start;
    padding: 12px 14px 10px;
    overflow: hidden;
  }

  .lesson-dashboard .study-main-badge {
    min-height: 28px;
    margin-bottom: 6px;
    padding: 4px 12px;
    font-size: 0.76rem;
  }

  .lesson-dashboard .study-card--text > .course-3d-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 4px;
  }

  .lesson-dashboard .study-topic-label {
    min-height: 18px;
    margin-bottom: 4px;
    padding: 0 8px;
    font-size: 0.58rem;
  }

  .lesson-dashboard .study-card--text h2 {
    max-width: 100%;
    font-size: 1.24rem;
    line-height: 1.1;
  }

  .lesson-dashboard .study-card--text > p {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .lesson-dashboard .study-meta {
    margin-top: 6px;
    font-size: 0.76rem;
  }

  .lesson-dashboard .study-main-button {
    min-height: 38px;
    margin-top: 8px;
    border-radius: 10px;
  }

  .lesson-dashboard .study-card--text > .study-quick-grid {
    margin-top: 8px;
    gap: 8px;
  }

  .lesson-dashboard .study-quick-link {
    min-height: 46px;
    grid-template-columns: 30px 1fr;
    gap: 8px;
    padding: 7px;
  }

  .lesson-dashboard .study-quick-link > span:first-child {
    width: 30px;
    height: 30px;
  }

  .lesson-dashboard .study-quick-link strong {
    font-size: 0.75rem;
    line-height: 1.16;
  }

  .lesson-dashboard .study-quick-link small {
    display: none;
  }

  .lesson-dashboard .study-lesson-progress {
    margin-top: 8px;
    padding: 7px 10px;
  }

  .lesson-dashboard .study-lesson-progress__bar {
    height: 6px;
    margin-top: 6px;
  }

  .lesson-dashboard .study-lesson-progress p {
    display: none;
  }

  .lesson-dashboard .study-card--support,
  .lesson-dashboard .study-card--audio {
    min-height: 0;
    padding: 12px;
  }

  .lesson-dashboard .study-card--support:not(.study-card--audio) .study-card-copy {
    min-height: 0;
  }

  .lesson-dashboard .study-card-orb,
  .lesson-dashboard .study-card--audio .study-card-orb {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
  }

  .lesson-dashboard .study-card-orb .course-3d-icon {
    width: 58px;
    height: 58px;
  }

  .lesson-dashboard .study-card-copy h2 {
    font-size: 1.05rem;
  }

  .lesson-dashboard .study-card-copy p {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .lesson-dashboard .study-card__button,
  .lesson-dashboard .study-card--audio .study-card__button,
  .lesson-dashboard .study-card--support:not(.study-card--audio) .study-card__button {
    min-height: 38px;
    margin-top: auto;
    border-radius: 10px;
    font-size: 0.84rem;
  }

  .lesson-dashboard .study-card--audio {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 170px;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .lesson-dashboard .study-card--audio .study-card-orb {
    margin-bottom: 0;
  }
}

#program .course-modules {
  gap: 22px;
}

#program .course-module {
  gap: 10px;
}

#program .course-module__head {
  max-width: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

#program .course-module__eyebrow {
  margin: 0;
  font-size: 0.64rem;
}

#program .course-module__head h3 {
  font-size: 1.02rem;
  line-height: 1.1;
}

#program .course-module__head p {
  display: none;
}

#program .course-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#program .course-modules--collapsed > .course-module:nth-of-type(n + 3) {
  display: none;
}

#program .course-modules--collapsed > .course-module:nth-of-type(2) .course-list > .lesson-card:nth-of-type(n + 4) {
  display: none;
}

#program .course-list-actions {
  margin-top: 16px;
}

#program .lesson-card {
  min-height: 96px;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid #cfe1ff;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

#program .lesson-card--free {
  min-height: 126px;
}

#program .lesson-card--locked {
  min-height: 92px;
  padding: 12px;
}

#program .lesson-card--bonus {
  min-height: 190px;
  border-color: #f4b8d0;
  background: linear-gradient(180deg, #ffffff 0%, #fff2f7 100%);
  box-shadow: 0 14px 30px rgba(190, 24, 93, 0.07);
}

#program .lesson-number,
#program .lesson-card--locked .lesson-number {
  width: 34px;
  height: 34px;
  font-size: 0.88rem;
}

#program .lesson-number .icon {
  width: 15px;
  height: 15px;
}

#program .lesson-card__content {
  min-width: 0;
}

#program .lesson-meta {
  display: block;
  margin: 0 0 3px;
  color: #0b6fff;
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

#program .lesson-card h3 {
  margin: 0;
  color: #07142f;
  font-size: 0.78rem;
  line-height: 1.18;
  font-weight: 900;
}

#program .lesson-card p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: #53637a;
  font-size: 0.66rem;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#program .lesson-card--locked p,
#program .lesson-card--locked .tag-list {
  display: none;
}

#program .lesson-card--bonus p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
}

#program .lesson-card--bonus .tag-list {
  display: flex;
}

#program .tag-list {
  gap: 6px;
  margin-top: 8px;
}

#program .tag {
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf5ff;
  color: #31547f;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 800;
}

#program .lesson-card--bonus .tag {
  background: #ffffff;
}

#program .format-row {
  gap: 7px;
  margin-top: 7px;
  color: #7c8ba3;
  font-size: 0.58rem;
  line-height: 1;
}

#program .format-row span {
  gap: 3px;
  white-space: nowrap;
}

#program .format-row .icon {
  width: 10px;
  height: 10px;
}

#program .lesson-card__actions {
  grid-column: 2;
  min-width: 0;
  align-self: end;
}

#program .lesson-card__actions .btn,
#program .lesson-card--locked .lesson-card__actions .btn,
#program .lesson-card--bonus .lesson-card__actions .btn {
  width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 0.64rem;
  font-weight: 900;
}

#program .lesson-card--locked .lesson-card__actions .btn {
  border-color: #e2ecfb;
  background: #eef5ff;
  color: #4b6385;
}

#program .lesson-card--bonus .lesson-card__actions .btn {
  border-color: #dce9f8;
  background: #eef5ff;
  color: #4b6385;
}

@media (max-width: 980px) {
  #program .course-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #program .course-list {
    grid-template-columns: 1fr;
  }
}

.study-mobile-tip {
  display: none;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #b9d3ff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #eef6ff;
}

.back-to-top .icon {
  width: 21px;
  height: 21px;
}

.info-card--plain {
  min-height: 138px;
  justify-content: center;
}

.reveal-in {
  transform: translateY(12px);
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

@media (max-width: 760px) {
  .page > .site-header {
    position: relative;
    top: auto;
  }

  .info-card--plain {
    min-height: 0;
    padding: 18px;
    justify-content: flex-start;
  }

  .hero__visual-mobile {
    animation-duration: 280ms;
    animation-delay: 20ms;
  }

  .hero__visual-mobile img {
    animation-duration: 4.2s;
    animation-delay: 320ms;
  }

  .hero__content > .badge,
  .hero h1,
  .hero__lead,
  .check-list li,
  .hero__actions,
  .trust-item {
    animation-duration: 360ms;
  }

  .hero__lead {
    animation-delay: 140ms;
  }

  .check-list li:nth-child(1) {
    animation-delay: 170ms;
  }

  .check-list li:nth-child(2) {
    animation-delay: 200ms;
  }

  .check-list li:nth-child(3) {
    animation-delay: 230ms;
  }

  .check-list li:nth-child(4) {
    animation-delay: 260ms;
  }

  .hero__actions {
    animation-delay: 290ms;
  }

  .trust-item:nth-child(1) {
    animation-delay: 320ms;
  }

  .trust-item:nth-child(2) {
    animation-delay: 350ms;
  }

  .trust-item:nth-child(3) {
    animation-delay: 380ms;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 980px) {
  .lesson-dashboard {
    overflow-x: hidden;
  }

  .lesson-dashboard .study-dashboard {
    width: min(100% - 24px, 430px);
    padding: 12px 0 28px;
    overflow: visible;
  }

  .lesson-dashboard .study-main,
  .lesson-dashboard .study-format-grid,
  .lesson-dashboard .study-card,
  .lesson-dashboard .study-card-copy {
    min-width: 0;
  }

  .lesson-dashboard .study-main-header {
    padding: 6px 0 12px;
  }

  .lesson-dashboard .study-main-header p {
    max-width: 100%;
    overflow: hidden;
    white-space: normal;
    text-overflow: clip;
  }

  .lesson-dashboard .study-mobile-progress {
    margin-bottom: 12px;
  }

  .lesson-dashboard .study-mobile-progress .study-progress-card {
    padding: 16px 18px;
    border-radius: 16px;
  }

  .lesson-dashboard .study-format-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .lesson-dashboard .study-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 18px;
    overflow: hidden;
  }

  .lesson-dashboard .study-card--text {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 9px 12px;
    align-items: center;
    justify-items: stretch;
    padding: 15px;
    text-align: left;
  }

  .lesson-dashboard .study-card--text .study-main-badge {
    grid-column: 1 / -1;
    justify-self: center;
    min-height: 28px;
    margin: 0 0 3px;
    padding: 4px 12px;
    font-size: 0.76rem;
  }

  .lesson-dashboard .study-card--text > .course-3d-icon {
    grid-column: 1;
    grid-row: 2 / span 4;
    width: 82px;
    height: 82px;
    margin: 0;
  }

  .lesson-dashboard .study-card--text .study-topic-label,
  .lesson-dashboard .study-card--text h2,
  .lesson-dashboard .study-card--text > p,
  .lesson-dashboard .study-card--text > .study-meta {
    grid-column: 2;
    min-width: 0;
  }

  .lesson-dashboard .study-card--text .study-topic-label {
    justify-self: start;
    min-height: 18px;
    margin: 0;
    padding: 0 8px;
    font-size: 0.58rem;
  }

  .lesson-dashboard .study-card--text h2 {
    max-width: 100%;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .lesson-dashboard .study-card--text > p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .lesson-dashboard .study-card--text > .study-meta {
    justify-content: flex-start;
    margin-top: 0;
    font-size: 0.78rem;
  }

  .lesson-dashboard .study-main-button,
  .lesson-dashboard .study-card--text > .study-quick-grid,
  .lesson-dashboard .study-lesson-progress {
    grid-column: 1 / -1;
  }

  .lesson-dashboard .study-main-button {
    min-height: 42px;
    margin-top: 2px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .lesson-dashboard .study-card--text > .study-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
  }

  .lesson-dashboard .study-card--text .study-quick-link {
    min-height: 42px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
    padding: 7px;
    border-radius: 11px;
  }

  .lesson-dashboard .study-card--text .study-quick-link > span:first-child {
    width: 28px;
    height: 28px;
  }

  .lesson-dashboard .study-card--text .study-quick-link strong {
    font-size: 0.74rem;
    line-height: 1.14;
  }

  .lesson-dashboard .study-card--text .study-quick-link small,
  .lesson-dashboard .study-card--text .study-quick-note {
    display: none;
  }

  .lesson-dashboard .study-lesson-progress {
    width: 100%;
    margin-top: 2px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .lesson-dashboard .study-lesson-progress p {
    display: block;
    font-size: 0.72rem;
  }

  .lesson-dashboard .study-card--support,
  .lesson-dashboard .study-card--audio {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    justify-items: stretch;
    padding: 14px;
    text-align: left;
  }

  .lesson-dashboard .study-card-orb,
  .lesson-dashboard .study-card--audio .study-card-orb {
    width: 64px;
    height: 64px;
    margin: 0;
  }

  .lesson-dashboard .study-card-orb .course-3d-icon {
    width: 58px;
    height: 58px;
  }

  .lesson-dashboard .study-card-copy h2 {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.15;
  }

  .lesson-dashboard .study-card-copy p {
    margin-top: 5px;
    font-size: 0.82rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .lesson-dashboard .study-card-copy .study-meta {
    justify-content: flex-start;
    margin-top: 6px;
    font-size: 0.78rem;
  }

  .lesson-dashboard .study-card__button,
  .lesson-dashboard .study-card--audio .study-card__button,
  .lesson-dashboard .study-card--support:not(.study-card--audio) .study-card__button {
    grid-column: 2;
    width: 100%;
    min-height: 38px;
    margin-top: 0;
    border-radius: 10px;
    font-size: 0.82rem;
  }

  .lesson-dashboard .study-mobile-course {
    margin-top: 12px;
  }

  .lesson-dashboard .study-mobile-tip {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .lesson-dashboard .study-mobile-tip button {
    display: none;
  }
}

@media (max-width: 380px) {
  .lesson-dashboard .study-card--text {
    grid-template-columns: 74px minmax(0, 1fr);
    padding: 13px;
  }

  .lesson-dashboard .study-card--text > .course-3d-icon {
    width: 70px;
    height: 70px;
  }

  .lesson-dashboard .study-card--text h2 {
    font-size: 1rem;
  }

  .lesson-dashboard .study-card--text > p {
    font-size: 0.78rem;
  }

  .lesson-dashboard .study-card--support,
  .lesson-dashboard .study-card--audio {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 13px;
  }

  .lesson-dashboard .study-card-orb,
  .lesson-dashboard .study-card--audio .study-card-orb {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 980px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .lesson-layout,
  .lesson-shell,
  .lesson-canvas,
  .lesson-body,
  .lesson-main,
  .lesson-main--wide,
  .pdf-viewer,
  .media-player,
  .video-player,
  .audio-player {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .lesson-canvas {
    overflow-x: hidden;
  }

  .pdf-reader-toolbar {
    gap: 10px;
  }

  .pdf-reader-zoom {
    width: 100%;
  }

  .pdf-tool-btn {
    min-width: 42px;
  }
}

@media (max-width: 620px) {
  .video-volume--floating {
    display: none;
  }

  .video-controls {
    grid-template-columns: 34px minmax(0, 1fr) 48px 34px;
    gap: 7px;
    min-height: 44px;
    padding: 6px 8px 7px;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(180deg, rgba(7, 20, 47, 0.02), rgba(7, 20, 47, 0.74));
  }

  .video-controls .video-time {
    display: none;
  }

  .video-controls .video-control-btn {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .video-control-btn--play,
  .video-control-btn--fullscreen,
  .video-range,
  .video-speed-group {
    grid-column: auto;
    grid-row: auto;
  }

  .video-controls .video-range::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -5px;
  }

  .video-controls .video-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
  }

  .video-speed-group {
    display: grid;
    width: 48px;
    padding: 0;
    overflow: hidden;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
  }

  .video-speed-btn {
    display: none;
    min-width: 48px;
    min-height: 34px;
    border-radius: 11px;
    color: #ffffff;
    font-size: 0.68rem;
  }

  .video-speed-btn.is-active {
    display: inline-grid;
    place-items: center;
    background: #ffffff;
    color: var(--blue);
  }

  .pdf-frame-shell {
    height: min(68vh, 540px);
    border-radius: 0 0 16px 16px;
    -webkit-overflow-scrolling: touch;
  }

  .pdf-frame-stage {
    min-height: min(68vh, 540px);
  }

  .pdf-frame {
    height: min(68vh, 540px);
    min-height: min(68vh, 540px);
  }
}

@media (max-width: 760px) {
  .lesson-layout--pdf .lesson-shell--pdf {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .lesson-layout--pdf .lesson-canvas--pdf {
    height: 100%;
  }

  .lesson-layout--pdf .lesson-heading {
    display: none;
  }

  .lesson-layout--pdf .lesson-body--pdf {
    height: 100%;
    min-height: 0;
    padding: 6px 6px 0;
  }

  .lesson-layout--pdf .lesson-main--wide {
    height: 100%;
  }

  .lesson-layout--pdf .pdf-viewer {
    border-radius: 16px 16px 0 0;
  }

  .lesson-layout--pdf .pdf-mobile-reader {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .lesson-layout--pdf .pdf-mobile-pages {
    flex: 1 1 auto;
    max-height: none;
    min-height: 0;
    overflow: auto;
  }

  .lesson-layout--pdf .pdf-mobile-fallback {
    padding: 8px 10px;
    color: #53637a;
    font-size: 0.82rem;
    font-weight: 750;
    text-align: center;
  }

  .lesson-layout--pdf .lesson-body--pdf .pdf-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 0 0 16px 16px;
  }

  .lesson-layout--pdf .pdf-actions .btn {
    min-height: 46px;
  }

  .mobile-format-tabs {
    max-width: 100vw;
    box-sizing: border-box;
  }

  .format-tab {
    min-width: 0;
    flex: 1 1 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .lesson-body {
    overflow-x: hidden;
  }

  .lesson-article {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
  }

  .lesson-article blockquote,
  .lesson-article pre,
  .lesson-article .table-wrap,
  .lesson-image-block,
  .lesson-image-frame {
    max-width: 100%;
    box-sizing: border-box;
  }

  .lesson-body--pdf {
    padding-right: 8px;
    padding-left: 8px;
  }

  .lesson-body--pdf .pdf-frame-shell {
    display: none;
  }

  .lesson-body--pdf .pdf-mobile-reader {
    display: block;
  }

  .lesson-body--pdf .pdf-mobile-pages {
    max-height: 70vh;
  }

  .lesson-body--pdf .pdf-mobile-fallback {
    display: grid;
  }

  .lesson-body--pdf .pdf-reader-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
  }

  .lesson-body--pdf .pdf-actions {
    display: none;
  }

  .lesson-layout--pdf .lesson-body--pdf .pdf-actions {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .hero::after,
  .plan-card--featured::after,
  .cta-band::after,
  .review-card::after {
    animation: none;
  }

  .hero__content > .badge,
  .hero h1,
  .hero__visual-mobile,
  .hero__visual-mobile img,
  .hero__lead,
  .check-list li,
  .hero__actions,
  .trust-item {
    animation: none;
  }

  .reveal-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.mobile-account-head .logout-icon-btn {
  display: inline-flex;
}

.plan-card {
  min-height: 376px;
  padding: 18px;
}

.plan-badge {
  margin-bottom: 10px;
}

.plan-card h3 {
  margin: 5px 0 8px;
  font-size: 1.06rem;
}

.price {
  font-size: 1.7rem;
}

.plan-note {
  margin: 7px 0 12px;
  font-size: 0.86rem;
  line-height: 1.42;
}

.plan-card ul {
  gap: 7px;
  margin-bottom: 14px;
  line-height: 1.36;
}

.plan-card li {
  gap: 8px;
  font-size: 0.83rem;
}

.plan-card li .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.plan-card .btn {
  min-height: 44px;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef6ff 0%, #ffffff 72%);
}

.footer-cta h2 {
  margin: 5px 0 7px;
  color: #07142f;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.1;
}

.footer-cta p {
  max-width: 720px;
  margin: 0;
  color: #53637a;
  line-height: 1.5;
}

.footer-cta .btn {
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .modal {
    align-items: center;
    padding: 8px;
    overflow-y: auto;
  }

  .modal__panel,
  .modal.modal--wide .modal__panel,
  .modal__panel:has(.course-order-modal),
  .modal__panel:has(.support-contacts-modal),
  .modal__panel:has(.course-welcome-modal) {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 14px;
    border-radius: 18px;
    overflow: auto;
  }

  .modal__panel h2,
  .modal__panel:has(.course-order-modal) h2,
  .modal__panel:has(.support-contacts-modal) h2,
  .modal__panel:has(.course-welcome-modal) h2 {
    margin: 0 48px 8px 0;
    font-size: 1.22rem;
    line-height: 1.16;
  }

  .modal__close {
    top: 10px;
    right: 10px;
  }

  .course-order-fields {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .course-order-modal {
    gap: 9px;
  }

  .course-order-summary {
    gap: 6px;
    padding-bottom: 8px;
  }

  .course-order-line strong {
    font-size: 0.9rem;
  }

  .course-order-line span,
  .course-order-total,
  .course-order-form label:not(.course-order-consent) {
    font-size: 0.75rem;
  }

  .course-order-form {
    gap: 8px;
  }

  .course-order-form input[type="text"],
  .course-order-form input[type="email"],
  .course-order-form input[type="tel"] {
    min-height: 38px;
    border-radius: 9px;
    font-size: 0.9rem;
  }

  .course-order-consent {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    font-size: 0.68rem;
    line-height: 1.26;
  }

  .course-order-submit {
    min-height: 44px;
    border-radius: 11px;
  }

  .support-contact-grid,
  .support-contact-grid--vip,
  .course-welcome-steps {
    grid-template-columns: 1fr;
  }

  .support-contacts-modal,
  .course-welcome-modal {
    gap: 10px;
  }

  .support-contacts-hero {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 15px;
  }

  .support-contacts-hero > span {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .support-contacts-hero p {
    margin-top: 3px;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .support-message-preview {
    padding: 10px 11px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .support-contact-grid {
    gap: 8px;
  }

  .support-contact-btn {
    min-height: 52px;
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 14px;
  }

  .support-contact-btn__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .support-contact-btn strong {
    font-size: 0.9rem;
  }

  .course-welcome-hero {
    padding: 13px;
    border-radius: 16px;
  }

  .course-welcome-badge {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .course-welcome-hero h3 {
    margin: 11px 0 7px;
    font-size: 1.15rem;
    line-height: 1.16;
  }

  .course-welcome-hero p,
  .course-welcome-vip p {
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .course-welcome-steps {
    gap: 8px;
  }

  .course-welcome-steps article {
    min-height: 0;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px 10px;
    padding: 11px;
    border-radius: 14px;
  }

  .course-welcome-steps article .icon {
    grid-row: span 2;
    width: 20px;
    height: 20px;
  }

  .course-welcome-steps strong {
    font-size: 0.88rem;
  }

  .course-welcome-steps span {
    font-size: 0.76rem;
    line-height: 1.34;
  }

  .course-welcome-vip {
    padding: 12px;
    border-radius: 15px;
  }

  .course-welcome-actions {
    flex-direction: column;
    gap: 8px;
  }

  .course-welcome-actions .btn,
  .course-welcome-vip .btn {
    min-height: 42px;
    width: 100%;
    justify-content: center;
  }

  .modal__panel:has(.course-order-modal) {
    padding: 16px;
  }

  .footer-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-cta .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .modal__panel,
  .modal.modal--wide .modal__panel,
  .modal__panel:has(.course-order-modal),
  .modal__panel:has(.support-contacts-modal),
  .modal__panel:has(.course-welcome-modal) {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    padding: 12px;
    border-radius: 16px;
  }

  .course-order-form input[type="text"],
  .course-order-form input[type="email"],
  .course-order-form input[type="tel"] {
    min-height: 36px;
  }

  .course-order-consent {
    font-size: 0.64rem;
  }

  .course-welcome-hero h3 {
    font-size: 1.05rem;
  }

  .support-contacts-hero {
    grid-template-columns: 1fr;
  }
}
