.laser-cut {
	max-width: 1200px;
	margin: 0 auto 40px;
	padding: 0 15px;
	font-family: Roboto, sans-serif;
	color: #414141;
}

.laser-cut__intro {
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 25px;
	color: #666;
}

.laser-cut__section {
	box-shadow: 0 1px 4px 0 gray;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 20px;
	background: #fff;
}

.laser-cut__section-title {
	font-family: Bebas, sans-serif;
	font-size: 24px;
	margin: 0 0 15px;
	color: #414141;
}

.laser-cut .calc_24.ramka3 > .laser-cut__section-title {
	display: block;
	box-sizing: border-box;
	width: calc(100% + 20px);
	max-width: calc(100% + 20px);
	margin: -10px -10px 15px;
	padding: 8px 12px;
	background: #ececec;
	border-radius: 10px 10px 0 0;
}

.laser-cut__workspace {
	display: grid;
	grid-template-columns: minmax(280px, 360px) 1fr;
	gap: 24px;
	align-items: start;
}

@media (max-width: 900px) {
	.laser-cut__workspace {
		grid-template-columns: 1fr;
	}
}

.laser-cut__field {
	margin-bottom: 16px;
}

.laser-cut__field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}

.laser-cut__field input[type="number"],
.laser-cut__field select {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
}

.laser-cut__dropzone {
	display: block;
	position: relative;
	border: 2px dashed #bbb;
	border-radius: 10px;
	padding: 24px 16px;
	text-align: center;
	cursor: pointer;
	background: #fafafa;
	transition: border-color 0.2s, background 0.2s;
}

.laser-cut__file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.laser-cut__dropzone:hover,
.laser-cut__dropzone.is-dragover {
	border-color: #fe4d00;
	background: #fff8f4;
}

.laser-cut__dropzone strong {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
}

.laser-cut__dropzone span {
	font-size: 13px;
	color: #666;
}

.laser-cut__status {
	margin-top: 10px;
	font-size: 13px;
	min-height: 18px;
}

.laser-cut__status.is-error {
	color: #c0392b;
}

.laser-cut__status.is-ok {
	color: #2e7d32;
}

.laser-cut__plates {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
}

.laser-cut__plate {
	position: relative;
	padding: 28px 10px 10px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
}

.laser-cut__plate.is-active {
	border-color: #fe4d00;
	box-shadow: 0 0 0 1px #fe4d00 inset;
}

.laser-cut__plate-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.laser-cut__plate-preview {
	width: 100%;
	height: 90px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f5f5f5;
	cursor: pointer;
	overflow: hidden;
}

.laser-cut__plate-preview canvas {
	width: 100%;
	height: 100%;
	display: block;
}

.laser-cut__plate-info {
	min-width: 0;
}

.laser-cut__plate-name {
	font-weight: 600;
	font-size: 14px;
	word-break: break-all;
}

.laser-cut__plate-meta {
	font-size: 12px;
	color: #666;
	margin-top: 4px;
	line-height: 1.4;
}

.laser-cut__plate-remove {
	position: absolute;
	top: 2px;
	right: 2px;
	border: 0;
	background: transparent;
	color: #999;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	z-index: 1;
}

.laser-cut__plate-remove:hover {
	color: #c0392b;
}

.laser-cut__preview-wrap {
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #f9f9f9;
	min-height: 420px;
	display: flex;
	flex-direction: column;
}

.laser-cut__preview-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 12px;
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
	border-radius: 8px 8px 0 0;
}

.laser-cut__preview-toolbar button {
	border: 1px solid #ccc;
	background: #fff;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
}

.laser-cut__preview-toolbar button:hover {
	border-color: #fe4d00;
	color: #fe4d00;
}

.laser-cut__preview-canvas-wrap {
	flex: 1;
	position: relative;
	min-height: 360px;
	overflow: hidden;
}

.laser-cut__preview-canvas-wrap canvas {
	width: 100%;
	height: 100%;
	display: block;
	cursor: grab;
}

.laser-cut__preview-canvas-wrap canvas:active {
	cursor: grabbing;
}

.laser-cut__preview-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 14px;
	padding: 20px;
	text-align: center;
}

.laser-cut__preview-warning,
.laser-cut__warning {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff3e0;
	border: 1px solid #ffb74d;
	color: #6d4c1a;
	font-size: 13px;
	line-height: 1.45;
}

