:root {
	--bg-primary: #121212;
	--bg-secondary: #1a1a1a;
	--accent-blue: #2962ff;
	--accent-orange: #ff6d00;
	--text-light: #e0e0e0;
	--text-muted: #b0b0b0;
	--border-color: rgba(224, 224, 224, 0.1);
	--shadow-light: rgba(0, 0, 0, 0.3);
	--shadow-heavy: rgba(0, 0, 0, 0.6);
	--gradient-overlay: linear-gradient(
		135deg,
		rgba(18, 18, 18, 0.95),
		rgba(41, 98, 255, 0.1)
	);
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: var(--bg-primary);
	color: var(--text-light);
	line-height: 1.6;
	overflow-x: hidden;
}

html {
	scroll-behavior: smooth;
}

/* Typography */
h1 {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

h2 {
	font-size: 2.5rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: var(--text-light);
}

h3 {
	font-size: 1.8rem;
	font-weight: 500;
	margin-bottom: 1rem;
	color: var(--text-light);
}

p {
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
	color: var(--text-muted);
	line-height: 1.7;
}

a {
	text-decoration: none;
	color: var(--accent-blue);
	transition: all 0.3s ease;
}

a:hover {
	color: var(--accent-orange);
	text-shadow: 0 0 8px rgba(255, 109, 0, 0.5);
}

/* Container and Layout */
.cm-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.cm-section {
	padding: 80px 0;
	position: relative;
}

.cm-grid {
	display: grid;
	gap: 2rem;
	align-items: center;
}

.cm-grid-2 {
	grid-template-columns: 1fr 1fr;
}

.cm-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.cm-grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* Header Styles */
.cm-header {
	background: rgba(18, 18, 18, 0.95);
	backdrop-filter: blur(20px);
	padding: 20px 0;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	border-bottom: 1px solid var(--border-color);
	box-shadow: 0 4px 20px var(--shadow-light);
}

.cm-header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.cm-logo {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--text-light);
	text-decoration: none;
	transition: all 0.3s ease;
}

.cm-logo:hover {
	color: var(--accent-blue);
	text-shadow: 0 0 10px rgba(41, 98, 255, 0.5);
}

.cm-nav {
	display: flex;
	gap: 2rem;
}

.cm-nav-link {
	color: var(--text-light);
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 25px;
	transition: all 0.3s ease;
	font-weight: 500;
	position: relative;
	overflow: hidden;
}

.cm-nav-link:before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(41, 98, 255, 0.2),
		transparent
	);
	transition: left 0.5s ease;
}

.cm-nav-link:hover:before {
	left: 100%;
}

.cm-nav-link:hover {
	background: rgba(41, 98, 255, 0.1);
	color: var(--accent-blue);
	transform: translateY(-3px);
	box-shadow: 0 0 20px rgba(41, 98, 255, 0.3);
}

.cm-mobile-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--border-color);
	color: var(--text-light);
	padding: 10px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 1.2rem;
}

.cm-mobile-toggle:hover {
	background: rgba(41, 98, 255, 0.1);
	border-color: var(--accent-blue);
	color: var(--accent-blue);
}

.cm-nav-mobile-open {
	display: flex !important;
	flex-direction: column;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: rgba(18, 18, 18, 0.98);
	backdrop-filter: blur(20px);
	border: 1px solid var(--border-color);
	border-top: none;
	padding: 1rem;
	gap: 0.5rem;
	z-index: 1000;
}

.cm-nav-mobile-open .cm-nav-link {
	display: block;
	padding: 1rem;
	text-align: center;
	border-radius: 8px;
	background: rgba(41, 98, 255, 0.05);
	border: 1px solid rgba(41, 98, 255, 0.1);
}

/* Button Styles */
.cm-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 25px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	position: relative;
	overflow: hidden;
}

.cm-btn:before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.1),
		transparent
	);
	transition: left 0.5s ease;
}

.cm-btn:hover:before {
	left: 100%;
}

