/* ==========================================================================
   Homepage redesign (index.html) — online-first Russian heritage-language offer.
   Scoped with the "hp-" prefix. Reuses, rather than duplicates:
     - .sc-hero / .sc-badges / .sc-course-card / .sc-program-card / .sc-top-label
       (assets/css/courses-redesign.css)
     - .cd-subheading / .cd-note / .cd-notice / .cd-cta
       (assets/css/course-detail-redesign.css)
     - .pd-eyebrow / .pd-top-label / .pd-hero-panel / .pd-hero-icon / .pd-steps
       (assets/css/premium-detail-redesign.css — body carries class
       "premium-detail-page" on this page only to opt into these rules)
     - .sub-title / .sec-title / .check-list.style-4 / .vs-btn / .link-btn /
       .appointment-form / .cta-section (assets/css/style.css)
   ========================================================================== */

/* -------------------- hero (full-bleed photo) -------------------- */
.home-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(580px, 44vw, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
}
.home-hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% center;
  transform: scale(1.03);
  z-index: -3;
}
.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 45%, rgba(142, 43, 196, 0.08), transparent 34%),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.93) 28%,
      rgba(255, 255, 255, 0.48) 48%,
      rgba(255, 255, 255, 0.08) 66%,
      rgba(255, 255, 255, 0) 80%
    );
}

/* Wide homepage-only container: intentionally NOT the shared bootstrap
   .container, so the hero text starts much closer to the edge on ultra-wide
   screens without touching container widths used anywhere else on the site. */
.home-hero__inner {
  position: relative;
  z-index: 1;
  /* `margin-inline: auto` centers this box, so each side only gets HALF of
     whatever is subtracted from 100% here — the clamp is therefore doubled
     (16vw, 96/360px) so the realised per-side margin lands on the intended
     clamp(48px, 8vw, 180px), i.e. ~8% of the viewport at 1920-2048px.
     1740px stays just above the value this resolves to at 2048px (~1720px)
     so it only acts as a ceiling for genuinely ultra-wide screens. */
  width: min(100% - clamp(96px, 16vw, 360px), 1740px);
  margin-inline: auto;
}
.home-hero__content {
  width: min(56%, 680px);
  padding-top: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(96px, 8vw, 132px);
}
.home-hero .pd-eyebrow {
  margin-bottom: 6px;
}
.home-hero__title {
  font-family: var(--title-font);
  font-size: clamp(50px, 4vw, 74px);
  line-height: 1.14;
  color: var(--title-color, #103741);
  margin: 0 0 10px;
}
.home-hero__lead {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 600;
  color: var(--theme-color, #9C29B2);
  line-height: 1.4;
  margin: 0 0 18px;
}
.home-hero__text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--body-color, #74787c);
  max-width: 620px;
  margin-bottom: 14px;
}
.home-hero .hp-hero-ctas {
  margin: 22px 0 0;
  flex-wrap: nowrap;
}

.home-hero__benefits-wrap {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  pointer-events: none;
}
.home-hero__benefits-wrap * {
  pointer-events: auto;
}
.home-hero__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(142, 43, 196, 0.10);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(20, 60, 70, 0.10);
  overflow: hidden;
}
.home-hero__benefits li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color, #103741);
  border-right: 1px solid rgba(16, 55, 65, 0.08);
  text-align: center;
}
.home-hero__benefits li:last-child {
  border-right: none;
}
.home-hero__benefits li i {
  color: var(--secondary-color, #88C90D);
  font-size: 18px;
  flex-shrink: 0;
}

/* -------------------- hero (legacy hooks kept for other pages) -------------------- */
.hp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin: 28px 0;
}