.laser-cut__warning--inline {
	margin-top: 10px;
}

.laser-cut__results-table tr.is-narrow-warning .laser-cut__file-summary {
	color: #c62828;
}

.laser-cut__results-wrap {
	overflow-x: auto;
	margin: 0 -4px;
	padding: 0 4px;
}

.laser-cut__results-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	min-width: 520px;
}

.laser-cut__results-table thead th {
	text-align: center;
	vertical-align: middle;
}

.laser-cut__results-table th,
.laser-cut__results-table td {
	border-bottom: 1px solid #ececec;
	padding: 10px 8px;
	text-align: left;
}

.laser-cut__results-table tbody td,
.laser-cut__results-table tfoot td {
	vertical-align: middle;
}

.laser-cut__results-table th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #666;
}

.laser-cut__results-table tfoot td {
	font-weight: 700;
	border-top: 2px solid #ddd;
}

.laser-cut__cell-file {
	min-width: 160px;
	max-width: 220px;
}

.laser-cut__file-details {
	margin: 0;
}

.laser-cut__file-summary {
	cursor: pointer;
	font-weight: 600;
	word-break: break-all;
	list-style: none;
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

.laser-cut__file-summary::-webkit-details-marker {
	display: none;
}

.laser-cut__file-summary::before {
	content: '';
	flex-shrink: 0;
	width: 0;
	height: 0;
	margin-top: 6px;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 6px solid #888;
	transition: transform 0.15s;
}

.laser-cut__file-details[open] > .laser-cut__file-summary::before {
	transform: rotate(90deg);
}

.laser-cut__file-meta {
	margin: 8px 0 0;
	padding: 8px 10px;
	background: #f5f5f5;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.4;
}

.laser-cut__file-meta-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
}

.laser-cut__file-meta-row:not(:last-child) {
	border-bottom: 1px solid #e8e8e8;
}

.laser-cut__file-meta dt {
	margin: 0;
	color: #666;
	font-weight: 400;
}

.laser-cut__file-meta dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.laser-cut__cell-input {
	width: 72px;
}

.laser-cut__cell-check {
	width: 48px;
	text-align: center;
	vertical-align: middle;
}

.laser-cut__cell-check .laser-cut__table-check {
	display: block;
	margin: 0 auto;
}

.laser-cut__cell-cost,
.laser-cut__cell-price {
	white-space: nowrap;
	font-weight: 600;
}

.laser-cut__table-input {
	width: 64px;
	box-sizing: border-box;
	padding: 5px 6px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 13px;
	text-align: center;
}

.laser-cut__table-check {
	width: 16px;
	height: 16px;
	cursor: pointer;
	vertical-align: middle;
}

.laser-cut__summary {
	margin-top: 12px;
	font-size: 14px;
	color: #414141;
}

.laser-cut__hint {
	font-size: 12px;
	color: #888;
	margin-top: 8px;
	line-height: 1.4;
}

.laser-cut__loading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #666;
}

.laser-cut__loading::before {
	content: '';
	width: 14px;
	height: 14px;
	border: 2px solid #ddd;
	border-top-color: #fe4d00;
	border-radius: 50%;
	animation: laser-cut-spin 0.8s linear infinite;
}

@keyframes laser-cut-spin {
	to { transform: rotate(360deg); }
}

.laser-cut__results-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: -10px -10px 15px;
	padding: 8px 12px;
	background: #ececec;
	border-radius: 10px 10px 0 0;
}

.laser-cut__results-head .laser-cut__section-title {
	margin: 0;
}

.laser-cut__config-open-btn {
	border: 1px solid #ccc;
	background: #fff;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
}

.laser-cut__config-open-btn:hover {
	border-color: #fe4d00;
	color: #fe4d00;
}

.laser-cut__table-select {
	width: 72px;
	box-sizing: border-box;
	padding: 5px 6px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 13px;
	text-align: center;
	text-align-last: center;
	background: #fff;
}

.laser-cut__config-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.laser-cut__config-modal[hidden] {
	display: none;
}