.cm-btn-primary {
	background: var(--accent-blue);
	color: white;
	box-shadow: 0 4px 15px rgba(41, 98, 255, 0.3);
}

.cm-btn-primary:hover {
	background: #1e54c7;
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(41, 98, 255, 0.5);
}

.cm-btn-outline {
	background: transparent;
	color: var(--accent-orange);
	border: 2px solid var(--accent-orange);
	box-shadow: 0 4px 15px rgba(255, 109, 0, 0.2);
}

.cm-btn-outline:hover {
	background: var(--accent-orange);
	color: white;
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(255, 109, 0, 0.4);
}

/* Hero Section */
.cm-hero {
	min-height: 100vh;
	background: linear-gradient(
			to top,
			rgba(18, 18, 18, 0.9),
			rgba(41, 98, 255, 0.5)
		),
		url('assets/cm-hero.webp') center/cover;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.cm-hero:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(
			circle at 30% 70%,
			rgba(41, 98, 255, 0.1) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 70% 30%,
			rgba(255, 109, 0, 0.1) 0%,
			transparent 50%
		);
	animation: cm-glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes cm-glow-pulse {
	0% {
		opacity: 0.3;
	}
	100% {
		opacity: 0.6;
	}
}

.cm-hero-content {
	text-align: left;
	z-index: 2;
	position: relative;
}

.cm-hero-image {
	text-align: center;
	z-index: 2;
	position: relative;
}

.cm-hero-image img {
	max-width: 100%;
	height: auto;
	filter: drop-shadow(0 10px 30px rgba(41, 98, 255, 0.3));
	animation: cm-float 3s ease-in-out infinite;
}

@keyframes cm-float {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-10px);
	}
}

.cm-hero-buttons {
	display: flex;
	gap: 1.5rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.cm-hero-features {
	list-style: none;
	padding: 0;
	margin: 2rem 0;
}

.cm-hero-features li {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
	padding: 1rem;
	background: rgba(41, 98, 255, 0.1);
	border-radius: 10px;
	backdrop-filter: blur(8px);
	border: 1px solid rgba(41, 98, 255, 0.2);
	transition: all 0.3s ease;
}

.cm-hero-features li:hover {
	transform: translateX(10px);
	box-shadow: 0 4px 15px rgba(41, 98, 255, 0.3);
}

.cm-hero-features i {
	font-size: 1.5rem;
	color: var(--accent-blue);
}

/* Glassmorphism Cards */
.cm-card {
	background: rgba(26, 26, 26, 0.7);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 2rem;
	box-shadow: 0 8px 32px var(--shadow-light);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	height: 100%;
}

.cm-card:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
	transform: translateX(-100%);
	transition: transform 0.5s ease;
}

.cm-card:hover:before {
	transform: translateX(0);
}

.cm-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 40px var(--shadow-heavy);
	border-color: rgba(41, 98, 255, 0.3);
}

/* Section Styles */
.cm-why-code {
	background: var(--bg-secondary);
	position: relative;
}

.cm-benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	height: 100%;
}

.cm-benefit-item {
	text-align: center;
	padding: 2rem;
	background: rgba(41, 98, 255, 0.05);
	border-radius: 15px;
	border: 1px solid rgba(41, 98, 255, 0.1);
	transition: all 0.3s ease;
}

.cm-benefit-item:hover {
	background: rgba(41, 98, 255, 0.1);
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(41, 98, 255, 0.2);
}

.cm-benefit-item i {
	font-size: 3rem;
	color: var(--accent-blue);
	margin-bottom: 1rem;
}

/* Languages Section */
.cm-langs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.cm-lang-card {
	background: rgba(26, 26, 26, 0.8);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-color);
	border-radius: 15px;
	padding: 2rem;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.cm-lang-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(41, 98, 255, 0.2);
	border-color: var(--accent-blue);
}

.cm-lang-card h3 {
	color: var(--accent-blue);
	margin-bottom: 1rem;
}

