/* design[56]: блок «Тарифы» и окно заявки на главной */
.pr-switch { display: inline-flex; gap: 4px; padding: 4px; background: #FFFFFF; border: 1px solid #DCEFEA; border-radius: 999px; }
.pr-per { background: transparent; color: #3F6B64; transition: background-color 200ms ease, color 200ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.pr-per small { font-weight: 700; color: #147466; margin-left: 2px; }
.pr-per.is-on { background: #147466; color: #FFFFFF; }
.pr-per.is-on small { color: #BFEDE3; }
.pr-per:active { transform: scale(0.97); }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: stretch; }
.pr-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 22px; }
.pr-pop { border: 2px solid #147466; }
.pr-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #147466; color: #FFFFFF; border-radius: 999px; padding: 3px 14px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pr-name { font-size: 22px; font-weight: 800; }
.pr-for { margin: 0; color: #5E7F78; font-size: 14px; }
.pr-price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.pr-price b { font-family: Manrope, "Golos Text", sans-serif; font-size: 38px; font-weight: 800; color: #147466; letter-spacing: -0.02em; line-height: 1; }
.pr-price span { color: #5E7F78; font-size: 14px; }
.pr-total { margin: 0; min-height: 20px; font-size: 13px; color: #3F6B64; }
.pr-total b { color: #147466; }
.pr-list { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 9px; flex: 1; align-content: start; }
.pr-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.4; }
.pr-list li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 7px; border-left: 2px solid #147466; border-bottom: 2px solid #147466; transform: rotate(-45deg); }
.pr-cta { width: 100%; border: 0; cursor: pointer; font-family: inherit; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms ease; }
.pr-cta:active { transform: scale(0.97); }
.pr-amount { display: inline-block; }
.pr-amount.is-swap { animation: pr-swap 260ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes pr-swap { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }

.pr-modal { position: fixed; inset: 0; z-index: 50; background: rgba(14, 59, 53, .42); display: grid; place-items: center; padding: 16px; animation: pr-fade 200ms ease; }
.pr-modal[hidden] { display: none; }
.pr-dialog { position: relative; width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #FFFFFF; border-radius: 28px; padding: 28px; box-sizing: border-box; animation: pr-pop 240ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes pr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pr-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.pr-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #F0FAF8; color: #0E3B35; font-size: 24px; line-height: 1; cursor: pointer; }
.pr-field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.pr-field small { font-weight: 400; color: #5E7F78; }
.pr-field input, .pr-field textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 11px 14px; border-radius: 14px; border: 1.5px solid #DCEFEA; background: #F7FCFB; color: #0E3B35; resize: vertical; }
.pr-field input:focus, .pr-field textarea:focus { outline: none; border-color: #147466; }
.pr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pr-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #3F6B64; margin: 4px 0 10px; cursor: pointer; }
.pr-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #147466; flex: 0 0 auto; }
.pr-error { background: #FDEBF1; color: #A3204E; border-radius: 14px; padding: 10px 14px; font-size: 14px; margin: 4px 0 12px; }
@media (max-width: 900px) { #pricing .pr-switch { width: 100%; justify-content: space-between; } #pricing .pr-per { flex: 1; padding: 0 8px; } }
@media (prefers-reduced-motion: reduce) { .pr-modal, .pr-dialog, .pr-amount.is-swap { animation: none; } }


/* design[56c]: мобильная версия — цена не вылезает, короткие подписи срока, шапка без переносов */
.pr-price { flex-wrap: wrap; }
.pr-price b { font-size: clamp(28px, 8.5vw, 38px); overflow-wrap: anywhere; }
.pr-per .pr-short { display: none; }
@media (max-width: 520px) {
  .pr-per .pr-long { display: none; }
  .pr-per .pr-short { display: inline; }
  #pricing .pr-per { font-size: 13px; white-space: nowrap; }
  .pr-card { padding: 22px 18px; }
}
header .lnk, header .btn { white-space: nowrap; }
@media (max-width: 1180px) { nav.nav { display: none !important; } }
@media (min-width: 901px) and (max-width: 1180px) { header .top-cta { display: inline-flex !important; } }

/* design[72] 6 карточек: в ряд по 3 на широком экране */
@media (min-width: 860px) { #pricing .pr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 560px) and (max-width: 859px) { #pricing .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
