/*
 * Страницы цен Mailganer, редизайн #22544: /price, /price/smtp, /price/sms-rassylka,
 * /price/validation, /price/standartization, /price/abadonment-cart.
 * Макеты — артефакты Design (calc-v2, SMTP v3, SMS v2, валидация, стандартизация v2, магазинам).
 * Сетка — живая /price (Tilda zero-block 80…1120 в 1200) = tools-hub.css .mg-th__wrap.
 */

.mgp3 {
  --mgp3-blue: #0062ad;
  --mgp3-blue-hover: #2b8ed9;
  --mgp3-cream: #f2eeeb;
  --mgp3-beige: #e8d7ca;
  --mgp3-line: #e3e5ea;
  --mgp3-muted: #333d53;
  --mgp3-tab-muted: #6b6b6b;
  background: #fff;
  color: #000;
  font-family: var(--mg-font, "Dewi", system-ui, sans-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}

.mgp3 *,
.mgp3 *::before,
.mgp3 *::after {
  box-sizing: border-box;
}

/* Специфичность выше body.mg-site--v2b a:not(.mg2-btn):not(.mg2-textlink) из home-v2.css (там color: inherit)
   и тильдовских #allrecords a / #allrecords a:hover (страница внутри #allrecords) — поэтому каждое правило цвета ссылок и кнопок дублировано с #allrecords. */
html body .mgp3 a:not(.mgp3-btn):not(.mgp3-tab),
#allrecords .mgp3 a:not(.mgp3-btn):not(.mgp3-tab) {
  color: var(--mgp3-blue);
  text-decoration: none;
}

html body .mgp3 a:not(.mgp3-btn):not(.mgp3-tab):hover,
#allrecords .mgp3 a:not(.mgp3-btn):not(.mgp3-tab):hover {
  color: var(--mgp3-blue-hover);
}

.mgp3 [hidden] {
  display: none !important;
}

.mgp3-arr::after {
  content: "\00a0›";
}

/* Контейнер: 1040 / 920 / 600 / 100% − 28px */
.mgp3-wrap {
  width: calc(100% - 28px);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .mgp3-wrap { width: 600px; }
}

@media (min-width: 960px) {
  .mgp3-wrap { width: 920px; }
}

@media (min-width: 1200px) {
  .mgp3-wrap { width: 1040px; }
}

/* Полоска разделов цен: белая с линией снизу, как в макетах; пункты как .mgp__tab в page-price.css */
.mgp3-tabs {
  background: #fff;
  border-bottom: 1px solid var(--mgp3-line);
}

.mgp3-tabs__in {
  display: flex;
  gap: 8px 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 14px 0;
}

.mgp3-tabs__in::-webkit-scrollbar {
  display: none;
}

html body .mgp3 a.mgp3-tab:not(.mgp3-btn),
#allrecords .mgp3 a.mgp3-tab:not(.mgp3-btn) {
  flex: 0 0 auto;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--mgp3-tab-muted);
  white-space: nowrap;
}

html body .mgp3 a.mgp3-tab[aria-current="page"]:not(.mgp3-btn),
#allrecords .mgp3 a.mgp3-tab[aria-current="page"]:not(.mgp3-btn) {
  color: #000;
  box-shadow: inset 0 -2px 0 #000;
}

html body .mgp3 a.mgp3-tab:not(.mgp3-btn):hover,
#allrecords .mgp3 a.mgp3-tab:not(.mgp3-btn):hover {
  color: var(--mgp3-blue);
}

/* Первый экран: page-price.css .mgp__hero, .mg2-hero__title */
.mgp3-hero {
  padding: 28px 0 8px;
}

@media (min-width: 960px) {
  .mgp3-hero { padding-top: 40px; }
}

