/* Home page. Uses --eh-* tokens from header.css; theme via [data-theme] on <html>.
   Radius scale: controls 10px, panels 14px, pills/avatars full. */
body { margin: 0; background: var(--eh-bg); color: var(--eh-text); font-family: var(--eh-font); font-size: 16px; line-height: 1.55; }
.hm, .hm * { box-sizing: border-box; }
:where(.hm) a { color: inherit; text-decoration: none; }
:where(.hm) ul { list-style: none; margin: 0; padding: 0; }
:where(.hm) :is(h1, h2, h3, p, figure, blockquote) { margin: 0; }
.hm :focus-visible { outline: 2px solid var(--eh-accent); outline-offset: 2px; border-radius: 6px; }
.hm-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.hm-section { padding: 88px 0; }
.hm-h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; max-width: 22ch; }
.hm-lead { margin-top: 16px; max-width: 56ch; color: var(--eh-muted); font-size: 17px; }
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; transition: background-color .15s ease, transform .1s ease, border-color .15s ease; }
.hm-btn:active { transform: scale(.98); }
.hm-btn--primary { background: var(--eh-accent); color: var(--eh-accent-ink) !important; }
.hm-btn--primary:hover { background: var(--eh-accent-hover); }
.hm-btn--ghost { border-color: var(--eh-border); background: var(--eh-bg); }
.hm-btn--ghost:hover { background: var(--eh-bg-soft); }

/* hero */
.hm-hero { padding: calc(var(--eh-h) + 56px) 0 64px; }
.hm-hero .hm-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hm-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.hm-hero h1 em { font-style: normal; color: var(--eh-accent); }
.hm-hero p { margin-top: 20px; max-width: 46ch; color: var(--eh-muted); font-size: 18px; }
.hm-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hm-hero-img { position: relative; }
.hm-hero-img img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--eh-border); }
.hm-hero-img::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 14px; background: var(--eh-accent-soft); z-index: -1; }

/* partner logo band */
.hm-logos { padding: 0 0 24px; }
.hm-logos-panel { background: #fff; border: 1px solid var(--eh-border); border-radius: 14px; padding: 18px 24px; display: flex; justify-content: center; align-items: center; }
.hm-logos-panel img { max-height: 72px; max-width: 100%; width: auto; filter: grayscale(1); opacity: .85; transition: filter .2s ease, opacity .2s ease; }
.hm-logos-panel:hover img { filter: none; opacity: 1; }
.hm-logos-panel .m { display: none; }

/* path + toolkit bento */
.hm-checks { margin-top: 24px; display: grid; gap: 12px; }
.hm-checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.hm-checks i { color: var(--eh-accent); font-size: 20px; flex-shrink: 0; margin-top: 1px; }

/* partners */
.hm-partners { background: var(--eh-bg-soft); border-block: 1px solid var(--eh-border); }
.hm-partner-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.hm-partner { background: var(--eh-bg); border: 1px solid var(--eh-border); border-radius: 14px; padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; transition: transform .2s ease, border-color .2s ease; }
.hm-partner:hover { transform: translateY(-3px); border-color: var(--eh-accent); }
.hm-partner-logo { height: 64px; border-radius: 10px; background: #fff; border: 1px solid var(--eh-border); display: flex; align-items: center; justify-content: center; padding: 8px; }
.hm-partner-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.hm-partner strong { display: block; font-size: 16px; line-height: 1.25; }
.hm-partner span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--eh-muted); }

/* bundle offer */
.hm-offer-head { max-width: 640px; }
.hm-offer { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.hm-panel { border: 1px solid var(--eh-border); border-radius: 14px; background: var(--eh-bg); padding: 32px; display: flex; flex-direction: column; }
.hm-panel--accent { background: var(--eh-accent); color: var(--eh-accent-ink); border-color: transparent; }
.hm-step { display: inline-flex; align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--eh-accent-soft); color: var(--eh-accent); font-size: 13px; font-weight: 700; }
.hm-panel--accent .hm-step { background: rgba(255, 255, 255, .18); color: inherit; }
:root[data-theme="dark"] .hm-panel--accent .hm-step { background: rgba(11, 18, 32, .18); }
.hm-panel h3 { margin-top: 16px; font-size: 22px; letter-spacing: -.02em; font-weight: 700; line-height: 1.25; }
.hm-panel > p { margin-top: 8px; color: var(--eh-muted); }
.hm-panel--accent > p { color: inherit; opacity: .85; }
.hm-courses { margin-top: 22px; display: grid; gap: 10px; }
.hm-courses li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--eh-border); border-radius: 10px; font-weight: 600; }
.hm-courses b { color: var(--eh-accent); white-space: nowrap; }
.hm-price { margin-top: 20px; display: flex; align-items: baseline; gap: 10px; }
.hm-price b { font-size: 44px; line-height: 1; letter-spacing: -.03em; }
.hm-price s { opacity: .75; }
.hm-panel--accent .hm-checks { margin-top: 22px; }
.hm-panel--accent .hm-checks i { color: inherit; }
.hm-offer-foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-radius: 14px; background: var(--eh-bg-soft); border: 1px solid var(--eh-border); }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-chips span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--eh-border); background: var(--eh-bg); font-size: 13.5px; font-weight: 600; color: var(--eh-muted); }
.hm-fine { margin-top: 14px; font-size: 13.5px; color: var(--eh-muted); }

