/*
  Уроки: выбор инструмента, каталог инструмента, страница урока.
  Тот же мир, что у главной (.hp) и страницы скачивания (.dl-hero): тёмно-синий первый экран,
  синий акцент, Nunito, мягкие карточки. Всё скоупится классом .lx на body.
*/
.lx {
  --lx-navy: #051b35;
  --lx-navy-2: #0b2a52;
  --lx-blue: #2568ef;
  --lx-blue-ink: #1b4fc0;
  --lx-blue-soft: #eaf1ff;
  --lx-ink: #14213d;
  --lx-text: #3a4760;
  --lx-muted: #5b6b82;
  --lx-line: #e4ecf7;
  --lx-bg: #f6f8fc;
  --lx-free: #0f7a4f;
  --lx-free-bg: #e3f6ec;
  --lx-radius: 16px;
  --lx-ease: cubic-bezier(.16, 1, .3, 1);
  --lx-shadow: 0 12px 30px rgba(9, 30, 66, .07);
  --lx-shadow-lift: 0 22px 48px rgba(9, 30, 66, .14);
  color: var(--lx-text);
}

.lx ::selection {
  background: rgba(37, 104, 239, .22);
  color: inherit;
}

.lx :focus-visible {
  outline: 3px solid rgba(37, 104, 239, .55);
  outline-offset: 3px;
}

.lx .navbar-container {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.lx h1,
.lx h2,
.lx h3 {
  color: var(--lx-ink);
  text-wrap: balance;
}

.lx-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Первый экран ---------- */

.lx-hero {
  position: relative;
  overflow: hidden;
  padding: 8.5rem 0 4.5rem;
  color: #fff;
  background:
    radial-gradient(1000px 620px at 88% 0%, rgba(37, 104, 239, .38), transparent 62%),
    radial-gradient(760px 520px at 0% 100%, rgba(255, 86, 79, .13), transparent 62%),
    var(--lx-navy);
}

.lx-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(circle at 60% 30%, #000 10%, transparent 72%);
  mask-image: radial-gradient(circle at 60% 30%, #000 10%, transparent 72%);
}

.lx-hero > .container {
  position: relative;
  z-index: 1;
}

.lx-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

.lx-hero .lx-lead {
  max-width: 38rem;
  color: rgba(255, 255, 255, .76);
  font-size: 1.125rem;
  line-height: 1.65;
}

.lx-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
}

.lx-crumbs a {
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
}

.lx-crumbs a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lx-crumbs li + li:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: .4rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .7;
}

/* ---------- Кнопки ---------- */

.lx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .85rem 1.6rem;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.lx-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.lx-btn-primary {
  background: var(--lx-blue);
  color: #fff;
  box-shadow: 0 14px 34px rgba(37, 104, 239, .4);
}

.lx-btn-primary:hover,
.lx-btn-primary:focus {
  color: #fff;
  background: #1f5ee0;
  box-shadow: 0 20px 44px rgba(37, 104, 239, .5);
}

.lx-btn-ghost {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  background: transparent;
}

.lx-btn-ghost:hover,
.lx-btn-ghost:focus {
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .06);
}

.lx-btn-light {
  border-color: var(--lx-line);
  background: #fff;
  color: var(--lx-ink);
}

.lx-btn-light:hover {
  color: var(--lx-blue);
  border-color: #cfe0f8;
}

/* ---------- Выбор инструмента ---------- */

.lx-instruments {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .lx-instruments {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lx-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--lx-navy-2);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 26px 60px rgba(2, 12, 28, .45);
  transition: transform .5s var(--lx-ease), box-shadow .5s var(--lx-ease);
}

@media (max-width: 767.98px) {
  .lx-tile {
    aspect-ratio: 16 / 11;
  }
}

.lx-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--lx-ease), filter .8s var(--lx-ease);
  filter: saturate(.92);
}

.lx-tile:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 27, 53, 0) 30%, rgba(5, 27, 53, .55) 58%, rgba(5, 27, 53, .94) 100%);
}