.cm-code-wrap {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.cm-code-example {
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1rem;
	margin-top: auto;
	font-family: 'Courier New', monospace;
	font-size: 0.8rem;
	color: #00ff00;
	overflow-x: auto;
}

/* Accordion Styles */
.cm-accordion {
	margin-top: 2rem;
}

.cm-accordion-item {
	background: rgba(26, 26, 26, 0.8);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	margin-bottom: 1rem;
	overflow: hidden;
	transition: all 0.3s ease;
}

.cm-accordion-header {
	padding: 1.5rem;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.3s ease;
	user-select: none;
}

.cm-accordion-header:hover {
	background: rgba(41, 98, 255, 0.1);
}

.cm-accordion-header h3 {
	margin: 0;
	color: var(--text-light);
}

.cm-accordion-icon {
	font-size: 1.2rem;
	color: var(--accent-blue);
	transition: transform 0.3s ease;
}

.cm-accordion-item.active .cm-accordion-icon {
	transform: rotate(180deg);
}

.cm-accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.cm-accordion-item.active .cm-accordion-content {
	max-height: 1000px;
}

.cm-accordion-body {
	padding: 0 1.5rem 1.5rem;
	color: var(--text-muted);
	line-height: 1.6;
}

/* Carousel Styles */
.cm-carousel {
	position: relative;
	overflow: hidden;
	border-radius: 15px;
	margin-top: 2rem;
}

.cm-carousel-track {
	display: flex;
	transition: transform 0.5s ease;
}

.cm-carousel-slide {
	min-width: 100%;
	background: rgba(26, 26, 26, 0.9);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-color);
	border-radius: 15px;
	padding: 2rem;
	/* margin-right: 2rem; */
	text-align: center;
}

.cm-carousel-slide img {
	width: 100%;

	height: 300px;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 1rem;
}

.cm-carousel-controls {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.cm-carousel-btn {
	background: rgba(41, 98, 255, 0.2);
	border: 1px solid var(--accent-blue);
	color: var(--accent-blue);
	padding: 0.8rem;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 1.2rem;
}

.cm-carousel-btn:hover {
	background: var(--accent-blue);
	color: white;
	transform: scale(1.1);
}

/* Form Styles */
.cm-form {
	background: rgba(26, 26, 26, 0.8);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-color);
	border-radius: 15px;
	padding: 2rem;
}

.cm-form-group {
	margin-bottom: 1.5rem;
}

.cm-form-label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--text-light);
	font-weight: 500;
}

.cm-form-input,
.cm-form-textarea {
	width: 100%;
	padding: 12px 16px;
	background: rgba(224, 224, 224, 0.05);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	color: var(--text-light);
	font-size: 1rem;
	transition: all 0.3s ease;
}

.cm-form-input:focus,
.cm-form-textarea:focus {
	outline: none;
	border-color: var(--accent-blue);
	box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.1);
	background: rgba(224, 224, 224, 0.08);
}

.cm-form-input::placeholder,
.cm-form-textarea::placeholder {
	color: var(--text-muted);
}

.cm-form-textarea {
	min-height: 120px;
	resize: vertical;
}

.cm-form-error {
	color: var(--accent-orange);
	font-size: 0.9rem;
	margin-top: 0.5rem;
	display: none;
}

.cm-form-error.active {
	display: block;
}

.cm-form-submit {
	width: 100%;
	margin-top: 1rem;
}

.cm-form-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none !important;
}

/* Map Container */
.cm-map-container {
	background: rgba(26, 26, 26, 0.8);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-color);
	border-radius: 15px;
	overflow: hidden;
	height: 100%;
}

/* Map Section */
.cm-map {
	height: 100%;

	border-radius: 1rem;
	overflow: hidden;
	filter: grayscale(1) invert(1);
}

@media (max-width: 768px) {
	.cm-map {
		height: 400px;
		min-width: auto;
	}
}

.iti {
	width: 100% !important;
}
.iti input[type='tel'] {
	width: 100% !important;
}

.cm-contact-map {
	position: relative;
	height: 100%;

	/* flex: 1; */

	/* margin-top: 2rem; */
	/* border-radius: 10px; */
	/* overflow: hidden; */
}

