/* Подуслуга МОРЕМЕДИА — Figma 243:104 / 243:393 */

.mm-sub-page { overflow-x: hidden; }

.mm-sub {
  color: #252a38;
  background: #fff;
  font-family: Inter, "DIN Pro", Arial, sans-serif;
}

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

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

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

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

.mm-sub li {
  float: none !important;
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

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

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

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

.mm-container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 0;
}

.mm-eyebrow {
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #737887;
}

.mm-h2 {
  font-size: 40px;
  line-height: 48px;
  font-weight: 600;
  color: #252a38;
}

.mm-lead {
  font-size: 18px;
  line-height: 28px;
  color: #737887;
}

.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  min-height: 45px;
  max-width: 100%;
  padding: 0 20px;
  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: none;
}

.mm-sub a.mm-btn--dark,
.mm-sub button.mm-btn--dark {
  background: #483e95;
  color: #fff !important;
}

.mm-sub a.mm-btn--ghost,
.mm-sub button.mm-btn--ghost {
  background: #fff;
  color: #3e3482 !important;
  box-shadow: inset 0 0 0 1.5px #3e3482;
}

.mm-sub a.mm-btn--grad,
.mm-sub button.mm-btn--grad {
  background: linear-gradient(90deg, #9c578c 0%, #0df2f6 100%);
  color: #fff !important;
}

/* Hero */
.mm-hero { padding-block: 56px; }

.mm-hero .mm-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mm-crumbs {
  font-size: 14px;
  line-height: 20px;
  color: #737887;
}

.mm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.mm-hero__grid > * {
  min-width: 0;
  max-width: 100%;
}

.mm-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

.mm-hero__title {
  font-size: 48px;
  line-height: 56px;
  font-weight: 600;
  color: #252a38;
  overflow-wrap: break-word;
  max-width: 100%;
}

.mm-hero__offer {
  font-size: 20px;
  line-height: 30px;
  color: #737887;
}

.mm-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.mm-hero__cta .mm-btn--dark { min-width: min(169px, 100%); }
.mm-hero__cta .mm-btn--ghost { min-width: min(239px, 100%); }

.mm-hero__visual {
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 566 / 200;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f2fa 0%, #e5e1f2 100%);
}

.mm-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-hero__ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #737887;
  font-size: 14px;
  line-height: 20px;
}

/* Services */
.mm-services { padding-block: 80px; }

.mm-services .mm-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mm-services__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.mm-services-grid > li { display: flex; flex-direction: column; min-width: 0; }

.mm-sub li.mm-scard,
.mm-scard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100% !important;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 20px !important;
  border-radius: 20px;
  background: #f5f5f8;
}

.mm-scard__img {
  width: 100%;
  align-self: stretch;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #f4f2fa 0%, #e5e1f2 100%);
}

.mm-scard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-sub .mm-scard__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #252a38;
  margin: 0 0 8px !important;
  overflow-wrap: break-word;
  max-width: 100%;
}

.mm-sub .mm-scard__price {
  font-size: 15px;
  line-height: 21px;
  color: #3e3482;
  margin: 0 0 16px !important;
}

.mm-scard .mm-btn {
  align-self: flex-start;
  margin-top: 0;
  height: 45px;
  width: auto;
  max-width: 100%;
}

.mm-services__note {
  font-size: 14px;
  line-height: 22px;
  color: #737887;
}

/* Clients */
.mm-clients {
  padding-block: 72px;
  overflow-x: hidden;
  max-width: 100%;
}

.mm-clients .mm-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.mm-clients__ticker {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border-top: 1px solid #eceaf1;
  border-bottom: 1px solid #eceaf1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}

.mm-clients__track {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: none;
  animation: mm-clients-marquee 90s linear infinite;
}

.mm-clients__ticker:hover .mm-clients__track {
  animation-play-state: paused;
}

.mm-sub li.mm-clients__item,
.mm-clients__item {
  display: flex;
  flex: 0 0 260px;
  width: 260px !important;
  min-width: 260px;
  max-width: 260px;
  border-right: 1px solid #eceaf1;
}

.mm-clients__card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 149px;
  min-height: 149px;
  padding: 20px 24px;
  background: #fff;
  overflow: hidden;
}

