/* Free course landing (/youtube-basics, /ru/youtube-basics, /es/youtube-basics). Prefix: yb-. Uses the home template and global tokens. */

.yb-hero,
.yb-section {
  --yb-pill: #c9eef1;
  --yb-card-line: #e3e3e8;
  --yb-card-shadow: 0 8px 24px rgba(25, 11, 40, 0.06);
}

/* ---------- Hero: the author's photo behind the text, sized by the shared hero variables ---------- */
.yb-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--hero-header));
  padding: var(--hero-pad) 0 var(--hero-safe-bottom);
  overflow: hidden;
  background: #0d0d10;
  color: #ffffff;
}
.yb-hero > .home-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}
.yb-hero__pic {
  position: absolute;
  inset: 0;
  margin: 0;
}
.yb-hero__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 30%;
}
.yb-hero__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 16, 0.55) 0%, rgba(13, 13, 16, 0.82) 45%, rgba(13, 13, 16, 0.95) 100%);
}
.yb-hero__text {
  min-width: 0;
  max-width: 640px;
}
.yb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--hero-gap);
  padding: 6px 16px 6px 10px;
  border: 1px solid rgba(79, 211, 227, 0.7);
  border-radius: 999px;
  background: rgba(13, 13, 16, 0.55);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.yb-kicker svg {
  flex: none;
  color: #4fd3e3;
}
.yb-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: var(--hero-h1);
  line-height: 1.08;
}
.yb-lead {
  margin: var(--hero-gap) 0 0;
  font-size: var(--hero-lead);
  line-height: var(--hero-lead-lh);
}
.yb-hero__sub {
  margin: 10px 0 0;
  color: #e4e4ea;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.yb-hero .yb-cta {
  margin-top: var(--hero-gap);
}
.yb-hero .yb-cta .button {
  min-height: var(--hero-cta-h);
  font-size: var(--hero-cta-fs);
  line-height: 1.2;
}
.yb-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.yb-badges li {
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(13, 13, 16, 0.5);
  font-size: 0.8125rem;
  font-weight: 600;
}
.yb-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 420px;
  margin: 16px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  background: rgba(13, 13, 16, 0.55);
  list-style: none;
}
.yb-stats li {
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  line-height: 1.15;
}
.yb-stats li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.75);
}
.yb-stats strong {
  font-size: 1.25rem;
  font-weight: 600;
}
.yb-stats span {
  color: #e4e4ea;
  font-size: 0.75rem;
}

/* Call to action (the course is free: plain links, no prices widget) */
.yb-cta {
  margin: 32px 0 0;
}
.yb-cta .button {
  display: inline-flex;
  align-items: center;
  width: min(100%, 440px);
  min-height: 56px;
  text-align: center;
}
.yb-section .yb-cta {
  text-align: center;
}

