/* ============================================================
   ВСПЛЫВАЮЩИЕ МОДАЛЬНЫЕ ОКНА пакетов услуг (#modal-base/#modal-standard/#modal-premium/#modal-full) и форма заявки внутри них — (.mini-modal, .mm-*, .mmd/.mmh/.mmb, анимации эмодзи .mmemoji-* / .emoji-rocket/.emoji-globe/.emoji-phone/.emoji-crown).
   ============================================================ */

.mini-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 9999;
  padding: 20px;
}

.mini-modal:target {
  opacity: 1;
  visibility: visible;
}

.mmd {
  width: 100%;
  max-width: 480px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 12, 28, 0.97), rgba(10, 6, 18, 0.99));
  border: 1px solid rgba(255, 184, 48, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 184, 48, 0.05);
  animation: modalIn 0.25s ease;
}

.mini-modal.active {
  opacity: 1;
  visibility: visible;
  display: flex !important;
}

.mini-modal:not(.active) {
  opacity: 0;
  visibility: hidden;
  display: none !important;
}

.mm-addon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: 0.2s;
}

.mm-addon:hover {
  border-color: rgba(255, 184, 48, 0.25);
  background: rgba(255, 184, 48, 0.04);
}

.mm-addon input[type=checkbox] {
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 184, 48, 0.35);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: 0.2s;
}

.mm-addon input[type=checkbox]:checked {
  background: #FFB830;
  border-color: #FFB830;
}

.mm-addon input[type=checkbox]:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #08040C;
  line-height: 18px;
  text-align: center;
}

.mm-total-value {
  font-size: 18px;
  font-weight: 800;
  color: #FFB830;
}

.mm-btn-order {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #08040C;
  transition: 0.25s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.mm-btn-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 184, 48, 0.3);
}

.mm-btn-order.pur {
  background: linear-gradient(135deg, #A855F7, #7C3AED);
  color: #fff;
}

.mmh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mmtitle {
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.mmclose {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  color: #9FB4CC;
  font-size: 24px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 0.2s;
}

.mmclose:hover {
  color: #fff;
  border-color: rgba(255, 184, 48, 0.3);
  background: rgba(255, 184, 48, 0.08);
}

.mmb {
  padding: 22px;
}

.mmemoji {
  font-size: 64px;
  text-align: center;
  margin-bottom: 14px;
}

.mmdesc {
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mmlist {
  margin: 0 0 16px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mmlist li {
  color: #C8B8E8;
  font-size: 13px;
  line-height: 1.4;
}

.mmpricebox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-gold);
}

.mmpricebox.pur {
  border-color: rgba(168, 85, 247, 0.2);
}

.mmplabel {
  color: #B8C7D9;
  font-size: 13px;
}

.mmprice {
  color: var(--gold);
  font-size: 26px;
  font-weight: 900;
}

.mmprice.pur {
  color: var(--purple);
}

.mm-order-form {
  display: none;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mm-order-form.show {
  display: flex;
}

.mm-order-form .mm-form-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.mm-order-summary {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 4px;
}

.mm-summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mm-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.mm-summary-list li span {
  flex: 1;
}

.mm-summary-list li b {
  color: #fff;
  white-space: nowrap;
  font-weight: 700;
}

.mm-summary-list li:first-child {
  font-size: 13px;
  color: #fff;
}

.mm-summary-list li:first-child b {
  color: var(--gold);
}

.mm-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 800;
}

.mm-summary-total b {
  color: var(--gold);
}

.mm-order-form input,
.mm-order-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  box-sizing: border-box;
}

.mm-order-form input::placeholder,
.mm-order-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.mm-order-form input:focus,
.mm-order-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.mm-order-form input.input-error,
.mm-order-form textarea.input-error {
  border-color: #f87171;
  animation: shake 0.3s ease;
}

.mm-submit-btn {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-md);
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #08040C;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: 0.25s;
}

.mm-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 184, 48, 0.3);
}

.mm-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.mm-submit-btn.pur {
  background: linear-gradient(135deg, #A855F7, #7C3AED);
  color: #fff;
}

.mm-submit-btn.pur:hover {
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.mm-form-success {
  display: none;
  text-align: center;
  padding: 16px 0 6px;
}

.mm-form-success.show {
  display: block;
}

.mm-form-success .icon {
  font-size: 38px;
  margin-bottom: 8px;
}

.mm-form-success p {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.mm-form-success small {
  font-size: 12px;
  color: var(--text-dim);
}

.mm-form-error {
  display: none;
  text-align: center;
  padding: 14px 0 6px;
}

.mm-form-error.show {
  display: block;
}

.mm-form-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25D366;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
}

@media (max-width: 414px) {
  .mini-modal {
    align-items: flex-start;
    padding: 10px 0;
  }
  .mmd {
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: none;
  }
}

.mmemoji {
    font-size: 64px;
    text-align: center;
    margin-bottom: 14px;
    display: block;
    transition: none;
    position: relative;
}

.mmemoji.animate {
    animation: emojiPop 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mmemoji.animate.emoji-globe {
    animation: globeSpin 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mmemoji.animate.emoji-phone {
    animation: phoneBounce 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mmemoji.animate.emoji-crown {
    animation: crownGlow 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mmemoji.animate.emoji-rocket {
    animation: rocketLaunch 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mmemoji-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
}

.mmemoji-particles span {
    position: absolute;
    font-size: 14px;
    opacity: 0;
}

.mmemoji.animate ~ .mmemoji-particles span {
    animation: particlesFly 1.8s ease-out forwards;
}

.mmemoji-particles span:nth-child(1) { animation-delay: 0.1s; }

.mmemoji-particles span:nth-child(2) { animation-delay: 0.3s; }

.mmemoji-particles span:nth-child(3) { animation-delay: 0.5s; }

.mmemoji-particles span:nth-child(4) { animation-delay: 0.7s; }

.mmemoji-particles span:nth-child(5) { animation-delay: 0.9s; }

.mmemoji-particles span:nth-child(6) { animation-delay: 1.1s; }

.mmemoji-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 184, 48, 0.15), transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.5s;
}

.mmemoji.animate ~ .mmemoji-glow {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

@media (max-width: 600px) {
    .mmemoji {
        font-size: 68px;
    }
    .mmemoji-glow {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 400px) {
    .mmemoji {
        font-size: 60px;
    }
    .mmemoji-glow {
        width: 60px;
        height: 60px;
    }
}

