/* MorozMusic — блок «Подпишитесь на новости» + попапы Y/D/N
   Desktop: rem (1rem = 1px при 1920, как на всём сайте). Mobile <=768: px. */

.mms, .mms-popup {
  --mms-red: #FF1F1F; --mms-red-hover: #E51414; --mms-pink: #FFECEC;
  --mms-dark: #282828; --mms-muted: #8A8A8A; --mms-gray: #F2F2F2; --mms-line: #E6E6E6;
  font-family: "Inter", Arial, sans-serif; letter-spacing: 0; box-sizing: border-box;
}
.mms *, .mms *::before, .mms *::after, .mms-popup *, .mms-popup *::before, .mms-popup *::after { box-sizing: border-box; }

.mms {
  width: 100%; margin: 60rem 0 0;
  display: flex; align-items: center; gap: 32rem;
  padding: 36rem; background: #fff;
  border: 1px solid var(--mms-line); border-radius: 28rem;
}
.mms__head { display: contents; }
.mms__icon {
  flex: 0 0 96rem; width: 96rem; height: 96rem; border-radius: 20rem;
  background: var(--mms-red); display: flex; align-items: center; justify-content: center;
}
.mms__icon svg { width: 44rem; height: 44rem; }
.mms__text { flex: 1 1 auto; min-width: 0; }
.mms .mms__title { margin: 0 0 8rem; padding: 0; font-size: 28rem; font-weight: 700; line-height: 1.2; color: var(--mms-dark); }
.mms .mms__lead { margin: 0; padding: 0; font-size: 16rem; font-weight: 400; line-height: 1.35; color: var(--mms-muted); }

.mms__form { flex: 0 0 520rem; width: 520rem; margin: 0; }
.mms__field {
  display: flex; align-items: center; gap: 8rem;
  padding: 6rem 6rem 6rem 20rem; background: var(--mms-gray);
  border: 1.5px solid transparent; border-radius: 14rem; transition: border-color .2s;
}
.mms__field:focus-within { border-color: #D0D0D0; }
.mms__field.is-error { border-color: var(--mms-red); }
.mms .mms__input {
  flex: 1 1 auto; min-width: 0; height: 52rem; margin: 0; padding: 0;
  border: 0; outline: 0; background: transparent; box-shadow: none;
  font: 400 16rem/1 "Inter", Arial, sans-serif; color: var(--mms-dark);
}
.mms .mms__input::placeholder { color: #999; }
.mms .mms__btn {
  flex: 0 0 auto; position: relative; height: 52rem; margin: 0; padding: 0 32rem;
  border: 0; border-radius: 11rem; background: var(--mms-red); color: #fff;
  font: 500 18rem/1 "Inter", Arial, sans-serif; cursor: pointer; transition: background .2s, opacity .2s;
}
.mms .mms__btn:hover { background: var(--mms-red-hover); }
.mms .mms__btn:disabled { cursor: default; opacity: .75; }
.mms__btn.is-loading .mms__btn-label { visibility: hidden; }
.mms__btn.is-loading::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: mms-spin .7s linear infinite;
}
@keyframes mms-spin { to { transform: rotate(360deg); } }

.mms__error { display: none; margin: 8rem 0 0 4rem; font-size: 12rem; color: var(--mms-red); }
.mms__error.is-visible { display: block; }

.mms__consent {
  position: relative; display: flex; align-items: flex-start; gap: 10rem; margin-top: 12rem;
  font-size: 12rem; font-weight: 400; line-height: 1.3; color: var(--mms-muted); cursor: pointer;
}
.mms__consent input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.mms__check {
  flex: 0 0 18rem; width: 18rem; height: 18rem; border: 1.5px solid #CBCBCB; border-radius: 5rem; background: #fff;
  display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s;
}
.mms__check svg { width: 12rem; height: 12rem; opacity: 0; }
.mms__consent input:checked + .mms__check { background: var(--mms-red); border-color: var(--mms-red); }
.mms__consent input:checked + .mms__check svg { opacity: 1; }
.mms__consent input:focus-visible + .mms__check { outline: 2px solid var(--mms-red); outline-offset: 2px; }
.mms__consent.is-error .mms__check { border-color: var(--mms-red); }
.mms__consent a { color: var(--mms-red); text-decoration: none; }
.mms__consent a:hover { text-decoration: underline; }
.mms__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Попапы ---------- */
.mms-popup {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s ease;
}
.mms-popup.is-open { visibility: visible; opacity: 1; }
.mms-popup__overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(20,20,20,.6); }
.mms-popup__dialog {
  position: relative; width: 100%; max-width: 520rem; padding: 56rem 48rem 44rem;
  background: #fff; border-radius: 28rem; box-shadow: 0 24px 60px rgba(0,0,0,.18); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 28rem;
  transform: translateY(16px) scale(.98); transition: transform .25s ease;
}
.mms-popup.is-open .mms-popup__dialog { transform: none; }
.mms-popup .mms-popup__close {
  position: absolute; top: 20rem; right: 20rem; width: 40rem; height: 40rem; padding: 0;
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: 11rem; background: var(--mms-gray); cursor: pointer;
}
.mms-popup .mms-popup__close:hover { background: #E6E6E6; }
.mms-popup__close svg { width: 18rem; height: 18rem; }
.mms-popup__grabber { display: none; }
.mms-popup__icon { width: 88rem; height: 88rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mms-pink); }
.mms-popup__icon--gray { background: var(--mms-gray); }
.mms-popup__icon svg { width: 48rem; height: 48rem; }
.mms-popup__text { display: flex; flex-direction: column; gap: 10rem; }
.mms-popup .mms-popup__title { margin: 0; padding: 0; font-size: 30rem; font-weight: 700; line-height: 1.2; color: var(--mms-dark); }
.mms-popup .mms-popup__lead { margin: 0; padding: 0; font-size: 16rem; font-weight: 400; line-height: 1.4; color: var(--mms-muted); }
.mms-popup__lead b { font-weight: 500; color: var(--mms-dark); }
.mms-popup__lead a { color: var(--mms-dark); font-weight: 500; text-decoration: none; white-space: nowrap; }
.mms-popup__actions { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14rem; }
.mms-popup .mms-popup__btn {
  width: 100%; height: 56rem; margin: 0; border: 0; border-radius: 11rem; background: var(--mms-red); color: #fff;
  font: 500 18rem/1 "Inter", Arial, sans-serif; cursor: pointer; transition: background .2s;
}
.mms-popup .mms-popup__btn:hover { background: var(--mms-red-hover); }
.mms-popup .mms-popup__link { padding: 0; font: 500 14rem "Inter", Arial, sans-serif; color: var(--mms-muted); text-decoration: underline; background: none; border: 0; cursor: pointer; }
.mms-popup .mms-popup__link:hover { color: var(--mms-dark); }
body.mms-lock { overflow: hidden; }