.cm-map-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;

	height: 100%;
	border-radius: 1rem;

	background-color: rgba(0, 0, 0, 0.1);
	z-index: 1;
	cursor: pointer;
}

/* Стили для ошибок */

.cm-error-message {
	display: block;
	color: #ff4444;
	font-size: 0.85rem;
	margin-top: 0.5rem;
}

/* Footer Styles */
.cm-footer {
	background: var(--bg-secondary);
	padding: 60px 0 20px;
	border-top: 1px solid var(--border-color);
}

.cm-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 3rem;
	margin-bottom: 3rem;
}

.cm-footer-section h3 {
	color: var(--accent-blue);
	margin-bottom: 1.5rem;
	font-size: 1.4rem;
}

.cm-footer-links {
	list-style: none;
}

.cm-footer-links li {
	margin-bottom: 0.8rem;
}

.cm-footer-links a {
	color: var(--text-muted);
	transition: all 0.3s ease;
	padding: 0.2rem 0;
	display: inline-block;
}

.cm-footer-links a:hover {
	color: var(--accent-blue);
	padding-left: 0.5rem;
}

.cm-footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid var(--border-color);
	color: var(--text-muted);
	font-size: 0.9rem;
}

/* Cookie Banner */
.cm-cookie-banner {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 1.5rem;
	max-width: 400px;
	z-index: 9999;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	transform: translateX(450px);
	transition: transform 0.3s ease;
}

.cm-cookie-banner.active {
	transform: translateX(0);
}

.cm-cookie-banner h3 {
	font-size: 1.1rem;
	margin-bottom: 0.8rem;
	color: var(--text-light);
}

.cm-cookie-banner p {
	font-size: 0.9rem;
	margin-bottom: 1rem;
	color: var(--text-muted);
}

.cm-cookie-banner a {
	color: var(--accent-blue);
}

.cm-cookie-buttons {
	display: flex;
	gap: 0.8rem;
}

.cm-cookie-btn {
	padding: 8px 16px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	background: var(--accent-blue);
	color: white;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.3s ease;
}

.cm-cookie-btn:hover {
	background: #1e54c7;
	transform: translateY(-2px);
}

/* Language Pages Specific Styles */
.cm-language-overview {
	background: linear-gradient(
		135deg,
		rgba(41, 98, 255, 0.05),
		rgba(255, 109, 0, 0.05)
	);
	padding: 60px 0;
	border-radius: 15px;
	margin: 2rem 0;
}

.cm-language-card {
	background: rgba(26, 26, 26, 0.9);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-color);
	border-radius: 15px;
	padding: 2.5rem;
	margin-bottom: 2rem;
	transition: all 0.3s ease;
}

.cm-language-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(41, 98, 255, 0.2);
	border-color: var(--accent-blue);
}

.cm-language-card h2 {
	color: var(--accent-blue);
	border-bottom: 2px solid var(--accent-blue);
	padding-bottom: 0.5rem;
	margin-bottom: 1.5rem;
}

.cm-language-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.cm-feature-tag {
	background: rgba(41, 98, 255, 0.1);
	border: 1px solid rgba(41, 98, 255, 0.3);
	border-radius: 20px;
	padding: 0.5rem 1rem;
	text-align: center;
	font-size: 0.9rem;
	color: var(--accent-blue);
	font-weight: 500;
}

/* Resources Page Styles */
.cm-resource-category {
	background: rgba(26, 26, 26, 0.8);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-color);
	border-radius: 15px;
	padding: 2.5rem;
	margin-bottom: 2rem;
	position: relative;
}

.cm-resource-category h2 {
	color: var(--accent-orange);
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.cm-resource-category h2 i {
	font-size: 1.5rem;
}

.cm-resource-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin: 1.5rem 0;
}

.cm-resource-item {
	background: rgba(41, 98, 255, 0.05);
	border: 1px solid rgba(41, 98, 255, 0.2);
	border-radius: 10px;
	padding: 1.5rem;
	transition: all 0.3s ease;
}

