/* Главная — вариант A: hero + featured архив + сетка программ */

.index-home {
  --ih-ink: #3a2f45;
  --ih-ink-soft: #6b5f78;
  --ih-ink-muted: #9a8eaa;
  --ih-line: rgba(178, 162, 198, 0.28);
  --ih-surface: rgba(255, 255, 255, 0.72);
  --ih-surface-solid: #fffef8;
  --ih-accent: #af8fcc;
  --ih-accent-deep: #8b7a9e;
  --ih-chip-bg: rgba(178, 162, 198, 0.16);
  --ih-pink-soft: rgba(233, 174, 210, 0.28);

  color: var(--ih-ink);
  padding: 1.75rem 0 4rem;
}

.index-home .container {
  max-width: 1120px;
}

/* —— Hero —— */
.index-home__hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.75rem;
}

@media (min-width: 992px) {
  .index-home__hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.25rem;
    margin-bottom: 3.5rem;
    padding-top: 0.5rem;
  }
}

.index-home__eyebrow {
  font-family: Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ih-ink-muted);
  margin: 0 0 0.75rem;
}

.index-home__title {
  font-family: Cormorant, serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.15;
  color: var(--ih-ink);
  margin: 0 0 0.85rem;
}

.index-home__lead {
  font-family: Roboto, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ih-ink-soft);
  max-width: 28rem;
  margin: 0 0 1.25rem;
}

.index-home__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.index-home__chip {
  display: inline-flex;
  align-items: center;
  font-family: Roboto, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ih-accent-deep);
  background: var(--ih-chip-bg);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ih-line);
}

.index-home__hero-visual {
  position: relative;
  border-radius: 1.15rem;
  overflow: hidden;
  min-height: 200px;
  background: linear-gradient(
    155deg,
    rgba(178, 162, 198, 0.35) 0%,
    rgba(233, 174, 210, 0.22) 55%,
    rgba(124, 198, 189, 0.2) 100%
  );
  border: 1px solid var(--ih-line);
}

.index-home__hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.index-home__hero-badges {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  pointer-events: none;
}

.index-home__hero-badge {
  font-family: Roboto, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  background: rgba(58, 47, 69, 0.55);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .index-home__hero-visual {
    order: -1;
  }
}

/* —— Section heads ——
   Global style.css sets `section { display: flex }` (row) — override. */
.index-home__section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: visible;
  margin-bottom: 2.75rem;
}

.index-home__section-head {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  width: 100%;
  margin: 0 0 1.15rem;
}

.index-home__section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.index-home__section-title {
  font-family: Cormorant, serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ih-ink);
  margin: 0;
}

.index-home__section-sub {
  font-family: Roboto, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ih-ink-muted);
  margin: 0;
}

.index-home__see-all {
  font-family: Roboto, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ih-ink-soft);
  text-decoration: none !important;
  white-space: nowrap;
}

.index-home__see-all:hover {
  color: var(--ih-accent-deep);
}

/* —— Featured archive —— */
.index-home__featured {
  display: grid;
  gap: 0;
  background: var(--ih-surface);
  border: 1px solid var(--ih-line);
  border-radius: 1.15rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .index-home__featured {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.index-home__featured-media {
  position: relative;
  min-height: 200px;
  background: var(--ih-pink-soft);
}

.index-home__featured-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.index-home__featured-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-family: Roboto, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ih-accent-deep);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.index-home__featured-body {
  padding: 1.35rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .index-home__featured-body {
    padding: 1.75rem 1.75rem 1.85rem;
  }
}

.index-home__featured-title {
  font-family: Cormorant, serif;
  font-weight: 600;
  font-size: 1.65rem;
  color: var(--ih-accent);
  margin: 0 0 0.55rem;
}

.index-home__featured-hook {
  font-family: Roboto, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ih-ink-soft);
  margin: 0 0 1.15rem;
  flex-grow: 1;
}

.index-home__featured-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