.laser-cut__config-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.laser-cut__config-modal__dialog {
	position: relative;
	width: min(920px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	background: #fff;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.laser-cut__config-modal__title {
	font-family: Bebas, sans-serif;
	font-size: 24px;
	margin: 0 0 8px;
}

.laser-cut__config-modal__hint {
	font-size: 13px;
	color: #666;
	margin: 0 0 12px;
}

.laser-cut__config-modal__status {
	font-size: 13px;
	min-height: 18px;
	margin-bottom: 10px;
}

.laser-cut__config-modal__status.is-error {
	color: #c0392b;
}

.laser-cut__config-modal__status.is-success {
	color: #2e7d32;
}

.laser-cut__config-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #999;
}

.laser-cut__config-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.laser-cut__config-section {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 12px;
}

.laser-cut__config-section-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
}

.laser-cut__config-section-hint {
	margin: -4px 0 10px;
	font-size: 12px;
	color: #666;
}

.laser-cut__config-section--compact {
	padding: 10px 12px;
}

.laser-cut__config-modal label {
	float: none;
	display: flex;
	flex-direction: column;
	width: auto;
	max-width: none;
	margin: 0;
}

.laser-cut__config-basic-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 180px));
	gap: 10px 16px;
	align-items: end;
}

.laser-cut__config-field--compact {
	margin-bottom: 0;
	min-width: 0;
}

.laser-cut__config-field--compact span {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.laser-cut__config-field--compact input {
	width: 100%;
	box-sizing: border-box;
	padding: 5px 8px;
	font-size: 13px;
}

@media (max-width: 520px) {
	.laser-cut__config-basic-row {
		grid-template-columns: 1fr;
	}
}

.laser-cut__config-tariff-input {
	width: 100%;
	min-width: 72px;
	box-sizing: border-box;
	padding: 5px 6px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 13px;
}

.laser-cut__config-thickness-table th:nth-child(3),
.laser-cut__config-thickness-table th:nth-child(4) {
	min-width: 88px;
}

.laser-cut__config-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 10px;
}

.laser-cut__config-field:last-child {
	margin-bottom: 0;
}

.laser-cut__config-field span {
	font-size: 13px;
	font-weight: 600;
}

.laser-cut__config-field input {
	width: 100%;
	box-sizing: border-box;
	padding: 7px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 13px;
}

.laser-cut__config-thickness-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin-bottom: 10px;
}

.laser-cut__config-thickness-table th,
.laser-cut__config-thickness-table td {
	border-bottom: 1px solid #ececec;
	padding: 8px 6px;
	text-align: left;
}

.laser-cut__config-thickness-default {
	text-align: center;
	width: 110px;
}

.laser-cut__config-thickness-mm {
	width: 100%;
	box-sizing: border-box;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.laser-cut__config-remove-row {
	border: 0;
	background: transparent;
	color: #999;
	font-size: 20px;
	cursor: pointer;
	padding: 0 6px;
}

.laser-cut__config-remove-row:hover {
	color: #c0392b;
}

.laser-cut__config-add-row {
	border: 1px dashed #bbb;
	background: #fafafa;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	cursor: pointer;
}

.laser-cut__config-add-row:hover {
	border-color: #fe4d00;
	color: #fe4d00;
}

.laser-cut__config-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.laser-cut__config-modal__btn {
	border: 1px solid #fe4d00;
	background: #fe4d00;
	color: #fff;
	border-radius: 6px;
	padding: 9px 16px;
	font-size: 14px;
	cursor: pointer;
}

.laser-cut__config-modal__btn--secondary {
	background: #fff;
	color: #414141;
	border-color: #ccc;
}

.laser-cut__config-modal__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.laser-cut-seo {
	max-width: 1200px;
	margin: 0 auto 40px;
	padding: 0 15px;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
}

.laser-cut-seo__title {
	font-size: 18px;
	line-height: 1.3;
	margin: 0 0 16px;
	font-weight: 600;
	color: #414141;
}

.laser-cut-seo__faq-item {
	margin: 0 0 16px;
}

.laser-cut-seo__faq-item h3 {
	font-size: 16px;
	line-height: 1.35;
	margin: 0 0 6px;
	font-weight: 600;
	color: #414141;
}

.laser-cut-seo__faq-item p {
	margin: 0;
	color: #666;
}

.laser-cut-seo__note {
	margin: 20px 0 0;
	font-size: 14px;
	color: #666;
}

.laser-cut-seo__related {
	margin: 20px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: #333;
}

.laser-cut-seo__related a {
	color: #fe4d00;
	text-decoration: none;
}

.laser-cut-seo__related a:hover {
	text-decoration: underline;
}
