/*
 * mpindustrialhome front styles.
 * Everything is scoped to .mph-home so the module can coexist with PrestaShop themes.
 */

.mph-home {
  --mph-dark: #071018;
  --mph-dark-2: #0B1117;
  --mph-dark-3: #101820;
  --mph-accent: #FF6A00;
  --mph-accent-dark: #D95700;
  --mph-ink: #111820;
  --mph-muted: #64748B;
  --mph-line: #DDE4EA;
  --mph-soft: #F8FAFC;
  --mph-white: #FFFFFF;
  color: var(--mph-ink);
  background: var(--mph-white);
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
}

.mph-home *,
.mph-home *::before,
.mph-home *::after {
  box-sizing: border-box;
}

.mph-wrap {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.mph-hero,
.mph-trust,
.mph-quote,
.mph-process,
.mph-final-cta {
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

.mph-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 106, 0, 0.18), transparent 34%),
    linear-gradient(115deg, rgba(7, 16, 24, 0.98), rgba(11, 17, 23, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 34px),
    var(--mph-dark);
}

.mph-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.mph-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(360px, 1fr);
  gap: 58px;
  align-items: center;
  min-height: 720px;
  padding: 112px 0 98px;
}

.mph-eyebrow {
  margin: 0 0 14px;
  color: var(--mph-accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.mph-hero h1,
.mph-section h2,
.mph-quote h2,
.mph-process h2,
.mph-final-cta h2 {
  margin: 0;
  color: inherit;
  font-weight: 900;
  letter-spacing: 0;
}

.mph-hero h1 {
  max-width: 760px;
  color: var(--mph-white);
  font-size: 68px;
  line-height: 1;
}

.mph-hero__subtitle {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.55;
}

.mph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
}

.mph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.mph-btn:hover,
.mph-btn:focus {
  transform: translateY(-1px);
}

.mph-btn--primary {
  border-color: var(--mph-accent);
  background: var(--mph-accent);
  color: #111111 !important;
  box-shadow: 0 14px 30px rgba(255, 106, 0, 0.22);
}

.mph-btn--primary:hover,
.mph-btn--primary:focus {
  border-color: var(--mph-accent-dark);
  background: var(--mph-accent-dark);
  color: #111111 !important;
}

.mph-btn--ghost {
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
  color: var(--mph-white) !important;
}

.mph-btn--ghost:hover,
.mph-btn--ghost:focus {
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  color: var(--mph-white) !important;
}

.mph-hero__visual {
  min-height: 430px;
}

.mph-profile-scene {
  position: relative;
  width: min(620px, 100%);
  height: 430px;
  margin-left: auto;
  transform: perspective(900px) rotateX(6deg) rotateY(-10deg);
}

.mph-profile,
.mph-profile-line {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.36);
  transform: skewX(-24deg);
}

.mph-profile::before,
.mph-profile::after {
  content: "";
  position: absolute;
  display: block;
  background: inherit;
  border: inherit;
}