.mgp3-h1 {
  margin: 0 0 28px;
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.mgp3-lead {
  margin: -12px 0 28px;
  max-width: 800px;
  font-size: 20px;
  line-height: 1.2;
}

/* Секции: page-price.css .mgp__section-head */
.mgp3-sec {
  padding: 48px 0 16px;
}

.mgp3-h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.mgp3-h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

@media (max-width: 639px) {
  .mgp3-h3 { font-size: 20px; line-height: 1.2; }
}

.mgp3-shead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.mgp3-shead .mgp3-h2 {
  margin: 0;
}

@media (min-width: 640px) {
  .mgp3-shead {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px 24px;
  }
}

.mgp3-cap {
  font-size: 14px;
  line-height: 1.1;
  color: var(--mgp3-muted);
}

.mgp3-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.1;
  color: var(--mgp3-muted);
}

/* Калькулятор: панель как Tilda rec838807556 на /price (поля 20 / 30) */
.mgp3-calc {
  padding-bottom: 16px;
}

.mgp3-panel {
  background: var(--mgp3-cream);
  padding: 20px;
  border-radius: 3px;
}

@media (min-width: 960px) {
  .mgp3-panel { padding: 30px; }
}

.mgp3-pgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 800px) {
  .mgp3-pgrid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

.mgp3-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.mgp3-col__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mgp3-lbl {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.mgp3-field {
  position: relative;
}

.mgp3-field svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.mgp3-num {
  font: 700 30px/1 var(--mg-font, "Dewi", system-ui, sans-serif);
  letter-spacing: -0.03em;
  border: 2px solid var(--mgp3-line);
  background: #fff;
  width: 100%;
  padding: 12px 52px 14px 16px;
  color: #000;
  border-radius: 3px;
}

.mgp3-num:hover { border-color: var(--mgp3-muted); }
.mgp3-num:focus { outline: none; border-color: var(--mgp3-blue); }

@media (max-width: 639px) {
  .mgp3-num { font-size: 24px; }
}

.mgp3-slider {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: -8px;
}

.mgp3-scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* Логарифмическая шкала SMTP: подписи по позициям значений (макет CalcB) */
.mgp3-scale--abs {
  position: relative;
  display: block;
  height: 16px;
}

.mgp3-scale--abs span {
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.mgp3-scale--abs .is-mid {
  transform: translateX(-50%);
}

@media (max-width: 639px) {
  .mgp3-scale--abs .is-hide-sm { display: none; }
}

.mgp3-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 36px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --p: 0%;
}

.mgp3-range:focus { outline: none; }

.mgp3-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--mgp3-blue) var(--p), var(--mgp3-line) var(--p));
}

.mgp3-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--mgp3-blue) var(--p), var(--mgp3-line) var(--p));
}

.mgp3-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mgp3-blue);
  border: 4px solid #fff;
  margin-top: -11px;
}

.mgp3-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mgp3-blue);
  border: 4px solid #fff;
}

