/* Shared reading sizes and the beginner path. Arabic practice keeps its own sizing. */
.home-page .hero-title,
.vocabulary-lesson .hero h1,
.grammar-lesson .hero h1,
.culture-lesson .hero h1,
.level-test-page #welcome-title {
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.18;
  letter-spacing: -.8px;
}

.home-page .benefits h2,
.home-page .section-heading h2,
.home-page .podcast-heading h2,
.home-page .section-head h2,
.home-page .darja-signup h2,
.home-page .faq > h2,
.home-page .about h2,
.vocabulary-lesson .sec-head h2,
.vocabulary-lesson .free h2,
.grammar-lesson .section h2,
.culture-lesson .section h2 {
  font-size: clamp(25px, 2.5vw, 32px);
  line-height: 1.3;
  letter-spacing: -.4px;
}

.home-page .section-heading h2 em,
.home-page .podcast-heading h2 em,
.home-page .section-head h2 em,
.vocabulary-lesson .sec-head h2 em {
  font-size: 1em;
}

.home-page .hero-text p {
  max-width: 54ch;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.home-page .hero-start-btn,
.home-page .hero-test-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid var(--darja-line-202, #cf91ae);
  border-radius: 999px;
  color: var(--darja-fg-203, #542740);
  font: 600 15px/1.45 "Poppins", sans-serif;
  text-align: center;
  text-decoration: none;
}

.home-page .hero-start-btn {
  background: var(--darja-bg-204, #edb6cc);
}

.home-page .hero-test-btn {
  background: var(--darja-bg-8, #fff);
}

.home-page .hero-start-btn:hover,
.home-page .hero-test-btn:hover {
  background: var(--darja-bg-205, #f6dce7);
  color: var(--darja-fg-203, #542740);
}

.vocabulary-lesson .hero .btn {
  color: var(--darja-fg-203, #542740);
}

.home-page .hero-start-btn:focus-visible,
.home-page .hero-test-btn:focus-visible,
.beginner-steps a:focus-visible,
.beginner-all-link:focus-visible {
  outline: 3px solid var(--darja-line-206, #884565);
  outline-offset: 4px;
}

.lesson-library-page .intro h1 {
  font-size: clamp(30px, 3.3vw, 40px);
  line-height: 1.25;
}

.lesson-library-page .section-head h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.3;
}

.lesson-library-page .card-body h3 {
  font-size: 22px;
  line-height: 1.4;
}

.lesson-library-page .category.active,
.vocabulary-lesson .btn-primary {
  color: var(--darja-fg-203, #542740);
}

.level-test-page #completion-title,
.level-test-page #result-title {
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.25;
}

.level-test-page #question-title {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.35;
}

.podcast-page .transcript-hero p,
.podcast-page .transcript-description {
  font-size: 16px;
  line-height: 1.75;
}

.podcast-page .transcript-library-heading p,
.podcast-page .transcript-included,
.podcast-page .transcript-listen a {
  font-size: 14px;
  line-height: 1.6;
}

.podcast-page .transcript-related {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.podcast-page .transcript-related a,
.home-page .faq a {
  color: var(--darja-fg-211, #884565);
  text-underline-offset: 3px;
}

.conversation-lesson .text-terracotta-400,
.conversation-lesson .text-terracotta-500 {
  color: var(--darja-fg-211, #884565);
}

.beginner-path {
  width: min(1100px, calc(100% - 40px));
  margin: 24px auto 40px;
  padding: 0;
  scroll-margin-top: 190px;
  color: var(--darja-fg-63, #3f4c4a);
}

.beginner-path-heading {
  max-width: 740px;
  margin: 0 0 20px;
}

.beginner-kicker {
  display: block;
  margin: 0 0 8px;
  color: var(--darja-fg-211, #884565);
  font: 600 13px/1.5 "Poppins", sans-serif;
}

.beginner-path h2 {
  margin: 0 0 10px;
  font: 600 clamp(25px, 2.5vw, 32px)/1.3 Georgia, "Times New Roman", serif;
  letter-spacing: -.4px;
}

.beginner-path-heading p {
  margin: 0;
  color: var(--darja-fg-254, #59635f);
  font-size: 16px;
  line-height: 1.75;
}

.beginner-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.beginner-steps li {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.beginner-steps a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--darja-line-255, #e3d9e3);
  border-radius: 20px;
  color: var(--darja-fg-63, #3f4c4a);
  background: var(--darja-bg-8, #fff);
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}

.beginner-steps a:hover {
  border-color: var(--darja-line-202, #cf91ae);
  background: var(--darja-bg-256, #fffafd);
}

.learning-step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 50%;
  background: var(--darja-bg-65, #f8dce8);
  color: var(--darja-fg-199, #69475a);
  font-size: 16px;
  font-weight: 700;
}

.beginner-steps h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
}

.beginner-steps p {
  margin: 0;
  color: var(--darja-fg-254, #59635f);
  font-size: 16px;
  line-height: 1.7;
}

.learning-step-meta {
  margin-top: auto;
  color: var(--darja-fg-199, #69475a);
  font-size: 13px;
  line-height: 1.6;
}

.learning-step-action,
.beginner-all-link {
  color: var(--darja-fg-211, #884565);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.beginner-all-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .home-page .hero-title,
  .vocabulary-lesson .hero h1,
  .grammar-lesson .hero h1,
  .culture-lesson .hero h1,
  .level-test-page #welcome-title {
    font-size: clamp(30px, 7.5vw, 36px);
    line-height: 1.22;
    letter-spacing: -.5px;
  }

  .beginner-path {
    width: calc(100% - 36px);
    margin-top: 20px;
    scroll-margin-top: 190px;
  }

  .beginner-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .beginner-steps a {
    padding: 20px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .home-page .hero-start-btn,
  .home-page .hero-test-btn {
    flex: 1 1 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beginner-steps a {
    transition: none;
  }
}
