:root {
	--primary-color: #6366f1;
	--primary-hover: #4f46e5;
	--secondary-color: #8b5cf6;
	--danger-color: #ef4444;
	--success-color: #10b981;
	--warning-color: #f59e0b;
	--text-primary: #1f2937;
	--text-secondary: #6b7280;
	--text-muted: #9ca3af;
	--bg-primary: #ffffff;
	--bg-secondary: #f9fafb;
	--bg-tertiary: #f3f4f6;
	--border-color: #e5e7eb;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--radius-sm: 0.375rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-xl: 1rem;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	background-attachment: fixed;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--text-primary);
	line-height: 1.6;
	min-height: 100vh;
}

.container {
	position: relative;
	z-index: 1;
}

/* Card Styles */
.main-card {
	background: var(--bg-primary);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-xl);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	overflow: hidden;
}

.card-body {
	padding: 3rem;
}

/* Typography */
.form-main-title {
	font-weight: 800;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-transform: uppercase;
	font-size: 2rem;
	text-align: center;
	margin:2.5rem 1.5rem;
	letter-spacing: -0.02em;
}

.section-title {
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--text-primary);
	margin-top: 2rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.section-title::before {
	content: '';
	width: 4px;
	height: 1.5rem;
	background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
	border-radius: 2px;
}

.section-subtitle {
	font-weight: 600;
	font-size: 1.125rem;
	color: var(--text-secondary);
	margin-bottom: 1rem;
	margin-top: 1.5rem;
}

.profile-label {
	font-weight: 600;
	color: var(--text-primary);
	font-size: 0.95rem;
}

.profile-desc {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-top: 0.25rem;
}

/* Auth Section */
.auth-section {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	margin-bottom: 2rem;
	border: 1px solid rgba(99, 102, 241, 0.1);
}

.auth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: var(--radius-md);
	font-weight: 500;
	transition: all 0.3s ease;
	gap: 0.5rem;
	border: 2px solid var(--border-color);
	background: var(--bg-primary);
}

.auth-btn:hover {
	box-shadow: var(--shadow-md);
	border-color: var(--primary-color);
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
	color: var(--primary-color);
}

/* Instructions Section */
.instructions-section {
	background: rgba(16, 185, 129, 0.05);
	border-left: 4px solid var(--success-color);
	padding: 1.5rem;
	border-radius: var(--radius-md);
	margin-bottom: 2rem;
}

.instructions-section.mb-0 {
	background: #F8F7FE;
	border-left: 0px solid var(--success-color);
	padding: 1.5rem;
	border-radius: var(--radius-md);
	margin-bottom: 2rem;
	text-align: center;
	width: 100%;
}

.locale-switch {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1rem;
}

.locale-switch a {
	color: var(--primary-color);
	font-weight: 700;
	text-decoration: none;
}