.cm-resource-item:hover {
	background: rgba(41, 98, 255, 0.1);
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(41, 98, 255, 0.2);
}

.cm-resource-item h4 {
	color: var(--accent-blue);
	margin-bottom: 0.5rem;
}

/* Tips Page Styles */
.cm-tips-hero {
	background: linear-gradient(
		135deg,
		rgba(255, 109, 0, 0.1),
		rgba(41, 98, 255, 0.1)
	);
	padding: 60px 0;
	text-align: center;
	border-radius: 15px;
	margin: 2rem 0;
}

.cm-tip-section {
	background: rgba(26, 26, 26, 0.8);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-color);
	border-radius: 15px;
	padding: 2.5rem;
	margin-bottom: 2rem;
	position: relative;
}

.cm-tip-section h2 {
	color: var(--accent-orange);
	border-bottom: 2px solid var(--accent-orange);
	padding-bottom: 0.5rem;
	margin-bottom: 1.5rem;
}

.cm-tip-list {
	list-style: none;
	padding: 0;
}

.cm-tip-list li {
	background: rgba(255, 109, 0, 0.05);
	border: 1px solid rgba(255, 109, 0, 0.2);
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1rem;
	transition: all 0.3s ease;
}

.cm-tip-list li:hover {
	background: rgba(255, 109, 0, 0.1);
	transform: translateX(10px);
}

.cm-tip-list li:before {
	content: '💡';
	margin-right: 1rem;
	font-size: 1.2rem;
}

/* Contact Page Styles */
.cm-contact-hero {
	background: linear-gradient(
		135deg,
		rgba(41, 98, 255, 0.1),
		rgba(255, 109, 0, 0.1)
	);
	padding: 60px 0;
	text-align: center;
	border-radius: 15px;
	margin: 2rem 0;
}

.cm-contact-info {
	background: rgba(26, 26, 26, 0.8);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-color);
	border-radius: 15px;
	padding: 2rem;
	height: fit-content;
}

.cm-contact-info h3 {
	color: var(--accent-blue);
	margin-bottom: 1.5rem;
}

.cm-contact-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
	padding: 1rem;
	background: rgba(41, 98, 255, 0.05);
	border-radius: 8px;
	transition: all 0.3s ease;
}

.cm-contact-item:hover {
	background: rgba(41, 98, 255, 0.1);
	transform: translateX(5px);
}

.cm-contact-item i {
	color: var(--accent-blue);
	font-size: 1.2rem;
}

/* Legal Pages Styles */
.cm-legal-page {
	min-height: 100vh;
	padding-top: 100px;
	background: var(--bg-primary);
}

.cm-legal-header {
	background: linear-gradient(
		135deg,
		var(--bg-secondary),
		rgba(41, 98, 255, 0.1)
	);
	padding: 60px 0;
	text-align: center;
	border-bottom: 2px solid var(--accent-blue);
}

.cm-legal-content {
	max-width: 900px;
	margin: 0 auto;
	padding: 60px 20px;
}

.cm-legal-section {
	background: rgba(26, 26, 26, 0.5);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 2.5rem;
	margin-bottom: 2rem;
	position: relative;
}

.cm-legal-section h2 {
	color: var(--accent-blue);
	border-bottom: 2px solid var(--accent-blue);
	padding-bottom: 0.5rem;
	margin-bottom: 1.5rem;
}

.cm-legal-section h3 {
	color: var(--accent-orange);
	margin: 1.5rem 0 1rem;
}

.cm-legal-section ul {
	padding-left: 1.5rem;
	margin: 1rem 0;
}

.cm-legal-section li {
	margin-bottom: 0.8rem;
	color: var(--text-muted);
	position: relative;
}

