/* Главная: 400+ брендов на Мультикарте. Фон и волна взяты с самой карты. Справа стена подарочных карт в цветах брендов:
   три наклонённые колонки едут вверх и вниз, список в каждой повторён дважды, поэтому движение не прерывается.
   --c задаёт ширину карты. */

.ms-br { --c: 25rem; --g: 1.6rem; --ff-head: var(--ff-tt-firs-text, system-ui), system-ui; position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; height: 56rem; padding: 4.8rem; border-radius: 3.2rem; color: #fff; background: linear-gradient(120deg, #0b50f0, #0a3fe0 55%, #0a78ff); }
.ms-br__wave { position: absolute; z-index: -1; left: -30%; bottom: -20%; width: 115%; height: 130%; opacity: 0.55; }
.ms-br__wave path[stroke] { display: none; }
.ms-br__logo { display: flex; align-items: center; gap: 1.2rem; font-family: var(--ff-head); font-weight: 500; font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; }
.ms-br__logo i { display: grid; place-items: center; width: 5.6rem; height: 5.6rem; border-radius: 1.6rem; background: #fff; }
.ms-br__logo img { display: block; width: 4rem; height: 4rem; object-fit: contain; }
.ms-br h2 { width: 46rem; margin: 3.2rem 0 0; font-family: var(--ff-head); font-weight: 500; font-size: 5.6rem; line-height: 1.08; letter-spacing: -0.02em; }
.ms-br h2 > * { display: block; font-style: normal; }
.ms-br__also { width: 46rem; margin: 0; font-size: 1.6rem; line-height: 1.5; }
.ms-br__also > span { display: block; }
.ms-br__also a { color: inherit; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.ms-br__also a:hover { text-decoration-thickness: 2px; }
.ms-br__also a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 0.2rem; }

.ms-br__wall { position: absolute; left: 56rem; top: 50%; display: flex; gap: var(--g); height: calc(var(--c) * 3.1); transform: translateY(-50%) rotate(8deg); }
.ms-br__col { flex: none; width: var(--c); height: max-content; animation: ms-br-run 50s linear infinite; }
.ms-br__col:nth-child(2) { animation-direction: reverse; animation-duration: 58s; }
.ms-br__col:nth-child(3) { animation-duration: 66s; }
.ms-br__win:hover .ms-br__col { animation-play-state: paused; }
.ms-br__col ul { display: grid; gap: var(--g); margin: 0; padding: 0 0 var(--g); list-style: none; }
@keyframes ms-br-run { to { transform: translateY(-50%); } }

/* Карта */
.ms-gc { box-sizing: border-box; position: relative; display: grid; place-items: center; height: calc(var(--c) * 0.63); padding-bottom: calc(var(--c) * 0.06); border-radius: calc(var(--c) * 0.08); color: #fff; background: var(--b); }
.ms-gc img { display: block; width: auto; height: auto; max-width: 56%; max-height: calc(var(--c) * 0.29); }
.ms-gc span { position: absolute; left: 8%; bottom: 9%; font-size: calc(var(--c) * 0.048); line-height: 1.2; }
.ms-gc--ozon { --b: #fff; color: #005bff; }
.ms-gc--goldapple { --b: #62f87a; color: #121212; }
.ms-gc--hoff { --b: #da0916; }
.ms-gc--lamoda { --b: #1f1f1f; }
.ms-gc--podruzhka { --b: #ea5092; }
.ms-gc--magnit { --b: #ed0e00; }
.ms-gc--rivgosh, .ms-gc--sportmaster { --b: #fff; color: #121212; }
.ms-gc--wb { --b: linear-gradient(120deg, #ed3cca, #cb11ab 45%, #6a1fb0); }
.ms-gc--letual { --b: #ffc814; color: #182096; }
.ms-gc--detmir { --b: #fff; color: #0073e6; }
.ms-gc--vkusvill { --b: #35ba60; }
.ms-gc--sokolov { --b: #f00; }
.ms-gc--kari { --b: #991e66; }
.ms-gc--ulybka { --b: #ed1847; }
.ms-gc--wb img, .ms-gc--lamoda img { width: auto; height: calc(var(--c) * 0.24); max-width: none; }
.ms-gc--podruzhka img { max-height: calc(var(--c) * 0.36); }

@media (min-width: 700.1px) and (max-width: 1100px) {
  .ms-br { --c: 15rem; --g: 1rem; height: 40rem; padding: 3.2rem; border-radius: 2.4rem; }
  .ms-br__logo { font-size: 2.2rem; }
  .ms-br__logo i { width: 4.8rem; height: 4.8rem; border-radius: 1.4rem; }
  .ms-br__logo img { width: 3.4rem; height: 3.4rem; }
  .ms-br h2 { width: 28rem; margin-top: 2.4rem; font-size: 3.4rem; }
  .ms-br__also { width: 27rem; font-size: 1.5rem; }
  .ms-br__wall { left: 34rem; height: 50rem; }
}

@media (max-width: 700px) {
  .ms-br { --c: 14rem; --g: 1rem; display: block; height: auto; padding: 0; border-radius: 2.4rem; }
  .ms-br__wave { display: none; }
  .ms-br__head { padding: 2rem 2rem 2.4rem; }
  .ms-br__logo { gap: 1rem; font-size: 2rem; }
  .ms-br__logo i { width: 4.4rem; height: 4.4rem; border-radius: 1.3rem; }
  .ms-br__logo img { width: 3.2rem; height: 3.2rem; }
  .ms-br h2 { width: auto; margin-top: 1.6rem; font-size: 3.2rem; }
  .ms-br__win { position: relative; overflow: hidden; height: 34rem; }
  .ms-br__wall { left: 50%; height: 44rem; transform: translate(-50%, -50%) rotate(8deg); }
  .ms-br__also { width: auto; padding: 2rem; font-size: 1.5rem; }
}

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