.locale-switch a:hover {
	color: var(--primary-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.instructions-list {
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.instructions-list li {
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.instructions-list ol {
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

/* Основной стиль для подсказки */
.instructions-tip {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left; /* Добавляем центрирование */
    justify-content: center; /* Центрируем flex-элементы */
}

/* Псевдоэлемент с иконкой */
.instructions-tip::before {
    content: '💡'; /* Или оставьте пустым '' */
    font-size: 1.25rem;
}

/* Для mb-0 и mb-1 - только меняем отступы, остальное наследуем */
.instructions-tip.mb-0 {
    margin-bottom: 1.5rem !important; /* Для .mb-0 */
}

.instructions-tip.mb-1 {
    margin-bottom: 0.5rem !important; /* Для .mb-1 */
}

/* Если хотите убрать иконку только для этих классов */
.instructions-tip.mb-0::before,
.instructions-tip.mb-1::before {
    content: ''; /* Убираем иконку */
    font-size: 1.25rem;
}

.hero-cta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 1rem;
	margin-top: 1.25rem;
}

.hero-cta-item {
	flex: 1 1 320px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.hero-primary-cta {
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hero-secondary-cta,
.inline-video-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-radius: var(--radius-md);
	border: 1px solid rgba(99, 102, 241, 0.15);
	background: var(--bg-primary);
	box-shadow: var(--shadow-sm);
	color: var(--text-primary);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.hero-primary-cta,
.hero-secondary-cta {
	width: 100%;
	min-width: 0;
	min-height: 64px;
}

.inline-video-cta {
	margin-top: 1rem;
}

.hero-secondary-cta:hover,
.inline-video-cta:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
	border-color: rgba(99, 102, 241, 0.3);
	color: var(--primary-color);
}

.video-cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: rgba(99, 102, 241, 0.12);
	color: var(--primary-color);
	flex-shrink: 0;
}

.video-cta-text {
	line-height: 1.35;
	text-align: left;
}

.hero-cta-note {
	font-size: 0.8rem;
	color: var(--text-secondary);
	line-height: 1.4;
	text-align: center;
	min-height: 2.25rem;
}

/* Form Controls */
.form-control {
	border: 2px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 0.75rem 1rem;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	background: var(--bg-primary);
	box-shadow: none;
}

.form-control:hover:not(:focus) {
	background: rgba(99, 102, 241, 0.02);
	box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
	outline: none;
	background: var(--bg-primary);
}

.form-control::placeholder {
	color: var(--text-muted);
	font-size: 0.9rem;
}

/* Input Group */
.input-group {
	display: flex;
	gap: 0.5rem;
}

.input-group .form-control {
	flex: 1;
}

/* Metric Rows */
.metric-row {
	margin-bottom: 1.25rem;
	padding: 1rem;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	transition: all 0.3s ease;
	border-left: 3px solid transparent;
	position: relative;
}

.metric-row:hover {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
	box-shadow: var(--shadow-sm);
	border-left-color: var(--primary-color);
}

/* Buttons */
.btn {
	padding: 0.625rem 1.25rem;
	border-radius: var(--radius-md);
	font-weight: 500;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.btn-primary {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
	color: white;
	box-shadow: var(--shadow-md);
}

.btn-primary:hover {
	box-shadow: var(--shadow-xl);
	filter: brightness(1.15) saturate(1.1);
	background: linear-gradient(135deg, var(--primary-hover) 0%, #7c3aed 100%);
}

.btn-outline-primary {
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	background: transparent;
	font-size: 0.875rem;
	padding: 0.5rem 1rem;
}

.btn-outline-primary:hover {
	background: var(--primary-color);
	color: white;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-outline-secondary {
	border: 2px solid var(--border-color);
	color: var(--text-secondary);
	background: var(--bg-primary);
	padding: 0.75rem 1rem;
	font-size: 1.25rem;
	transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
	border-color: var(--primary-color);
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
	color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.device-icon-btn {
	min-width: 3rem;
}

.submit-btn {
	min-width: 280px;
	padding: 1rem 2rem;
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.025em;
}

.final-step-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 1rem;
}

.final-step-actions .submit-btn {
	margin: 0;
}

.support-cta-card {
	flex: 1 1 320px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1rem;
	border-radius: var(--radius-md);
	border: 1px solid rgba(99, 102, 241, 0.16);
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
	box-shadow: var(--shadow-sm);
	color: var(--text-primary);
	text-decoration: none;
	transition: all 0.3s ease;
}

.support-cta-card:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
	border-color: rgba(99, 102, 241, 0.32);
}

.support-cta-copy {
	font-size: 0.95rem;
	color: var(--text-secondary);
}

.support-cta-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	border-radius: calc(var(--radius-md) - 2px);
	background: var(--bg-primary);
	border: 1px solid rgba(99, 102, 241, 0.12);
	color: var(--primary-color);
	font-weight: 700;
	white-space: nowrap;
}

.support-cta-heart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #db2777;
}

/* Device Badge Links */
.devices-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px dashed var(--border-color);
}

.devices-badges .btn-link {
	color: var(--primary-color);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 0.375rem;
	transition: all 0.3s ease;
}

.devices-badges .btn-link:hover {
	color: var(--primary-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.device-dot {
	font-size: 0.75rem;
}

/* Section Dividers */
.border-top {
	border-top: 2px solid var(--border-color) !important;
	margin-top: 2rem;
	padding-top: 2rem;
}

/* Alias Section */
.alias-label {
	font-weight: 600;
	margin-top: 1rem;
	margin-bottom: 0.5rem;
	display: block;
	color: var(--text-primary);
}

.alias-hint {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-bottom: 1rem;
	margin-top: 0.5rem;
}

/* Alert Messages */
.alert {
	border-radius: var(--radius-md);
	padding: 1.25rem;
	margin-top: 1.5rem;
	border: none;
}

.alert-info {
	background: rgba(59, 130, 246, 0.1);
	color: #1e40af;
	border-left: 4px solid #3b82f6;
}

/* Disclaimer */
.disclaimer-text {
	font-size: 0.875rem;
	color: var(--text-secondary);
	line-height: 1.7;
	padding: 1rem;
	background: var(--bg-tertiary);
	border-radius: var(--radius-md);
	border-left: 3px solid var(--warning-color);
}

/* Responsive Design */
@media (max-width: 768px) {
	body {
		background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	}

	.container {
		padding: 1rem;
	}

	.card-body {
		padding: 1.5rem 1rem;
	}

	.form-main-title {
		font-size: 1.5rem;
		margin-bottom: 1.5rem;
	}

	.section-title {
		font-size: 1.25rem;
		margin-top: 1.5rem;
	}

	.section-title::before {
		height: 1.25rem;
	}

	.auth-section {
		padding: 1.25rem;
		margin-bottom: 1.5rem;
	}

	.instructions-section {
		padding: 1.25rem;
		margin-bottom: 1.5rem;
	}

	.metric-row {
		padding: 0.875rem;
		margin-bottom: 1rem;
	}

	.metric-row .row {
		flex-direction: column;
	}

	.metric-row .col-md-6 {
		margin-bottom: 0.75rem;
	}

	.metric-row .col-md-6:last-child {
		margin-bottom: 0;
	}

	.profile-label {
		margin-bottom: 0.5rem;
	}

	.auth-btn {
		margin-bottom: 0.75rem;
		padding: 0.875rem;
	}

	.auth-btn span {
		font-size: 0.875rem;
	}

	.btn-outline-primary {
		font-size: 0.8125rem;
		padding: 0.5rem 0.875rem;
	}

	.submit-btn {
		min-width: 100%;
		width: 100%;
		padding: 1rem;
		font-size: 1rem;
	}

	.hero-cta-row,
	.final-step-actions {
		flex-direction: column;
	}

	.locale-switch {
		justify-content: center;
	}

	.hero-secondary-cta,
	.hero-primary-cta,
	.inline-video-cta,
	.support-cta-card {
		width: 100%;
		min-width: 0;
	}

	.support-cta-card {
		padding: 1rem;
	}

	.devices-badges {
		flex-direction: column;
		gap: 0.5rem;
	}

	.input-group {
		flex-direction: column;
		gap: 0.5rem;
	}

	.device-icon-btn {
		width: 100%;
		min-width: auto;
		border-radius: var(--radius-md);
	}

	.form-control {
		padding: 0.875rem;
		font-size: 1rem;
	}

	.border-top {
		margin-top: 1.5rem;
		padding-top: 1.5rem;
	}
}

@media (max-width: 480px) {
	.card-body {
		padding: 1rem 0.75rem;
	}

	.form-main-title {
		font-size: 1.25rem;
	}

	.section-title {
		font-size: 1.125rem;
	}

	.auth-section,
	.instructions-section {
		padding: 1rem;
	}

	.metric-row {
		padding: 0.75rem;
	}

	.support-cta-card,
	.support-cta-pill,
	.hero-cta-note,
	.hero-secondary-cta,
	.inline-video-cta {
		font-size: 0.9rem;
	}
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.main-card {
	animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.d-none {
	display: none !important;
}

.fw-semibold {
	font-weight: 600;
}

.fw-bold {
	font-weight: 700;
}

.text-center {
	text-align: center;
}


/* Строка прогресса */
.form-progress {
    margin-bottom: 1.5rem;
}

.form-progress .progress {
    background-color: #f0f0f0;
    border-radius: 3px;
}

.form-progress .progress-bar {
    border-radius: 3px;
    transition: width 0.3s ease;
}

.form-progress-percent {
    font-weight: 600;
}

/* Стили для подсказок о заполнении формы */
.form-field-hint {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.form-field-required::after {
    content: " *";
    color: #dc3545;
}