/* ---------- Mobile (как на сайте: до 768px, в px) ---------- */
@media (max-width: 768px) {
  .mms { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 30px; padding: 24px 20px; border-radius: 20px; }
  .mms__head { display: flex; align-items: center; gap: 16px; }
  .mms__icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; align-self: baseline;}
  .mms__icon svg { width: 28px; height: 28px; }
  .mms .mms__title { font-size: 20px; margin-bottom: 4px; }
  .mms .mms__lead { font-size: 13px; }
  .mms__form { flex: 1 1 auto; width: 100%; }
  .mms__field { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; background: none; border: 0; }
  .mms .mms__input { height: 52px; padding: 0 16px; font-size: 16px; background: var(--mms-gray); border: 1.5px solid transparent; border-radius: 11px; }
  .mms__field.is-error .mms__input { border-color: var(--mms-red); }
  .mms .mms__btn { width: 100%; height: 52px; padding: 0 20px; font-size: 16px; border-radius: 11px; }
  .mms__error { margin: 8px 0 0 4px; font-size: 12px; }
  .mms__consent { gap: 10px; margin-top: 12px; font-size: 12px; }
  .mms__check { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 5px; }
  .mms__check svg { width: 12px; height: 12px; }

  .mms-popup { align-items: flex-end; padding: 0; }
  .mms-popup__dialog { max-width: none; padding: 12px 20px 32px; gap: 22px; border-radius: 24px 24px 0 0; transform: translateY(100%); }
  .mms-popup .mms-popup__close { display: none; }
  .mms-popup__grabber { display: block; width: 40px; height: 4px; border-radius: 2px; background: #D9D9D9; }
  .mms-popup__icon { width: 72px; height: 72px; }
  .mms-popup__icon svg { width: 40px; height: 40px; }
  .mms-popup__text { gap: 10px; }
  .mms-popup .mms-popup__title { font-size: 24px; }
  .mms-popup .mms-popup__lead { font-size: 14px; }
  .mms-popup__actions { gap: 14px; }
  .mms-popup .mms-popup__btn { height: 52px; font-size: 16px; border-radius: 11px; }
  .mms-popup .mms-popup__link { font-size: 14px; }
}