.lx-tile:hover,
.lx-tile:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-6px);
  box-shadow: 0 36px 80px rgba(2, 12, 28, .55);
}

.lx-tile:hover img,
.lx-tile:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.lx-tile-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem;
}

.lx-tile h2 {
  margin: 0 0 .35rem;
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: -.02em;
}

.lx-tile-count {
  color: rgba(255, 255, 255, .78);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lx-tile-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: var(--lx-blue);
  transition: transform .5s var(--lx-ease), background-color .3s ease, color .3s ease;
}

.lx-tile:hover .lx-tile-arrow {
  transform: translateX(4px);
  background: var(--lx-blue);
  color: #fff;
}

/* ---------- Как устроен урок ---------- */

.lx-section {
  padding: 5rem 0;
}

@media (min-width: 992px) {
  .lx-section {
    padding: 6rem 0;
  }
}

.lx-section-light {
  background: var(--lx-bg);
}

.lx-h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 1rem;
}

.lx-sub {
  max-width: 40rem;
  color: var(--lx-muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.lx-steps {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.lx-steps li {
  display: flex;
  gap: 1.1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--lx-line);
}

.lx-steps li:last-child {
  border-bottom: 1px solid var(--lx-line);
}

.lx-steps .lx-step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: var(--lx-blue-soft);
  color: var(--lx-blue);
}

.lx-steps .lx-step-icon .lx-icon {
  width: 24px;
  height: 24px;
}

.lx-steps h3 {
  margin: 0 0 .25rem;
  font-size: 1.15rem;
}

.lx-steps p {
  margin: 0;
  color: var(--lx-muted);
  line-height: 1.6;
}

/* окно программы */
.lx-window {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #dbe4f2;
  background: #fff;
  box-shadow: 0 30px 70px rgba(5, 27, 53, .18);
}

.lx-window-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  height: 36px;
  padding: 0 .9rem;
  border-bottom: 1px solid #e8eef7;
  background: #f4f7fb;
  font-size: .78rem;
  font-weight: 600;
  color: #7b8aa1;
}

.lx-window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9e1ee;
}

.lx-window-bar i:nth-child(1) {
  background: #ff6b5e;
}

.lx-window-bar i:nth-child(2) {
  background: #ffc140;
}

.lx-window-bar i:nth-child(3) {
  background: #2fcc5c;
}

.lx-window-bar span {
  margin-left: .5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lx-window img {
  display: block;
  width: 100%;
  height: auto;
}

.lx-stack {
  position: relative;
  padding: 0 0 3rem 3rem;
}

.lx-stack .lx-window:first-child {
  position: relative;
  z-index: 1;
  transform: rotate(-1.5deg);
}

.lx-stack .lx-window + .lx-window {
  position: absolute;
  right: -1rem;
  bottom: 0;
  z-index: 2;
  width: 62%;
  transform: rotate(2deg);
  box-shadow: 0 30px 70px rgba(5, 27, 53, .28);
}

@media (max-width: 991.98px) {
  .lx-stack {
    margin-top: 3rem;
    padding-left: 0;
  }

  .lx-stack .lx-window + .lx-window {
    right: 0;
  }
}

/* ---------- Финальный призыв ---------- */

.lx-cta {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.5rem;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(37, 104, 239, .5), transparent 65%),
    linear-gradient(135deg, #08294f 0%, var(--lx-navy) 60%, #0a2f5c 100%);
  box-shadow: 0 30px 70px rgba(5, 27, 53, .25);
}

@media (min-width: 768px) {
  .lx-cta {
    padding: 4.5rem 3rem;
  }
}

.lx-cta h2 {
  color: #fff;
  margin-bottom: .75rem;
}

.lx-cta p {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, .76);
  font-size: 1.125rem;
}

/* ---------- Каталог инструмента ---------- */

.lx-hero-list {
  padding-bottom: 3.5rem;
}

.lx-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: 2rem;
  padding: .35rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
}

.lx-switch a {
  padding: .55rem 1.1rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, .8);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.lx-switch a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.lx-switch a[aria-current="page"] {
  background: #fff;
  color: var(--lx-navy);
}

