body.mfc-tariff-modal-open { overflow: hidden; }

.pt-cta[type="button"] {
  width: 100%;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.m6-btn[type="button"] { font-family: inherit; }


.mfc-tariff-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.mfc-tariff-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.mfc-tariff-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(20, 35, 63, .68);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.mfc-tariff-modal__dialog {
  position: relative;
  width: min(100%, 470px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 34px;
  border: 1px solid #e1e7f0;
  border-radius: 20px;
  background: #fff;
  color: #22385f;
  box-shadow: 0 30px 80px rgba(12, 28, 56, .28);
  transform: translateY(14px) scale(.985);
  transition: transform .2s ease;
}

.mfc-tariff-modal.is-open .mfc-tariff-modal__dialog { transform: translateY(0) scale(1); }

.mfc-tariff-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #f0f4f9;
  color: #22385f;
  font: 400 30px/1 Arial, sans-serif;
  cursor: pointer;
}

.mfc-tariff-modal__close:hover { background: #e6ecf4; }
.mfc-tariff-modal__close:active { transform: scale(.96); }

.mfc-tariff-modal__eyebrow {
  display: block;
  margin: 0 52px 8px 0;
  color: #b8261c;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.mfc-tariff-modal__dialog h2 {
  margin: 0 52px 12px 0;
  color: #22385f;
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: 0;
}

.mfc-tariff-modal__dialog > p {
  margin: 18px 0;
  color: #667694;
  font-size: 15px;
  line-height: 1.55;
}

.mfc-tariff-modal__selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 14px 16px;
  border: 1px solid #dce4ef;
  border-left: 4px solid #b8261c;
  border-radius: 10px;
  background: #f7f9fc;
}

.mfc-tariff-modal__selection span { font-size: 15px; font-weight: 700; }
.mfc-tariff-modal__selection b { flex: 0 0 auto; font-size: 18px; white-space: nowrap; }

.mfc-tariff-modal__form { display: grid; gap: 10px; }
.mfc-tariff-modal__form label { font-size: 14px; font-weight: 700; }

.mfc-tariff-modal__form input[type="tel"] {
  width: 100%;
  height: 54px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1.5px solid #d6dfec;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #22385f;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}

.mfc-tariff-modal__form input[type="tel"]:focus {
  border-color: #b8261c;
  box-shadow: 0 0 0 4px rgba(184, 38, 28, .1);
}

.mfc-tariff-modal__submit {
  min-height: 54px;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  background: #b8261c;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: 0 12px 26px rgba(184, 38, 28, .2);
}

.mfc-tariff-modal__submit:hover { background: #a51f17; }
.mfc-tariff-modal__submit:active { transform: translateY(1px); box-shadow: none; }
.mfc-tariff-modal__submit:disabled { opacity: .65; cursor: wait; }
.mfc-tariff-modal__form small { color: #8490a7; font-size: 12px; line-height: 1.45; }
.mfc-tariff-modal__form .mfc-tariff-modal__error { color: #b8261c; font-weight: 700; }
.mfc-tariff-modal__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.mfc-tariff-modal__success {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #cfe3dc;
  border-radius: 10px;
  background: #f2f8f6;
  color: #2f6258;
}
.mfc-tariff-modal__success b { font-size: 19px; }
.mfc-tariff-modal__success span { color: #4d6e68; font-size: 14px; line-height: 1.5; }

.mfc-tariff-modal__choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  color: #8490a7;
  font-size: 12px;
}
.mfc-tariff-modal__choice::before,
.mfc-tariff-modal__choice::after { content: ''; flex: 1; height: 1px; background: #e1e7f0; }
.mfc-tariff-modal__customize {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid #c9d4e4;
  border-radius: 10px;
  background: #fff;
  color: #22385f;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.mfc-tariff-modal__customize:hover { border-color: #9eacc1; background: #f7f9fc; }
.mfc-tariff-modal__customize:active { transform: translateY(1px); }

@media (max-width: 640px) {
  .mfc-tariff-modal { padding: 14px; }
  .mfc-tariff-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 28px);
    padding: 26px 20px 22px;
    border-radius: 18px;
  }
  .mfc-tariff-modal__close { top: 10px; right: 10px; width: 40px; height: 40px; }
  .mfc-tariff-modal__dialog h2 { margin-right: 44px; font-size: 23px; }
  .mfc-tariff-modal__selection { align-items: flex-start; flex-direction: column; gap: 5px; }
  .mfc-tariff-modal__selection b { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .mfc-tariff-modal,
  .mfc-tariff-modal__dialog,
  .mfc-tariff-modal__submit,
  .mfc-tariff-modal__customize { transition: none; }
}
