/* Терминальный сервер: общие секции, карточки, иконки и FAQ — в site.css.
   Калькулятор повторяет визуальную систему Cloud Server. */
.terminal-hero { background: linear-gradient(90deg, rgba(18,29,45,.94) 0%, rgba(26,37,48,.84) 44%, rgba(26,37,48,.35) 100%); }
.terminal-grid { background-image: linear-gradient(rgba(147,197,253,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(147,197,253,.1) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 88%); pointer-events: none; }
.terminal-page :focus-visible { outline: 3px solid #7893b6; outline-offset: 4px; }
.terminal-config { border: 1px solid #dfe5ed; border-radius: 12px; background: white; overflow: hidden; }
.terminal-config-grid { display: grid; grid-template-columns: 1.2fr 1fr; }
.terminal-config-controls, .terminal-config-summary { padding: 34px; min-width: 0; }
.terminal-config-heading { font-size: 16px; font-weight: 600; color: #2c3e50; margin-bottom: 20px; }
.terminal-plan-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; background: #f1f4f8; border-radius: 9px; }
.terminal-plan-switch button { padding: 12px 10px; border: 1px solid transparent; border-radius: 6px; color: #64748b; text-align: left; font-size: 13px; cursor: pointer; }
.terminal-plan-switch strong, .terminal-plan-switch span { display: block; }
.terminal-plan-switch span { font-size: 12px; margin-top: 4px; font-weight: 400; }
.terminal-plan-switch button[aria-pressed="true"] { color: #2c3e50; background: white; border-color: #e0e5ef; box-shadow: 0 2px 4px #1a252f08; }
.terminal-help { font-size: 13px; line-height: 1.7; color: #64748b; margin-top: 12px; }
.terminal-control { margin-top: 26px; }
.terminal-control-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 7px; }
.terminal-control label { font-size: 13px; font-weight: 600; color: #334155; }
.terminal-number { width: 84px; height: 34px; border: 1px solid #d8deea; border-radius: 6px; padding: 4px 8px; font-size: 13px; text-align: right; background: #fafbfe; }
.terminal-range { display: block; width: 100%; height: 22px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; --progress: 0%; }
.terminal-range::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right,#7d84d6 var(--progress),#e5e9f1 var(--progress)); border-radius: 5px; }
.terminal-range::-moz-range-track { height: 4px; background: linear-gradient(to right,#7d84d6 var(--progress),#e5e9f1 var(--progress)); border-radius: 5px; }
.terminal-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; height: 17px; width: 17px; background: #2c3e50; border: 2px solid white; border-radius: 50%; margin-top: -6px; box-shadow: 0 2px 5px #25394e26; }
.terminal-range::-moz-range-thumb { height: 13px; width: 13px; background: #2c3e50; border: 2px solid white; border-radius: 50%; box-shadow: 0 2px 5px #25394e26; }
.terminal-range-limits { display: flex; justify-content: space-between; font-size: 12px; color: #64748b; }
.terminal-options { margin-top: 28px; }
.terminal-options legend { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.terminal-option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e5e9f1; cursor: pointer; }
.terminal-option:last-child { border-bottom: 0; padding-bottom: 0; }
.terminal-option strong { display: block; font-size: 13px; font-weight: 500; color: #334155; }
.terminal-option small { display: block; margin-top: 3px; font-size: 13px; color: #64748b; }
.terminal-switch { position: absolute; width: 1px; height: 1px; opacity: 0; }
.terminal-switch-track { position: relative; width: 40px; height: 24px; flex-shrink: 0; border-radius: 20px; background: #cbd5e1; transition: background .2s; }
.terminal-switch-track::after { content: ''; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; background: white; border-radius: 50%; transition: transform .2s; }
.terminal-switch:checked + .terminal-switch-track { background: var(--color-action); }
.terminal-switch:checked + .terminal-switch-track::after { transform: translateX(16px); }
.terminal-switch:focus-visible + .terminal-switch-track { outline: 3px solid #7893b6; outline-offset: 4px; }
.terminal-config-summary { background: #f8fafc; border-left: 1px solid #e0e6ef; }
.terminal-summary-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.terminal-summary-top .eyebrow { margin: 0; color: #64748b; font-size: 12px; }
.terminal-plan-tag { padding: 4px 10px; border: 1px solid #e2e8f0; border-radius: 4px; background: white; font-size: 12px; font-weight: 600; }
.terminal-bill { margin-top: 26px; }
.terminal-bill > div { display: flex; justify-content: space-between; gap: 15px; font-size: 13px; padding-block: 9px; }
.terminal-bill dt { color: #64748b; }
.terminal-bill dd { white-space: nowrap; font-weight: 500; color: #2c3e50; }
.terminal-total { margin-top: 18px; padding-top: 20px; border-top: 1px solid #dce3ed; }
.terminal-total > p { font-size: 13px; line-height: 1.8; color: #64748b; margin-bottom: 8px; }
.terminal-total strong { font-size: 42px; font-weight: 700; letter-spacing: -.055em; color: #2c3e50; line-height: 1.3; }
.terminal-total div > span { font-size: 13px; color: #64748b; white-space: nowrap; }
.terminal-total #calculatorHint { font-size: 12px; margin-top: 8px; }
.terminal-order { width: 100%; margin-top: 18px; gap: 10px; }
.terminal-order svg { width: 17px; height: 17px; }
.terminal-summary-note { padding: 15px; border: 1px solid #dde3ef; border-radius: 7px; font-size: 13px; line-height: 1.8; color: #64748b; margin-top: 20px; }
.terminal-config-bottom { display: flex; flex-wrap: wrap; gap: 12px 25px; padding: 18px 34px; border-top: 1px solid #e0e6ef; font-size: 13px; color: #64748b; }
.terminal-config-bottom span { display: inline-flex; align-items: center; gap: 7px; }
.terminal-config-bottom svg { width: 14px; height: 14px; color: #668caa; }
.terminal-service-link { margin-top: 25px; }
.terminal-page .product-faq p a { text-decoration: underline; text-underline-offset: 3px; }
.terminal-form input:not([type="checkbox"]):focus, .terminal-form textarea:focus { border-color: #848dd1; }
.terminal-attach { display: flex; align-items: start; gap: 10px; margin-top: 16px; padding: 12px; background: #f4f6fb; border: 1px solid #e4e8f0; border-radius: 6px; color: #475569; font-size: 13px; cursor: pointer; }
.terminal-attach input { margin-top: 3px; accent-color: var(--color-action); }
.terminal-attach small { display: block; font-size: 12px; color: #64748b; margin-top: 5px; }
@media (max-width: 900px) { .terminal-config-controls, .terminal-config-summary { padding: 26px; } }
@media (max-width: 760px) {
    .terminal-config-grid { grid-template-columns: 1fr; }
    .terminal-config-summary { border-left: 0; border-top: 1px solid #e0e6ef; }
}
@media (max-width: 480px) {
    .terminal-config-controls, .terminal-config-summary, .terminal-config-bottom { padding: 22px; }
    .terminal-total strong { font-size: 36px; }
    .terminal-plan-switch button { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { .terminal-page *, .terminal-page *::before, .terminal-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Период оплаты — общий компонент калькуляторов. */
.terminal-page [hidden] { display: none !important; }
.terminal-total .payment-period-total strong { font-size: 22px; white-space: nowrap; letter-spacing: -.02em; }
.terminal-total .payment-period-total > span { font-size: 13px; white-space: normal; }
.terminal-total .payment-savings { font-size: 13px; line-height: 1.6; color: #287256; margin-top: 10px; }
.terminal-bill #bill-discount-row dt, .terminal-bill #bill-discount-row dd { color: #287256; }