.lx-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, .72);
  font-weight: 600;
}

.lx-facts b {
  color: #fff;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  margin-right: .3rem;
}

.lx-hero-photo {
  position: relative;
  max-width: 420px;
  margin-left: auto;
}

.lx-hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 70px rgba(2, 12, 28, .5);
}

.lx-catalog {
  padding: 2.5rem 0 5rem;
  background: var(--lx-bg);
}

.lx-toolbar {
  position: sticky;
  top: .75rem;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  padding: .75rem;
  border-radius: 18px;
  border: 1px solid var(--lx-line);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 14px 34px rgba(9, 30, 66, .08);
}

.lx-search {
  position: relative;
  flex: 1 1 280px;
}

.lx-search .lx-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  color: #8796ad;
  transform: translateY(-50%);
  pointer-events: none;
}

.lx-search input {
  width: 100%;
  height: 50px;
  padding: 0 1rem 0 2.9rem;
  border-radius: 12px;
  border: 1px solid var(--lx-line);
  background: var(--lx-bg);
  color: var(--lx-ink);
  font-size: 1.0625rem;
  caret-color: var(--lx-blue);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.lx-search input::placeholder {
  color: #6f7e95;
}

.lx-search input:focus {
  outline: none;
  border-color: var(--lx-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 104, 239, .14);
}

.lx-count {
  margin-left: auto;
  padding-right: .5rem;
  color: var(--lx-muted);
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}

.lx-chips {
  display: flex;
  gap: .5rem;
  margin: 1.25rem 0 2rem;
  padding-bottom: .25rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #c9d5e8 transparent;
}

.lx-chip {
  flex: none;
  padding: .5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--lx-line);
  background: #fff;
  color: #445066;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.lx-chip:hover,
a.lx-chip:hover {
  text-decoration: none;
}

.lx-chip:hover {
  border-color: #cfe0f8;
  color: var(--lx-blue);
}

.lx-chip[aria-pressed="true"],
.lx-chip[aria-current="true"] {
  border-color: var(--lx-blue);
  background: var(--lx-blue);
  color: #fff;
}

.lx-chip small {
  margin-left: .3rem;
  font-size: .8rem;
  opacity: .7;
  font-variant-numeric: tabular-nums;
}

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

@media (min-width: 768px) {
  .lx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem 1.5rem;
  }
}

@media (min-width: 1200px) {
  .lx-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.lx-card {
  position: relative;
  min-width: 0;
}

.lx-card[hidden] {
  display: none;
}

.lx-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b2a52, var(--lx-navy));
  box-shadow: 0 10px 26px rgba(9, 30, 66, .12);
  transition: transform .45s var(--lx-ease), box-shadow .45s var(--lx-ease);
}

.lx-cover > a {
  display: block;
  height: 100%;
}

.lx-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--lx-ease);
}

.lx-cover-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(255, 255, 255, .35);
}

.lx-cover-empty .lx-icon {
  width: 44px;
  height: 44px;
}

.lx-card:hover .lx-cover {
  transform: translateY(-4px);
  box-shadow: var(--lx-shadow-lift);
}

.lx-card:hover .lx-cover img {
  transform: scale(1.05);
}

.lx-play {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--lx-blue);
  box-shadow: 0 10px 24px rgba(5, 27, 53, .3);
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px) scale(.92);
  transition: opacity .3s var(--lx-ease), transform .3s var(--lx-ease), background-color .2s ease, color .2s ease;
}

.lx-play .lx-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
}

.lx-play .lx-i-pause,
.lx-card.is-playing .lx-play .lx-i-play {
  display: none;
}

.lx-card.is-playing .lx-play .lx-i-pause {
  display: block;
}

.lx-card:hover .lx-play,
.lx-play:focus-visible,
.lx-card.is-playing .lx-play {
  opacity: 1;
  transform: none;
}

.lx-card.is-playing .lx-play {
  background: var(--lx-blue);
  color: #fff;
}

@media (hover: none) {
  .lx-play {
    opacity: 1;
    transform: none;
  }
}