/* v1.1 ??? ?????????? ???????????? ???????????? ?????????? */
.mms input.mms__input, .mms input.mms__input::placeholder { font-size: 16rem !important; font-family: "Inter", Arial, sans-serif !important; }
.mms-popup button:focus { outline: none; }
.mms-popup button:focus-visible { outline: 2px solid rgba(40,40,40,.35); outline-offset: 2px; }
@media (max-width: 768px) {
  .mms input.mms__input, .mms input.mms__input::placeholder { font-size: 16px !important; }
}
.mms__consent--ads { margin-top: 8rem; }
@media (max-width: 768px) { .mms__consent--ads { margin-top: 8px; } }

/* v1.3 — ровные отступы: сверху и снизу блока одинаково, как между соседними блоками */
.mms { margin-top: 60rem; }
.mms ~ #landing-contact { margin-top: 60rem; }
@media (max-width: 768px) {
  .mms { margin-top: 25px; }
  .mms ~ #landing-contact { margin-top: 25px; }
}
/* v1.5 ??? ???????? ?????????? ?????? SEO-??????????????: ???????????????????? ?????????????? ???????????? ?? ?????????? */
.mms ~ .front-text { margin-top: 60rem !important; padding-top: 0 !important; }

/* v1.6 — форма подписки в футере (десктоп: rem, мобилка: px) */
.mms-f {
  --mms-red: #FF1F1F; --mms-red-hover: #E51414; --mms-dark: #282828;
  font-family: "Inter", Arial, sans-serif; letter-spacing: 0; box-sizing: border-box;
  width: 100%; max-width: 260rem;
}
.mms-f *, .mms-f *::before, .mms-f *::after { box-sizing: border-box; }
.mms-f form { margin: 0; padding: 0; }
.mms-f .mms__field { display: block; padding: 0; background: none; border: 0; border-radius: 0; }
.mms-f input.mms__input {
  display: block; width: 100%; height: 40rem; margin: 0; padding: 0 12rem;
  background: #fff; border: 1.5px solid transparent; border-radius: 8rem; outline: 0; box-shadow: none;
  font: 400 14rem/1 "Inter", Arial, sans-serif !important; color: var(--mms-dark);
}
.mms-f input.mms__input::placeholder { color: #999; font-size: 14rem !important; }
.mms-f .mms__field.is-error input.mms__input { border-color: var(--mms-red); }
.mms-f .mms__btn {
  position: relative; display: block; width: 100%; height: 40rem; margin: 10rem 0 0; padding: 0 12rem;
  border: 0; border-radius: 8rem; background: var(--mms-red); color: #fff;
  font: 500 15rem/1 "Inter", Arial, sans-serif; cursor: pointer; transition: background .2s, opacity .2s;
}
.mms-f .mms__btn:hover { background: var(--mms-red-hover); }
.mms-f .mms__btn:disabled { cursor: default; opacity: .75; }
.mms-f .mms__consent { margin-top: 10rem; gap: 8rem; font-size: 11rem; line-height: 1.3; color: #BDBDBD; }
.mms-f .mms__consent--ads { margin-top: 6rem; }
.mms-f .mms__check { flex: 0 0 14rem; width: 14rem; height: 14rem; border-radius: 4rem; border-color: #8A8A8A; background: transparent; }
.mms-f .mms__check svg { width: 10rem; height: 10rem; }
.mms-f .mms__consent a { color: #fff; text-decoration: underline; }
.mms-f .mms__consent a:hover { color: #FF6B6B; }
.mms-f .mms__error { margin: 8rem 0 0; font-size: 11rem; color: #FF6B6B; }

/* мобильный футер */
.mms-f--mob { max-width: none; margin: 24px 0 8px; text-align: left; }
.mms-f--mob .mms-f__title { font-size: 18px; font-weight: 700; line-height: 1.2; color: #fff; text-align: center; }
.mms-f--mob .mms-f__lead { margin: 6px 0 14px; font-size: 13px; line-height: 1.35; color: #BDBDBD; text-align: center; }
.mms-f--mob input.mms__input { height: 52px; padding: 0 16px; border-radius: 12px; font-size: 16px !important; }
.mms-f--mob input.mms__input::placeholder { font-size: 16px !important; }
.mms-f--mob .mms__btn { height: 52px; margin-top: 12px; border-radius: 12px; font-size: 18px; }
.mms-f--mob .mms__consent { margin-top: 12px; gap: 10px; font-size: 12px; }
.mms-f--mob .mms__consent--ads { margin-top: 8px; }
.mms-f--mob .mms__check { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 5px; }
.mms-f--mob .mms__check svg { width: 12px; height: 12px; }
.mms-f--mob .mms__error { margin-top: 8px; font-size: 12px; }
.mms-f > .footer-title { font-family: Arial, Helvetica, sans-serif; letter-spacing: normal; white-space: nowrap; }

/* v1.8 — карточка подписки на странице «Спасибо за покупку» */
.mms-s {
  --mms-red: #FF1F1F; --mms-red-hover: #E51414; --mms-dark: #282828;
  box-sizing: border-box; margin: 40rem 0 0; padding: 24rem; background: #F2F2F2; border-radius: 20rem;
  text-align: left; font-family: "Inter", Arial, sans-serif; letter-spacing: 0; line-height: normal;
}
.mms-s *, .mms-s *::before, .mms-s *::after { box-sizing: border-box; }
.mms-s form { margin: 20rem 0 0; padding: 0; }
.mms-s__head { display: flex; align-items: center; gap: 20rem; }
.mms-s__icon { flex: 0 0 56rem; width: 56rem; height: 56rem; border-radius: 14rem; background: var(--mms-red); display: flex; align-items: center; justify-content: center; }
.mms-s__icon svg { width: 28rem; height: 28rem; }
.mms-s__title { font-size: 18rem; font-weight: 700; line-height: 1.2; color: var(--mms-dark); }
.mms-s__lead { margin-top: 4rem; font-size: 14rem; line-height: 1.3; color: #8A8A8A; }
.mms-s .mms__field { display: flex; gap: 12rem; padding: 0; background: none; border: 0; border-radius: 0; }
.mms-s .mms-s__input {
  flex: 1 1 auto; min-width: 0; height: 52rem; padding: 7rem 16rem; margin: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  background: #fff; border: 1.5px solid transparent; border-radius: 11rem; cursor: text;
}
.mms-s .mms-s__input > span { font-size: 10rem; font-weight: 500; color: #B3B3B3; line-height: 1; }
.mms-s input.mms__input {
  width: 100%; height: auto; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none;
  font: 400 16rem/1.2 "Inter", Arial, sans-serif !important; color: var(--mms-dark);
}
.mms-s input.mms__input::placeholder { color: #C4C4C4; font-size: 16rem !important; }
.mms-s .mms__field:focus-within .mms-s__input { border-color: #D0D0D0; }
.mms-s .mms__field.is-error .mms-s__input { border-color: var(--mms-red); }
.mms-s .mms__btn {
  position: relative; flex: 0 0 auto; height: 52rem; margin: 0; padding: 0 28rem; border: 0; border-radius: 11rem;
  background: var(--mms-red); color: #fff; font: 500 16rem/1 "Inter", Arial, sans-serif; cursor: pointer; transition: background .2s;
}
.mms-s .mms__btn:hover { background: var(--mms-red-hover); }
.mms-s .mms__consent { color: #8A8A8A; }
.mms-s .mms__consent a { color: var(--mms-red); }

@media (max-width: 768px) {
  .mms-s { margin-top: 30px; padding: 20px 16px; border-radius: 16px; }
  .mms-s form { margin-top: 16px; }
  .mms-s__head { gap: 12px; }
  .mms-s__icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; }
  .mms-s__icon svg { width: 24px; height: 24px; }
  .mms-s__title { font-size: 16px; }
  .mms-s__lead { margin-top: 3px; font-size: 13px; }
  .mms-s .mms__field { flex-direction: column; gap: 10px; }
  .mms-s .mms-s__input { height: 52px; padding: 7px 14px; gap: 2px; border-radius: 11px; }
  .mms-s .mms-s__input > span { font-size: 10px; }
  .mms-s input.mms__input, .mms-s input.mms__input::placeholder { font-size: 16px !important; }
  .mms-s .mms__btn { width: 100%; height: 52px; padding: 0 20px; font-size: 16px; border-radius: 11px; }
}
/* v1.9 — компактная форма подписки в новом футере (.mmf) */
.mms-f--mmf { max-width: 300rem; margin-top: 8rem; }
.mms-f--mmf .mms-f__label { margin-bottom: 10rem; font: 600 14rem/1.3 "Inter", Arial, sans-serif; color: #fff; }
.mms-f--mmf .mms__field {
  display: flex; align-items: center; gap: 6rem; padding: 4rem; background: #2A2A2A;
  border: 1.5px solid transparent; border-radius: 11rem;
}
.mms-f--mmf .mms__field:focus-within { border-color: #4A4A4A; }
.mms-f--mmf .mms__field.is-error { border-color: #FF1F1F; }
.mms-f--mmf input.mms__input {
  flex: 1 1 auto; min-width: 0; width: auto; height: 36rem; padding: 0 10rem;
  background: transparent; border: 0; border-radius: 0; color: #fff; font-size: 14rem !important;
}
.mms-f--mmf input.mms__input::placeholder { color: #8A8A8A; font-size: 14rem !important; }
.mms-f--mmf .mms__field.is-error input.mms__input { border: 0; }
.mms-f--mmf .mms__btn {
  flex: 0 0 auto; display: block; width: auto; height: 36rem; margin: 0; padding: 0 14rem;
  border-radius: 8rem; font-size: 14rem;
}
.mms-f--mmf .mms__consent { margin-top: 8rem; gap: 8rem; font-size: 11rem; color: #A8A8A8; }
.mms-f--mmf .mms__consent--ads { margin-top: 6rem; }
.mms-f--mmf .mms__check { flex: 0 0 14rem; width: 14rem; height: 14rem; border-radius: 4rem; border-color: #737373; }
.mms-f--mmf .mms__check svg { width: 10rem; height: 10rem; }
.mms-f--mmf .mms__consent a { color: #fff; text-decoration: underline; }
@media (max-width: 768px) {
  .mms-f--mmf { max-width: none; margin-top: 4px; }
  .mms-f--mmf .mms-f__label { margin-bottom: 10px; font-size: 16px; }
  .mms-f--mmf .mms__field { gap: 6px; padding: 4px; border-radius: 12px; }
  .mms-f--mmf input.mms__input { height: 44px; padding: 0 12px; font-size: 16px !important; }
  .mms-f--mmf input.mms__input::placeholder { font-size: 16px !important; }
  .mms-f--mmf .mms__btn { height: 44px; padding: 0 16px; border-radius: 9px; font-size: 15px; }
  .mms-f--mmf .mms__consent { margin-top: 10px; gap: 10px; font-size: 12px; }
  .mms-f--mmf .mms__consent--ads { margin-top: 8px; }
  .mms-f--mmf .mms__check { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 5px; }
  .mms-f--mmf .mms__check svg { width: 12px; height: 12px; }
  .mms-f--mmf .mms__error { font-size: 12px; }
}

/* v2.0 — форма подписки в футере строкой над копирайтом */
.mms-f--mmf { display: flex; align-items: center; justify-content: space-between; gap: 40rem; max-width: none; margin: 0; }
.mms-f--mmf .mms-f__label { margin: 0 0 4rem; font-size: 18rem; }
.mms-f--mmf .mms-f__note { font: 400 14rem/1.45 "Inter", Arial, sans-serif; color: #A8A8A8; }
.mms-f--mmf form { flex: 0 0 540rem; display: flex; flex-wrap: wrap; column-gap: 24rem; }
.mms-f--mmf .mms__field, .mms-f--mmf .mms__error { flex: 0 0 100%; }
.mms-f--mmf .mms__consent, .mms-f--mmf .mms__consent--ads { margin-top: 10rem; }
.mms-f--mmf .mms__btn { padding: 0 20rem; }
@media (max-width: 768px) {
  .mms-f--mmf { flex-direction: column; align-items: stretch; gap: 14px; }
  .mms-f--mmf .mms-f__label { margin: 0 0 4px; font-size: 16px; }
  .mms-f--mmf .mms-f__note { font-size: 13px; }
  .mms-f--mmf form { flex: 1 1 auto; display: block; }
  .mms-f--mmf .mms__consent { margin-top: 10px; }
  .mms-f--mmf .mms__consent--ads { margin-top: 8px; }
  .mms-f--mmf .mms__btn { padding: 0 16px; }
}
@media (max-width: 768px) {
  .mms-f--mmf .mms__field { flex-direction: row; align-items: center; }
  .mms-f--mmf input.mms__input { flex: 1 1 auto; width: auto; }
}
