@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
	--bg-primary: #0a0e27;
	--bg-secondary: #151934;
	--bg-card: #1a1f3a;
	--accent-primary: #00d9ff;
	--accent-secondary: #7c3aed;
	--text-primary: #ffffff;
	--text-secondary: #94a3b8;
	--text-muted: #64748b;
	--border: rgba(255, 255, 255, 0.1);
	--success: #10b981;
	--warning: #f59e0b;
	--danger: #ef4444;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
	color: var(--text-primary);
	min-height: 100vh;
	padding: 10px;
	overflow-x: hidden;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.1) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

header {
	text-align: center;
	margin-bottom: 10px;
	animation: fadeInDown 0.6s ease;
}

.header-top {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 0px;
}

.controls-panel {
	display: flex;
	gap: 16px;
	align-items: center;
}

.language-switcher,
.units-switcher {
	display: flex;
	gap: 4px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 4px;
}

.lang-btn,
.unit-btn {
	padding: 8px 16px;
	background: transparent;
	border: none;
	border-radius: 8px;
	color: var(--text-secondary);
	font-size: 0.8rem;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s ease;
}

.lang-btn:hover,
.unit-btn:hover {
	background: rgba(255, 255, 255, 0.05);
	color: var(--text-primary);
}

.lang-btn.active,
.unit-btn.active {
	background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
	color: var(--text-primary);
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(0, 217, 255, 0.3);
}

header {
	text-align: center;
	margin-bottom: 40px;
	animation: fadeInDown 0.6s ease;
}

header h1 {
	font-size: 4.5rem;
	font-weight: 700;
	/*background: linear-gradient(135deg, var(--warning) 0%, var(--accent-secondary) 100%);*/
	background: linear-gradient(135deg, var(--warning) 0%, var(--success) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 12px;
	letter-spacing: -0.02em;
}

h1 a {
	text-decoration: none;
}

h3 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--text-secondary);
}

h3 a {
	text-decoration: none;
	color: var(--text-secondary);
}

.subtitle {
	color: var(--text-secondary);
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.badge {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border);
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	backdrop-filter: blur(10px);
}

.grid {
	display: grid;
	grid-template-columns: 420px 1fr;
	gap: 24px;
	animation: fadeIn 0.8s ease;
}

.card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 28px;
	backdrop-filter: blur(20px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
}

.card:hover {
	border-color: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.card-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
}

.card-title {
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--text-primary);
}

.control-group {
	margin-bottom: 24px;
}

.control-label {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-secondary);
	margin-bottom: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.control-value {
	font-size: 1rem;
	font-weight: 600;
	color: var(--accent-primary);
}

select {
	width: 100%;
	padding: 14px 16px;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--text-primary);
	font-size: 1rem;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s ease;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}

select:hover {
	border-color: var(--accent-primary);
}

select:focus {
	outline: none;
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

select:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

input:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.slider-container {
	position: relative;
}

input[type="range"] {
	width: 100%;
	height: 6px;
	background: var(--bg-secondary);
	border-radius: 10px;
	outline: none;
	appearance: none;
	position: relative;
}

input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	width: 20px;
	height: 20px;
	background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 217, 255, 0.4);
	transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
	transform: scale(1.2);
	box-shadow: 0 4px 16px rgba(0, 217, 255, 0.6);
}

input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
	border-radius: 50%;
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 8px rgba(0, 217, 255, 0.4);
	transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
	transform: scale(1.2);
	box-shadow: 0 4px 16px rgba(0, 217, 255, 0.6);
}

.toggle-group {
	display: flex;
	gap: 8px;
	width: 100%;
}

.toggle-btn {
	flex: 1;
	padding: 12px 16px;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: 10px;
	color: var(--text-secondary);
	font-size: 0.95rem;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: capitalize;
}

.toggle-btn:hover {
	border-color: var(--accent-primary);
	background: rgba(0, 217, 255, 0.05);
}