.mgp3-range:hover::-webkit-slider-thumb { background: var(--mgp3-blue-hover); }
.mgp3-range:focus-visible::-webkit-slider-thumb { border-color: #000; }

/* Карточка итога — как калькулятор /price (email) */
.mgp3-card {
  min-width: 0;
  background: #fff;
  border-radius: 3px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 960px) {
  .mgp3-card { padding: 28px; }
}

.mgp3-sum {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.mgp3-price {
  white-space: nowrap;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.mgp3-cur {
  font-size: 0.47em;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 0.3em;
}

.mgp3-unit {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mgp3-strike {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #555;
  text-decoration: line-through;
}

.mgp3-grow {
  flex: 1 1 auto;
  min-height: 8px;
}

/* Кнопка: home-v2.css .mg2-btn + --fill, без стрелки; белая на синем — при наведении синеет только текст */
html body .mgp3 .mgp3-btn:not(.mgp3-tab),
#allrecords .mgp3 .mgp3-btn:not(.mgp3-tab) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 2px solid var(--mgp3-blue);
  border-radius: 3px;
  background: var(--mgp3-blue);
  color: #fff;
  font: 700 18px/1.2 var(--mg-font, "Dewi", system-ui, sans-serif);
  letter-spacing: -0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

html body .mgp3 .mgp3-btn:not(.mgp3-tab):hover,
#allrecords .mgp3 .mgp3-btn:not(.mgp3-tab):hover {
  background: var(--mgp3-blue-hover);
  border-color: var(--mgp3-blue-hover);
  color: #fff;
}

html body .mgp3 .mgp3-btn--white:not(.mgp3-tab),
#allrecords .mgp3 .mgp3-btn--white:not(.mgp3-tab) {
  background: #fff;
  border-color: #fff;
  color: #000;
}

html body .mgp3 .mgp3-btn--white:not(.mgp3-tab):hover,
#allrecords .mgp3 .mgp3-btn--white:not(.mgp3-tab):hover {
  background: #fff;
  border-color: #fff;
  color: var(--mgp3-blue-hover);
}

html body .mgp3 .mgp3-btn--warm:not(.mgp3-tab),
#allrecords .mgp3 .mgp3-btn--warm:not(.mgp3-tab) {
  background: var(--mgp3-cream);
  border-color: var(--mgp3-cream);
  color: #000;
}

html body .mgp3 .mgp3-btn--warm:not(.mgp3-tab):hover,
#allrecords .mgp3 .mgp3-btn--warm:not(.mgp3-tab):hover {
  background: var(--mgp3-beige);
  border-color: var(--mgp3-beige);
  color: #000;
}

.mgp3-btn--block {
  width: 100%;
}

/* Таблицы */
.mgp3-scroll {
  overflow-x: auto;
}

.mgp3-table {
  border-collapse: collapse;
  width: 100%;
}

.mgp3-table th {
  text-align: left;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--mgp3-muted);
  padding: 0 16px 14px 0;
  border-bottom: 3px solid #000;
  vertical-align: bottom;
}

.mgp3-table td {
  font-size: 20px;
  line-height: 1.2;
  padding: 18px 16px 20px 0;
  border-bottom: 1px solid var(--mgp3-line);
  vertical-align: top;
}

.mgp3-table td.mgp3-td-cap {
  font-size: 14px;
  color: var(--mgp3-muted);
}

.mgp3-table .mgp3-td-b {
  font-weight: 700;
}

.mgp3-table--pad th,
.mgp3-table--pad td {
  padding-left: 12px;
}

.mgp3-table tr.is-on td {
  background: var(--mgp3-cream);
}

.mgp3-table tr.is-on td.mgp3-td-b {
  color: var(--mgp3-blue);
}

@media (max-width: 639px) {
  .mgp3-table td { font-size: 16px; padding: 14px 12px 16px 0; }
  .mgp3-table--pad td { padding-left: 12px; }
}

.mgp3-table-note {
  margin: 24px 0 0;
  max-width: 500px;
  font-size: 14px;
  line-height: 1.1;
  color: var(--mgp3-muted);
}

/* Сетки блоков */
.mgp3-g2 {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 48px;
}

