/* Полная замена oplata-2609.css, подключать после стилей страницы.
   Сетку .uslugi6 оформляет исходный uslugi-6-v2.css. */
#mf-price.price.light.chapter {
  padding-block: 72px 75px;
  background: #fff;
  color: var(--ink, #092433);
}

#mf-price .price-top {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) minmax(280px, 390px);
  align-items: end;
  gap: 32px;
  margin-top: 28px;
}

#mf-price .price-top > * {
  min-width: 0;
}

#mf-price .price-top h2 {
  margin: 0;
  font: 700 96px/1.04 "Oswald", sans-serif;
  letter-spacing: -2.4px;
}

#mf-price .price-top h2 > span {
  display: block;
}

#mf-price .price-top h2 > span > i {
  transform: none;
  transition: none;
}

#mf-price .price-top > p {
  max-width: 390px;
  margin: 0 0 6px;
  color: var(--ink, #092433);
}

#mf-price .op-vitrina {
  display: grid;
  min-width: 0;
  margin-bottom: 6px;
  text-align: center;
  color: var(--ink, #092433);
}

#mf-price .op-card {
  box-sizing: border-box;
  margin-top: 32px;
  padding: 28px 32px;
  border: 1px solid var(--kr-ramka-grafit, #697785);
  border-radius: 8px;
  background: var(--kr-fon-grafit, linear-gradient(145deg, #20252b, #0b0e12 73%));
  color: var(--kr-tekst, #fff);
}

#mf-price .op-vitrina *,
#mf-price .op-card *,
#mf-price .op-card *::before {
  box-sizing: border-box;
}

#mf-price .op-states {
  display: grid;
  min-width: 0;
}

/* Все состояния участвуют в расчёте одной grid-ячейки: её высоту задаёт самое высокое.
   hidden переопределён только по display; visibility:hidden сохраняет недоступность
   неактивного текста для чтения, фокуса и указателя без дубликатов контента. */
#mf-price .op-usluga,
#mf-price .op-usluga[hidden],
#mf-price .op-vitrina__usluga,
#mf-price .op-vitrina__usluga[hidden] {
  display: grid;
  grid-area: 1 / 1;
  align-content: start;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#mf-price .op-usluga.is-on:not([hidden]),
#mf-price .op-vitrina__usluga.is-on:not([hidden]) {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  animation: op-price-in 220ms ease-out both;
}

#mf-price .op-vitrina__usluga {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 16px;
  justify-items: center;
}

#mf-price .op-description {
  min-width: 0;
  max-width: 420px;
}

/* Тройной id нужен только типографике: в v17 есть правила с удвоенным id. */
#mf-price#mf-price#mf-price .op-name {
  margin: 0;
  color: var(--ink, #092433);
  font: 700 30px/1.25 "Oswald", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

#mf-price#mf-price#mf-price .op-sostav {
  margin: 8px 0 0;
  color: var(--ink, #092433);
  font: 400 14px/1.65 "Inter", sans-serif;
  letter-spacing: 0;
}

#mf-price#mf-price#mf-price .op-total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  color: var(--ink, #092433);
  font: 700 72px/1.1 "Oswald", sans-serif;
  letter-spacing: -2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#mf-price#mf-price#mf-price .op-total > span {
  font: 400 18px/1.5 "Inter", sans-serif;
  letter-spacing: 0;
}

#mf-price .op-split {
  min-width: 0;
  padding: 0;
  border: 0;
}

#mf-price#mf-price#mf-price .op-payment {
  margin: 0 0 16px;
  color: #fff;
  font: 400 20px/1.4 "Inter", sans-serif;
  letter-spacing: 0;
}

#mf-price .op-payment strong {
  font-weight: 700;
  white-space: nowrap;
}

#mf-price .op-parts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

#mf-price .op-part {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 12px 0 0;
  border-top: 4px solid var(--kr-ramka-grafit, #697785);
}

#mf-price .op-part--first {
  border-color: #ef2737;
}

#mf-price .op-part > strong {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

#mf-price .op-part > span {
  color: var(--kr-tekst-tihiy, #e1e4e9);
  font-size: 13px;
  line-height: 1.5;
}

#mf-price .op-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

