/*
 * Lanbox - Калькулятор зарядної станції.
 * Візуальна мова теми Lanbox (oct_ultrastore): акцент #e84118, майже прямі кути,
 * білі блоки з легкою тінню на сірому тлі, кнопки великими літерами, ціни в сірих плашках.
 * Усе під .lpc / #lpc-modal, щоб не зачепити тему.
 */
.lpc, #lpc-modal {
	--lpc-accent: #e84118;
	--lpc-accent-hover: #c9350f;
	--lpc-accent-soft: #fdf0ec;
	--lpc-dark: #3d3d3d;
	--lpc-dark-hover: #1d1d1d;
	--lpc-title: #333;
	--lpc-text: #5c5c5c;
	--lpc-muted: #8f8f8f;
	--lpc-light: #afafaf;
	--lpc-border: #e7e7e7;
	--lpc-line: #f0f0f0;
	--lpc-plate: #f6f6f6;
	--lpc-card: #fff;
	--lpc-shadow: 0 1px 5px 0 rgba(0, 0, 0, .03);
	--lpc-green: #71be00;
	--lpc-green-text: #4b7d00;
	--lpc-warn: #e8a317;
	--lpc-danger: #eb5757;
	--lpc-radius: 1px;

	color: var(--lpc-text);
	font-size: 14px;
	line-height: 1.5;
}

.lpc *, .lpc *::before, .lpc *::after,
#lpc-modal *, #lpc-modal *::before, #lpc-modal *::after { box-sizing: border-box; }
.lpc [hidden], #lpc-modal[hidden], #lpc-modal [hidden] { display: none !important; }
.lpc { margin-bottom: 40px; }

.lpc-page-title { font-size: 24px; font-weight: 700; color: #30363d; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid #e7e7e7; }
.lpc-intro { margin: 0 0 20px; max-width: 860px; font-size: 15px; }

/* Сітка: форма ширша, результат липне до верху під час прокрутки */
.lpc-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.lpc-result { position: sticky; top: 16px; }
.lpc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.lpc-card { background: var(--lpc-card); box-shadow: var(--lpc-shadow); border-radius: var(--lpc-radius); padding: 20px; margin-bottom: 15px; }
.lpc-card-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--lpc-title); margin: 0 0 16px; line-height: 1.3; }
.lpc-step { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--lpc-accent); color: #fff; font-size: 13px; font-weight: 700; flex: none; }

.lpc-icon { width: 22px; height: 22px; flex: none; color: var(--lpc-light); }

/* Поля вводу */
.lpc .lpc-input,
#lpc-modal .lpc-input {
	display: block; width: 100%; height: 40px; padding: 8px 12px; margin: 0;
	border: 1px solid var(--lpc-border); border-radius: var(--lpc-radius); background: #fff;
	font: inherit; font-size: 14px; color: var(--lpc-title); box-shadow: none; transition: border-color .15s;
}
#lpc-modal textarea.lpc-input { height: auto; resize: vertical; }
.lpc .lpc-input:focus, #lpc-modal .lpc-input:focus { outline: none; border-color: var(--lpc-accent); }
.lpc .lpc-input::placeholder { color: var(--lpc-light); }
.lpc input[type=number] { -moz-appearance: textfield; }
.lpc input[type=number]::-webkit-outer-spin-button,
.lpc input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.lpc-hint { margin: -6px 0 14px; font-size: 13px; color: var(--lpc-muted); }