.mm-sub .mm-clients__logo,
.mm-clients__logo {
  max-height: 100px;
  width: auto;
  height: auto;
  max-width: 200px;
  object-fit: contain;
}

.mm-client__ph {
  font-size: 13px;
  color: #737887;
  text-align: center;
}

@keyframes mm-clients-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .mm-clients__track { animation: none; }
}

/* Projects */
.mm-projects {
  padding-block: 80px;
  background: #f5f5f8;
}

.mm-projects .mm-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mm-projects__head {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mm-projects__titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.mm-projects__tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mm-projects__all {
  color: #483e95 !important;
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
}

.mm-carousel {
  position: relative;
  min-width: 0;
}

.mm-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.mm-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.4s ease;
  will-change: transform;
}

.mm-sub li.mm-carousel__slide,
.mm-carousel__slide {
  display: flex;
  float: none !important;
  width: calc((100% - 24px) / 3) !important;
  max-width: none;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
  flex: 0 0 calc((100% - 24px) / 3);
}

.mm-carousel__nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
}

.mm-carousel__nav[hidden] {
  display: none;
}

.mm-carousel__btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 50%;
  background: #483e95;
  cursor: pointer;
  position: relative;
}

.mm-carousel__btn:hover {
  filter: brightness(1.12);
}

.mm-carousel__btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.mm-carousel__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-135deg) translate(-1px, 1px);
}

.mm-carousel__btn--next::after {
  transform: rotate(45deg) translate(-1px, 1px);
}

.mm-pcard {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 12px rgba(37, 42, 56, 0.06);
}

.mm-pcard__img {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #f4f2fa 0%, #e5e1f2 100%);
}

.mm-pcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-pcard__title {
  font-size: 18px;
  line-height: 25px;
  font-weight: 600;
  color: #252a38;
}

.mm-pcard__meta {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: #737887;
}

/* Geography */
.mm-geo {
  padding-block: 64px;
  background: #f5f5f8;
}

.mm-geo .mm-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mm-geo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mm-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 44px;
  background: #fff;
  border: 1px solid rgba(156, 87, 140, 0.22);
  font-size: 15px;
  line-height: 21px;
  color: #3e3482;
}

/* FAQ */
.mm-faq { padding-block: 80px; }

.mm-faq .mm-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mm-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1046px;
}

.mm-faq-item {
  background: #f5f5f8;
  border-radius: 20px;
}

.mm-faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 100px;
  padding: 22px;
  border: 0;
  background: transparent;
  text-align: left;
  font: 500 17px/26px Inter, sans-serif;
  color: #252a38;
  cursor: pointer;
}

