/* Стили для вариаций продукта в стиле hero секции */
.product-variations {
	margin: 2rem 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.variations-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.95);
	margin: 0 0 0.5rem 0;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

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

.variation-label {
	font-size: 0.9rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* .variation-label .required - убрано, так как все поля необязательные */

.variation-select {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 0.75rem 1rem;
	color: white;
	font-size: 0.95rem;
	font-weight: 400;
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
	cursor: pointer;
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 1rem;
	padding-right: 3rem;
}

.variation-select:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.4);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.variation-select option {
	background: #2c3e50;
	color: white;
	padding: 0.5rem;
	border: none;
}

.variation-select option:hover,
.variation-select option:checked {
	background: #34495e;
}

/* Адаптивность */
@media (max-width: 768px) {
	.product-variations {
		margin: 1.5rem 0 0 0;
		gap: 0.75rem;
	}

	.variations-title {
		font-size: 1rem;
		margin-bottom: 0.4rem;
	}

	.variation-select {
		padding: 0.65rem 0.85rem;
		padding-right: 2.5rem;
		font-size: 0.9rem;
		background-size: 0.9rem;
		background-position: right 0.85rem center;
		margin-bottom: var(--spacing-small);
	}

	.variation-group:last-child .variation-select {
		margin-bottom: var(--spacing-xlarge);
	}

	.variation-label {
		font-size: 0.85rem;
	}
}

@media (max-width: 480px) {
	.product-variations {
		gap: 0.5rem;
	}

	.variations-title {
		font-size: 0.95rem;
		margin-bottom: 0.3rem;
	}

	.variation-select {
		padding: 0.6rem 0.75rem;
		padding-right: 2.25rem;
		font-size: 0.85rem;
	}
}

/* ============================================================
   Стили для переключателя версий продукта (А, Ц, О)
   Карточки в стиле маркетплейсов
   ============================================================ */

.product-versions {
	margin: 2rem 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.versions-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.95);
	margin: 0 0 0.75rem 0;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.version-switcher {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--spacing-medium);
}

.version-btn {
	position: relative;
	background: rgba(255, 255, 255, 0.08);
	border: 2px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--border-radius);
	padding: 0.25rem 1rem;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.95rem;
	font-weight: 400;
	backdrop-filter: blur(15px);
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	overflow: hidden;
}

/* Градиентный overlay */
.version-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

/* Индикатор выбранной версии - убран, используем только подсветку */
.version-btn::after {
	display: none;
}

.version-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.25);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	color: rgba(255, 255, 255, 0.9);
}

.version-btn:hover::before {
	opacity: 1;
}

.version-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Активная версия - яркая подсветка вторичным цветом сайта */
.version-btn.active {
	background: rgba(106, 46, 168, 0.5);
	border-color: rgba(106, 46, 168, 0.8);
	border-width: 2px;
	color: white;
	box-shadow: 0 0 0 3px rgba(106, 46, 168, 0.2),
	            0 4px 12px rgba(0, 0, 0, 0.15),
	            inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.version-btn.active::before {
	opacity: 1;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

/* Убрана галочка - используем только подсветку */
.version-btn.active::after {
	display: none;
}

/* Код версии (А, Ц, О) - БОЛЬШОЙ */
.version-btn__code {
	font-size: 3rem;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1;
	margin-bottom: 0.25rem;
}

.version-btn.active .version-btn__code {
	text-shadow: 0 2px 12px rgba(255, 255, 255, 0.4);
}

/* Название версии */
.version-btn__name {
	font-size: 0.9rem;
	font-weight: 400;
	opacity: 0.7;
	text-align: center;
	letter-spacing: 0.3px;
	line-height: 1.3;
}

/* Активная карточка - текст жирным */
.version-btn.active .version-btn__name {
	opacity: 1;
	font-weight: 600;
}

@media (max-width: 1024px) {
	.version-btn {
		padding: 1rem 1rem;
	}
}

/* Адаптивность переключателя версий */
@media (max-width: 768px) {
	.product-versions {
		margin: 1.5rem 0 0 0;
		gap: 0.75rem;
	}

	.versions-title {
		font-size: 1rem;
		margin-bottom: 0.5rem;
	}

	.version-btn {
		padding: 0.75rem 1rem;
	}

	.version-switcher {
		gap: 0.75rem;
	}

	.version-btn::after {
		width: 20px;
		height: 20px;
		font-size: 0.75rem;
		top: 0.4rem;
		right: 0.4rem;
	}

	.version-btn__code {
		font-size: 2.5rem;
		letter-spacing: 1.5px;
	}

	.version-btn__name {
		font-size: 0.75rem;
	}
}

@media (max-width: 480px) {
	.product-versions {
		gap: 0.5rem;
	}

	.versions-title {
		font-size: 0.95rem;
		margin-bottom: 0.4rem;
	}

	.version-switcher {
		gap: 0.5rem;
	}

	.version-btn {
		padding: 0.5rem 0.65rem;
	}

	.version-btn::after {
		width: 18px;
		height: 18px;
		font-size: 0.7rem;
		top: 0.35rem;
		right: 0.35rem;
	}

	.version-btn__code {
		font-size: 2rem;
		letter-spacing: 1px;
	}

	.version-btn__name {
		font-size: 0.7rem;
	}
}
