:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #18202a;
  --muted: #687385;
  --line: #dfe4ea;
  --brand: #1f7a5b;
  --brand-dark: #155943;
  --danger: #b42318;
  --warning: #915930;
  --locked: #f4e8df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: #19212b;
  color: #fff;
  display: flex;
  gap: 20px;
  min-height: 58px;
  padding: 0 28px;
}

.topbar a {
  color: #fff;
}

.topbar nav {
  display: flex;
  flex: 1;
  gap: 16px;
}

.topbar form {
  margin: 0;
}

.reader-page .topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: #111827;
}

.reader-page .topbar a {
  color: #111827;
}

.reader-page .topbar button.secondary {
  background: #eef2f6;
  color: #111827;
}

.wrap {
  margin: 0 auto;
  max-width: 1160px;
  padding: 28px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.panel + .panel {
  margin-top: 18px;
}

.account-summary {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 18px;
}

.account-summary .panel {
  margin: 0;
}

.account-summary strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 8px;
}

.account-summary span {
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll table {
  min-width: 760px;
}

.muted {
  color: var(--muted);
}

.badge {
  background: #e8f4ef;
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
}

.badge.locked {
  background: var(--locked);
  color: var(--warning);
}

.btn,
button {
  background: var(--brand);
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
}

.btn.secondary,
button.secondary {
  background: #344054;
}

.btn.danger,
button.danger {
  background: var(--danger);
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  display: block;
  font: inherit;
  margin-top: 6px;
  padding: 10px;
  width: 100%;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
}

.row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack {
  display: grid;
  gap: 12px;
}

.lesson {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.lesson:first-child {
  border-top: 0;
}

.locked-box {
  background: var(--locked);
  border: 1px solid #e5cbb8;
  border-radius: 8px;
  padding: 14px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.admin-wrap {
  margin: 0;
  max-width: none;
  padding: 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 58px);
}

.admin-sidebar {
  background: #111827;
  border-right: 1px solid #202a37;
  color: #fff;
  padding: 22px 18px;
}

.admin-sidebar strong {
  display: block;
  font-size: 18px;
  margin-bottom: 18px;
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar a {
  border-radius: 7px;
  color: #cbd5e1;
  padding: 9px 10px;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: #243244;
  color: #fff;
}

.admin-content {
  min-width: 0;
  padding: 28px;
}

.admin-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-head h1 {
  margin: 0 0 4px;
}

.admin-search {
  align-items: end;
  display: flex;
  gap: 10px;
  min-width: min(420px, 100%);
}

.admin-search input {
  margin-top: 0;
}

.admin-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 18px;
}

.admin-metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.admin-metric span {
  color: var(--muted);
  font-size: 13px;
}

.admin-metric strong {
  font-size: 28px;
  line-height: 1;
}

.admin-metric small {
  color: var(--muted);
}

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

.admin-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-filters a {
  background: #eef2f6;
  border-radius: 999px;
  color: #344054;
  padding: 7px 11px;
}

.admin-filters a.active {
  background: var(--brand);
  color: #fff;
}

.admin-inline-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1.3fr) minmax(220px, 1.3fr) 110px auto;
}

.admin-inline-form input,
.admin-inline-form select {
  margin-top: 0;
}

.admin-kv {
  display: grid;
  gap: 10px;
  grid-template-columns: 150px minmax(0, 1fr);
  margin: 0;
}

.admin-kv dt {
  color: var(--muted);
}

.admin-kv dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-email-link {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 260px;
}

.admin-email-link .btn {
  min-height: 32px;
  padding: 6px 10px;
}

