/* =========================================================
   MIRIDEA · страница «О нас» v1.0
   Блоки: первый экран, «С чем работаем», текст о студии
   (с «Читать полностью»), клиенты по всему миру.
   Цифры, форма заявки и подвал — общие с главной (blocks.css, brief.css).
   ========================================================= */

/* ---------- Первый экран ---------- */
.m-about-hero { padding: 170px 0 40px; }
@media (max-width: 992px) { .m-about-hero { padding: 110px 0 30px; } }
@media (max-width: 768px) { .m-about-hero { padding: 90px 0 20px; } }
.m-about-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 30px 50px;
}
@media (max-width: 992px) { .m-about-hero__grid { grid-template-columns: 1fr; } }
.m-about-hero__crumbs { display: flex; gap: 8px; margin: 0 0 22px; font-size: 14px; color: #8090aa; }
.m-about-hero__crumbs a { color: #8090aa; transition: color .3s; }
.m-about-hero__crumbs a:hover { color: #f93c3c; }
.m-about-hero__title {
  margin: 0 0 24px; font-weight: 500; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.15;
  text-transform: uppercase; color: #39404b;
}
.m-about-hero__title span {
  font-weight: 700;
  background: linear-gradient(169deg, #f93c3c 0%, #cd0973 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.m-about-hero__text { display: flex; flex-direction: column; gap: 14px; max-width: 58ch; }
.m-about-hero__text p { margin: 0; font-size: 16px; line-height: 1.6; color: #8090aa; }
.m-about-hero__pic img { display: block; width: 100%; height: auto; max-width: 640px; margin-left: auto; }
@media (max-width: 992px) { .m-about-hero__pic img { margin: 0 auto; } }

/* ---------- С чем работаем ---------- */
.m-stack { padding-block: 30px 70px; }
.m-stack__band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px 36px;
  padding: 26px clamp(20px, 4vw, 56px);
  border-radius: 10px 26px 10px 26px;
  background: linear-gradient(120deg, #a068f8 0%, #3f55c3 55%, #184eae 100%);
  box-shadow: 0 24px 50px -30px rgba(63, 85, 195, .8);
}
.m-stack__band::after { /* мягкий блик */
  content: ""; position: absolute; inset: -40% auto auto -10%; z-index: -1; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); pointer-events: none;
}
.m-stack__title { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; color: #fff; }

/* Бегущая лента логотипов в одну строку, пауза при наведении */
.m-marquee {
  display: flex; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.m-marquee__row { display: flex; width: max-content; animation: m-marquee var(--dur, 80s) linear infinite; }
.m-marquee:hover .m-marquee__row { animation-play-state: paused; }
.m-marquee__group { display: flex; gap: 12px; margin: 0; padding: 0 12px 0 0; list-style: none; }
@keyframes m-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.m-tech {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 108px; height: 78px; padding: 8px 10px;
  border-radius: 8px 18px 7px 18px; background: #fff;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s;
}
.m-tech:hover { transform: translateY(-4px); box-shadow: 0 14px 26px -14px rgba(10, 8, 60, .6); }
.m-tech img { display: block; max-width: 100%; max-height: 40px; width: auto; height: auto; object-fit: contain; }
.m-tech:has(.m-tech__name) img { max-height: 32px; }
.m-tech__name { font-size: 11px; font-weight: 500; line-height: 1.1; color: #6b7690; text-align: center; white-space: nowrap; }

@media (max-width: 768px) {
  .m-stack__band { grid-template-columns: 1fr; }
  .m-tech { width: 96px; height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .m-marquee { overflow-x: auto; }
  .m-marquee__row { animation: none; }
  .m-marquee__group[aria-hidden="true"] { display: none; }
}

/* ---------- Текст о студии ---------- */
.m-story { padding-block: clamp(60px, 7vw, 100px); background: #fff; }
.m-story__grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px 60px; align-items: start; }
@media (max-width: 992px) { .m-story__grid { grid-template-columns: 1fr; } }
.m-story .title2 { width: auto; margin: 0; line-height: 1.2; }
.m-story__body { position: relative; }
.m-story__text { position: relative; overflow: hidden; transition: max-height .8s cubic-bezier(.22, 1, .36, 1); }
.m-story__text p { margin: 0 0 14px; font-size: 15px; line-height: 1.65; color: #8090aa; }
.m-story__text p b { font-weight: 500; color: #39404b; }
.m-story__text.is-collapsed { max-height: 290px; }
.m-story__text.is-collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}
.m-story__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 15px; font-weight: 500; color: #39404b; cursor: pointer;
}
.m-story__more svg { width: 18px; height: 18px; fill: none; stroke: #f93c3c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.m-story__more:hover { color: #f93c3c; }
.m-story__more:hover svg { transform: translateX(5px); }
.m-story__more[aria-expanded="true"] svg { transform: rotate(-90deg); }
.m-story__more:focus-visible { outline: 2px solid #a068f8; outline-offset: 3px; border-radius: 4px; }

/* ---------- Клиенты по всему миру ---------- */
.m-world { padding-block: clamp(60px, 7vw, 100px); }
.m-world__head { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px 60px; align-items: start; margin-bottom: 44px; }
@media (max-width: 992px) { .m-world__head { grid-template-columns: 1fr; } }
.m-world .title2 { width: auto; margin: 0; line-height: 1.2; }
.m-world__lead { margin: 0; font-size: 15px; line-height: 1.65; color: #8090aa; max-width: 64ch; }
.m-world__logos {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none;
}
@media (max-width: 768px) { .m-world__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.m-world__logo {
  display: grid; place-items: center; height: 120px; padding: 20px;
  border: 1px solid #e4e7f0; border-radius: 10px 22px 10px 22px; background: #fff;
  transition: border-color .4s, transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s;
}
.m-world__logo img { max-width: 70%; max-height: 56px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s; }
.m-world__logo:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 18px 36px -22px rgba(63, 85, 195, .5); }
.m-world__logo:hover img { filter: none; opacity: 1; }
.m-world__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.m-world__foot .btn--primary { min-height: 52px; padding: 5px 32px; }
.m-world__foot p { margin: 0; font-size: 14px; line-height: 1.5; color: #8090aa; }
.m-world__foot p a { color: #39404b; text-decoration: underline; text-decoration-color: rgba(57, 64, 75, .3); text-underline-offset: 3px; }
.m-world__foot p a:hover { color: #f93c3c; }

/* Активный пункт меню */
.header__menu a[aria-current="page"] { color: #f93c3c; }