#mf-price .op-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

#mf-price .op-tochka {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

#mf-price .op-tochka::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--kr-tekst-tihiy, #e1e4e9);
  border-radius: 50%;
  background: transparent;
  transition: background-color 150ms ease, border-color 150ms ease;
}

#mf-price .op-tochka.is-on::before {
  border-color: #ef2737;
  background: #ef2737;
  box-shadow: 0 0 0 4px #0b0e12, 0 0 0 5px #ef2737;
}

#mf-price .op-tochka:hover::before {
  border-color: #fff;
  background: #fff;
}

#mf-price .op-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid #d11f2f;
  border-radius: 6px;
  background: #d11f2f;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

#mf-price .op-cta:hover {
  border-color: #ef2737;
  background: #d11f2f;
}

#mf-price .op-cta svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

#mf-price .op-cta:focus-visible,
#mf-price .op-tochka:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

#mf-price#mf-price#mf-price .op-terms {
  margin: 16px 0 0;
  color: var(--ink, #092433);
  font: 400 13px/1.65 "Inter", sans-serif;
}

@keyframes op-price-in {
  /* Прежнее появление карточки, общее для платежей и витрины. */
  from { opacity: .35; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1560px) {
  #mf-price .price-top h2 { font-size: 88px; }
}

/* На планшете витрина идёт под заголовком, перед пояснением про Сплит. */
@media (max-width: 1280px) {
  #mf-price .price-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #mf-price .price-top h2 { font-size: 80px; }
  #mf-price .price-top > p { max-width: 640px; margin: 0; }
  #mf-price .price-top > p > br { display: none; }
  #mf-price .op-vitrina { margin-bottom: 0; text-align: left; }
  #mf-price .op-vitrina__usluga {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    justify-items: stretch;
    gap: 24px;
  }
  #mf-price .op-description { max-width: none; }
  #mf-price#mf-price#mf-price .op-name { font-size: 28px; }
  #mf-price#mf-price#mf-price .op-total { font-size: 68px; }
}

@media (max-width: 1100px) {
  #mf-price.price.light.chapter { padding-block: 56px; }
  #mf-price .price-top h2 { font-size: 72px; }
  #mf-price .op-card { padding: 24px; }
  #mf-price#mf-price#mf-price .op-total { font-size: 64px; }
}

@media (max-width: 760px) {
  #mf-price.price.light.chapter { padding-block: 36px 40px; }
  #mf-price .price-top { gap: 20px; margin-top: 24px; }
  #mf-price .price-top h2 { font-size: 48px; letter-spacing: -1.2px; }
  #mf-price .price-top > p { max-width: none; margin: 0; }
  #mf-price .price-top > p > br { display: none; }
  #mf-price .op-card { padding: 20px; margin-top: 24px; }
  #mf-price .op-vitrina__usluga {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: start;
    gap: 16px;
  }
  #mf-price#mf-price#mf-price .op-name { font-size: 26px; }
  #mf-price#mf-price#mf-price .op-total { font-size: 56px; letter-spacing: -1.4px; gap: 8px; }
  #mf-price#mf-price#mf-price .op-total > span { font-size: 16px; }
  #mf-price#mf-price#mf-price .op-payment { font-size: 18px; }
  #mf-price .op-parts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #mf-price .op-part { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-top: 0; border-left: 4px solid var(--kr-ramka-grafit, #697785); padding: 8px 0 8px 14px; }
  #mf-price .op-part--first { border-left-color: #ef2737; }
  #mf-price .op-part > strong { font-size: 17px; }
  #mf-price .op-part > span { font-size: 12px; }
  #mf-price .op-footer { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 20px; }
  #mf-price .op-dots { justify-content: center; }
  #mf-price .op-cta { width: 100%; gap: 16px; }
}

@media (max-width: 380px) {
  #mf-price#mf-price#mf-price .op-total { font-size: 52px; }
  #mf-price .op-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  #mf-price .op-usluga.is-on:not([hidden]),
  #mf-price .op-vitrina__usluga.is-on:not([hidden]) { animation: none; transform: none; }
  #mf-price .op-tochka::before,
  #mf-price .op-cta { transition: none; }
}