.cm-legal-section li:before {
	content: '▶';
	position: absolute;
	left: -1.2rem;
	color: var(--accent-blue);
	font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
	.cm-container {
		padding: 0 15px;
	}

	.cm-mobile-toggle {
		display: block;
	}

	.cm-nav {
		display: none;
	}

	.cm-grid-2,
	.cm-grid-3,
	.cm-grid-4 {
		grid-template-columns: 1fr;
	}

	h1 {
		font-size: 2.5rem;
	}

	h2 {
		font-size: 2rem;
	}

	.cm-hero-buttons {
		flex-direction: column;
		align-items: center;
	}

	.cm-nav {
		flex-direction: column;
		gap: 0.5rem;
	}

	.cm-cookie-banner {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		max-width: none;
		border-radius: 0;
		transform: translateY(100%);
	}

	.cm-benefits-grid {
		grid-template-columns: 1fr;
	}
	.cm-cookie-banner.active {
		transform: translateY(0);
	}

	.cm-footer-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.cm-legal-section {
		padding: 1.5rem;
	}

	.cm-accordion-item.active .cm-accordion-content {
		max-height: none;
	}

	.cm-hero {
		height: 120vh;
	}

	.cm-hero-content {
		text-align: center;
	}
	.cm-accordion-header h3 {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 1.8rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	.cm-langs-grid {
		grid-template-columns: 1fr;
	}

	.cm-btn {
		padding: 10px 16px;
		font-size: 0.9rem;
	}

	.cm-card {
		padding: 1.5rem;
	}

	.cm-section {
		padding: 60px 0;
	}

	.cm-legal-content {
		padding: 40px 15px;
	}
}

/* Print Styles */
@media print {
	.cm-header,
	.cm-footer,
	.cm-cookie-banner {
		display: none !important;
	}

	body {
		background: white !important;
		color: black !important;
	}

	.cm-legal-page {
		padding-top: 0;
	}

	.cm-legal-section {
		background: none !important;
		border: 1px solid #ccc !important;
	}
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
	:root {
		--bg-primary: #000000;
		--bg-secondary: #111111;
		--text-light: #ffffff;
		--text-muted: #cccccc;
		--border-color: rgba(255, 255, 255, 0.3);
	}

	.cm-card {
		border: 2px solid var(--accent-blue);
	}

	.cm-btn {
		border: 2px solid currentColor;
	}
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Additional Utility Classes */
.cm-text-center {
	text-align: center;
}
.cm-text-left {
	text-align: left;
}
.cm-text-right {
	text-align: right;
}
.cm-mb-1 {
	margin-bottom: 0.5rem;
}
.cm-mb-2 {
	margin-bottom: 1rem;
}
.cm-mb-3 {
	margin-bottom: 1.5rem;
}
.cm-mt-1 {
	margin-top: 0.5rem;
}
.cm-mt-2 {
	margin-top: 1rem;
}
.cm-mt-3 {
	margin-top: 1.5rem;
}

/* Animation Keyframes */
@keyframes cm-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

@keyframes cm-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes cm-bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

/* Loading States */
.cm-loading {
	position: relative;
	overflow: hidden;
}

.cm-loading:after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.1),
		transparent
	);
	animation: cm-loading-shimmer 2s infinite;
}

@keyframes cm-loading-shimmer {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}

/* Success/Error States */
.cm-success {
	border-color: #4caf50 !important;
	background: rgba(76, 175, 80, 0.1) !important;
}

.cm-error {
	border-color: var(--accent-orange) !important;
	background: rgba(255, 109, 0, 0.1) !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
	background: var(--accent-blue);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #1e54c7;
}

/* Selection Styling */
::selection {
	background: var(--accent-blue);
	color: white;
}

::-moz-selection {
	background: var(--accent-blue);
	color: white;
}

.cm-contact-hero {
	background: linear-gradient(
		135deg,
		rgba(41, 98, 255, 0.1),
		rgba(255, 109, 0, 0.1)
	);
	padding: 60px 0;
	text-align: center;
	border-radius: 15px;
	margin: 2rem 0;
}