.admin-email-link code {
  background: #eef2f6;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #344054;
  display: block;
  font-size: 13px;
  max-width: 360px;
  overflow: hidden;
  padding: 5px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-failed,
.status-blocked,
.status-canceled {
  background: #fee4e2;
  color: #b42318;
}

.status-pending,
.status-pending_payment,
.status-waiting_for_capture {
  background: #fff4d6;
  color: #915930;
}

.status-paid_pending_password,
.status-received {
  background: #e0edff;
  color: #245b9f;
}

.status-expired,
.status-past_due {
  background: #ffead5;
  color: #b54708;
}

.status-succeeded,
.status-active,
.status-paid,
.status-processed,
.status-enabled {
  background: #dcfae6;
  color: #067647;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-sidebar nav {
    display: flex;
    flex-wrap: wrap;
  }

  .admin-content {
    padding: 18px;
  }

  .admin-head,
  .admin-search {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-grid-2,
  .admin-detail-grid,
  .admin-inline-form {
    grid-template-columns: 1fr;
  }
}

.login {
  margin: 8vh auto;
  max-width: 420px;
}

.reader-wrap {
  margin: 0;
  max-width: none;
  padding: 0;
}

.course-reader {
  background: #fff;
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  min-height: calc(100vh - 58px);
}

.course-sidebar {
  background: #f7f7f8;
  border-right: 1px solid var(--line);
  height: calc(100vh - 58px);
  overflow-y: auto;
  padding: 18px 20px 28px;
  position: sticky;
  top: 0;
}

.back-link {
  color: #1f2937;
  display: inline-flex;
  font-size: 14px;
  margin-bottom: 20px;
}

.course-sidebar h1 {
  font-size: 21px;
  line-height: 1.25;
  margin: 0 0 18px;
}

.course-progress {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.progress-bar {
  background: #e4e7ec;
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

.progress-bar span {
  background: #1d8bff;
  display: block;
  height: 100%;
}

.progress-meta {
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 8px;
}

.course-search {
  color: #1d8bff;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 22px;
}

.course-search input {
  background: #fff;
  margin-top: 8px;
}

.course-section {
  margin-bottom: 18px;
}

.course-section summary {
  cursor: pointer;
  font-weight: 700;
  line-height: 1.35;
  list-style-position: outside;
  margin-bottom: 10px;
  padding-left: 4px;
}

.course-module {
  margin: 8px 0 20px 22px;
}

.course-module-title {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.course-lesson-link {
  align-items: flex-start;
  border-radius: 6px;
  color: #111827;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  line-height: 1.45;
  margin: 2px 0;
  padding: 8px 10px;
}

.course-lesson-link.active {
  background: #eaf6ef;
  color: #1f7a36;
}

.course-lesson-link.locked {
  color: #8a8f98;
}

.lesson-state {
  color: #3aa657;
  flex: 0 0 auto;
  font-size: 13px;
}

.course-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.course-crumbs {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  min-height: 64px;
  padding: 22px 30px;
}

.lesson-reader {
  margin: 0 auto;
  max-width: 1220px;
  padding: 22px 48px 90px;
  width: 100%;
}

.lesson-kicker {
  border-bottom: 2px solid #1d8bff;
  color: #111827;
  font-weight: 700;
  margin-bottom: 28px;
  padding: 0 0 14px;
}

.lesson-kicker span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 400;
  margin-top: 4px;
}

.lesson-reader h1 {
  font-size: 44px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 26px;
  text-align: center;
}

.lesson-body {
  font-size: 19px;
  margin: 0 auto;
  max-width: 1040px;
}

.lesson-body h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  margin: 34px 0 18px;
  text-align: center;
}

.lesson-body h3 {
  font-size: 26px;
  font-weight: 500;
  margin: 28px 0 12px;
}

.lesson-files {
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding-top: 20px;
}

.lesson-actions {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  bottom: 0;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 10px 16px;
  position: sticky;
}

.locked-reader {
  max-width: 760px;
}

.admin-course-head,
.lesson-editor-head {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  margin-bottom: 18px;
  padding: 20px;
}

.add-module-form,
.inline-create {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

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

.course-status-actions,
.table-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.add-module-form input,
.inline-create input {
  margin-top: 0;
}

.notice {
  background: #fff8e7;
  border: 1px solid #ead7a1;
  border-radius: 8px;
  color: #6f520e;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.module-editor {
  margin-bottom: 18px;
}

.module-editor-head,
.block-editor-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.module-title-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 420px) auto;
  max-width: 620px;
}

.module-title-form label {
  font-weight: 600;
}

.module-title-form input {
  margin-top: 6px;
}

.admin-lessons {
  background: #f1f3f6;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
}

.admin-lesson-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  gap: 14px;
  min-height: 78px;
  padding: 14px 18px;
}

.admin-lesson-card small {
  color: var(--muted);
  display: block;
  margin-top: 5px;
}

.lesson-drag {
  color: #1874a8;
  font-size: 18px;
}

.block-toolbar {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 18px;
  padding: 0 0 14px;
}

.block-toolbar button {
  background: #f4f6f8;
  border: 1px solid var(--line);
  border-radius: 0;
  color: #1f2937;
  min-height: 34px;
  padding: 6px 12px;
}

