/* Homepage sections. Tokens, slides, buttons and cards come from system.css. */

.jn-home {
  --hp-radius: 1.25rem;
  --hp-soft: rgb(255 255 255 / .08);
  --hp-line: rgb(255 255 255 / .16);
  overflow-x: clip;
}
.jn-home .jn-slide--white :is(.jn-section-heading h2, h2) { color: var(--jn-green); }
.jn-home .jn-section-heading h2 { letter-spacing: -.02em; }
.jn-home .jn-section-heading { margin-bottom: 2.25rem; }

/* Light surfaces inside green slides keep dark text tokens. */
.jn-home :is(.hp-partners__grid li, .hp-review, .hp-quiz__card, .jn-faq-item, .hp-compare__col--with) { --jn-text: #111; --jn-muted: #666; color: #111; }

/* Shared homepage pieces */
.hp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.hp-button--ghost { color: #fff; border-color: rgb(255 255 255 / .35); background: transparent; }
.hp-button--ghost:hover { border-color: var(--jn-orange); color: #fff; }
.hp-photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--hp-radius); background: var(--jn-cream); }
.hp-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hp-links { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin-top: 1.75rem; }
.hp-links a { color: var(--jn-orange); font-size: .875rem; font-weight: 700; text-decoration: none; }
.hp-links a:hover { text-decoration: underline; }

/* Hero */
.hp-hero { position: relative; overflow: hidden; display: flex; align-items: center; }
.hp-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 4rem; align-items: center; }
.hp-badge { display: inline-block; margin-bottom: 1.5rem; padding: .4rem .85rem; border-radius: .4rem; background: var(--jn-orange); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hp-hero h1 { max-width: 40rem; font-size: clamp(1.75rem, 3.2vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.hp-hero h1 span { color: var(--jn-orange); }
.hp-hero__lead { max-width: 36rem; margin-top: 1.25rem; font-size: clamp(.9375rem, 1.6vw, 1.125rem); line-height: 1.75; color: rgb(255 255 255 / .78); }
.hp-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.hp-chips a { display: inline-block; padding: .35rem .85rem; border: 1px solid var(--hp-line); border-radius: 999px; background: var(--hp-soft); color: rgb(255 255 255 / .88); font-size: .75rem; font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.hp-chips a:hover { border-color: var(--jn-orange); background: rgb(255 111 63 / .12); color: #fff; }
.hp-stats { display: flex; flex-wrap: wrap; gap: 1rem 2.75rem; margin: 2.5rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--hp-line); }
.hp-stats div { display: flex; flex-direction: column-reverse; }
.hp-stats dt { font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: #fff; }
.hp-stats dd { margin: .35rem 0 0; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.hp-hero__brand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 3rem 2rem; border: 1px solid var(--hp-line); border-radius: 50%; aspect-ratio: 1; justify-content: center; background: radial-gradient(circle at 50% 40%, rgb(255 255 255 / .09), transparent 70%); text-align: center; }
.hp-hero__brand img { position: relative; width: min(100%, 15rem); height: auto; }
.hp-hero__brand p { position: relative; }
.hp-hero__brand p { max-width: 14rem; font-size: .8125rem; line-height: 1.6; color: rgb(255 255 255 / .65); }

/* Free guide */
.jn-home .hp-guide { padding-block: 2.5rem; border-bottom: 1px solid var(--jn-border); }
/* The events calendar opens the page, right under the hero; the guide follows it. */
.jn-home .hp-guide--calendar { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.hp-guide--calendar .jn-calendar { margin: 0 0 2.5rem; }
.hp-guide--calendar .hp-guide__inner { padding-top: 2.5rem; border-top: 1px solid var(--jn-border); }
.hp-guide__inner { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 1.75rem; align-items: center; }
.hp-guide__art { width: 5.5rem; height: auto; }
.hp-guide .jn-eyebrow { margin-bottom: .4rem; }
.jn-home .hp-guide h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.hp-guide p { margin-top: .35rem; font-size: .9375rem; color: var(--jn-muted); }

/* Why: photo + comparison */
.hp-why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; align-items: stretch; }
.hp-why__photo img { aspect-ratio: auto; min-height: 100%; }
.hp-why__photo figcaption { position: absolute; inset: auto 0 0; padding: 7rem 1.5rem 1.5rem; background: linear-gradient(transparent, rgb(1 40 35 / .78) 45%, rgb(1 40 35 / .95)); color: #fff; font-size: .9375rem; font-style: italic; line-height: 1.6; }
.hp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp-compare__col { padding: 1.75rem; border-radius: var(--hp-radius); }
.hp-compare__col h3 { margin-bottom: 1.25rem; font-size: 1rem; letter-spacing: .02em; }
.hp-compare__col ul { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.hp-compare__col li { display: grid; gap: .3rem; font-size: .9375rem; line-height: 1.6; }
.hp-compare__col strong { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.hp-compare__col--without { border: 1px solid var(--hp-line); color: rgb(255 255 255 / .78); }
.hp-compare__col--without h3 { color: #fff; }
.hp-compare__col--without strong { color: rgb(255 255 255 / .55); }
.hp-compare__col--with { background: #fff; }
.hp-compare__col--with h3 { color: var(--jn-green); }
.hp-compare__col--with strong { color: var(--jn-orange-dark); }

/* Doubts */
.hp-doubts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: start; }
.hp-doubts__intro { position: sticky; top: calc(var(--jn-header-height) + 1.5rem); }
.hp-doubts__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.hp-doubt { padding: 1.5rem; border-radius: var(--hp-radius); background: var(--jn-cream); }
.hp-doubt dt { margin-bottom: .6rem; font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--jn-green); }
.hp-doubt dd { margin: 0; font-size: .9375rem; line-height: 1.65; color: #444; }

/* Expert and partners */
.hp-expert { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: center; }
.hp-expert__photo { position: relative; margin: 0; }
.hp-expert__photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--hp-radius); }
.jn-home .hp-expert h2 { color: #fff; }
.hp-expert__role { margin-top: .75rem; color: var(--jn-orange); font-size: .9375rem; font-weight: 600; }
.hp-expert__lead { margin: 1.25rem 0 1.5rem; max-width: 40rem; font-size: 1rem; line-height: 1.75; color: rgb(255 255 255 / .78); }
.hp-expert .jn-checks li { color: rgb(255 255 255 / .9); }
.hp-partners { margin-top: 4.5rem; padding-top: 2.5rem; border-top: 1px solid var(--hp-line); }
.hp-partners__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.hp-partners__head h3 { font-size: 1.125rem; color: #fff; }
.hp-partners__head p { max-width: 34rem; font-size: .875rem; color: rgb(255 255 255 / .65); }
.hp-partners__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.hp-partners__grid li { display: flex; flex-direction: column; justify-content: center; gap: .4rem; min-height: 6.5rem; padding: 1rem; border-radius: var(--jn-radius-sm); background: #fff; text-align: center; }
.hp-partners__grid strong { font-size: 1.125rem; font-weight: 800; letter-spacing: .02em; color: var(--jn-green); }
.hp-partners__grid li { justify-content: flex-start; gap: .85rem; padding: 1.25rem 1rem; }
.hp-partners__logo { display: grid; place-items: center; height: 3.75rem; }
.hp-partners__grid img { max-width: 100%; height: auto; }
.hp-partners__grid li > span:last-child { font-size: .6875rem; line-height: 1.4; color: var(--jn-muted); }

/* Course showcase fixes on the homepage */
.jn-home .jn-showcase { display: block; }
.jn-home .jn-course-tabs { justify-content: flex-start; }
.jn-home .jn-course-tabs a { color: var(--jn-green); }
.jn-home .jn-course-tabs a:hover { border-color: var(--jn-orange); }
.jn-home .jn-course-tabs a[aria-selected=true] { color: #fff; }
.jn-home .jn-showcase .jn-card { background: #fff; border: 1px solid var(--jn-border); box-shadow: none; }
.jn-home .jn-showcase .jn-card:hover { border-color: var(--jn-orange); }

/* Quiz */
.hp-quiz { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: start; }
.hp-quiz__card { position: relative; padding: 2rem; border-radius: var(--hp-radius); background: #fff; box-shadow: 0 24px 60px rgb(0 0 0 / .18); }
.hp-quiz__progress { height: 4px; margin-bottom: 1.75rem; border-radius: 4px; background: var(--jn-border); overflow: hidden; }
.hp-quiz__progress span { display: block; width: 0; height: 100%; background: var(--jn-orange); transition: width .3s; }
.hp-quiz__card:not(.is-enhanced) .hp-quiz__progress, .hp-quiz__card:not(.is-enhanced) [data-quiz-nav] { display: none; }
.hp-quiz__step { margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.hp-quiz__step legend { margin-bottom: 1.25rem; padding: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.45; color: var(--jn-green); }
.hp-quiz__count { display: block; margin-bottom: .5rem; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--jn-orange-dark); }
.hp-quiz__option { display: flex; align-items: flex-start; gap: .85rem; margin-top: .6rem; padding: .95rem 1.1rem; border: 1px solid var(--jn-border); border-radius: .75rem; font-size: .9375rem; line-height: 1.55; cursor: pointer; transition: border-color .2s, background .2s; }
.hp-quiz__option:hover { border-color: var(--jn-orange); }
.hp-quiz__option input { flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; accent-color: var(--jn-orange); }
.hp-quiz__option:has(input:checked) { border-color: var(--jn-orange); background: #fff5f1; }
.hp-quiz__option:has(input:focus-visible) { outline: 3px solid var(--jn-orange); outline-offset: 2px; }
.hp-quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.hp-quiz__nav .jn-button { margin-left: auto; }
.hp-quiz__nav .jn-button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.hp-quiz__back { padding: .5rem 0; border: 0; background: none; color: var(--jn-green); font-size: .875rem; font-weight: 600; }
.hp-quiz__back:hover { color: var(--jn-orange-dark); }
.hp-quiz__result:focus { outline: none; }
.hp-quiz__track { display: inline-block; margin-bottom: 1rem; padding: .35rem .8rem; border-radius: 999px; background: var(--jn-green); color: #fff; font-size: .75rem; font-weight: 700; }
.hp-quiz__result h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); color: var(--jn-green); }
.hp-quiz__result > p { margin-top: .85rem; font-size: .9375rem; line-height: 1.7; color: #444; }
.hp-quiz__result .hp-quiz__courses { margin-bottom: 1.5rem; font-weight: 600; color: var(--jn-text); }
.hp-quiz__courses a { color: var(--jn-orange-dark); }
.hp-quiz__result .hp-actions { gap: 1.25rem; }

/* Packages, consultations, payment */
.hp-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.hp-package { display: flex; flex-direction: column; gap: 1rem; padding: 2rem 1.75rem; border: 1px solid var(--jn-border); border-radius: var(--hp-radius); background: #fff; }
.hp-package--featured { border: 2px solid var(--jn-green); box-shadow: var(--jn-shadow); }
.hp-package__badge { align-self: flex-start; padding: .3rem .7rem; border-radius: .4rem; background: var(--jn-cream); color: var(--jn-green); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hp-package--featured .hp-package__badge { background: var(--jn-green); color: #fff; }
.hp-package h3 { font-size: 1.375rem; color: var(--jn-green); }
.hp-package > p { font-size: .875rem; line-height: 1.6; color: var(--jn-muted); }
.hp-package > .hp-package__note { padding-left: 1.85rem; font-size: .8125rem; }
.hp-package__access { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--jn-border); }
.hp-package__access span { font-size: .75rem; color: var(--jn-muted); }
.hp-package__access strong { font-size: 1.125rem; color: var(--jn-green); white-space: nowrap; }
.hp-extra { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.25rem; margin-top: 1.25rem; }
.hp-extra__card { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2rem 1.75rem; border-radius: var(--hp-radius); background: var(--jn-cream); }
.hp-extra__card .jn-eyebrow { margin: 0; }
.hp-extra__card h3 { font-size: 1.25rem; color: var(--jn-green); }
.hp-extra__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; width: 100%; }
.hp-extra__cols h4 { margin: 0 0 .6rem; font-size: .875rem; color: var(--jn-text); }
.hp-extra__cols h4 small { display: block; margin-top: .2rem; font-size: .8125rem; font-weight: 500; color: var(--jn-muted); }
.hp-extra__cols ul { display: grid; gap: .45rem; margin: 0; padding-left: 1.1rem; font-size: .875rem; line-height: 1.55; color: #444; }
.hp-extra__cols li::marker { color: var(--jn-orange); }
.hp-extra__link { color: var(--jn-green); font-size: .875rem; font-weight: 700; text-decoration: none; }
.hp-extra__link:hover { color: var(--jn-orange-dark); }
.hp-extra__card--pay { background: var(--jn-green); color: #fff; }
.hp-extra__card--pay .jn-eyebrow { color: var(--jn-orange); }
.jn-home .hp-extra__card--pay h3 { color: #fff; }
.hp-extra__card--pay > p { font-size: .875rem; line-height: 1.6; color: rgb(255 255 255 / .75); }
.hp-requisites { display: grid; gap: .65rem; width: 100%; margin: 0; }
.hp-requisites div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; padding-top: .65rem; border-top: 1px solid var(--hp-line); font-size: .8125rem; }
.hp-requisites dt { color: rgb(255 255 255 / .55); }
.hp-requisites dd { margin: 0; overflow-wrap: anywhere; color: #fff; }
.hp-requisites code { font: 600 .8125rem/1.4 Montserrat, system-ui, sans-serif; letter-spacing: .02em; }

/* Reviews */
.hp-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.hp-review { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.75rem; border-radius: var(--hp-radius); background: #fff; }
.hp-review__result { align-self: flex-start; padding: .3rem .75rem; border-radius: 999px; background: #fff0ea; color: #c2441a; font-size: .75rem; font-weight: 700; }
.hp-review blockquote { position: relative; margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--jn-orange); font-size: .9375rem; line-height: 1.7; color: #333; }
.hp-review__author { display: flex; align-items: center; gap: .85rem; margin-top: auto; }
.hp-review__author img, .hp-review__avatar { flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.hp-review__avatar { display: grid; place-items: center; background: var(--jn-green); color: #fff; font-weight: 700; }
.hp-review__author p { display: grid; font-size: .8125rem; line-height: 1.45; color: var(--jn-muted); }
.hp-review__author strong { font-size: .9375rem; color: var(--jn-green); }
.hp-review__author a { width: fit-content; color: var(--jn-orange-dark); font-weight: 600; text-decoration: none; }
.hp-review__author a:hover { text-decoration: underline; }

/* Certificate */
.hp-cert { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: center; margin-top: 1.25rem; padding: 2rem; border: 1px solid var(--jn-border); border-radius: var(--hp-radius); background: #fff; }
.hp-cert__image { margin: 0; padding: 1rem; border-radius: var(--jn-radius-sm); background: var(--jn-cream); }
.hp-cert__image img { display: block; width: 100%; height: auto; border-radius: .5rem; box-shadow: 0 18px 40px rgb(1 60 53 / .16); transform: rotate(-1.5deg); }
.hp-cert .jn-eyebrow { margin-bottom: .5rem; }
.hp-cert h3 { margin-bottom: 1.25rem; font-size: clamp(1.25rem, 2.2vw, 1.5rem); color: var(--jn-green); }
.hp-legal { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--jn-border); font-size: .75rem; line-height: 1.65; color: var(--jn-muted); }

/* FAQ */
.hp-faq { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 1rem 3rem; }
.hp-faq .jn-section-heading { grid-column: 1 / -1; }
.hp-faq__list { display: grid; gap: .75rem; align-content: start; }
.hp-faq__cta { position: sticky; top: calc(var(--jn-header-height) + 1.5rem); align-self: start; display: grid; gap: 1rem; padding: 1.75rem; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); background: var(--hp-soft); }
.hp-faq__cta p { display: grid; gap: .4rem; font-size: .9375rem; line-height: 1.6; color: rgb(255 255 255 / .75); }
.hp-faq__cta strong { font-size: 1.25rem; color: #fff; }
.hp-faq__more { color: #fff; font-size: .875rem; font-weight: 600; }
.hp-faq__cta .jn-button { gap: .55rem; }
.hp-tg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

/* Blog */
/* Library: books and blog */
.hp-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.hp-book { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); overflow: hidden; border-radius: var(--hp-radius); background: var(--jn-cream); transition: translate .3s ease, box-shadow .3s ease; }
.hp-book:hover { translate: 0 -4px; box-shadow: 0 18px 40px rgb(1 60 53 / .14); }
.hp-book__cover { display: grid; place-items: center; overflow: hidden; padding: 1rem; background: #ebe7df; }
.hp-book__cover img { display: block; width: 100%; height: auto; border-radius: .35rem; box-shadow: 0 10px 24px rgb(1 60 53 / .15); transition: scale .8s cubic-bezier(.2, .7, .2, 1); }
.hp-book:hover .hp-book__cover img { scale: 1.05; }
.hp-book__body { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1.5rem; }
.hp-book__for { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; color: var(--jn-orange-dark); }
.hp-book h3 { font-size: 1.125rem; line-height: 1.3; }
.hp-book h3 a { color: var(--jn-green); text-decoration: none; }
.hp-book h3 a:hover { color: var(--jn-orange-dark); }
.hp-book__body > p { font-size: .875rem; line-height: 1.6; color: var(--jn-muted); }
.hp-book__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; width: 100%; margin-top: auto; padding-top: .75rem; }
.hp-book__price strong { font-size: 1.25rem; color: var(--jn-green); }
.hp-book__price del { margin-right: .35rem; font-size: .8125rem; color: var(--jn-muted); }
.hp-book__buy form { margin: 0; }
.hp-book__buy .jn-button { min-height: 2.6rem; padding: .6rem 1.2rem; font-size: .8125rem; }
.hp-blog__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.jn-home .hp-blog__head .jn-section-heading { margin: 0; }
.hp-blog__all { color: var(--jn-orange-dark); font-size: .875rem; font-weight: 700; text-decoration: none; }
.hp-post { border: 1px solid var(--jn-border); box-shadow: none; }
.hp-post img { width: calc(100% + 44px); max-width: none; margin: -22px -22px .25rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px 20px 0 0; }
.hp-post time { font-size: .75rem; color: var(--jn-muted); }
.hp-post h4 { font-size: 1.0625rem; line-height: 1.35; }
.hp-post h4 a { color: var(--jn-green); text-decoration: none; }
.hp-post h4 a::after { content: ""; position: absolute; inset: 0; }
.hp-post { position: relative; }
.hp-post:hover { border-color: var(--jn-orange); }

/* Responsive */
@media (min-width: 901px) {
  .jn-home > .hp-hero { min-height: calc(100svh - var(--jn-header-height)); }
}
@media (max-width: 68rem) {
  .hp-partners__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-doubts__list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hp-hero__grid, .hp-why, .hp-doubts, .hp-expert, .hp-quiz, .hp-cert, .hp-faq, .hp-extra { grid-template-columns: minmax(0, 1fr); }
  .hp-hero__grid { gap: 0; }
  .hp-hero__brand { display: none; }
  .hp-doubts, .hp-expert, .hp-quiz, .hp-cert { gap: 2rem; }
  .hp-doubts__intro, .hp-faq__cta { position: static; }
  .hp-doubts__intro .hp-photo { display: none; }
  .hp-doubts__list { grid-template-columns: 1fr 1fr; }
  .hp-why__photo img { aspect-ratio: 16 / 10; }
  .hp-expert__photo { justify-self: center; width: 100%; max-width: 22rem; }
  .hp-packages { grid-template-columns: minmax(0, 1fr); max-width: 34rem; }
  .hp-reviews, .hp-books { grid-template-columns: minmax(0, 1fr); }
  .hp-guide__inner { grid-template-columns: 4rem minmax(0, 1fr); }
  .hp-guide__art { width: 4rem; }
  .hp-guide__inner .jn-button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 40rem) {
  .hp-stats { gap: 1rem 1.75rem; }
  .hp-stats dt { font-size: 1.5rem; }
  .hp-actions .jn-button { flex: 1 1 100%; }
  .hp-compare, .hp-doubts__list, .hp-extra__cols { grid-template-columns: minmax(0, 1fr); }
  .hp-partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-quiz__card { padding: 1.5rem 1.25rem; }
  .hp-requisites div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .hp-book { grid-template-columns: minmax(0, 1fr); }
  .hp-cert { padding: 1.25rem; }
  .hp-guide__inner .jn-button { justify-self: stretch; }
}

/* Motion. Content is never hidden without animation support; system.css disables
   all of it for prefers-reduced-motion. Hover lifts use `translate` so they
   compose with the `transform` used by entrance animations. */
@keyframes hp-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hp-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes hp-step { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.hp-hero__copy > *, .hp-hero__brand { animation: hp-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.hp-hero__copy > :nth-child(2) { animation-delay: .08s; }
.hp-hero__copy > :nth-child(3) { animation-delay: .16s; }
.hp-hero__copy > :nth-child(4) { animation-delay: .24s; }
.hp-hero__copy > :nth-child(5) { animation-delay: .32s; }
.hp-hero__copy > :nth-child(6) { animation-delay: .4s; }
.hp-hero__brand { animation-delay: .3s; animation-duration: 1s; }
.hp-orbit { position: absolute; inset: -17.5%; width: 135%; height: 135%; overflow: visible; pointer-events: none; }

.hp-doubt, .hp-package, .hp-review, .hp-extra__card, .hp-partners__grid li, .hp-compare__col, .jn-home .jn-showcase .jn-card, .hp-post {
  transition: translate .3s ease, box-shadow .3s ease, border-color .2s ease;
}
.hp-doubt:hover, .hp-package:hover, .hp-review:hover, .hp-partners__grid li:hover, .hp-compare__col--with:hover, .jn-home .jn-showcase .jn-card:hover, .hp-post:hover {
  translate: 0 -4px;
  box-shadow: 0 18px 40px rgb(1 60 53 / .14);
}
.jn-slide--green :is(.hp-review, .hp-partners__grid li, .hp-compare__col--with):hover { box-shadow: 0 20px 44px rgb(0 0 0 / .22); }
.hp-photo img, .hp-expert__photo img { transition: scale .8s cubic-bezier(.2, .7, .2, 1); }
.hp-photo:hover img, .hp-expert__photo:hover img { scale: 1.04; }
.hp-expert__photo { overflow: hidden; border-radius: var(--hp-radius); }
.hp-guide__art { transition: translate .3s ease, rotate .3s ease; }
.hp-guide__inner:hover .hp-guide__art { translate: 0 -4px; rotate: -4deg; }
.hp-quiz__option:active { scale: .99; }

.hp-quiz__card.is-enhanced .hp-quiz__step:not([hidden]), .hp-quiz__result:not([hidden]) { animation: hp-step .4s cubic-bezier(.2, .7, .2, 1) both; }


@supports (animation-timeline: view()) {
  .jn-home :is(.jn-section-heading, .hp-guide__inner, .hp-why__photo, .hp-compare__col, .hp-doubt, .hp-expert__photo, .hp-expert__body, .hp-partners__grid li, .jn-showcase .jn-card, .hp-quiz__card, .hp-package, .hp-extra__card, .hp-review, .hp-cert, .jn-faq-item, .hp-faq__cta, .hp-post, .hp-book) {
    animation: hp-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  .jn-home :is(.hp-doubt, .hp-package, .hp-review, .hp-partners__grid li, .jn-showcase .jn-card, .hp-post, .hp-compare__col, .hp-book):nth-child(2n) { animation-range: entry 8% entry 63%; }
  .jn-home :is(.hp-package, .hp-partners__grid li, .jn-showcase .jn-card, .hp-post):nth-child(3n) { animation-range: entry 16% entry 71%; }
}