@media (min-width: 960px) {
  .mgp3-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.mgp3-item {
  border-top: 1px solid var(--mgp3-line);
  padding: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mgp3-item__t {
  font-weight: 700;
}

.mgp3-g3 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 48px;
}

@media (min-width: 960px) {
  .mgp3-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mgp3-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mgp3-stepnum {
  font-size: 48px;
  line-height: 0.9;
  font-weight: 700;
  color: var(--mgp3-blue);
}

/* Вопросы: как /price и /price/validation, все свёрнуты */
.mgp3-faq {
  max-width: 960px;
}

.mgp3-faq details {
  border-top: 1px solid var(--mgp3-line);
}

.mgp3-faq details:last-child {
  border-bottom: 1px solid var(--mgp3-line);
}

.mgp3-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  padding: 20px 0 22px;
  min-height: 44px;
}

.mgp3-faq summary::-webkit-details-marker {
  display: none;
}

.mgp3-faq summary::after {
  content: "+";
  font-size: 30px;
  line-height: 0.8;
  color: var(--mgp3-blue);
  flex: none;
}

.mgp3-faq details[open] summary::after {
  content: "–";
}

.mgp3-faq summary:hover {
  color: var(--mgp3-blue-hover);
}

.mgp3-ans {
  font-size: 20px;
  line-height: 1.2;
  padding: 0 0 24px;
  max-width: 860px;
}

.mgp3-ans p {
  margin: 0 0 12px;
}

@media (max-width: 639px) {
  .mgp3-faq summary { font-size: 18px; padding: 18px 0 20px; gap: 16px; }
  .mgp3-ans { font-size: 16px; }
}

/* Синий призыв в конце страницы */
.mgp3-cta-sec {
  padding: 48px 0 64px;
}

.mgp3-cta {
  background: var(--mgp3-blue);
  color: #fff;
  padding: 20px;
  border-radius: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 960px) {
  .mgp3-cta { padding: 28px; }
}

.mgp3-cta--cream {
  background: var(--mgp3-cream);
  color: #000;
}

.mgp3-cta__text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mgp3-cta__t {
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.mgp3-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

html body .mgp3 .mgp3-cta a:not(.mgp3-btn):not(.mgp3-tab),
#allrecords .mgp3 .mgp3-cta a:not(.mgp3-btn):not(.mgp3-tab) {
  color: #fff;
}

html body .mgp3 .mgp3-cta--cream a:not(.mgp3-btn):not(.mgp3-tab),
#allrecords .mgp3 .mgp3-cta--cream a:not(.mgp3-btn):not(.mgp3-tab) {
  color: var(--mgp3-blue);
}

@media (max-width: 639px) {
  .mgp3-cta__btns .mgp3-btn { width: 100%; }
}

/* ---------- /price (email): вкладки способа оплаты ---------- */
.mgp3-modes {
  display: flex;
  gap: 4px;
}

.mgp3-mode {
  font: 700 20px/1 var(--mg-font, "Dewi", system-ui, sans-serif);
  letter-spacing: -0.02em;
  padding: 10px 18px 12px;
  min-height: 44px;
  border: 1px solid var(--mgp3-line);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #fff;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
}

.mgp3-mode:hover { color: var(--mgp3-blue-hover); }

.mgp3-mode.is-on {
  background: var(--mgp3-cream);
  border-color: var(--mgp3-cream);
  color: #000;
}

@media (max-width: 639px) {
  .mgp3-modes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .mgp3-mode { font-size: 16px; line-height: 1.1; padding: 10px 6px 12px; white-space: normal; text-align: center; }
}

.mgp3-panel--tabs {
  border-radius: 0 3px 3px 3px;
}

/* Все панели в одной ячейке: высота по самой высокой, страница не прыгает */
.mgp3-stack {
  display: grid;
}

.mgp3-pane {
  grid-area: 1 / 1;
  visibility: hidden;
}

.mgp3-pane.is-on {
  visibility: visible;
}

.mgp3-period {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  min-height: 44px;
}

.mgp3-word {
  border: 0;
  border-bottom: 3px dashed transparent;
  background: transparent;
  cursor: pointer;
  font: 700 20px/1.2 var(--mg-font, "Dewi", system-ui, sans-serif);
  padding: 8px 0 4px;
  min-height: 44px;
  color: #000;
}

.mgp3-word:hover { color: var(--mgp3-blue-hover); }

.mgp3-word.is-on {
  color: var(--mgp3-blue);
  border-bottom-color: var(--mgp3-blue);
}

.mgp3-pers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--mgp3-line);
}