/* полоски эквалайзера на играющей обложке */
.lx-eq {
  position: absolute;
  left: .75rem;
  bottom: .9rem;
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  padding: 6px 8px;
  box-sizing: content-box;
  border-radius: 8px;
  background: rgba(5, 27, 53, .72);
}

.lx-eq i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: #fff;
  transform-origin: bottom;
  animation: lx-eq 1s ease-in-out infinite;
}

.lx-eq i:nth-child(2) {
  animation-delay: -.4s;
}

.lx-eq i:nth-child(3) {
  animation-delay: -.7s;
}

.lx-card.is-playing .lx-eq {
  display: flex;
}

@keyframes lx-eq {
  0%, 100% {
    transform: scaleY(.3);
  }

  50% {
    transform: scaleY(1);
  }
}

.lx-card-body {
  padding: .9rem .15rem 0;
}

.lx-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 .2rem;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.lx-card-title {
  color: var(--lx-ink);
  text-decoration: none;
}

.lx-card-title:hover {
  text-decoration: none;
}

.lx-card-title:hover h3 {
  color: var(--lx-blue);
}

.lx-card-author {
  overflow: hidden;
  margin: 0;
  color: var(--lx-muted);
  font-size: .95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lx-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .6rem;
  margin-top: .6rem;
  font-size: .85rem;
  color: #6a7a92;
}

.lx-empty {
  padding: 4rem 1rem;
  text-align: center;
}

.lx-empty h3 {
  margin-bottom: .5rem;
}

.lx-empty p {
  margin-bottom: 1.5rem;
  color: var(--lx-muted);
}

.lx-more {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.lx-search-btn {
  flex: none;
  height: 50px;
}

/* Страницы каталога: обычные ссылки, переносятся на узком экране */
.lx-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 3rem;
}

.lx-pager ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lx-pager a,
.lx-pager span {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 .75rem;
  border-radius: 12px;
  border: 1px solid var(--lx-line);
  background: #fff;
  color: #445066;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lx-pager a:hover {
  border-color: var(--lx-blue);
  color: var(--lx-blue);
  text-decoration: none;
}

.lx-pager [aria-current="page"] {
  border-color: var(--lx-blue);
  background: var(--lx-blue);
  color: #fff;
}

/* ---------- Страница урока ---------- */

.lx-hero-lesson {
  padding-bottom: 5rem;
}

.lx-art {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

.lx-art-cover {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: var(--lx-navy-2);
  box-shadow: 0 34px 80px rgba(2, 12, 28, .55);
}

.lx-art-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.lx-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .9);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}

a.lx-tag:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
  text-decoration: none;
}

.lx-author {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, .8);
  font-size: 1.25rem;
  font-weight: 600;
}

.lx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.lx-note {
  margin-top: 1rem;
  color: rgba(255, 255, 255, .6);
  font-size: .925rem;
}

/* плеер */
.lx-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem 1rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lx-player-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--lx-blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 104, 239, .5);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.lx-player-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 36px rgba(37, 104, 239, .6);
}

.lx-player-btn .lx-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}

.lx-player-btn .lx-i-pause,
.lx-player.is-playing .lx-player-btn .lx-i-play {
  display: none;
}

.lx-player.is-playing .lx-player-btn .lx-i-pause {
  display: block;
}

.lx-player-main {
  flex: 1;
  min-width: 0;
}

.lx-player-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.lx-player-sub {
  margin: 0 0 .5rem;
  color: rgba(255, 255, 255, .62);
  font-size: .85rem;
}

