/* Отраслевая экспертиза — МОРЕМЕДИА. Scoped to .mm-ind.
   DIN Pro Regular + Medium — те же файлы, что у темы. */

@font-face {
  font-family: "DIN Pro";
  src: url("../fonts/DINPro.woff2") format("woff2"),
       url("../fonts/DINPro.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DIN Pro";
  src: url("../fonts/DINPro-Medium.woff2") format("woff2"),
       url("../fonts/DINPro-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

body.mm-ind-page {
  overflow-x: hidden;
}

body.mm-ind-page header {
  position: relative !important;
  top: auto !important;
  background: #fff;
}

body.mm-ind-page .ps-navigation:before {
  background: #b1a9d5;
  opacity: 1;
}

.mm-ind {
  --mm-text: #303030;
  --mm-muted: #505050;
  --mm-card: #f5f3f7;
  --mm-purple: #916394;
  color: var(--mm-text);
  background: #fff;
  font-family: "DIN Pro", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.mm-ind *,
.mm-ind *::before,
.mm-ind *::after {
  box-sizing: border-box;
}

.mm-ind h1,
.mm-ind h2,
.mm-ind h3,
.mm-ind p,
.mm-ind ul,
.mm-ind li,
.mm-ind a,
.mm-ind button,
.mm-ind span {
  font-family: "DIN Pro", Arial, sans-serif;
}

.mm-ind h1,
.mm-ind h2,
.mm-ind h3,
.mm-ind p,
.mm-ind ul,
.mm-ind li {
  margin: 0;
  padding: 0;
  position: static;
}

.mm-ind h1::after,
.mm-ind h2::after,
.mm-ind h3::after {
  content: none !important;
}

.mm-ind ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mm-ind li {
  float: none !important;
  width: auto !important;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.mm-ind a {
  color: inherit;
  text-decoration: none !important;
}

.mm-ind img,
.mm-ind svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.mm-ind a:focus-visible,
.mm-ind button:focus-visible {
  outline: 2px solid #483e95;
  outline-offset: 3px;
}

.mm-ind-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: 96px;
  min-width: 0;
  box-sizing: border-box;
}

/* Как внутренние страницы сайта: шапка в потоке, крошки 40/30, H1 → текст 30px */
.mm-ind-hero {
  padding: 0;
}

.mm-ind-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 40px 0 30px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--mm-muted);
}

.mm-ind-crumbs a {
  color: var(--mm-muted);
}

.mm-ind-crumbs a:hover {
  color: var(--mm-text);
}

.mm-ind-crumbs__sep {
  opacity: 0.6;
}

.mm-ind h1.mm-ind-hero__title {
  font-size: 30px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.56px;
  color: var(--mm-text);
  padding-bottom: 15px;
  margin: 0 0 30px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.mm-ind p.mm-ind-hero__text {
  margin: 0 0 45px;
  max-width: 100%;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--mm-muted);
  overflow-wrap: break-word;
}

/* Grid */
.mm-ind-grid-sec {
  padding: 0 0 24px;
}

.mm-ind-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mm-ind-grid > li {
  min-width: 0;
  width: 100% !important;
}

.mm-ind a.mm-ind-card,
.mm-ind .mm-ind-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 340px;
  height: 340px;
  padding: 28px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff !important;
  isolation: isolate;
}

.mm-ind-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 0.45s ease;
}

.mm-ind-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(23, 21, 38, 0.08) 28%, rgba(23, 21, 38, 0.82) 100%);
  pointer-events: none;
}

.mm-ind-card__bar {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-height: 48px;
  padding-right: 60px;
}

.mm-ind-card__title {
  display: block;
  font-size: 24px;
  line-height: 48px;
  font-weight: 500;
  color: #fff;
}

.mm-ind-card__go {
  position: absolute !important;
  top: 0;
  right: 0;
  z-index: 3;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0aa8b0;
  background-image: linear-gradient(90deg, #9c578c 0%, #0df2f6 100%);
}

.mm-ind-card__go::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 19px 0 0 18px;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
}

.mm-ind a.mm-ind-card:hover .mm-ind-card__bg,
.mm-ind a.mm-ind-card:focus-visible .mm-ind-card__bg {
  transform: scale(1.05);
}

.mm-ind a.mm-ind-card:hover .mm-ind-card__go,
.mm-ind a.mm-ind-card:focus-visible .mm-ind-card__go {
  filter: brightness(1.08);
}

/* Tone fallbacks — no stock photos */
.mm-ind-card--build {
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(13, 242, 246, 0.18), transparent 50%),
    linear-gradient(155deg, #4a3558 0%, #2a1c2c 48%, #6a4a3c 100%);
}