.cm-contact-hero h1 {
	font-size: 3rem;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.cm-contact-hero p {
	font-size: 1.2rem;
	color: var(--text-muted);
	max-width: 600px;
	margin: 0 auto;
}

.cm-contact-main {
	padding: 60px 0;
}

.cm-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

.cm-contact-info {
	background: rgba(26, 26, 26, 0.8);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-color);
	border-radius: 15px;
	padding: 2rem;
	height: 100%;
}

.cm-contact-info h3 {
	color: var(--accent-blue);
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
}

.cm-contact-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
	padding: 1rem;
	background: rgba(41, 98, 255, 0.05);
	border-radius: 8px;
	transition: all 0.3s ease;
}

.cm-contact-item:hover {
	background: rgba(41, 98, 255, 0.1);
	transform: translateX(5px);
}

.cm-contact-item i {
	color: var(--accent-blue);
	font-size: 1.2rem;
	min-width: 20px;
}

.cm-contact-item div h4 {
	color: var(--text-light);
	margin: 0 0 0.3rem 0;
	font-size: 1rem;
}

.cm-contact-item div p {
	color: var(--text-muted);
	margin: 0;
	font-size: 0.9rem;
}

@media (max-width: 768px) {
	.cm-contact-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	h3 {
		font-size: 1.4rem;
	}
	.cm-contact-hero h1 {
		font-size: 2.5rem;
	}

	.cm-legal-page {
		padding-top: 87px;
	}
	.cm-language-card {
		padding: 1.5rem;
	}
	.cm-language-overview p {
		padding: 1rem;
	}

	.cm-resource-list {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
	.cm-resource-category {
		padding: 2rem;
	}
}

@media (max-width: 576px) {
	.cm-contact-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	}
}

.cm-legal-hero {
	background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
	padding: 120px 0 80px;
	text-align: center;
	border-bottom: 1px solid rgba(41, 98, 255, 0.2);
}

.cm-legal-hero h1 {
	font-size: 3rem;
	font-weight: 700;
	color: #2962ff;
	margin-bottom: 1rem;
	text-shadow: 0 0 20px rgba(41, 98, 255, 0.3);
}

.cm-legal-hero p {
	font-size: 1.1rem;
	color: #b0b0b0;
	margin: 0;
}

/* Legal Content Main Container */
.cm-legal-content {
	background: #121212;
	padding: 80px 0;
	min-height: 70vh;
}

.cm-legal-content .cm-container {
	max-width: 900px;
}

/* Legal Sections */
.cm-legal-section {
	background: rgba(255, 255, 255, 0.02);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(41, 98, 255, 0.1);
	border-radius: 12px;
	padding: 2.5rem;
	margin-bottom: 2.5rem;
	transition: all 0.3s ease;
}

.cm-legal-section:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(41, 98, 255, 0.1);
	border-color: rgba(41, 98, 255, 0.2);
}

.cm-legal-section h2 {
	font-size: 1.8rem;
	font-weight: 600;
	color: #2962ff;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid rgba(41, 98, 255, 0.3);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cm-legal-section h2::before {
	content: '§';
	font-size: 1.2em;
	color: #ff6d00;
}

.cm-legal-section h3 {
	font-size: 1.3rem;
	font-weight: 600;
	color: #ff6d00;
	margin: 2rem 0 1rem;
	padding-left: 1rem;
	border-left: 3px solid #ff6d00;
}

.cm-legal-section p {
	font-size: 1rem;
	line-height: 1.7;
	color: #e0e0e0;
	margin-bottom: 1.5rem;
	text-align: justify;
}

.cm-legal-section ul {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0;
}

.cm-legal-section li {
	font-size: 1rem;
	line-height: 1.6;
	color: #e0e0e0;
	margin-bottom: 0.8rem;
	padding-left: 2rem;
	position: relative;
}

.cm-legal-section li::before {
	content: '▶';
	color: #2962ff;
	font-size: 0.8rem;
	position: absolute;
	left: 0;
	top: 0.2rem;
	transition: all 0.3s ease;
}

.cm-legal-section li:hover::before {
	color: #ff6d00;
	transform: translateX(3px);
}