/* ---------- Sections ---------- */
.yb-section {
  padding: 56px 0;
}
.yb-section--soft {
  background: #f3f3f1;
}
.yb-pill {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--yb-pill);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.template-home .yb-section h2 {
  max-width: 30em;
  margin: 0 0 14px;
  font-size: var(--h2);
  line-height: 1.12;
  text-wrap: balance;
}
.yb-sub {
  max-width: 62em;
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}
.yb-sub + .yb-sub {
  margin-top: 10px;
}
.yb-section--center {
  text-align: center;
}
.yb-section--center h2,
.yb-section--center .yb-sub {
  margin-left: auto;
  margin-right: auto;
}
.yb-figure {
  margin: 32px 0 0;
}
.yb-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.yb-figure--map img {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 0;
}
.yb-figure--shadow img {
  box-shadow: var(--shadow);
}
.yb-after {
  margin: 28px 0 0;
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Cards: shared look */
.yb-grid {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.yb-card {
  padding: 22px 22px 24px;
  border: 1px solid var(--yb-card-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--yb-card-shadow);
}
.template-home .yb-card h3 {
  margin: 0 0 10px;
  font-size: var(--h3);
  line-height: 1.25;
}
.yb-card p {
  margin: 0;
  color: #3d3d46;
  line-height: 1.55;
}

/* Numbered cards (who it is for, roadmap) */
.yb-grid--num {
  counter-reset: yb-num;
}
.yb-grid--num > li {
  counter-increment: yb-num;
}
.yb-grid--num > li::before {
  content: counter(yb-num);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent-ink);
  color: #ffffff;
  font-weight: 700;
}

/* Course program */
.yb-program {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.yb-lesson {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--yb-card-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--yb-card-shadow);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
a.yb-lesson:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
a.yb-lesson:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.template-home .yb-lesson h3 {
  margin: 0 0 10px;
  font-size: var(--h3);
  line-height: 1.25;
}
a.yb-lesson h3 {
  color: var(--ink);
}
.yb-lesson p {
  margin: 0;
  color: #2a2a33;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.yb-lesson ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.yb-lesson li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.yb-lesson li svg {
  flex: none;
  color: var(--accent-ink);
}
.yb-lesson__go {
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent-ink);
  font-weight: 700;
}
.yb-lesson--soon {
  border-style: dashed;
  background: #f7f7f8;
  box-shadow: none;
}
.yb-lesson--soon h3,
.yb-lesson--soon p,
.yb-lesson--soon li {
  color: var(--muted);
}

/* Authors */
.yb-authors {
  display: grid;
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.yb-author {
  overflow: hidden;
  border-radius: 16px;
  background: #f5f6fd;
}
.yb-author img,
.yb-case img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  object-fit: cover;
}
.yb-author__text {
  padding: 20px 22px 24px;
}
.template-home .yb-author h3,
.template-home .yb-case h3 {
  margin: 0 0 10px;
  font-family: var(--font-text);
  font-size: var(--h3);
  font-weight: 600;
}
.yb-author p,
.yb-case p {
  margin: 0;
  line-height: 1.55;
}
.yb-author p + p {
  margin-top: 14px;
}
.yb-facts {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.yb-facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border: 1px solid var(--yb-card-line);
  border-radius: 16px;
  background: #ffffff;
}
.yb-facts strong {
  font-family: var(--font-head);
  font-size: 1.125rem;
}
.yb-cases {
  display: grid;
  gap: 24px;
  margin: 40px 0 0;
  text-align: left;
}
.yb-case {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #f5f6fd;
}
.yb-case h3 {
  padding: 18px 22px 0;
}
.yb-case img {
  object-fit: contain;
  background: #ffffff;
}
.yb-case--photo img {
  object-fit: cover;
}
.yb-case p {
  padding: 16px 22px 22px;
}

/* Income models */
.yb-models {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.yb-models li {
  flex: 1 1 100%;
  padding: 22px;
  border: 1px solid;
  border-radius: 14px;
  text-align: center;
}
.template-home .yb-models h3 {
  margin: 0 0 8px;
  font-size: var(--h3);
}
.yb-models p {
  margin: 0;
}
.yb-models .yb-model--1 { background: #eef4ff; border-color: #c8d8f5; }
.yb-models .yb-model--1 h3 { color: #1d4ed8; }
.yb-models .yb-model--2 { background: #f3f1ff; border-color: #d6d0f5; }
.yb-models .yb-model--2 h3 { color: #6025c8; }
.yb-models .yb-model--3 { background: #ecfbf3; border-color: #bfe6d0; }
.yb-models .yb-model--3 h3 { color: #166534; }
.yb-models .yb-model--4 { background: #edfaf5; border-color: #bfe6d8; }
.yb-models .yb-model--4 h3 { color: #1f3b4d; }
.yb-models .yb-model--5 { background: #fff1f1; border-color: #f0cccc; }
.yb-models .yb-model--5 h3 { color: #a01b1b; }

/* First step list */
.yb-steps {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: yb-step;
}
.yb-steps li {
  position: relative;
  padding: 18px 20px 18px 72px;
  border: 1px solid var(--yb-card-line);
  border-radius: 12px;
  background: #ffffff;
  counter-increment: yb-step;
}
.yb-steps li::before {
  content: counter(yb-step);
  position: absolute;
  top: 16px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d92d3a;
  color: #ffffff;
  font-weight: 700;
}
.template-home .yb-steps h3 {
  margin: 4px 0 8px;
  font-size: var(--h3);
}
.yb-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Audio intro */
.yb-section--audio {
  padding: 32px 0 8px;
}
.yb-audio {
  max-width: 560px;
  margin: 0;
}
.yb-audio__intro {
  margin: 0 0 14px;
  font-size: 1.0625rem;
}
.yb-audio__player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--yb-card-line);
  border-radius: 14px;
  background: #ffffff;
}
.yb-audio__player img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}
.yb-audio__body {
  flex: 1;
  min-width: 0;
}
.yb-audio__title {
  margin: 0 0 6px;
  font-size: 0.875rem;
}
.yb-audio__title span {
  color: var(--muted);
}
.yb-audio audio {
  display: block;
  width: 100%;
  height: 40px;
}

/* Sources */
.yb-sources {
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.yb-sources a {
  color: var(--accent-ink);
}

/* Final call */
.yb-section--final {
  padding: 72px 0;
  background: var(--cta-band-bg);
  color: #ffffff;
}
.template-home .yb-section--final h2 {
  color: #ffffff;
}
.yb-section--final .yb-sub {
  color: #ffffff;
}

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  .yb-grid,
  .yb-program,
  .yb-authors,
  .yb-facts,
  .yb-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .yb-models li {
    flex: 0 1 calc(50% - 8px);
  }
}
@media (min-width: 960px) {
  .yb-hero__pic {
    left: 38%;
  }
  .yb-hero__pic::after {
    background: linear-gradient(90deg, #0d0d10 0%, rgba(13, 13, 16, 0.75) 22%, rgba(13, 13, 16, 0.15) 55%, rgba(13, 13, 16, 0) 100%);
  }
  .yb-hero__pic img {
    object-position: 50% 25%;
  }
  .yb-section {
    padding: 80px 0;
  }
  .yb-section--audio {
    padding: 40px 0 0;
  }
  .yb-grid--3,
  .yb-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .yb-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .yb-grid--5 .yb-card {
    padding: 18px;
  }
  .yb-models li {
    flex: 0 1 calc(33.333% - 11px);
  }
}
@media (max-width: 479px) {
  .yb-hero .yb-cta .button {
    padding-left: 20px;
    padding-right: 20px;
  }
  .yb-kicker {
    font-size: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .yb-lesson {
    transition: none;
  }
  a.yb-lesson:hover {
    transform: none;
  }
}