.block-toolbar summary {
  background: #f4f6f8;
  border: 1px solid var(--line);
  color: #1f2937;
  cursor: pointer;
  display: inline-flex;
  min-height: 34px;
  padding: 7px 12px;
}

.block-toolbar summary::marker,
.insert-point summary::marker {
  content: "";
}

.block-type-picker {
  background: rgba(255, 255, 255, .97);
  border: 1px solid #c9d1dc;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .12);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 12px;
  padding: 18px;
}

.block-type-picker form {
  margin: 0;
}

.block-type-picker button {
  align-items: center;
  background: #fff;
  border: 1px solid #d4dbe4;
  border-radius: 0;
  color: #2b3340;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-height: 128px;
  padding: 16px;
  width: 100%;
}

.block-type-picker button:hover {
  border-color: var(--brand);
}

.block-type-picker span {
  font-size: 36px;
  line-height: 1;
}

.block-type-picker strong {
  font-size: 14px;
  font-weight: 400;
  text-align: center;
}

.blocks-list {
  display: block;
}

.block-editor {
  background: #fff;
  border: 0;
  border-bottom: 1px dashed #aeb6c2;
  border-top: 1px dashed #aeb6c2;
  margin: 0;
  padding: 18px 16px;
}

.block-editor .block-actions form {
  margin: 0;
}

.block-editor button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.block-actions {
  display: flex;
  gap: 8px;
}

.block-actions button {
  border-radius: 6px;
  min-height: 34px;
  min-width: 34px;
  padding: 6px 9px;
}

.block-actions .delete-icon {
  background: #f4f6f8;
  color: #1f2937;
}

.block-editor textarea {
  min-height: 110px;
}

.admin-media-preview {
  margin-top: 8px;
}

.admin-media-preview img,
.admin-media-preview video,
.admin-media-preview iframe {
  background: #111827;
  border: 0;
  display: block;
  max-width: 100%;
  width: min(100%, 720px);
}

.admin-media-preview img {
  background: transparent;
  border-radius: 6px;
  height: auto;
  object-fit: contain;
  width: min(100%, 640px);
}

.admin-media-preview video,
.admin-media-preview iframe {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
}

.secure-video {
  background: #111827;
  border-radius: 8px;
  display: block;
  overflow: hidden;
  position: relative;
  width: min(100%, 760px);
}

.secure-video video {
  display: block;
  width: 100%;
}