.cm-legal-section strong {
	color: #2962ff;
	font-weight: 600;
}

/* Contact Info Block in Legal Pages */
.cm-contact-info {
	background: rgba(41, 98, 255, 0.05);
	border: 1px solid rgba(41, 98, 255, 0.2);
	border-radius: 8px;
	padding: 1.5rem;
	margin: 2rem 0;
}

.cm-contact-info h3 {
	color: #2962ff;
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.2rem;
	border: none;
	padding: 0;
}

.cm-contact-info h3::before {
	display: none;
}

.cm-contact-info p {
	margin-bottom: 0.5rem;
	color: #e0e0e0;
	text-align: left;
}

.cm-contact-info p:last-child {
	margin-bottom: 0;
}

/* Legal Links */
.cm-legal-section a {
	color: #2962ff;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: all 0.3s ease;
}

.cm-legal-section a:hover {
	color: #ff6d00;
	border-bottom-color: #ff6d00;
	text-shadow: 0 0 8px rgba(255, 109, 0, 0.3);
}

/* Mobile Responsive for Legal Pages */
@media (max-width: 768px) {
	.cm-legal-hero {
		padding: 100px 0 60px;
	}

	.cm-legal-hero h1 {
		font-size: 2.2rem;
	}

	.cm-legal-content {
		padding: 60px 0;
	}

	.cm-legal-section {
		padding: 1.5rem;
		margin-bottom: 2rem;
	}

	.cm-legal-section h2 {
		font-size: 1.5rem;
	}

	.cm-legal-section h3 {
		font-size: 1.2rem;
		margin: 1.5rem 0 0.8rem;
	}

	.cm-legal-section p {
		font-size: 0.95rem;
		text-align: left;
	}

	.cm-legal-section li {
		font-size: 0.95rem;
		padding-left: 1.5rem;
	}

	.cm-contact-info {
		padding: 1rem;
		margin: 1.5rem 0;
	}
}

@media (max-width: 480px) {
	.cm-legal-hero h1 {
		font-size: 1.5rem;
	}

	.cm-legal-section {
		padding: 1rem;
	}

	.cm-legal-section h2 {
		font-size: 1.3rem;
	}
}

/* Print Styles for Legal Pages */
@media print {
	.cm-header,
	.cm-footer,
	.cm-cookie-banner {
		display: none !important;
	}

	.cm-legal-content {
		background: white;
		color: black;
	}

	.cm-legal-section {
		background: white;
		border: 1px solid #ccc;
		box-shadow: none;
		page-break-inside: avoid;
	}

	.cm-legal-section h2,
	.cm-legal-section h3,
	.cm-legal-section strong {
		color: black;
	}

	.cm-legal-section p,
	.cm-legal-section li {
		color: black;
	}
}

/* Accessibility Improvements for Legal Pages */
.cm-legal-section:focus-within {
	outline: 2px solid #2962ff;
	outline-offset: 2px;
}

.cm-legal-section h2:target {
	animation: highlight-target 2s ease-in-out;
}

@keyframes highlight-target {
	0% {
		background-color: rgba(41, 98, 255, 0.3);
	}
	100% {
		background-color: transparent;
	}
}

/* Legal Page Table Styles (for cookie tables) */
.cm-legal-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	background: rgba(255, 255, 255, 0.02);
	border-radius: 8px;
	overflow: hidden;
}

.cm-legal-table th,
.cm-legal-table td {
	padding: 1rem;
	text-align: left;
	border-bottom: 1px solid rgba(41, 98, 255, 0.1);
}

.cm-legal-table th {
	background: rgba(41, 98, 255, 0.1);
	color: #2962ff;
	font-weight: 600;
}

.cm-legal-table td {
	color: #e0e0e0;
}

.cm-legal-table tr:hover {
	background: rgba(41, 98, 255, 0.05);
}

@media (max-width: 768px) {
	.cm-legal-table {
		font-size: 0.9rem;
	}

	.cm-legal-table th,
	.cm-legal-table td {
		padding: 0.8rem 0.5rem;
	}
}