/* testimonials */
.hm-quotes { margin-top: 40px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.hm-quote { flex: 0 0 min(360px, 86%); scroll-snap-align: start; border: 1px solid var(--eh-border); border-radius: 14px; background: var(--eh-bg-soft); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.hm-stars { display: flex; gap: 2px; color: var(--eh-accent); font-size: 18px; }
.hm-quote blockquote { margin: 0; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hm-quote footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.hm-avatar { width: 42px; height: 42px; border-radius: 999px; background: var(--eh-accent-soft); color: var(--eh-accent); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hm-quote footer strong { display: block; line-height: 1.2; }
.hm-quote footer span { font-size: 13px; color: var(--eh-muted); }

/* faq */
.hm-faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.hm-faq-list details { border-bottom: 1px solid var(--eh-border); }
.hm-faq-list details:first-child { border-top: 1px solid var(--eh-border); }
.hm-faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-weight: 600; font-size: 16.5px; }
.hm-faq-list summary::-webkit-details-marker { display: none; }
.hm-faq-list summary i { color: var(--eh-muted); transition: transform .2s ease; flex-shrink: 0; }
.hm-faq-list details[open] summary i { transform: rotate(45deg); color: var(--eh-accent); }
.hm-faq-list details p { padding: 0 4px 22px; color: var(--eh-muted); max-width: 68ch; }

@media (max-width: 960px) {
  .hm-section { padding: 64px 0; }
      .hm-hero .hm-wrap, .hm-bento, .hm-offer, .hm-faq { grid-template-columns: 1fr; }
  .hm-hero { padding-top: calc(var(--eh-h) + 32px); }
  .hm-hero-img { max-width: 560px; }
  .hm-partner-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-partner:last-child { grid-column: 1 / -1; }
  .hm-faq { gap: 28px; }
  .hm-logos-panel .d { display: none; }
  .hm-logos-panel .m { display: block; }
  .hm-logos-panel { flex-direction: column; gap: 12px; }
}
@media (max-width: 520px) {
    .hm-btn { width: 100%; }
  .hm-offer-foot .hm-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .hm * { transition: none !important; } }

/* featured courses */
.hm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hm-more { color: var(--eh-accent); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.hm-courses-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.hm-course { display: flex; flex-direction: column; border: 1px solid var(--eh-border); border-radius: 14px; background: var(--eh-bg); overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.hm-course:hover { transform: translateY(-4px); border-color: var(--eh-accent); }
.hm-course img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--eh-bg-soft); }
.hm-course-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hm-course-body small { color: var(--eh-accent); font-weight: 700; font-size: 12.5px; }
.hm-course-body strong { font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; }
.hm-course-price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; font-weight: 700; font-size: 18px; }
.hm-course-price s { font-size: 14px; font-weight: 500; color: var(--eh-muted); }

/* learning path + toolkit */
.hm-bento { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.hm-cell { border-radius: 14px; border: 1px solid var(--eh-border); background: var(--eh-bg-soft); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, border-color .25s ease; }
.hm-cell:hover { transform: translateY(-4px); border-color: var(--eh-accent); }
.hm-cell--tint { background: var(--eh-accent-soft); border-color: transparent; }
.hm-cell-img { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.hm-cell-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.hm-cell:hover .hm-cell-img img { transform: scale(1.04); }
.hm-cell-body { padding: 28px 30px 32px; }
.hm-cell-body h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.hm-cell-body > p { margin-top: 8px; color: var(--eh-muted); }
@media (max-width: 960px) { .hm-bento { grid-template-columns: 1fr; } }