.toggle-btn.active {
	background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
	border-color: transparent;
	color: var(--text-primary);
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

.toggle-btn.active:hover {
	box-shadow: 0 6px 16px rgba(0, 217, 255, 0.4);
	transform: translateY(-1px);
}

.result-card {
	min-height: 400px;
}

.result-empty {
	text-align: center;
	padding: 0 20px 10px;
	color: var(--text-muted);
}

.result-empty-icon {
	font-size: 4rem;
	margin-bottom: 20px;
	opacity: 0.6;
}

.result-main {
	text-align: center;
	padding: 20px;
	background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
	border-radius: 16px;
	margin-bottom: 28px;
	border: 1px solid rgba(0, 217, 255, 0.2);
}

.result-vehicle {
	font-size: 2.0rem;
	color: var(--text-secondary);
	margin-bottom: 8px;
}

.result-vehicle strong {
	color: var(--text-primary);
}

.result-base {
	font-size: 0.95rem;
	color: var(--text-muted);
	margin-bottom: 20px;
}

.result-range {
	font-size: 4.5rem;
	font-weight: 700;
	/*background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);*/
	background: linear-gradient(135deg, var(--warning) 0%, var(--success) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1.2;
	animation: scaleIn 0.5s ease;
}

.result-label {
	font-size: 1rem;
	color: var(--text-secondary);
	margin-top: 8px;
}

.result-extra {
	font-size: 1.5rem;
	margin-top: 18px;
	padding: 18px;
	border-radius: 18px;
	background: var(--bg-secondary);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.06);
	display: grid;
	gap: 16px;
}

.factors-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.factor-item {
	background: var(--bg-secondary);
	padding: 14px;
	border-radius: 12px;
	transition: all 0.3s ease;
}

.factor-item:hover {
	background: rgba(255, 255, 255, 0.05);
	transform: translateX(4px);
}

.factor-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.factor-note {
	display: block;
	font-size: 0.85em;
	color: var(--text-secondary);
	margin-top: 4px;
	line-height: 1.3;
	text-align: right;
}


.factor-name {
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.factor-value {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-primary);
}

.factor-value.positive {
	color: var(--success);
}

.factor-value.negative {
	color: var(--danger);
}

.factor-value.neutral {
	color: var(--text-primary);
}

.divider {
	border: none;
	border-top: 1px solid var(--border);
	margin: 20px 0;
}

.summary {
	padding: 16px;
	/*background: rgba(255, 255, 255, 0.03);*/
	background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
	border-radius: 12px;
	font-size: 1.1rem;
	color: var(--text-secondary);
	line-height: 1.5;
	text-align: center;
}

.subfooter {
	text-align: center;
	margin-top: 30px;
	color: var(--text-muted);
	font-size: 0.9rem;
	animation: fadeIn 1s ease;
}

.footer {
	text-align: center;
	margin-top: 20px;
	color: var(--text-muted);
	font-size: 1rem;
	animation: fadeIn 1s ease;
}

.footer a {
	text-decoration: none;
	color: var(--text-muted);
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes scaleIn {
	from {
		transform: scale(0.8);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

@media (max-width: 1024px) {
	.grid {
		grid-template-columns: 1fr;
	}

	header {
		margin-bottom: 20px;
	}

	header h1 {
		font-size: 3.0rem;
	}

	.factors-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {

	header h1 {
		font-size: 2.8rem;
		line-height: 1;
	}

	.header-top {
		margin-bottom: 10px;
	}

	.card {
		padding: 20px;
	}

	.result-range {
		font-size: 3.5rem;
	}
}

.blink {
	animation: blinkHighlight 0.5s ease-in-out 5;
	/* моргает 3 раза */
}

.advanced-toggle {
	margin: 20px 0;
	text-align: center;
}

.toggle-advanced-btn {
	width: 100%;
	padding: 14px 20px;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--text-primary);
	font-size: 1rem;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	position: relative;
	overflow: hidden;
}

.toggle-advanced-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
	transition: left 0.5s ease;
}

.toggle-advanced-btn:hover::before {
	left: 100%;
}

.toggle-advanced-btn:hover {
	background: rgba(0, 217, 255, 0.05);
	border-color: var(--accent-primary);
	box-shadow: 0 4px 12px rgba(0, 217, 255, 0.2);
}

.toggle-advanced-btn.active {
	background: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
	border-color: var(--accent-primary);
}

.toggle-icon {
	font-size: 0.8rem;
	transition: transform 0.3s ease;
	display: inline-block;
}

.toggle-advanced-btn.active .toggle-icon {
	transform: rotate(180deg);
}

.advanced-settings {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.5s ease, opacity 0.4s ease;
}

.advanced-settings.expanded {
	max-height: 2000px;
	opacity: 1;
}

.faq-text {
	font-size: 1.0rem;
	line-height: 1.6;
	margin-top: 10px;
	pointer-events: none;
}

li {
	font-size: 1.0rem;
	line-height: 1.5;
	padding-left: 10px;
	margin-left: 30px;
}


.input-field {
	width: 100%;
	padding: 14px 16px;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--text-primary);
	font-size: 1rem;
	font-family: inherit;
	transition: all 0.3s ease;
	outline: none;
}

.input-field::placeholder {
	color: var(--text-muted);
	opacity: 0.7;
}

.input-field:hover {
	border-color: var(--accent-primary);
	background: rgba(255, 255, 255, 0.03);
}

.input-field:focus {
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
	background: rgba(255, 255, 255, 0.05);
}

.input-field:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/**/
/* ────── Красивый треугольник справа у <details> в стиле твоего select ────── */
details.factor-item {
	position: relative;
	background: var(--bg-secondary);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
}

details.factor-item:hover {
	background: rgba(255, 255, 255, 0.05);
	transform: translateX(4px);
}

/* Сам <summary> — убираем стандартный треугольник */
details.factor-item summary {
	list-style: none;
	/* убираем стрелку в Chrome/Edge */
	cursor: pointer;
	/*padding: 16px 50px 16px 16px;      */
	/* место справа под нашу стрелку */
	padding-right: 40px;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--text-primary);
	position: relative;
	user-select: none;
}

/* Убираем стрелку в Firefox */
details.factor-item summary::-webkit-details-marker {
	display: none;
}

details.factor-item summary::marker {
	display: none;
}

/* Наша кастомная стрелка справа */
details.factor-item summary::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%) rotate(0deg);
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	transition: transform 0.3s ease, background-image 0.3s ease;
}