/* -------------------- recognition section -------------------- */
.hp-signs {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}
.hp-signs li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--title-color, #103741);
}
.hp-signs li i {
  color: var(--theme-color, #9C29B2);
  font-size: 14px;
  margin-top: 6px;
  flex-shrink: 0;
}

/* -------------------- simple icon cards (development + international) -------------------- */
.hp-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.hp-card-grid.hp-card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.hp-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(16, 55, 65, 0.08);
  padding: 32px 26px;
  text-align: left;
}
.hp-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(136, 201, 13, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.hp-card-icon i {
  font-size: 24px;
  color: var(--secondary-color, #88C90D);
}
.hp-card-title {
  font-size: 19px;
  color: var(--title-color, #103741);
  margin-bottom: 10px;
}
.hp-card-text {
  font-size: 15px;
  color: var(--body-color, #74787c);
  margin-bottom: 0;
}

/* -------------------- online group courses / premium wrappers -------------------- */
.hp-course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.hp-premium-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.hp-section-foot {
  text-align: center;
  margin-top: 44px;
}
.hp-section-foot p {
  color: var(--body-color, #74787c);
  margin-bottom: 18px;
}

/* -------------------- methodology / founder section -------------------- */
.hp-founder-points {
  margin-top: 26px;
}

/* -------------------- international section -------------------- */
.hp-international {
  background: linear-gradient(180deg, #FBF6FE 0%, #ffffff 100%);
}

/* -------------------- enquiry form -------------------- */
.hp-form-note {
  font-size: 14px;
  color: var(--body-color, #74787c);
  margin: 14px 0 0;
}
.hp-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--body-color, #74787c);
  margin: 4px 0 6px;
}
.hp-form-consent input {
  margin-top: 4px;
}
.hp-form-consent a {
  color: var(--theme-color, #9C29B2);
  text-decoration: underline;
}

/* -------------------- compact contact banner -------------------- */
.hp-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

/* -------------------- footer background -------------------- */
.hp-footer-gradient {
  background: linear-gradient(160deg, #F6EAFC 0%, #FBF6FE 55%, #FFFFFF 100%) !important;
}
.hp-footer-gradient .about-text,
.hp-footer-gradient .footer-info,
.hp-footer-gradient .footer-info a,
.hp-footer-gradient .footer-widget .widget_title,
.hp-footer-gradient .footer-widget.widget_nav_menu a,
.hp-footer-gradient .footer-widget.widget_nav_menu a:before {
  color: var(--title-color, #103741) !important;
}
.hp-footer-gradient .footer-widget .widget_title:after {
  background-color: var(--title-color, #103741) !important;
}
.hp-footer-gradient .footer-info i {
  color: var(--theme-color, #9C29B2) !important;
  border-color: var(--theme-color, #9C29B2) !important;
}
.hp-footer-gradient .footer-widget.widget_nav_menu a:hover,
.hp-footer-gradient .footer-info a:hover {
  color: var(--secondary-color, #88C90D) !important;
}

/* ============================== Tablet ============================== */
@media (max-width: 1199px) {
  .hp-course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-hero__content {
    width: min(60%, 560px);
    padding-bottom: clamp(84px, 9vw, 110px);
  }
  .home-hero__background {
    object-position: 63% center;
    transform: scale(1.02);
  }
}

@media (max-width: 991px) {
  .hp-premium-grid {
    grid-template-columns: 1fr;
  }
  .hp-signs {
    grid-template-columns: 1fr;
  }
  .home-hero {
    min-height: clamp(520px, 58vw, 640px);
  }
  .home-hero__content {
    width: min(66%, 480px);
    padding-bottom: clamp(80px, 10vw, 100px);
  }
  .home-hero__title {
    font-size: clamp(34px, 5vw, 42px);
  }
  .home-hero__lead {
    font-size: 18px;
  }
  .home-hero__text {
    font-size: 16px;
  }
  .home-hero__background {
    object-position: 58% center;
    transform: scale(1.02);
  }
  .home-hero__benefits li {
    font-size: 13px;
    padding: 14px 10px;
  }
}

/* ============================== Mobile ============================== */
@media (max-width: 767px) {
  .hp-course-grid,
  .hp-card-grid,
  .hp-card-grid.hp-card-grid-3 {
    grid-template-columns: 1fr;
  }
  .hp-contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* Hero becomes a stacked flex column so the natural markup order
     (text -> photo -> benefits) is preserved without a separate image card. */
  .home-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }
  .home-hero__overlay {
    display: none;
  }
  .home-hero__inner {
    width: min(100% - 32px, 1520px);
  }
  .home-hero__content {
    width: 100%;
    text-align: center;
    padding: 28px 0 0;
  }
  .home-hero__title,
  .home-hero__text {
    max-width: 100%;
  }
  .home-hero__lead {
    font-size: 19px;
  }
  .home-hero .hp-hero-ctas {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
  }
  .home-hero__benefits-wrap {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    order: 3;
    margin: 20px 0 24px;
  }
  .home-hero__benefits {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  .home-hero__benefits li {
    justify-content: flex-start;
    padding: 14px 18px;
    border-right: none;
    border-bottom: 1px solid rgba(16, 55, 65, 0.08);
  }
  .home-hero__benefits li:last-child {
    border-bottom: none;
  }
  .home-hero__background {
    position: relative;
    inset: auto;
    display: block;
    order: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: 72% center;
    transform: none;
    margin-top: 8px;
    z-index: 0;
  }
}
