.vat-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 22px;
	align-items: stretch;
	background: linear-gradient(135deg, #ffffff, #eef8f4);
}

.vat-snapshot,
.vat-card,
.content-section,
.disclaimer {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.vat-snapshot {
	display: grid;
	align-content: center;
	gap: 8px;
	padding: 18px;
	background: linear-gradient(145deg, #eef9f4, #eef5ff);
}

.vat-snapshot span,
.panel-kicker,
.result-label,
.metric-grid span,
.formula-box span {
	color: var(--green);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.vat-snapshot strong {
	color: #0f5f51;
	font-size: 34px;
	line-height: 1.1;
}

.vat-snapshot p {
	margin: 0;
	color: var(--muted);
}

.vat-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
	gap: 20px;
	margin-bottom: 20px;
	padding: 24px;
}

.panel-kicker {
	display: inline-flex;
	width: fit-content;
	margin-bottom: 10px;
	padding: 6px 9px;
	background: var(--green-soft);
	border: 1px solid #c8e2d8;
	border-radius: 999px;
}

.mode-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.mode-grid label {
	cursor: pointer;
}

.mode-grid input {
	position: absolute;
	opacity: 0;
}

.mode-grid span {
	display: flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px;
	color: var(--muted);
	background: #f7f9fc;
	border: 1px solid var(--line);
	border-radius: 7px;
	font-weight: 800;
	text-align: center;
}

.mode-grid input:checked + span {
	color: #ffffff;
	background: var(--green);
	border-color: var(--green);
}

.field-grid,
.metric-grid,
.example-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.field {
	display: grid;
	gap: 7px;
	color: #344052;
	font-weight: 800;
}

.field input,
.field select {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	color: var(--text);
	background: #ffffff;
	border: 1px solid #c5d1e1;
	border-radius: 7px;
	font: inherit;
}

.field input:focus,
.field select:focus {
	border-color: var(--green);
	outline: none;
	box-shadow: 0 0 0 3px rgba(23, 107, 91, 0.16);
}

.example-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.example-actions button,
.copy-button {
	min-height: 42px;
	padding: 10px 14px;
	cursor: pointer;
	border-radius: 7px;
	font: inherit;
	font-weight: 800;
}

.example-actions button {
	color: var(--green);
	background: #e9f5f1;
	border: 1px solid #bfddd4;
}

.input-note,
.content-section p,
.content-section li {
	color: var(--muted);
}

.result-panel {
	padding: 18px;
	background: linear-gradient(135deg, #eaf7f2, #f4fbff);
	border: 1px solid #bfe2d6;
	border-radius: 8px;
}

.result-panel > strong {
	display: block;
	margin-top: 6px;
	color: #0f5f51;
	font-size: 34px;
	line-height: 1.15;
}

.metric-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 14px;
}

.metric-grid div,
.formula-box {
	display: grid;
	gap: 6px;
	padding: 13px;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid #cce3dc;
	border-radius: 7px;
}

.formula-box {
	margin-top: 14px;
}

.formula-box p {
	margin: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 13px;
	overflow-wrap: anywhere;
}

.copy-button {
	width: 100%;
	margin-top: 14px;
	color: #ffffff;
	background: var(--green);
	border: 1px solid var(--green);
}

.content-section {
	margin-top: 18px;
	padding: 24px;
}

.split-content {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.example-grid article {
	padding: 18px;
	background: var(--surface-soft);
	border: 1px solid var(--line);
	border-top: 4px solid var(--green);
	border-radius: 8px;
}

.example-grid article:nth-child(2) {
	border-top-color: var(--blue);
}

.example-grid article:nth-child(3) {
	border-top-color: #d99a19;
}

.content-section a {
	color: var(--green);
	font-weight: 800;
}

.faq-section details {
	padding: 16px;
	background: var(--surface-soft);
	border: 1px solid var(--line);
	border-radius: 8px;
}

.faq-section details + details {
	margin-top: 10px;
}

.faq-section summary {
	cursor: pointer;
	color: var(--text);
	font-weight: 800;
}

.disclaimer {
	margin-top: 18px;
	padding: 16px 18px;
	color: #5d4a20;
	background: #fffaf0;
	border-color: #efd99c;
	font-size: 14px;
}

@media (max-width: 900px) {
	.vat-hero,
	.vat-card,
	.split-content {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.vat-card,
	.content-section {
		padding: 18px;
	}

	.mode-grid,
	.field-grid,
	.metric-grid,
	.example-grid {
		grid-template-columns: 1fr;
	}
}