@media (max-width: 575.98px) {
  .index-home__featured-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .index-home__cta-row {
    margin-left: 0;
    width: 100%;
  }

  .index-home__cta-row .index-home__btn {
    flex: 1 1 auto;
  }
}

.index-home__price {
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ih-ink);
  margin: 0;
}

.index-home__price-note {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ih-ink-muted);
}

.index-home__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-left: auto;
}

.index-home__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  min-height: 2.6rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  text-decoration: none !important;
  border: none;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.index-home__btn--primary {
  background: var(--ih-accent);
  color: #fff !important;
}

.index-home__btn--primary:hover {
  background: var(--ih-accent-deep);
  color: #fff !important;
}

.index-home__btn--ghost {
  background: transparent;
  color: var(--ih-accent-deep) !important;
  border: 1px solid var(--ih-line);
}

.index-home__btn--ghost:hover {
  background: var(--ih-chip-bg);
  color: var(--ih-ink) !important;
}

.index-home__btn--soft {
  background: var(--ih-chip-bg);
  color: var(--ih-accent-deep) !important;
}

.index-home__btn--soft:hover {
  background: rgba(178, 162, 198, 0.28);
}

/* —— Program grid —— */
.index-home__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
}

@media (min-width: 768px) {
  .index-home__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1100px) {
  .index-home__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

.index-home__grid--webinars {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .index-home__grid--webinars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1100px) {
  .index-home__grid--webinars {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }
}

.index-home-webcard {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--ih-line);
  border-radius: 0.85rem;
  height: 100%;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
  color: inherit !important;
}

a.index-home-webcard:hover {
  transform: translateY(-2px);
  border-color: rgba(175, 143, 204, 0.45);
  background: rgba(255, 255, 255, 0.72);
  color: inherit !important;
}

.index-home-webcard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 0.55rem;
  overflow: hidden;
  background: var(--ih-chip-bg);
}

.index-home-webcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.index-home-webcard__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(58, 47, 69, 0.05) 0%,
    rgba(58, 47, 69, 0.35) 100%
  );
  pointer-events: none;
}

.index-home-webcard__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ih-accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 2px 10px rgba(58, 47, 69, 0.18);
}

.index-home-webcard__type {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  font-family: Roboto, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ih-accent-deep);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.index-home-webcard__paid {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  font-family: Roboto, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  background: rgba(124, 198, 189, 0.92);
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
}

.index-home-webcard__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
  padding: 0 0.15rem 0.15rem;
}

.index-home-webcard__title {
  font-family: Roboto, sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ih-ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.index-home-webcard__action {
  font-family: Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ih-accent-deep);
  margin-top: auto;
}

a.index-home-webcard:hover .index-home-webcard__action {
  color: var(--ih-accent);
}

.index-home-card {
  display: flex;
  flex-direction: column;
  background: var(--ih-surface-solid);
  border: 1px solid var(--ih-line);
  border-radius: 1rem;
  overflow: hidden;
  height: 100%;
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-decoration: none !important;
  color: inherit !important;
}

a.index-home-card:hover {
  transform: translateY(-3px);
  border-color: rgba(175, 143, 204, 0.55);
  color: inherit !important;
}

.index-home-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ih-chip-bg);
  overflow: hidden;
}

.index-home-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.index-home-card__paid {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  font-family: Roboto, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(124, 198, 189, 0.92);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.index-home-card__body {
  padding: 0.9rem 0.9rem 1.05rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .index-home-card__body {
    padding: 1.1rem 1.1rem 1.2rem;
  }
}

.index-home-card__title {
  font-family: Cormorant, serif;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--ih-ink);
  margin: 0 0 0.4rem;
}

@media (min-width: 768px) {
  .index-home-card__title {
    font-size: 1.2rem;
  }
}

.index-home-card__hook {
  font-family: Roboto, sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ih-ink-soft);
  margin: 0 0 0.95rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.index-home-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.index-home-card__price {
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ih-ink);
}

.index-home-card__action {
  font-family: Roboto, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ih-accent-deep);
  white-space: nowrap;
}

a.index-home-card:hover .index-home-card__action {
  color: var(--ih-accent);
}