@media (max-width: 639px) {
  .mgp3-pers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.mgp3-per {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  cursor: pointer;
  padding: 10px 4px 10px 0;
  min-height: 44px;
  font: 700 20px/1.1 var(--mg-font, "Dewi", system-ui, sans-serif);
  color: #000;
  text-align: left;
}

.mgp3-per:hover { color: var(--mgp3-blue-hover); }

.mgp3-per small {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.mgp3-per.is-on {
  color: var(--mgp3-blue);
  border-bottom-color: var(--mgp3-blue);
}

.mgp3-per.is-on small {
  color: var(--mgp3-blue);
}

/* ---------- /price/smtp: калькулятор с выбором сендера ---------- */
.mgp3-sub {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mgp3-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mgp3-opt {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 3px;
  border: 2px solid #fff;
  background: #fff;
  color: #000;
  cursor: pointer;
  font: 600 16px/1.2 var(--mg-font, "Dewi", system-ui, sans-serif);
}

.mgp3-opt:hover { border-color: var(--mgp3-beige); }
.mgp3-opt.is-on { border-color: var(--mgp3-blue); }
.mgp3-opt:focus-visible { outline: 2px solid var(--mgp3-blue); outline-offset: 2px; }

.mgp3-opt__t {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mgp3-opt__p {
  font-size: 14px;
  color: var(--mgp3-blue);
  text-align: right;
  white-space: nowrap;
}

.mgp3-opt__d {
  grid-column: 2 / 4;
  font-size: 14px;
  line-height: 1.3;
  color: #545454;
}

@media (max-width: 479px) {
  .mgp3-opt__p { grid-column: 2 / 4; text-align: left; white-space: normal; }
}

.mgp3-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--mgp3-blue);
  background: #fff;
  position: relative;
}

.mgp3-opt.is-on .mgp3-radio::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--mgp3-blue);
}

.mgp3-seg {
  display: flex;
  padding: 4px;
  gap: 4px;
  border-radius: 3px;
  background: #fff;
}

.mgp3-seg button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 6px 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #000;
  font: 700 16px/1.15 var(--mg-font, "Dewi", system-ui, sans-serif);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.mgp3-seg button span {
  font-size: 14px;
  font-weight: 600;
  color: #545454;
}

.mgp3-seg button:hover { background: var(--mgp3-cream); }
.mgp3-seg button.is-on { background: var(--mgp3-blue); color: #fff; }
.mgp3-seg button.is-on span { color: #fff; }

.mgp3-steprow {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-end;
}

.mgp3-stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  background: #fff;
}

.mgp3-stepper output {
  min-width: 40px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.mgp3-stepbtn {
  width: 44px;
  height: 44px;
  border-radius: 3px;
  border: 0;
  background: #fff;
  color: var(--mgp3-blue);
  font: 600 20px/1 var(--mg-font, "Dewi", system-ui, sans-serif);
  cursor: pointer;
}

.mgp3-stepbtn:hover { background: var(--mgp3-beige); color: #000; }

.mgp3-help-wrap {
  position: relative;
  display: inline-flex;
}

.mgp3-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--mgp3-blue);
  color: var(--mgp3-blue);
  background: #fff;
  font: 600 14px/1 var(--mg-font, "Dewi", system-ui, sans-serif);
  cursor: pointer;
  padding: 0;
}

.mgp3-help:hover,
.mgp3-help[aria-expanded="true"] {
  background: var(--mgp3-blue);
  color: #fff;
}

.mgp3-bubble {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 5;
  width: 320px;
  max-width: calc(100vw - 64px);
  padding: 14px 16px;
  border-radius: 3px;
  background: #fff;
  color: #000;
  font-size: 14px;
  line-height: 1.3;
  border: 2px solid var(--mgp3-blue);
}

.mgp3-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--mgp3-line);
  font-size: 14px;
  line-height: 1.3;
}

.mgp3-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mgp3-line span:first-child { color: #545454; }
.mgp3-line span:last-child { white-space: nowrap; }

.mgp3-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 959px) {
  .mgp3-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .mgp3-tiers { grid-template-columns: 1fr; }
}

.mgp3-tier {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 3px;
  background: #fff;
  min-height: 150px;
}

