/* ===== IPG Flow — Hero ===== */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

.ipg-flow-hero {
  --ipg-h-bg: #212121;
  --ipg-h-card: #2c2c2c;
  --ipg-h-inner: #363636;
  --ipg-h-border: rgba(255, 255, 255, 0.1);
  --ipg-h-text: #ffffff;
  --ipg-h-muted: rgba(255, 255, 255, 0.5);
  --ipg-h-accent: #0cccd9;
  --ipg-h-title-accent: #b8e5f0;
  --ipg-h-max: 1140px;

  background: var(--ipg-h-bg);
  padding: 100px 20px 72px;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--ipg-h-text);
}

.ipg-flow-hero .container {
  max-width: var(--ipg-h-max);
}

.ipg-flow-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}

/* --- Left --- */

.ipg-flow-hero__title {
  margin: 0 0 28px;
  font-size: 45px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ipg-h-text);
}

.ipg-flow-hero__title-accent {
  display: block;
  color: var(--ipg-h-title-accent);
}

.ipg-flow-hero__text {
  margin: 0 0 28px;
  max-width: 560px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ipg-h-text);
}

.ipg-flow-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  margin-bottom: 40px;
  border-radius: 6px;
  background: var(--ipg-h-accent);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  color: #000000;
  transition: filter 0.15s ease;
}

.ipg-flow-hero__btn:hover {
  color: #000000;
  text-decoration: none;
  filter: brightness(1.05);
}

.ipg-flow-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ipg-flow-hero-stat {
  padding: 16px 18px;
  border: 1px solid var(--ipg-h-border);
  border-radius: 10px;
  background: var(--ipg-h-card);
}

.ipg-flow-hero-stat__value {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ipg-h-text);
}

.ipg-flow-hero-stat__label {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ipg-h-muted);
}

/* --- Plan panel --- */

.ipg-flow-hero-plan {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 25px 30px 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background: var(--ipg-h-card);
}

.ipg-flow-hero-plan__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ipg-flow-hero-plan__eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ipg-h-muted);
}

.ipg-flow-hero-plan__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ipg-flow-hero-plan__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ipg-h-text);
}

.ipg-flow-hero-plan__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--ipg-h-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--ipg-h-text);
  white-space: nowrap;
}

.ipg-flow-hero-plan__tasks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ipg-flow-hero-task {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 72px;
  padding: 16px;
  border: 1px solid var(--ipg-h-border);
  border-radius: 10px;
  background: var(--ipg-h-inner);
}

.ipg-flow-hero-task__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 110px;
}

.ipg-flow-hero-task__text {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ipg-h-text);
}

.ipg-flow-hero-task__status {
  position: absolute;
  top: 12.5px;
  right: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--ipg-h-text);
  white-space: nowrap;
}

.ipg-flow-hero-task__status--work {
  background: #319941;
}

.ipg-flow-hero-task__status--planned {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ipg-h-border);
}

.ipg-flow-hero-task__status--test {
  background: #315699;
}

.ipg-flow-hero-task__status--review {
  background: #9f4396;
}

.ipg-flow-hero-task__bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(240, 240, 240, 0.1);
}

.ipg-flow-hero-task__fill {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #087b83 0%, #0cccd9 100%);
}

.ipg-flow-hero-task__fill--64 { width: 64%; }
.ipg-flow-hero-task__fill--36 { width: 36%; }
.ipg-flow-hero-task__fill--53 { width: 53%; }
.ipg-flow-hero-task__fill--59 { width: 59%; }

.ipg-flow-hero-plan__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ipg-flow-hero-plan__channels,
.ipg-flow-hero-plan__result {
  min-height: 128px;
  padding: 12px 20px;
  border: 1px solid var(--ipg-h-border);
  border-radius: 6px;
  background: var(--ipg-h-inner);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ipg-flow-hero-plan__channels {
  justify-content: center;
}

.ipg-flow-hero-plan__result {
  gap: 8px;
}

.ipg-flow-hero-plan__footer-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
}

.ipg-flow-hero-plan__icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ipg-flow-hero-plan__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.ipg-flow-hero-plan__icon-link:hover {
  opacity: 0.75;
  text-decoration: none;
}

.ipg-flow-hero-plan__icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ipg-flow-hero-plan__result-text {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ipg-h-text);
}

.ipg-flow-hero-plan__b24 {
  display: block;
  width: 78px;
  height: 14px;
  margin-top: auto;
  object-fit: contain;
}

/* --- Responsive --- */

@media (max-width: 1100px) {
  .ipg-flow-hero {
    padding: 72px 20px 56px;
  }

  .ipg-flow-hero__grid {
    gap: 32px;
  }

  .ipg-flow-hero__title {
    font-size: 34px;
  }

}

@media (max-width: 800px) {
  .ipg-flow-hero {
    padding: 56px 16px 40px;
  }

  .ipg-flow-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ipg-flow-hero__title {
    font-size: 28px;
  }

  .ipg-flow-hero__text {
    font-size: 16px;
  }

  .ipg-flow-hero__stats {
    grid-template-columns: 1fr;
  }

  .ipg-flow-hero-plan {
    padding: 20px;
  }

  .ipg-flow-hero-plan__title-row {
    flex-wrap: wrap;
  }

  .ipg-flow-hero-task__row {
    padding-right: 0;
    flex-direction: column;
  }

  .ipg-flow-hero-task__status {
    position: static;
  }

  .ipg-flow-hero-plan__footer {
    grid-template-columns: 1fr;
  }
}