/* Картки приладів: усі однакового розміру. У вибраній: поля з типовими значеннями, у невибраній на їхньому місці кнопка «Додати» */
.lpc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.lpc-tile { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--lpc-border); transition: border-color .15s; }
.lpc-tile:hover { border-color: #d5d5d5; }
.lpc-tile.is-selected { border-color: var(--lpc-accent); }
.lpc-tile-head {
	display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center;
	padding: 12px 30px 10px 12px; cursor: pointer; color: var(--lpc-text); outline: none;
}
.lpc-tile-head:focus-visible { box-shadow: inset 0 0 0 2px var(--lpc-accent); }
.lpc-tile-head .lpc-icon { grid-row: 1 / span 2; width: 26px; height: 26px; transition: color .15s; }
/* Назва: завжди два рядки, щоб картки не відрізнялись висотою */
.lpc-tile-name {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	height: 2.5em; font-size: 13px; font-weight: 600; color: var(--lpc-title); line-height: 1.25; overflow-wrap: anywhere; hyphens: auto;
}
.lpc-tile-sub { font-size: 12px; color: var(--lpc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc-tile:hover .lpc-icon, .lpc-tile.is-selected .lpc-icon { color: var(--lpc-accent); }
.lpc-tile.is-selected .lpc-tile-head { background: var(--lpc-accent-soft); }
.lpc-tile-check { position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; border: 1px solid var(--lpc-border); background: #fff; }
.lpc-tile.is-selected .lpc-tile-check { border-color: var(--lpc-accent); background: var(--lpc-accent); }
.lpc-tile.is-selected .lpc-tile-check::after { content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Свій прилад: назва вводиться прямо в заголовку картки */
.lpc-tile.is-custom .lpc-tile-head { cursor: default; }
.lpc .lpc-tile-name-input { height: 2.5em; min-height: 32px; padding: 4px 8px; font-size: 13px; font-weight: 600; }
.lpc-tile-remove {
	position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; background: none; padding: 0;
	color: var(--lpc-muted); font-size: 20px; line-height: 24px; cursor: pointer;
}
.lpc-tile-remove:hover { color: var(--lpc-danger); }

.lpc-tile-body { position: relative; flex: 1; padding: 10px 12px 12px; border-top: 1px solid var(--lpc-line); }
.lpc-tile:not(.is-selected) .lpc-tile-fields { visibility: hidden; } /* місце лишається: розмір картки не змінюється */
.lpc-tile-add {
	position: absolute; top: 10px; right: 12px; bottom: 12px; left: 12px; width: auto;
	border: 1px dashed var(--lpc-border); background: var(--lpc-plate); color: var(--lpc-accent);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.lpc-tile-add b { font-size: 12px; font-weight: 600; text-transform: uppercase; }
.lpc-tile-preview { font-size: 12px; color: var(--lpc-muted); }
.lpc-tile-add:hover { border-color: var(--lpc-accent); background: #fff; }
.lpc-tile.is-selected .lpc-tile-add { display: none; }
.lpc-pf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-weight: 400; font-size: 12px; color: var(--lpc-muted); }
/* Потужність і години: двома колонками, одиниця всередині поля */
.lpc-pf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.lpc-pf-col { display: block; margin: 0; font-weight: 400; font-size: 11px; color: var(--lpc-muted); min-width: 0; }
.lpc-pf-col > span:first-child { display: block; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc-pf-input { position: relative; display: block; }
.lpc .lpc-pf-input .lpc-input { width: 100%; height: 32px; padding: 4px 28px 4px 4px; text-align: right; }
.lpc-pf-input small { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--lpc-muted); pointer-events: none; }
.lpc-qty { display: flex; flex: 0 1 110px; min-width: 0; } /* не ширше за картку: інакше «+» лягає на рамку */
.lpc .lpc-qty .lpc-input { flex: 1; min-width: 0; width: 0; height: 32px; padding: 4px; text-align: center; border-left: 0; border-right: 0; }
.lpc-qty-btn { width: 28px; height: 32px; border: 1px solid var(--lpc-border); background: var(--lpc-plate); color: var(--lpc-light); font-size: 16px; padding: 0; cursor: pointer; }
.lpc-qty-btn:hover { color: var(--lpc-accent); background: #fff; }
/* «Одночасно з іншими»: лише для потужних приладів, але рядок під нього є в кожній картці */
.lpc-pf-simul { display: flex; align-items: center; gap: 6px; height: 16px; margin: 0; font-weight: 400; font-size: 12px; color: var(--lpc-text); cursor: pointer; white-space: nowrap; overflow: hidden; }
.lpc-pf-simul.is-off { visibility: hidden; }
.lpc-pf-simul input { margin: 0; flex: none; accent-color: var(--lpc-accent); }
.lpc-pf-simul span { overflow: hidden; text-overflow: ellipsis; }

.lpc-tiles-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.lpc-link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--lpc-accent); text-decoration: underline; cursor: pointer; }
.lpc-link-btn:hover { color: var(--lpc-accent-hover); }

/* Години */
.lpc-hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); border: 1px solid var(--lpc-border); background: var(--lpc-plate); }
.lpc-hours-item { margin: 0; font-weight: 400; position: relative; }
.lpc-hours-item + .lpc-hours-item { border-left: 1px solid var(--lpc-border); }
.lpc-hours-item input { position: absolute; opacity: 0; pointer-events: none; }
.lpc-hours-item span { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 42px; cursor: pointer; font-size: 15px; color: var(--lpc-text); transition: background .15s, color .15s; }
.lpc-hours-item span small { font-size: 12px; }
.lpc-hours-item span:hover { background: #fbfbfb; color: var(--lpc-title); }
.lpc-hours-item input:checked + span { background: var(--lpc-accent); color: #fff; font-weight: 600; }
.lpc-hours-item input:focus-visible + span { outline: 2px solid var(--lpc-dark); outline-offset: -2px; }
.lpc-hours-custom { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.lpc .lpc-hours-custom .lpc-input { width: 110px; }

/* Кнопки */
.lpc-btn,
#lpc-modal .lpc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 9px 22px; border: 1px solid transparent; border-radius: var(--lpc-radius);
	font: inherit; font-size: 14px; text-transform: uppercase; letter-spacing: .02em;
	cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2; transition: background .15s, color .15s;
}
.lpc-btn:disabled { opacity: .6; cursor: default; }
.lpc .lpc-btn-primary, #lpc-modal .lpc-btn-primary { background: var(--lpc-accent); color: #fff; }
.lpc .lpc-btn-primary:hover:not(:disabled), #lpc-modal .lpc-btn-primary:hover:not(:disabled) { background: var(--lpc-accent-hover); color: #fff; }
.lpc .lpc-btn-dark { background: var(--lpc-dark); color: #fff; }
.lpc .lpc-btn-dark:hover:not(:disabled) { background: var(--lpc-dark-hover); color: #fff; }
#lpc-modal .lpc-btn-ghost { background: #fff; color: var(--lpc-text); border-color: var(--lpc-border); }
.lpc-btn-block { width: 100%; }
.lpc-calc-btn { display: none; }

/* Результат */
.lpc-result { background: var(--lpc-card); box-shadow: var(--lpc-shadow); padding: 22px 25px 25px; min-height: 360px; transition: opacity .15s; }
.lpc-result.is-loading { opacity: .5; }
.lpc-placeholder { color: var(--lpc-muted); text-align: center; padding: 140px 16px; }
.lpc-result-title { font-size: 18px; font-weight: 700; color: var(--lpc-title); margin: 0 0 14px; line-height: 1.3; }

.lpc-load { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--lpc-line); }
.lpc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.lpc-stat { padding: 12px; background: var(--lpc-plate); }
.lpc-stat strong { display: block; font-size: 20px; color: var(--lpc-title); line-height: 1.2; white-space: nowrap; }
.lpc-stat strong small { font-size: 13px; font-weight: 600; }
.lpc-stat span { font-size: 12px; color: var(--lpc-muted); }
.lpc-note { margin: 0 0 8px; padding: 9px 12px; border-left: 3px solid var(--lpc-accent); background: var(--lpc-accent-soft); font-size: 13px; }

.lpc-breakdown { margin-top: 12px; }
.lpc-breakdown summary { cursor: pointer; font-weight: 600; color: var(--lpc-title); font-size: 13px; margin-bottom: 8px; list-style: none; display: flex; align-items: center; gap: 6px; }
.lpc-breakdown summary::-webkit-details-marker { display: none; }
.lpc-breakdown summary::before { content: ""; width: 0; height: 0; border-left: 5px solid var(--lpc-accent); border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .15s; }
.lpc-breakdown[open] summary::before { transform: rotate(90deg); }
.lpc-breakdown ul { list-style: none; margin: 0; padding: 0; }
.lpc-breakdown li { margin-bottom: 9px; }
.lpc-bd-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.lpc-bd-top b { color: var(--lpc-title); white-space: nowrap; font-weight: 600; }
.lpc-bd-bar { height: 6px; background: var(--lpc-plate); margin: 3px 0 2px; }
.lpc-bd-bar i { display: block; height: 100%; background: var(--lpc-accent); opacity: .75; }
.lpc-bd-detail { font-size: 11px; color: var(--lpc-muted); }

.lpc-variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.lpc-variants-2 { grid-template-columns: repeat(2, 1fr); }
.lpc-variants-1 { display: none; }
.lpc-variant {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
	padding: 14px 12px 12px; background: #fff; border: 1px solid var(--lpc-border); text-align: left; cursor: pointer; color: var(--lpc-text); font: inherit;
	transition: border-color .15s, box-shadow .15s;
}
.lpc-variant::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: transparent; }
.lpc-variant:hover { border-color: #d5d5d5; }
.lpc-variant.is-active { border-color: var(--lpc-accent); box-shadow: 0 4px 14px rgba(232, 65, 24, .12); }
.lpc-variant.is-active::before { background: var(--lpc-accent); }
.lpc-variant-name { font-size: 15px; font-weight: 700; color: var(--lpc-title); }
.lpc-variant-help { font-size: 12px; color: var(--lpc-muted); line-height: 1.3; }
.lpc-variant-total { margin-top: 8px; padding: 3px 8px; background: var(--lpc-plate); font-size: 16px; font-weight: 700; color: var(--lpc-title); white-space: nowrap; }
.lpc-variant.is-active .lpc-variant-total { color: var(--lpc-accent); }
.lpc-variant.is-warn .lpc-variant-name::after { content: " !"; color: var(--lpc-warn); }
.lpc-sticker { position: absolute; top: -10px; right: 10px; padding: 2px 9px; background: var(--lpc-accent); color: #fff; font-size: 11px; line-height: 16px; }

.lpc-status { display: inline-block; margin-bottom: 14px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.lpc-status.is-ok { background: #f3f9ea; color: var(--lpc-green-text); }
.lpc-status.is-warn { background: #fdf5e6; color: #9a6a00; }

.lpc-station { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; }
.lpc-station-img { display: block; background: #fff; border: 1px solid var(--lpc-line); padding: 6px; }
.lpc-station-img img { display: block; width: 100%; height: auto; }
.lpc .lpc-station-name { display: block; font-size: 16px; font-weight: 700; color: var(--lpc-title); line-height: 1.35; text-decoration: none; }
.lpc a.lpc-station-name:hover { color: var(--lpc-accent); }
.lpc-station-stock { font-size: 12px; color: var(--lpc-green); margin: 2px 0 12px; }
.lpc-station-stock.is-out { color: var(--lpc-muted); }
.lpc .lpc-parts { margin: 0 0 14px; border: 1px solid var(--lpc-line); }
.lpc .lpc-parts-title { padding: 8px 12px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--lpc-muted); border-bottom: 1px solid var(--lpc-line); }
.lpc .lpc-part { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 12px; }
.lpc .lpc-part + .lpc-part { border-top: 1px solid var(--lpc-line); }
.lpc .lpc-part-img { display: block; width: 56px; height: 56px; background: #fff; border: 1px solid var(--lpc-line); }
.lpc .lpc-part-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lpc .lpc-part-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--lpc-title); text-decoration: none; }
.lpc a.lpc-part-name:hover { color: var(--lpc-accent); }
.lpc .lpc-part-detail { font-size: 12px; color: var(--lpc-muted); margin-top: 2px; }
.lpc .lpc-part-stock { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--lpc-green); }
.lpc .lpc-part-stock.is-out { color: #b45309; }
.lpc .lpc-part-price { text-align: right; white-space: nowrap; }
.lpc .lpc-part-price b { display: block; font-size: 15px; color: var(--lpc-title); }
.lpc .lpc-part-price small { display: block; font-size: 12px; color: var(--lpc-muted); margin-top: 2px; }
.lpc .lpc-station-stock.is-out { color: #b45309; }

.lpc-runtime { margin-bottom: 12px; }
.lpc-runtime-top { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.lpc-runtime-top b { font-size: 18px; color: var(--lpc-title); }
.lpc-runtime-top small { margin-left: auto; color: var(--lpc-muted); font-size: 12px; }
.lpc-runtime-bar { height: 8px; background: var(--lpc-plate); margin-top: 4px; }
.lpc-runtime-bar i { display: block; height: 100%; background: var(--lpc-green); }
.lpc-runtime-bar.is-warn i { background: var(--lpc-warn); }

.lpc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 0; }
.lpc-facts div { padding: 6px 0; border-bottom: 1px solid var(--lpc-line); }
.lpc-facts dt { font-size: 11px; font-weight: 400; color: var(--lpc-muted); }
.lpc-facts dd { margin: 0; font-size: 13px; color: var(--lpc-title); font-weight: 600; }
.lpc-facts dd.is-ok { color: var(--lpc-green-text); }

.lpc-problem { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--lpc-warn); background: #fdf5e6; font-size: 13px; color: var(--lpc-text); }
.lpc-same { margin: 12px 0 0; font-size: 12px; color: var(--lpc-muted); }

.lpc-kit-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.lpc-kit-total { display: flex; align-items: center; gap: 10px; }
.lpc-kit-total strong { padding: 6px 14px; background: var(--lpc-plate); font-size: 22px; color: var(--lpc-title); white-space: nowrap; }
.lpc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.lpc-alert, #lpc-modal .lpc-alert { margin-top: 14px; padding: 10px 14px; font-size: 13px; border-left: 3px solid; }
.lpc-alert.is-success { background: #f3f9ea; border-color: var(--lpc-green); color: var(--lpc-green-text); }
.lpc-alert.is-error { background: #fdeeee; border-color: var(--lpc-danger); color: #b33a3a; }
.lpc-alert a { font-weight: 600; color: inherit; text-decoration: underline; }
.lpc-disclaimer { margin: 18px 0 0; font-size: 12px; color: var(--lpc-muted); }

/* Модальне вікно */
#lpc-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lpc-modal-backdrop { position: absolute; inset: 0; background: rgba(29, 29, 29, .6); }
.lpc-modal-dialog { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); margin: 0; }
.lpc-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--lpc-line); }
.lpc-modal-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--lpc-title); line-height: 1.3; }
.lpc-modal-close { width: 32px; height: 32px; border: 0; background: var(--lpc-accent); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0; flex: none; }
.lpc-modal-close:hover { background: var(--lpc-accent-hover); }
.lpc-modal-body { padding: 18px 24px 4px; }
.lpc-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 20px; }
.lpc-modal-intro { margin: 0 0 14px; }
.lpc-modal-variant { margin-bottom: 16px; padding: 10px 14px; background: var(--lpc-plate); }
.lpc-modal-variant strong { color: var(--lpc-title); }
.lpc-modal-total { float: right; font-weight: 700; color: var(--lpc-accent); }
#lpc-modal .lpc-field { display: block; margin: 0 0 14px; font-weight: 400; }
#lpc-modal .lpc-label { display: block; font-size: 13px; font-weight: 600; color: var(--lpc-title); margin-bottom: 6px; }
#lpc-modal .lpc-label b { color: var(--lpc-accent); }
#lpc-modal .lpc-error { display: block; color: var(--lpc-danger); font-size: 12px; margin-top: 4px; }
#lpc-modal .lpc-error:empty { display: none; }
#lpc-modal .has-error .lpc-input { border-color: var(--lpc-danger); }
#lpc-modal .lpc-agree { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 2px 0 14px; font-weight: 400; font-size: 13px; cursor: pointer; }
#lpc-modal .lpc-agree input { margin: 3px 0 0; accent-color: var(--lpc-accent); }
#lpc-modal .lpc-agree span { flex: 1; }
#lpc-modal .lpc-agree a { color: var(--lpc-accent); text-decoration: underline; }
#lpc-modal .lpc-agree .lpc-error { flex-basis: 100%; margin: 0 0 0 21px; }
.lpc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
body.lpc-modal-open { overflow: hidden; }

/* Планшет */
@media (max-width: 991px) {
	.lpc-layout { grid-template-columns: 1fr; gap: 15px; }
	.lpc-result { position: static; }
	.lpc-calc-btn { display: flex; margin-bottom: 4px; }
}

/* Телефон */
@media (max-width: 600px) {
	.lpc-intro { font-size: 14px; margin-bottom: 15px; }
	.lpc-card { padding: 16px 15px; }
	.lpc-result { padding: 18px 15px 20px; }
	.lpc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.lpc-tile-head { padding: 10px 26px 8px 10px; column-gap: 8px; grid-template-columns: 22px minmax(0, 1fr); }
	.lpc-tile-head .lpc-icon { width: 22px; height: 22px; }
	.lpc-tile-name { font-size: 12px; height: 3.75em; -webkit-line-clamp: 3; }
	.lpc .lpc-tile-name-input { height: 32px; font-size: 12px; }
	.lpc-tile-body { padding: 8px 10px 10px; }
	.lpc-tile-add { top: 8px; right: 10px; bottom: 10px; left: 10px; }
	.lpc-pf { flex-wrap: wrap; gap: 4px; }
	.lpc-qty { max-width: none; flex-basis: 100%; }
	.lpc-qty-btn { width: 26px; }
	.lpc .lpc-pf-input .lpc-input { padding-right: 22px; font-size: 13px; }
	.lpc-pf-input small { right: 5px; font-size: 10px; }

	.lpc-stats { gap: 6px; }
	.lpc-stat { padding: 10px 8px; }
	.lpc-stat strong { font-size: 16px; }

	.lpc-variants { grid-template-columns: 1fr; gap: 8px; }
	.lpc-variant { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 0; padding: 12px 14px; }
	.lpc-variant-name { grid-column: 1; grid-row: 1; }
	.lpc-variant-help { grid-column: 1; grid-row: 2; }
	.lpc-variant-total { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 15px; }
	.lpc-sticker { top: -9px; right: auto; left: 12px; }

	.lpc-station { grid-template-columns: 1fr; gap: 12px; }
	.lpc-station-img { width: 140px; margin: 0 auto; }
	.lpc .lpc-part { grid-template-columns: 48px minmax(0, 1fr); }
	.lpc .lpc-part-img { width: 48px; height: 48px; }
	.lpc .lpc-part-price { grid-column: 2; text-align: left; display: flex; gap: 8px; align-items: baseline; }

	.lpc-kit-foot { flex-direction: column; align-items: stretch; }
	.lpc-kit-total { justify-content: space-between; }
	.lpc-actions { flex-direction: column; }
	.lpc-actions .lpc-btn { width: 100%; }

	#lpc-modal { padding: 0; align-items: flex-end; }
	.lpc-modal-dialog { max-height: 100vh; }
	#lpc-modal .lpc-grid-2 { grid-template-columns: 1fr; }
	.lpc-modal-header, .lpc-modal-body, .lpc-modal-footer { padding-left: 16px; padding-right: 16px; }
	.lpc-modal-footer .lpc-btn { flex: 1; }
	.lpc-modal-total { float: none; display: block; }
}