.mgp3-tier__p {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.mgp3-tier--blue {
  justify-content: space-between;
  gap: 12px;
  background: var(--mgp3-blue);
  color: #fff;
}

html body .mgp3 .mgp3-tier--blue a:not(.mgp3-btn):not(.mgp3-tab),
#allrecords .mgp3 .mgp3-tier--blue a:not(.mgp3-btn):not(.mgp3-tab) {
  color: #fff;
  font-weight: 700;
}

.mgp3-band {
  background: var(--mgp3-cream);
  margin-top: 48px;
  padding: 48px 0;
}

.mgp3-band .mgp3-h2 {
  margin: 0;
}

/* ---------- /price/sms-rassylka ---------- */
.mgp3-g2c {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mgp3-g3c {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 959px) {
  .mgp3-g2c,
  .mgp3-g3c { grid-template-columns: minmax(0, 1fr); }
}

.mgp3-plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 20px;
  border-radius: 3px;
  background: var(--mgp3-cream);
}

@media (min-width: 960px) {
  .mgp3-plan { padding: 28px; }
}

.mgp3-plan--blue {
  background: var(--mgp3-blue);
  color: #fff;
}

.mgp3-plan__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.mgp3-badge {
  font-size: 14px;
  line-height: 1.1;
  background: #fff;
  color: #000;
  padding: 6px 8px;
}

.mgp3-plan__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.mgp3-plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mgp3-plan li {
  display: flex;
  gap: 10px;
}

.mgp3-plan li::before {
  content: "›";
  color: var(--mgp3-blue);
}

.mgp3-plan--blue li::before {
  color: #fff;
}

.mgp3-plan .mgp3-btn {
  margin-top: auto;
  align-self: flex-start;
}

.mgp3-fact {
  border-top: 3px solid #000;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mgp3-smscalc {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: flex-start;
}

.mgp3-smscalc__l {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mgp3-smscalc .mgp3-card {
  flex: 1 1 340px;
}

.mgp3-tiles {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.mgp3-tile {
  flex: 1 1 180px;
  min-height: 140px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  border-radius: 3px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  font: 600 14px/1.1 var(--mg-font, "Dewi", system-ui, sans-serif);
  text-align: left;
  cursor: pointer;
}

.mgp3-tile:hover { border-color: var(--mgp3-blue-hover); }

.mgp3-tile.is-on {
  background: var(--mgp3-blue);
  border-color: var(--mgp3-blue);
  color: #fff;
}

.mgp3-tile__p {
  font-size: 48px;
  line-height: 0.9;
  font-weight: 700;
  white-space: nowrap;
}

.mgp3-tile__t {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.mgp3-calcline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 20px;
  line-height: 1.2;
}

.mgp3-calcline b {
  font-weight: 700;
  white-space: nowrap;
}

.mgp3-total {
  border-top: 3px solid #000;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.mgp3-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mgp3-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 28px;
  border-radius: 3px;
  background: var(--mgp3-cream);
}

.mgp3-row--blue {
  background: var(--mgp3-blue);
  color: #fff;
}

.mgp3-row__num {
  font-size: 80px;
  line-height: 1;
  font-weight: 700;
  color: var(--mgp3-blue);
}

.mgp3-row--blue .mgp3-row__num {
  color: #fff;
}

.mgp3-row__p {
  font-size: 48px;
  line-height: 0.9;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 959px) {
  .mgp3-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mgp3-row__num { font-size: 48px; line-height: 0.9; }
}

@media (max-width: 639px) {
  .mgp3-row { padding: 20px; }
}

/* ---------- /price/abadonment-cart ---------- */
.mgp3-incl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 959px) {
  .mgp3-incl { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

.mgp3-it {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 3px solid #000;
  padding-top: 20px;
}

@media (min-width: 640px) and (max-width: 959px) {
  .mgp3-it { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
}

.mgp3-it__t {
  font-weight: 700;
}
