/* /price — native хаб 1:1 с Tilda (эталон price-parity / mailganer.com/price) */

.mg-price-native-wrap .mg2-hero::after,
.mg-page-price .mg2-hero::after {
  display: none;
}

.mg-page-price {
  font-family: var(--mg-font, "Dewi", system-ui, sans-serif);
}

.mg-page-price .mg2-wrap {
  width: min(1200px, calc(100% - 40px));
}

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

.mgp__tabs {
  background: var(--mg-cream, #f2eeeb);
  border-bottom: 1px solid transparent;
}

.mgp__tabs-inner {
  display: flex;
  gap: 8px 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 0;
}

.mgp__tab {
  flex: 0 0 auto;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--mg-muted, #6b6b6b);
  text-decoration: none;
  white-space: nowrap;
}

.mgp__tab.is-current,
.mgp__tab[aria-current="page"] {
  color: var(--mg-black, #000);
  box-shadow: inset 0 -2px 0 var(--mg-black, #000);
}

.mgp__tab:hover {
  color: var(--mg-blue-link, #0062ad);
}

.mgp__hero {
  padding: 28px 0 8px;
}

.mg-page-price .mg2-hero__title,
.mgp__hero .mg2-hero__title {
  max-width: none;
  margin: 0 0 28px;
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #000;
}

.mgp__calc {
  padding: 20px 20px 16px;
  background: var(--mg-cream, #f2eeeb);
}

.mgp__calc-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.mgp__modes {
  display: flex;
  gap: 0;
  padding: 0;
  background: transparent;
}

.mgp__mode {
  margin: 0;
  padding: 10px 18px 12px;
  border: 0;
  border-bottom: 2px solid var(--mg-cream, #f2eeeb);
  background: transparent;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mg-blue-link, #0062ad);
  cursor: pointer;
}

.mgp__mode.is-current {
  background: transparent;
  color: var(--mg-blue-link, #0062ad);
  border-bottom-color: var(--mg-blue, #0062ad);
}

.mgp__mode:not(.is-current) {
  color: var(--mg-blue-link, #0062ad);
  opacity: 0.72;
}

.mgp__terms,
.mgp__period {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.mgp__term {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.mgp__term input {
  accent-color: var(--mg-blue, #0062ad);
}

.mgp__calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
}

.mgp__volume-label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mgp__volume {
  width: min(100%, 220px);
  padding: 10px 12px;
  border: 0;
  background: var(--mg-white, #fff);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mgp__volume:focus {
  outline: 2px solid var(--mg-blue-link, #0062ad);
  outline-offset: 0;
}

.mgp__range-wrap {
  position: relative;
  margin: 22px 0 6px;
}

.mgp__range-tip {
  position: absolute;
  top: -28px;
  left: 0;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--mg-blue, #0062ad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}

.mgp__range {
  width: 100%;
  margin: 0;
  accent-color: var(--mg-blue, #0062ad);
}

.mgp__range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--mg-muted, #6b6b6b);
}

.mgp__note {
  margin: 16px 0 0;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.35;
  color: var(--mg-muted, #6b6b6b);
}

.mgp__result {
  text-align: left;
  min-width: 0;
}

.mgp__price {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.mgp__price-value {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.mgp__price-unit {
  font-size: 18px;
  font-weight: 700;
  color: var(--mg-muted, #6b6b6b);
}

.mgp__price-total {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mg-muted, #6b6b6b);
}

.mgp__over {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.35;
}

.mgp__choose {
  margin-top: 16px;
}

.mgp__all {
  margin: 20px 0 0;
}

.mgp__all .mg2-textlink,
.mgp__b2b-cta .mg2-textlink {
  color: var(--mg-blue-link, #0062ad);
  font-weight: 600;
}

.mgp__b2b {
  padding: 28px 0 8px;
}

.mgp__b2b-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 28px 24px;
  background: var(--mg-cream, #f2eeeb);
}

.mgp__b2b-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.05em;
}

.mgp__b2b-lead {
  margin: 8px 0 0;
  font-size: 18px;
}

.mgp__b2b-lead em {
  font-style: normal;
  color: var(--mg-blue-link, #0062ad);
}

.mgp__b2b-lead strong,
.mgp__b2b-lead {
  letter-spacing: -0.03em;
}

.mgp__b2b-price {
  margin: 16px 0;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.mgp__b2b-price span {
  font-size: 18px;
  font-weight: 700;
  color: var(--mg-muted, #6b6b6b);
}

.mgp__b2b-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.mgp__b2b-list li {
  position: relative;
  padding-left: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.mgp__b2b-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.mgp__b2b-visual {
  display: none;
}

.mgp__b2b-visual img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin-left: auto;
}

.mgp__senders {
  padding: 48px 0 16px;
}

.mgp__senders h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.5vw, 48px);
  letter-spacing: -0.05em;
}

.mgp__senders-lead {
  margin: 0 0 28px;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.4;
  color: var(--mg-muted, #6b6b6b);
}

.mgp__sender-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.mgp__sender {
  padding: 22px 20px 24px;
  background: var(--mg-cream, #f2eeeb);
}

.mgp__sender h3 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.mgp__sender ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mgp__sender li + li {
  margin-top: 6px;
}

.mgp__sender li {
  font-size: 15px;
  line-height: 1.35;
}

.mgp__faq {
  padding: 40px 0 24px;
}

.mg-page-price .mg2-final {
  margin-top: 24px;
}

body.mg-site--v2b .mgp a.mg2-btn--fill,
body.mg-site--v2b .mgp a.mg2-btn--fill:hover,
body.mg-site--v2b .mgp a.mg2-btn--fill:focus-visible {
  color: var(--mg-on-accent, #fff);
}

@media (min-width: 800px) {
  .mgp__calc-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .mgp__result {
    text-align: right;
  }

  .mgp__price {
    justify-content: flex-end;
  }

  .mgp__sender-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .mgp__calc {
    padding: 28px 28px 20px;
  }

  .mgp__b2b-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
    align-items: center;
  }

  .mgp__b2b-visual {
    display: block;
  }

  .mgp__sender-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