/* При открытом details — поворачиваем стрелку вверх */
details.factor-item[open] summary::after {
	transform: translateY(-50%) rotate(180deg);
}

/* Ховер и фокус — стрелка становится яркой как в select */
details.factor-item summary:hover::after,
details.factor-item summary:focus::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%2300d9ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* При открытом — яркая белая стрелка (как в активном состоянии) */
details.factor-item[open] summary::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Модальное окно */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
	z-index: 1000;
	animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-content {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 32px;
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	animation: scaleIn 0.3s ease;
	position: relative;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.modal-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--text-primary);
}

.modal-close {
	background: transparent;
	border: none;
	color: var(--text-secondary);
	font-size: 1.8rem;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.modal-close:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--text-primary);
}

.modal-body {
	margin-bottom: 24px;
}

.modal-text {
	color: var(--text-secondary);
	margin-bottom: 20px;
	line-height: 1.6;
}

.modal-params {
	background: var(--bg-secondary);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 20px;
}

.modal-param-item {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.modal-param-label {
	font-weight: 500;
}

.modal-param-value {
	color: var(--text-primary);
	font-weight: 600;
}

.modal-input-group {
	margin-bottom: 20px;
}

.modal-input-group label {
	display: block;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--text-secondary);
	margin-bottom: 8px;
}

.modal-input {
	width: 100%;
	padding: 14px 16px;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--text-primary);
	font-size: 1rem;
	font-family: inherit;
	transition: all 0.3s ease;
}

.modal-input:focus {
	outline: none;
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.modal-input::placeholder {
	color: var(--text-muted);
}

.modal-footer {
	display: flex;
	gap: 12px;
}

.modal-btn {
	flex: 1;
	padding: 14px 24px;
	border: none;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s ease;
}

.modal-btn-primary {
	background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
	color: var(--text-primary);
	box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

.modal-btn-primary:hover {
	box-shadow: 0 6px 16px rgba(0, 217, 255, 0.4);
	transform: translateY(-2px);
}

.modal-btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.modal-btn-secondary {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	color: var(--text-secondary);
}

.modal-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.05);
	color: var(--text-primary);
}