.mph-profile--one {
  top: 72px;
  left: 24px;
  width: 410px;
  height: 74px;
  background: linear-gradient(90deg, #F4F7F9, #8C98A4 30%, #22303B 68%, #05090D);
}

.mph-profile--one::before {
  top: 72px;
  left: 80px;
  width: 260px;
  height: 46px;
}

.mph-profile--one::after {
  top: -54px;
  left: 60px;
  width: 300px;
  height: 54px;
}

.mph-profile--two {
  top: 190px;
  left: 90px;
  width: 450px;
  height: 68px;
  background: linear-gradient(90deg, #52616D, #17212A 54%, #030608);
}

.mph-profile--two::before {
  top: 68px;
  left: 120px;
  width: 270px;
  height: 46px;
}

.mph-profile--two::after {
  top: -48px;
  left: 54px;
  width: 260px;
  height: 48px;
}

.mph-profile--three {
  top: 286px;
  left: 8px;
  width: 360px;
  height: 62px;
  background: linear-gradient(90deg, #E8EDF1, #A7B0B8 42%, #202B35 72%, #05080B);
}

.mph-profile--three::before {
  top: 62px;
  left: 92px;
  width: 210px;
  height: 42px;
}

.mph-profile--three::after {
  top: -42px;
  left: 42px;
  width: 220px;
  height: 42px;
}

.mph-profile--accent {
  right: 8px;
  bottom: 50px;
  width: 230px;
  height: 54px;
  background: linear-gradient(90deg, #FF9A42, #FF6A00 54%, #6D2600);
}

.mph-profile--accent::before {
  top: 54px;
  left: 50px;
  width: 140px;
  height: 34px;
}

.mph-profile--accent::after {
  top: -34px;
  left: 34px;
  width: 140px;
  height: 34px;
}

.mph-profile-line {
  width: 520px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.mph-profile-line--one {
  top: 154px;
  left: 20px;
}

.mph-profile-line--two {
  top: 274px;
  left: 80px;
}

.mph-trust {
  background: var(--mph-dark-2);
}

.mph-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.mph-trust-card {
  min-height: 178px;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.mph-trust-card__icon {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 0 42%, var(--mph-accent) 42% 58%, transparent 58%),
    rgba(255, 255, 255, 0.06);
}

.mph-trust-card h2 {
  margin: 0;
  color: var(--mph-white);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
}

.mph-trust-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.55;
}

.mph-section {
  padding: 84px 0;
}

.mph-section__head {
  max-width: 760px;
  margin-bottom: 34px;
}

.mph-section__head--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.mph-section h2,
.mph-quote h2,
.mph-process h2,
.mph-final-cta h2 {
  color: var(--mph-ink);
  font-size: 44px;
  line-height: 1.08;
}

.mph-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mph-category {
  display: flex;
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--mph-line);
  border-radius: 8px;
  color: var(--mph-ink) !important;
  background: var(--mph-white);
  box-shadow: 0 16px 42px rgba(7, 16, 24, 0.07);
  flex-direction: column;
  text-decoration: none !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mph-category:hover,
.mph-category:focus {
  border-color: rgba(255, 106, 0, 0.48);
  box-shadow: 0 26px 60px rgba(7, 16, 24, 0.13);
  transform: translateY(-3px);
}

.mph-category__index {
  color: var(--mph-accent);
  font-size: 13px;
  font-weight: 900;
}

.mph-category__shape {
  position: relative;
  display: block;
  width: 100%;
  height: 96px;
  margin: 26px 0 22px;
}

.mph-category__shape::before,
.mph-category__shape::after {
  content: "";
  position: absolute;
  left: 4%;
  border: 1px solid rgba(17, 24, 32, 0.16);
  transform: skewX(-24deg);
}

.mph-category__shape::before {
  top: 20px;
  width: 72%;
  height: 40px;
  background: linear-gradient(90deg, #E8EDF1, #7F8A95 48%, #1C2732);
  box-shadow: 0 20px 26px rgba(17, 24, 32, 0.12);
}

.mph-category__shape::after {
  top: 56px;
  left: 19%;
  width: 52%;
  height: 22px;
  background: linear-gradient(90deg, #BFC8D0, #18232D);
}

.mph-category:nth-child(2n) .mph-category__shape::before {
  background: linear-gradient(90deg, #F6F7F5, #CED4D9 56%, #A7B0B8);
}

.mph-category:nth-child(3n) .mph-category__shape::before {
  background: linear-gradient(90deg, #1B2732, #FF6A00 70%, #6C2800);
}

.mph-category strong {
  display: block;
  color: var(--mph-ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.mph-category > span:last-child {
  display: block;
  margin-top: 10px;
  color: var(--mph-muted);
  font-size: 15px;
  line-height: 1.55;
}

.mph-accessories {
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: 58px 0;
  background:
    radial-gradient(circle at 12% 35%, rgba(255, 106, 0, 0.14), transparent 30%),
    linear-gradient(115deg, #0B1117, #071018);
}

.mph-accessories__grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  gap: 32px;
  align-items: center;
}

.mph-accessories h2 {
  margin: 0;
  color: var(--mph-white);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
}

.mph-quote {
  padding: 84px 0;
  background:
    linear-gradient(110deg, rgba(7, 16, 24, 0.98), rgba(11, 17, 23, 0.94)),
    var(--mph-dark);
}

.mph-quote__grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(320px, 1fr);
  gap: 40px;
  align-items: center;
}

.mph-quote h2 {
  color: var(--mph-white);
}

.mph-quote__content p:not(.mph-eyebrow) {
  max-width: 640px;
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.mph-quote__panel {
  display: flex;
  justify-content: flex-end;
}

.mph-mini-form {
  width: min(360px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.mph-mini-form span {
  display: block;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.mph-mini-form strong {
  display: block;
  min-height: 54px;
  padding: 16px;
  border-radius: 8px;
  background: var(--mph-accent);
  color: #111111;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.mph-materials {
  background: var(--mph-soft);
}

.mph-material-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mph-material {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--mph-line);
  border-radius: 8px;
  background: var(--mph-white);
  box-shadow: 0 12px 32px rgba(7, 16, 24, 0.06);
}

.mph-material__sample {
  display: block;
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  border: 1px solid rgba(17, 24, 32, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #F2F5F7, #6F7A84 48%, #161F27);
  box-shadow: 0 16px 22px rgba(7, 16, 24, 0.12);
}

.mph-material:nth-child(2) .mph-material__sample {
  background: linear-gradient(135deg, #FFFFFF, #C9D0D5 46%, #7D8790);
}

.mph-material:nth-child(3) .mph-material__sample {
  background: linear-gradient(135deg, #F8C48A, #B7652C 50%, #5B2A14);
}

.mph-material:nth-child(4) .mph-material__sample {
  background: linear-gradient(135deg, #FFFFFF, #BFC8D0 42%, #8A949D 68%, #313B45);
}

.mph-material h3 {
  margin: 0;
  color: var(--mph-ink);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}

.mph-material p {
  margin: 10px 0 0;
  color: var(--mph-muted);
  font-size: 15px;
  line-height: 1.55;
}

.mph-process {
  padding: 84px 0;
  background: var(--mph-white);
}

.mph-process__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 38px 0 0;
  list-style: none;
  border: 1px solid var(--mph-line);
  border-radius: 8px;
  background: var(--mph-white);
  box-shadow: 0 16px 42px rgba(7, 16, 24, 0.06);
}

.mph-process__grid li {
  min-height: 198px;
  padding: 26px 22px;
  border-right: 1px solid var(--mph-line);
}

.mph-process__grid li:last-child {
  border-right: 0;
}

.mph-process__grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--mph-dark);
  color: var(--mph-white);
  font-size: 13px;
  font-weight: 900;
}

.mph-process__grid strong {
  display: block;
  color: var(--mph-ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.mph-process__grid p {
  margin: 9px 0 0;
  color: var(--mph-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mph-final-cta {
  padding: 64px 0;
  background:
    linear-gradient(100deg, rgba(7, 16, 24, 0.98), rgba(11, 17, 23, 0.94)),
    var(--mph-dark);
}

.mph-final-cta__inner {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.mph-final-cta h2 {
  color: var(--mph-white);
}

.mph-final-cta__text {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.55;
}

.mph-final-cta__contacts,
.mph-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.mph-final-cta__contacts {
  margin-top: 18px;
}

.mph-final-cta__contacts a {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none !important;
}

.mph-final-cta__contacts a:hover,
.mph-final-cta__contacts a:focus {
  color: var(--mph-accent) !important;
}

.mph-final-cta__actions {
  justify-content: flex-end;
  min-width: 280px;
}

@media (max-width: 1100px) {
  .mph-hero__grid,
  .mph-quote__grid,
  .mph-accessories__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .mph-hero__grid {
    min-height: 0;
    padding: 72px 0 58px;
  }

  .mph-profile-scene {
    margin-right: auto;
    margin-left: auto;
  }

  .mph-trust__grid,
  .mph-material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mph-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mph-process__grid {
    grid-template-columns: 1fr;
  }

  .mph-process__grid li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--mph-line);
  }

  .mph-process__grid li:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  .mph-home {
    font-size: 17px;
    line-height: 1.55;
  }

  .mph-hero,
  .mph-trust,
  .mph-quote,
  .mph-process,
  .mph-final-cta,
  .mph-accessories {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .mph-wrap {
    width: min(100% - 24px, 1180px);
  }

  .mph-hero__grid {
    padding: 54px 0 44px;
  }

  .mph-hero h1 {
    font-size: 46px;
  }

  .mph-hero__subtitle {
    font-size: 20px;
    line-height: 1.45;
  }

  .mph-actions,
  .mph-final-cta__inner,
  .mph-accessories__grid {
    align-items: stretch;
    flex-direction: column;
  }

  .mph-final-cta__actions,
  .mph-final-cta__contacts {
    align-items: stretch;
    flex-direction: column;
    min-width: 0;
  }

  .mph-btn {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
  }

  .mph-profile-scene {
    height: 300px;
    transform: scale(0.72);
    transform-origin: left top;
  }

  .mph-hero__visual {
    min-height: 250px;
    overflow: hidden;
  }

  .mph-trust__grid,
  .mph-category-grid,
  .mph-material-grid {
    grid-template-columns: 1fr;
  }

  .mph-trust-card {
    min-height: 0;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mph-trust-card h2 {
    font-size: 21px;
  }

  .mph-trust-card p {
    font-size: 16px;
    line-height: 1.5;
  }

  .mph-trust-card:last-child {
    border-bottom: 0;
  }

  .mph-section,
  .mph-quote,
  .mph-process {
    padding: 58px 0;
  }

  .mph-section h2,
  .mph-quote h2,
  .mph-process h2,
  .mph-final-cta h2 {
    font-size: 37px;
    line-height: 1.08;
  }

  .mph-category {
    min-height: 250px;
  }

  .mph-category strong,
  .mph-material h3,
  .mph-process__grid strong {
    font-size: 21px;
  }

  .mph-category > span:last-child,
  .mph-material p,
  .mph-process__grid p {
    font-size: 16px;
    line-height: 1.5;
  }

  .mph-quote__content p:not(.mph-eyebrow),
  .mph-final-cta__text,
  .mph-final-cta__contacts a {
    font-size: 18px;
    line-height: 1.5;
  }

  .mph-quote__panel {
    justify-content: stretch;
  }
}
