.hero-visual > img,
.lesson-hero img,
.module-head img {
  object-position: top left;
}

.hero-visual > img {
  aspect-ratio: 16 / 10;
}

.app-shot {
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #f7f8fc;
  box-shadow: var(--shadow);
}

.app-shot-gallery {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

.app-shot-gallery .app-shot {
  margin: 0;
}

.app-shot img {
  width: 100%;
  height: auto;
}

.app-shot figcaption {
  padding: .9rem 1rem;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.lesson-hero.without-image {
  grid-template-columns: 1fr minmax(260px, .55fr);
}

.lesson-hero-no-image {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: .45rem;
  padding: 2rem;
  border: 1px dashed #aeb7cf;
  border-radius: 1.1rem;
  color: #28314d;
  background: linear-gradient(145deg, #f7f8fc, #eef1fb);
}

.lesson-hero-no-image strong {
  font-size: 1.15rem;
}

.lesson-hero-no-image span {
  color: var(--muted);
}

.quick-access {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 2.2rem;
  padding: 1.35rem;
  border: 1px solid #cad5ff;
  border-radius: 1rem;
  background: #f6f8ff;
}

.quick-access h2,
.practice-check h2,
.safe-test h2 {
  margin: .25rem 0 .55rem;
}

.quick-access p,
.practice-check p,
.safe-test p {
  margin: .35rem 0;
}

.quick-access .button {
  white-space: nowrap;
}

.exact-path {
  color: #29355a;
}

.preparation-list,
.practice-check ul {
  display: grid;
  gap: .7rem;
  padding: 0;
  list-style: none;
}

.preparation-list li,
.practice-check li {
  position: relative;
  padding: .9rem 1rem .9rem 2.7rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #fff;
}

.preparation-list li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  color: #176c4d;
  font-weight: 900;
}

.beginner-note,
.no-screen-note,
.safe-test,
.practice-check {
  margin: 1.6rem 0 2rem;
  padding: 1.2rem 1.3rem;
  border-radius: 1rem;
}

.beginner-note {
  border-left: 4px solid #5b4bff;
  background: #f5f3ff;
}

.beginner-note p,
.no-screen-note p {
  margin: .4rem 0 0;
}

.no-screen-note {
  border: 1px solid #d7dceb;
  background: #f7f8fb;
}

.concept-card {
  margin: .85rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid #c8cff4;
  background: #fafbff;
}

.concept-card h3,
.concept-card p {
  margin: 0;
}

.concept-card p {
  margin-top: .35rem;
}

.detailed-steps {
  display: grid;
  gap: .9rem;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.detailed-steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: .8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: #fff;
}

.detailed-steps li::before {
  content: none;
}

.step-number {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #4b34e6;
  font-weight: 900;
}

.detailed-steps strong,
.detailed-steps small,
.practice-check li strong,
.practice-check li small {
  display: block;
}

.detailed-steps small,
.practice-check li small {
  margin-top: .4rem;
  color: var(--muted);
  line-height: 1.5;
}

.practice-check {
  border: 1px solid #b9e2cf;
  background: #f2fbf7;
}

.practice-check li {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: .6rem;
  padding-left: 1rem;
}

.practice-check li > span {
  color: #176c4d;
  font-size: 1.25rem;
  font-weight: 900;
}

.safe-test {
  border: 1px solid #f0d7a7;
  background: #fffaf0;
}

.safe-test ol {
  margin-bottom: 0;
}

.lesson-hero-actions {
  display: grid;
  gap: .55rem;
  justify-items: start;
  margin-top: 1.2rem;
}

.lesson-hero-actions .button {
  box-shadow: 0 12px 30px rgba(57, 50, 214, .24);
}

.lesson-hero-actions small {
  color: var(--muted);
  line-height: 1.45;
}

.direct-address {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .88rem;
}

.instructor {
  grid-template-columns: 150px 1fr;
  padding: 2rem;
}

.instructor-mark {
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  color: #fff;
  font-size: 2.1rem;
  font-weight: 950;
  background: linear-gradient(145deg, #2163ff, #8d2df2);
  box-shadow: 0 18px 45px rgba(32, 80, 230, .35);
}

@media (max-width: 680px) {
  .instructor {
    grid-template-columns: 1fr;
  }

  .instructor-mark {
    width: 86px;
    height: 86px;
    border-radius: 24px;
    font-size: 1.45rem;
  }

  .app-shot {
    border-radius: .85rem;
  }

  .quick-access,
  .lesson-hero.without-image {
    grid-template-columns: 1fr;
  }

  .quick-access .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .lesson-hero-actions {
    justify-items: stretch;
  }

  .lesson-hero-actions .button {
    text-align: center;
  }
}