.mm-faq-item__icon {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.mm-faq-item__icon::before,
.mm-faq-item__icon::after {
  content: "";
  position: absolute;
  background: #252a38;
}

.mm-faq-item__icon::before {
  width: 14px;
  height: 2px;
  left: 4px;
  top: 10px;
}

.mm-faq-item__icon::after {
  width: 2px;
  height: 14px;
  left: 10px;
  top: 4px;
}

.mm-faq-item.is-open .mm-faq-item__icon::after { opacity: 0; }

.mm-faq-item__panel {
  display: none;
  padding: 0 22px 22px;
  font-size: 16px;
  line-height: 24px;
  color: #737887;
}

.mm-faq-item.is-open .mm-faq-item__panel { display: block; }

/* Letters */
.mm-letters {
  padding-block: 72px;
  background: linear-gradient(90deg, #9c578c 0%, #483e95 100%);
  color: #fff;
}

.mm-letters .mm-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mm-letters .mm-eyebrow,
.mm-letters .mm-h2 { color: #fff; }

.mm-letters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mm-letters-grid > li,
.mm-sub li.mm-letter,
.mm-letter {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  width: 100% !important;
  padding: 16px !important;
  border-radius: 20px;
  background: #fff;
  color: #252a38;
}

.mm-letter__preview {
  width: 100%;
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f5f5f8;
}

.mm-letter__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.mm-letter__ph {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: #737887;
  font-size: 14px;
}

.mm-letter__name {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* CTA */
.mm-cta {
  padding-block: 80px;
  background: #fff;
}

.mm-cta__card {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 578px);
  gap: 44px;
  justify-content: space-between;
  padding: 44px;
  border-radius: 20px;
  background: linear-gradient(90deg, #483e95 0%, #755a8c 100%);
}

.mm-cta__title {
  font-size: 34px;
  line-height: 42px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.mm-cta__text {
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.mm-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 578px;
}

.mm-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.mm-field input,
.mm-field textarea {
  width: 100%;
  height: 72px;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  font: 15px/1.3 Inter, sans-serif;
  color: #252a38;
  background: #fff;
}

.mm-field textarea { height: auto; min-height: 72px; resize: vertical; }

.mm-field__error {
  display: none;
  margin-top: 4px;
  color: #ffd0d0;
  font-size: 13px;
}

.mm-field.is-invalid .mm-field__error { display: block; }

.mm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

.mm-form__submit {
  align-self: flex-start;
  min-width: 180px;
}

.mm-form__ok {
  display: none;
  color: #0df2f6;
  font-weight: 600;
}

.mm-form.is-ok .mm-form__ok { display: block; }

/* 1024–1279 */
@media (max-width: 1279px) {
  .mm-container { padding-inline: 48px; }
  .mm-hero__grid,
  .mm-cta__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .mm-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-sub li.mm-carousel__slide,
  .mm-carousel__slide {
    flex-basis: calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2) !important;
  }

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

/* 768–1023 */
@media (max-width: 1023px) {
  .mm-container { padding-inline: 40px; }
  .mm-hero__grid,
  .mm-cta__card { grid-template-columns: 1fr; }
  .mm-hero__title { font-size: 34px; line-height: 42px; }
  .mm-h2 { font-size: 28px; line-height: 36px; }
}

/* 360–767 = mobile 243:393 */
@media (max-width: 767px) {
  .mm-container { padding-inline: 18px; }

  .mm-hero { padding: 28px 0 44px; }
  .mm-hero .mm-container { gap: 18px; }
  .mm-hero__copy { gap: 18px; }
  .mm-hero__offer { font-size: 17px; line-height: 26px; }
  .mm-hero__cta { flex-direction: column; gap: 10px; }
  .mm-hero__cta .mm-btn { width: 100%; min-width: 0; }
  .mm-hero__visual { width: 100%; height: auto; aspect-ratio: 354 / 220; }

  .mm-services,
  .mm-clients,
  .mm-projects,
  .mm-geo,
  .mm-faq,
  .mm-letters,
  .mm-cta { padding-block: 48px; }

  .mm-services .mm-container,
  .mm-faq .mm-container { gap: 28px; }

  .mm-services-grid { grid-template-columns: 1fr; }
  .mm-sub li.mm-carousel__slide,
  .mm-carousel__slide {
    flex-basis: 100%;
    width: 100% !important;
  }

  .mm-sub li.mm-scard,
  .mm-scard { padding: 16px !important; }
  .mm-scard__title { font-size: 18px; line-height: 25px; }
  .mm-scard__price { font-size: 14px; line-height: 20px; }
  .mm-scard .mm-btn { height: 44px; min-height: 44px; }

  .mm-sub li.mm-clients__item,
  .mm-clients__item {
    flex: 0 0 200px;
    width: 200px !important;
    min-width: 200px;
    max-width: 200px;
  }
  .mm-clients__card {
    height: 120px;
    min-height: 120px;
    padding: 16px 18px;
  }
  .mm-sub .mm-clients__logo,
  .mm-clients__logo {
    max-height: 72px;
    max-width: 160px;
  }

  .mm-pcard { padding: 14px; }
  .mm-pcard__img { height: 190px; }
  .mm-pcard__title { font-size: 16px; line-height: 22px; }
  .mm-pcard__meta { font-size: 13px; line-height: 18px; }

  .mm-geo-pills { gap: 8px; }
  .mm-pill { padding: 9px 14px; }

  .mm-faq-item { border-radius: 18px; }
  .mm-faq-item__btn {
    min-height: 0;
    padding: 16px;
    font-size: 15px;
    line-height: 22px;
  }

  .mm-cta__card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }
  .mm-cta__title { font-size: 27px; line-height: 35px; }
  .mm-form { max-width: none; }
  .mm-field input,
  .mm-field textarea { padding: 12px; }
  .mm-form__submit { width: 100%; }
}

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