.mm-ind-card--med {
  background:
    radial-gradient(90% 70% at 12% 88%, rgba(13, 242, 246, 0.22), transparent 46%),
    linear-gradient(155deg, #2c4a58 0%, #1c3340 50%, #3a7a78 100%);
}

.mm-ind-card--bank {
  background:
    radial-gradient(80% 70% at 90% 80%, rgba(156, 87, 140, 0.28), transparent 50%),
    linear-gradient(155deg, #1e2744 0%, #2a3458 55%, #3e3482 100%);
}

.mm-ind-card--log {
  background:
    radial-gradient(90% 80% at 8% 12%, rgba(13, 242, 246, 0.16), transparent 48%),
    linear-gradient(155deg, #2a3348 0%, #1c2434 52%, #4a6070 100%);
}

.mm-ind-card--horeca {
  background:
    radial-gradient(90% 80% at 86% 16%, rgba(156, 87, 140, 0.32), transparent 46%),
    linear-gradient(155deg, #4a2a38 0%, #2c1822 50%, #8a4a52 100%);
}

.mm-ind-card--retail {
  background:
    radial-gradient(90% 80% at 14% 86%, rgba(13, 242, 246, 0.2), transparent 48%),
    linear-gradient(155deg, #4a2a54 0%, #2c1838 48%, #9c578c 100%);
}

.mm-ind-card--mobile {
  background:
    radial-gradient(90% 80% at 88% 88%, rgba(13, 242, 246, 0.34), transparent 46%),
    linear-gradient(155deg, #163848 0%, #0e2430 48%, #0aa0aa 100%);
}

.mm-ind-card--auto {
  background:
    radial-gradient(90% 80% at 18% 12%, rgba(156, 87, 140, 0.22), transparent 48%),
    linear-gradient(155deg, #1a1e2c 0%, #12141c 50%, #4a5060 100%);
}

/* CTA */
.mm-ind-cta {
  padding: 48px 0 88px;
}

.mm-ind-cta__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 44px;
  border-radius: 20px;
  background: linear-gradient(90deg, #483e95 0%, #755a8c 100%);
  color: #fff;
}

.mm-ind h2.mm-ind-cta__title {
  font-size: 32px;
  line-height: 40px;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.mm-ind p.mm-ind-cta__text {
  margin: 10px 0 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.mm-ind-btn,
.mm-ind a.mm-ind-btn,
.mm-ind button.mm-ind-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 45px;
  min-height: 45px;
  padding: 0 24px;
  border: 0;
  border-radius: 44px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  appearance: none;
  background: linear-gradient(90deg, #9c578c 0%, #0df2f6 100%);
  color: #fff !important;
}

.mm-ind-btn:hover,
.mm-ind a.mm-ind-btn:hover,
.mm-ind button.mm-ind-btn:hover {
  filter: brightness(1.05);
}

@media (max-width: 1279px) {
  .mm-ind-wrap {
    padding-inline: 48px;
  }

  .mm-ind-hero {
    padding-top: 0;
  }

  .mm-ind a.mm-ind-card,
  .mm-ind .mm-ind-card {
    min-height: 300px;
    height: 300px;
  }
}

@media (max-width: 1023px) {
  .mm-ind-wrap {
    padding-inline: 24px;
  }

  .mm-ind h1.mm-ind-hero__title {
    font-size: 26px;
    line-height: 1.24;
    max-width: none;
  }

  .mm-ind-cta__card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 22px;
  }

  .mm-ind h2.mm-ind-cta__title {
    font-size: 26px;
    line-height: 32px;
  }
}

@media (max-width: 767px) {
  .mm-ind-wrap {
    padding-inline: 16px;
  }

  .mm-ind-hero {
    padding: 0;
  }

  .mm-ind-crumbs {
    padding: 24px 0 20px;
    font-size: 14px;
  }

  .mm-ind h1.mm-ind-hero__title {
    font-size: 23px;
    line-height: 1.3;
    padding-bottom: 11px;
    margin: 0 0 20px;
  }

  .mm-ind p.mm-ind-hero__text {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 32px;
  }

  .mm-ind-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mm-ind a.mm-ind-card,
  .mm-ind .mm-ind-card {
    min-height: 240px;
    height: 240px;
    padding: 20px;
  }

  .mm-ind-card__bar {
    min-height: 42px;
    padding-right: 52px;
  }

  .mm-ind-card__title {
    font-size: 20px;
    line-height: 42px;
  }

  .mm-ind-card__go {
    width: 42px;
    height: 42px;
  }

  .mm-ind-card__go::after {
    margin: 16px 0 0 16px;
  }

  .mm-ind-cta {
    padding: 28px 0 64px;
  }

  .mm-ind-btn,
  .mm-ind a.mm-ind-btn,
  .mm-ind button.mm-ind-btn {
    width: 100%;
  }
}

@media (max-width: 359px) {
  .mm-ind-wrap {
    padding-inline: 16px;
  }
}