.video-shield {
  background: transparent;
  border: 0;
  bottom: 44px;
  cursor: pointer;
  left: 0;
  min-height: 0;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.video-shield::before {
  align-items: center;
  background: #1d9bf0;
  border-radius: 50%;
  color: #000;
  content: "▶";
  display: flex;
  font-size: 34px;
  height: 88px;
  justify-content: center;
  left: 50%;
  padding-left: 6px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
}

.secure-video.playing .video-shield::before {
  opacity: 0;
}

.admin-media-preview figcaption {
  color: var(--muted);
  margin-top: 8px;
}

.admin-file-preview {
  margin-top: 8px;
}

.admin-html-preview {
  margin-top: 8px;
}

.html-block-frame {
  background: #fff;
  border: 0;
  border-radius: 0;
  display: block;
  height: 640px;
  max-width: 100%;
  min-height: min(720px, calc(100vh - 180px));
  overflow: hidden;
  width: 100%;
}

.insert-point {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: -1px 0;
  min-height: 36px;
  position: relative;
  z-index: 1;
}

.insert-point::before {
  border-top: 1px dashed #aeb6c2;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 50%;
}

.insert-point summary {
  align-items: center;
  background: #05070a;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 26px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  min-height: 36px;
  opacity: 0;
  padding: 0;
  position: relative;
  transition: background .15s ease, opacity .15s ease;
  width: 36px;
  z-index: 2;
}

.insert-point:hover summary,
.insert-point[open] summary,
.blocks-list:focus-within .insert-point summary {
  opacity: 1;
}

.insert-point summary:hover {
  background: var(--brand);
}

.insert-point .block-type-picker {
  margin: 10px 0;
  max-width: 980px;
  width: 100%;
  z-index: 3;
}

.empty-state {
  text-align: center;
}

.content-block {
  margin: 24px 0;
}

.html-block {
  margin: 0 auto;
  max-width: 980px;
  width: 100%;
}

.task-block {
  background: #f6fbf8;
  border-left: 4px solid var(--brand);
  padding: 16px 18px;
}

.media-block img,
.media-block video,
.media-block iframe {
  border-radius: 8px;
  max-width: 100%;
}

.media-block img {
  display: block;
  height: auto;
  object-fit: contain;
  width: min(100%, 620px);
}

.media-block video,
.media-block iframe {
  aspect-ratio: 16 / 9;
  background: #111827;
  border: 0;
  display: block;
  width: min(100%, 760px);
}

.media-block .secure-video video,
.admin-media-preview .secure-video video {
  aspect-ratio: auto;
}

.media-block audio {
  width: 100%;
}

.file-resource {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 22px;
  padding: 14px 0;
}

.file-resource a {
  color: #2877c7;
  font-size: 20px;
  text-decoration: underline;
}

.file-size {
  color: #111827;
  min-width: 78px;
}

.file-icon {
  align-items: center;
  background: #eef2f6;
  border: 1px solid #cfd6df;
  border-radius: 4px;
  color: #344054;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.file-icon.pdf {
  background: #fff;
  border-color: #d6d6d6;
  color: #d01818;
  position: relative;
}

.file-icon.pdf::before {
  border-color: #d01818;
  border-style: solid;
  border-width: 3px 2px 2px;
  content: "";
  height: 24px;
  position: absolute;
  transform: rotate(-10deg);
  width: 18px;
}

.file-icon.pdf::after {
  background: #d01818;
  color: #fff;
  content: "PDF";
  font-size: 10px;
  padding: 1px 4px;
  position: relative;
}

.payment-page {
  background: #f7f9ff;
  color: #0d1530;
  font-family: Arial, sans-serif;
  min-width: 320px;
}

.payment-page main {
  overflow: hidden;
}

.pay-hero {
  background:
    radial-gradient(circle at 8% 5%, rgba(106, 71, 255, .34), transparent 28%),
    radial-gradient(circle at 58% 32%, rgba(30, 111, 255, .26), transparent 28%),
    linear-gradient(135deg, #020913 0%, #06152a 45%, #07113b 100%);
  color: #fff;
  min-height: 100vh;
  padding: 38px clamp(96px, 10vw, 180px) 22px;
}

.pay-hero-inner {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1.05fr) 150px 440px;
  margin: 0 auto;
  max-width: 1320px;
}

.pay-pill {
  background: linear-gradient(90deg, #7049ff, #5a35c9);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(98, 69, 255, .25);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 34px;
  padding: 10px 18px;
}

.pay-copy h1 {
  font-size: clamp(46px, 4vw, 62px);
  letter-spacing: 0;
  line-height: .98;
  margin: 0 0 28px;
}

.pay-copy h1 span,
.pay-section h2 span {
  color: #7650ff;
}

.pay-lead {
  color: #edf2ff;
  font-size: 17px;
  line-height: 1.48;
  margin: 0 0 42px;
  max-width: 650px;
}

.pay-audience {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(4, 124px);
  margin-bottom: 42px;
  max-width: 720px;
}

.pay-audience div {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.pay-audience span {
  align-items: center;
  background: rgba(82, 53, 190, .82);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(77, 51, 184, .28);
  display: inline-flex;
  color: #A78BFA;
  height: 64px;
  justify-content: center;
  margin: 0 0 14px;
  width: 64px;
}

.pay-svg {
  color: currentColor;
  height: 30px;
  width: 30px;
}

.pay-audience strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  min-height: 58px;
  text-align: center;
  width: 100%;
}

.pay-bonus {
  align-items: center;
  background: linear-gradient(135deg, rgba(48, 54, 145, .86), rgba(34, 40, 108, .92));
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(7, 13, 46, .28);
  display: flex;
  gap: 20px;
  margin-top: 46px;
  max-width: 640px;
  min-height: 92px;
  padding: 18px 28px;
}

.pay-bonus > span {
  align-items: center;
  background: rgba(98, 63, 217, .72);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .16);
  color: #A78BFA;
  display: inline-flex;
  flex: 0 0 auto;
  height: 60px;
  justify-content: center;
  width: 60px;
}

.pay-bonus strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.pay-bonus p {
  color: #e6ebff;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.pay-visual {
  min-height: 220px;
  position: relative;
}

.vk-cube {
  align-items: center;
  background: linear-gradient(145deg, #79a9ff, #1d58c7);
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(40, 103, 240, .38);
  display: flex;
  font-size: 42px;
  font-weight: 900;
  height: 112px;
  justify-content: center;
  left: 8px;
  position: absolute;
  text-transform: uppercase;
  top: 76px;
  transform: rotate(-14deg);
  width: 112px;
}

.pay-card {
  align-self: start;
  background: rgba(255, 255, 255, .98);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .25);
  color: #121a33;
  margin-top: 2px;
  padding: 30px 34px 26px;
}

.pay-card h2 {
  font-size: 20px;
  margin: 0 0 12px;
}

.pay-price {
  color: #6d42ee;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 18px;
}

.pay-note {
  color: #5c6378;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 24px;
}

.pay-list {
  display: grid;
  gap: 15px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.pay-list li {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  font-size: 13px;
  padding-left: 0;
}

.pay-check {
  color: #7C3AED;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.pay-reason > span {
  align-items: center;
  color: #fff;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.pay-form {
  display: grid;
  gap: 14px;
}

.pay-form input[type="email"] {
  border: 1px solid #d6dbe8;
  border-radius: 10px;
  font-size: 14px;
  height: 48px;
  margin: 0;
  padding: 0 16px;
}

.pay-form small,
.pay-form p {
  color: #7a8194;
  font-size: 11px;
  line-height: 1.35;
}

.pay-form label {
  align-items: flex-start;
  color: #2e3548;
  display: flex;
  font-size: 12px;
  font-weight: 400;
  gap: 11px;
  line-height: 1.35;
  margin: 0;
}

.pay-form input[type="checkbox"] {
  accent-color: #7047ff;
  flex: 0 0 auto;
  height: 16px;
  margin: 0;
  width: 16px;
}

.pay-form a {
  color: #6746de;
}

.pay-form b {
  color: #f04438;
}

.pay-form button {
  align-items: center;
  background: linear-gradient(90deg, #6d45f2, #6f2fe6);
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(104, 63, 227, .25);
  display: inline-flex;
  font-weight: 800;
  height: 52px;
  justify-content: center;
  line-height: 1.15;
  margin-top: 10px;
  padding: 0 18px;
  text-align: center;
  width: 100%;
}

.pay-form button:disabled {
  box-shadow: none;
  cursor: not-allowed;
  filter: grayscale(.18);
  opacity: .48;
}

.pay-form p {
  margin: 0;
  text-align: center;
}

.pay-section {
  margin: 0 auto;
  max-width: 1520px;
  padding: 38px clamp(96px, 10vw, 180px) 12px;
}

.pay-section h2 {
  font-size: 30px;
  letter-spacing: 0;
  margin: 0 0 26px;
  text-align: center;
}

.pay-feature-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, 1fr);
}

.pay-feature {
  background: #fff;
  border: 1px solid #dfe5f1;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(44, 57, 111, .06);
  min-height: 205px;
  padding: 22px 16px 18px;
  text-align: center;
}

.feature-icon {
  align-items: center;
  color: #507be2;
  display: flex;
  height: 64px;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon .pay-svg,
.pay-step-grid .pay-svg {
  color: #7C3AED;
  height: 40px;
  width: 40px;
}

.pay-feature h3 {
  font-size: 15px;
  margin: 0 0 14px;
}

.pay-feature p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.pay-reason-grid {
  display: grid;
  gap: 24px 58px;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 28px 8px;
}

.pay-reason {
  display: flex;
  gap: 18px;
  position: relative;
}

.pay-reason > span {
  flex: 0 0 auto;
  position: static;
}

.pay-reason strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.pay-reason p {
  color: #293247;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.pay-steps {
  padding-bottom: 46px;
}

.pay-step-grid {
  display: grid;
  gap: 42px;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  text-align: center;
}

.pay-step-grid article {
  position: relative;
}

.pay-step-grid article:not(:last-child)::after {
  background: #cfd6e7;
  content: "";
  height: 1px;
  left: calc(50% + 62px);
  position: absolute;
  top: 35px;
  width: calc(100% - 80px);
}

.pay-step-grid article > div {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe5f1;
  border-radius: 50%;
  box-shadow: 0 12px 25px rgba(74, 83, 140, .08);
  color: #6d42ee;
  display: inline-flex;
  height: 68px;
  justify-content: center;
  margin-bottom: 18px;
  width: 68px;
}

.pay-step-grid h3 {
  font-size: 15px;
  margin: 0 0 10px;
}

.pay-step-grid p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 250px;
}

.pay-footer {
  background: linear-gradient(135deg, #061326, #08183a);
  color: #fff;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr 1.1fr 1.35fr;
  padding: 34px clamp(96px, 10vw, 180px) 24px;
}

.pay-footer h3 {
  font-size: 17px;
  margin: 0 0 16px;
}

.pay-footer a,
.pay-footer p {
  color: #d6ddf2;
  display: block;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 4px;
}

.pay-vk-footer div {
  align-items: center;
  display: flex;
  gap: 14px;
}

.pay-vk-footer span {
  align-items: center;
  background: #4f8df7;
  border-radius: 10px;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  text-transform: uppercase;
  width: 42px;
}

.pay-vk-footer button {
  background: rgba(91, 72, 218, .55);
  border-radius: 10px;
  font-weight: 800;
  margin-top: 16px;
  min-width: 230px;
}

.pay-copyline {
  color: #a9b3cc !important;
  grid-column: 1 / -1;
  text-align: center;
}

@media (max-width: 1150px) {
  .pay-hero {
    padding-left: 46px;
    padding-right: 46px;
  }

  .pay-section,
  .pay-footer {
    padding-left: 46px;
    padding-right: 46px;
  }

  .pay-hero-inner {
    grid-template-columns: minmax(0, 1fr) 410px;
  }

  .pay-visual {
    display: none;
  }

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

@media (min-width: 1151px) and (max-height: 860px) {
  .pay-hero {
    padding-top: 28px;
    padding-bottom: 18px;
  }

  .pay-hero-inner {
    gap: 34px;
  }

  .pay-pill {
    margin-bottom: 26px;
  }

  .pay-copy h1 {
    font-size: clamp(42px, 3.7vw, 56px);
    margin-bottom: 22px;
  }

  .pay-lead {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .pay-audience {
    margin-bottom: 32px;
  }

  .pay-card {
    padding: 26px 30px 22px;
  }

  .pay-list {
    gap: 12px;
    margin-bottom: 22px;
  }

  .pay-form {
    gap: 11px;
  }

  .pay-form button {
    height: 48px;
    margin-top: 6px;
  }
}

@media (min-width: 1151px) and (max-height: 780px) {
  .pay-copy h1 {
    font-size: clamp(38px, 3.4vw, 50px);
  }

  .pay-audience span {
    height: 58px;
    width: 58px;
  }

  .pay-audience {
    margin-bottom: 22px;
  }

  .pay-bonus {
    margin-top: 54px;
    min-height: 84px;
    padding: 14px 24px;
  }

  .pay-price {
    font-size: 40px;
  }

  .pay-form label {
    font-size: 11.5px;
  }
}

@media (max-width: 900px) {
  .pay-hero {
    padding: 28px 18px 34px;
  }

  .pay-hero-inner {
    grid-template-columns: 1fr;
  }

  .pay-card {
    margin-top: 0;
  }

  .pay-audience,
  .pay-feature-grid,
  .pay-reason-grid,
  .pay-step-grid,
  .pay-footer {
    grid-template-columns: 1fr 1fr;
  }

  .pay-audience {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .pay-reason-grid {
    padding: 0;
  }

  .pay-step-grid article::after {
    display: none;
  }
}

@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .topbar nav {
    flex-wrap: wrap;
  }

  .wrap {
    padding: 18px;
  }

  .course-reader {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    height: auto;
    max-height: 46vh;
    position: relative;
  }

  .course-crumbs {
    padding: 16px 18px;
  }

  .lesson-reader {
    padding: 20px 18px 80px;
  }

  .lesson-reader h1 {
    font-size: 30px;
  }

  .lesson-body {
    font-size: 17px;
  }

  .lesson-body h2 {
    font-size: 28px;
  }

  .admin-course-head,
  .lesson-editor-head,
  .add-module-form,
  .inline-create,
  .module-title-form {
    grid-template-columns: 1fr;
  }

  .module-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-media-preview img,
  .admin-media-preview video,
  .admin-media-preview iframe,
  .media-block img,
  .media-block video,
  .media-block iframe {
    width: 100%;
  }

  .html-block-frame {
    height: 460px;
    width: 100%;
  }

  .pay-copy h1 {
    font-size: 44px;
  }

  .pay-lead {
    font-size: 17px;
  }

  .pay-audience span,
  .pay-bonus > span {
    height: 60px;
    width: 60px;
  }

  .pay-audience,
  .pay-feature-grid,
  .pay-reason-grid,
  .pay-step-grid,
  .pay-footer {
    grid-template-columns: 1fr;
  }

  .pay-audience {
    gap: 22px;
    justify-items: center;
  }

  .pay-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pay-card {
    padding: 24px 18px;
  }

  .pay-footer {
    padding: 28px 20px;
  }
}