.feedback-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent-primary);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	margin-top: 12px;
	padding: 8px 12px;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.feedback-link:hover {
	background: rgba(0, 217, 255, 0.1);
	transform: translateX(4px);
}

.feedback-link-icon {
	font-size: 1.2rem;
}

.modal-success {
	text-align: center;
	padding: 20px;
}

.modal-success-icon {
	font-size: 4rem;
	margin-bottom: 16px;
}

.modal-success-title {
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--success);
	margin-bottom: 12px;
}

.modal-success-text {
	color: var(--text-secondary);
	line-height: 1.6;
}

@media (max-width: 640px) {
	.modal-content {
		padding: 24px;
		width: 95%;
	}

	.modal-title {
		font-size: 1.3rem;
	}

	.modal-footer {
		flex-direction: column;
	}
}

/* Модальные окна для юридических страниц */
.legal-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
	z-index: 2000;
	animation: fadeIn 0.3s ease;
	overflow-y: auto;
	padding: 20px;
}

.legal-modal-overlay.active {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.legal-modal-content {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 40px;
	max-width: 900px;
	width: 100%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	animation: scaleIn 0.3s ease;
	position: relative;
	margin: 40px auto;
	min-height: 400px;
}

.legal-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 32px;
	padding-bottom: 20px;
	border-bottom: 2px solid var(--border);
}

.legal-modal-title {
	font-size: 2rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin: 0;
	flex: 1;
}



.legal-modal-body {
	color: var(--text-secondary);
	line-height: 1.5;
	font-size: 1rem;
}

.legal-modal-body h2 {
	color: var(--text-primary);
	font-size: 1.5rem;
	font-weight: 600;
	margin-top: 32px;
	margin-bottom: 16px;
	padding-top: 16px;
}

.legal-modal-body h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.legal-modal-body h3 {
	color: var(--text-primary);
	font-size: 1.2rem;
	font-weight: 600;
	margin-top: 24px;
	margin-bottom: 12px;
}

.legal-modal-body p {
	margin-bottom: 16px;
	color: var(--text-secondary);
}

.legal-modal-body ul,
.legal-modal-body ol {
	margin: 16px 0;
	padding-left: 10px;
}

.legal-modal-body li {
	margin-bottom: 12px;
	color: var(--text-secondary);
	line-height: 1.3;
}

.legal-modal-body strong {
	color: var(--text-primary);
	font-weight: 600;
}

.legal-modal-body a {
	color: var(--accent-primary);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: all 0.3s ease;
}

.legal-modal-body a:hover {
	border-bottom-color: var(--accent-primary);
}

.legal-modal-body .highlight {
	background: rgba(0, 217, 255, 0.1);
	padding: 20px;
	border-radius: 12px;
	border-left: 4px solid var(--accent-primary);
	margin: 20px 0;
}

.legal-modal-body .last-updated {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-top: 32px;
	padding-top: 20px;

}



/* Адаптивность */
@media (max-width: 768px) {
	.legal-modal-content {
		padding: 24px;
		margin: 20px auto;
		border-radius: 16px;
	}

	.legal-modal-title {
		font-size: 1.5rem;
	}

	.legal-modal-body {
		font-size: 0.95rem;
	}

	.legal-modal-body h2 {
		font-size: 1.3rem;
	}

	.legal-modal-body h3 {
		font-size: 1.1rem;
	}

	.legal-links {
		flex-direction: column;
		gap: 10px;
	}
}

@media (max-width: 480px) {
	.legal-modal-overlay {
		padding: 10px;
	}

	.legal-modal-content {
		padding: 20px;
		margin: 10px auto;
	}

	.legal-modal-title {
		font-size: 1.3rem;
	}

	.legal-modal-close {
		width: 32px;
		height: 32px;
		font-size: 1.5rem;
	}
}