.lx-player-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.lx-player-time {
  color: rgba(255, 255, 255, .7);
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lx-range {
  flex: 1;
  height: 6px;
  margin: 0;
  border-radius: 100px;
  background: linear-gradient(to right, #fff var(--p, 0%), rgba(255, 255, 255, .2) var(--p, 0%));
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.lx-range::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  -webkit-appearance: none;
  appearance: none;
}

.lx-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.lx-player audio {
  width: 100%;
}

.lx-player.is-enhanced audio {
  display: none;
}

.lx-player:not(.is-enhanced) .lx-player-btn,
.lx-player:not(.is-enhanced) .lx-player-bar {
  display: none;
}

/* скриншоты урока */
.lx-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin: 2.5rem 0 2rem;
}

.lx-control-label {
  margin-right: .6rem;
  color: var(--lx-muted);
  font-weight: 600;
  font-size: .95rem;
}

.lx-seg {
  display: inline-flex;
  padding: .3rem;
  border-radius: 12px;
  border: 1px solid var(--lx-line);
  background: #fff;
  box-shadow: 0 6px 16px rgba(9, 30, 66, .05);
}

.lx-seg button {
  padding: .5rem 1.1rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #445066;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.lx-seg button:hover {
  color: var(--lx-blue);
}

.lx-seg button[aria-pressed="true"] {
  background: var(--lx-navy);
  color: #fff;
}

.lx-shot {
  max-width: 980px;
  margin: 0 auto;
}

.lx-shot-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef3fa;
}

.lx-shot-stage > img,
.lx-shot-stage > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lx-shot-stage > video {
  object-fit: contain;
  background: #000;
}

.lx-shot-stage > [hidden] {
  display: none;
}

.lx-shot-stage.is-pending > img {
  filter: blur(3px) saturate(.7);
  opacity: .55;
  transform: scale(1.04);
}

.lx-pending {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: radial-gradient(closest-side, rgba(246, 248, 252, .9), rgba(246, 248, 252, .55));
}

.lx-shot-stage:not(.is-pending) .lx-pending {
  display: none;
}

.lx-pending-card {
  max-width: 26rem;
  padding: 1.75rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--lx-line);
  background: #fff;
  text-align: center;
  box-shadow: var(--lx-shadow-lift);
}

.lx-pending-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: var(--lx-blue-soft);
  color: var(--lx-blue);
}

.lx-pending-icon .lx-icon {
  width: 28px;
  height: 28px;
}

.lx-pending-card h3 {
  margin-bottom: .4rem;
  font-size: 1.25rem;
}

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

.lx-pending-card strong {
  color: var(--lx-ink);
}

/* описание и видео */
.lx-about {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.lx-about p {
  max-width: 68ch;
}

.lx-about .lx-about-desc {
  color: var(--lx-ink);
  white-space: pre-line;
}

.lx-about .lx-about-seo {
  color: var(--lx-muted);
  font-size: .975rem;
}

.lx-facts-list {
  display: flex;
  flex-wrap: wrap;
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--lx-line);
  background: #fff;
}

/* сетка линий без пустых ячеек: последний ряд растягивается */
.lx-facts-list div {
  flex: 1 1 150px;
  margin: 0 -1px -1px 0;
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--lx-line);
  border-bottom: 1px solid var(--lx-line);
}

.lx-facts-list dt {
  margin-bottom: .2rem;
  color: var(--lx-muted);
  font-size: .85rem;
  font-weight: 600;
}

.lx-facts-list dd {
  margin: 0;
  color: var(--lx-ink);
  font-weight: 700;
}

.lx-video {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(520px 300px at 80% 0%, rgba(37, 104, 239, .45), transparent 65%),
    var(--lx-navy);
  box-shadow: 0 26px 60px rgba(5, 27, 53, .22);
}

.lx-video:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 15%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 45%, #000 15%, transparent 75%);
}

.lx-video-inner {
  position: relative;
  padding: 1.5rem;
}

.lx-video-play {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
}

.lx-video-play .lx-icon {
  width: 28px;
  height: 28px;
  margin-left: 4px;
  fill: currentColor;
  stroke: none;
  opacity: .8;
}

.lx-video h3 {
  margin-bottom: .35rem;
  color: #fff;
  font-size: 1.25rem;
}

.lx-video p {
  max-width: 22rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, .7);
  font-size: .95rem;
}

@media (prefers-reduced-motion: reduce) {
  .lx *,
  .lx *:before,
  .lx *:after {
    transition: none !important;
    animation: none !important;
  }
}
