.training-widget {
	width: min(100%, 420px);
	margin-left: auto;
	display: flex;
	flex-direction: column;
}

.training-widget__card {
	background: #fff;
	border-radius: 16px;
	border: 1px solid #dbeafe;
	box-shadow: 0 12px 48px rgba(30, 64, 175, 0.12);
	height: 520px;
	position: relative;
	overflow: hidden;
}

.training-widget__top-bar {
	height: 4px;
	background: #1d4ed8;
}

.training-widget__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 10;
	background: #1d4ed8;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
}

.training-widget__panel {
	position: absolute;
	inset: 0;
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.training-widget__panel.active {
	opacity: 1;
	pointer-events: auto;
}

.training-widget__cert {
	width: 100%;
	height: 100%;
	border-radius: 12px;
	position: relative;
	overflow: hidden;
	animation: trainingWidgetCertEntry 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.training-widget__cert--blue {
	background: #fff;
	border: 2px solid #bfdbfe;
}

.training-widget__cert--warning {
	background: #fff;
	border: 2px solid #f59e0b;
}

.training-widget__cert--awards {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	border: 2px solid #f59e0b;
}

.training-widget__cert--custom {
	background: #fff;
	border: 2px dashed #bfdbfe;
}

.training-widget__cert-inner {
	position: absolute;
	inset: 16px;
	border-radius: 8px;
}

.training-widget__cert-inner--blue {
	border: 2px solid #93c5fd;
}

.training-widget__cert-inner--warning {
	border: 2px solid #fbbf24;
}

.training-widget__cert-inner--awards {
	border: 2px double #f59e0b;
}

.training-widget__cert-inner--custom {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.training-widget__dots {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 12px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.training-widget__dot-item,
.training-widget__dot-item:hover,
.training-widget__dot-item:focus,
.training-widget__dot-item:focus-visible,
.training-widget__dot-item:active {
	appearance: none;
	border: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}

.training-widget__dot {
	height: 6px;
	border-radius: 999px;
	background: #bfdbfe;
	transition: width 0.3s, background 0.3s;
	width: 6px;
}

.training-widget__dot.active {
	width: 24px;
	background: #1d4ed8;
}

.training-widget__dot-label {
	font-size: 8px;
	font-weight: 600;
	color: #bfdbfe;
	transition: color 0.3s;
}

.training-widget__dot-label.active {
	color: #1d4ed8;
}

.training-widget__it-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 48px;
	height: 48px;
	background: #1d4ed8;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: trainingWidgetSpinIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.training-widget__it-badge-text {
	color: #fff;
	font-size: 18px;
	font-weight: 900;
}

.training-widget__it-title {
	position: absolute;
	top: 33%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.training-widget__it-bar1 {
	height: 6px;
	width: 50%;
	background: #1d4ed8;
	border-radius: 999px;
	animation: trainingWidgetGrowX 0.4s ease 0.5s both;
}

.training-widget__it-bar2 {
	height: 4px;
	width: 35%;
	background: #60a5fa;
	border-radius: 999px;
	animation: trainingWidgetGrowX 0.4s ease 0.7s both;
}

.training-widget__it-id {
	position: absolute;
	bottom: 24px;
	left: 24px;
	display: flex;
	gap: 4px;
}

.training-widget__it-digit {
	width: 12px;
	height: 16px;
	background: #dbeafe;
	border-radius: 4px;
	animation: trainingWidgetDigitPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.training-widget__it-digit:nth-child(1) { animation-delay: 0.9s; }
.training-widget__it-digit:nth-child(2) { animation-delay: 0.95s; }
.training-widget__it-digit:nth-child(3) { animation-delay: 1s; }
.training-widget__it-digit:nth-child(4) { animation-delay: 1.05s; }
.training-widget__it-digit:nth-child(5) { animation-delay: 1.1s; }
.training-widget__it-digit:nth-child(6) { animation-delay: 1.15s; }
.training-widget__it-digit:nth-child(7) { animation-delay: 1.2s; }
.training-widget__it-digit:nth-child(8) { animation-delay: 1.25s; }

.training-widget__lang-flags {
	position: absolute;
	top: 16px;
	left: 16px;
	display: flex;
	gap: 8px;
}

.training-widget__lang-flag {
	width: 32px;
	height: 24px;
	border-radius: 4px;
	animation: trainingWidgetPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.training-widget__lang-flag:nth-child(1) {
	background: #1d4ed8;
	animation-delay: 0.3s;
}

.training-widget__lang-flag:nth-child(2) {
	background: #60a5fa;
	animation-delay: 0.4s;
}

.training-widget__lang-levels {
	position: absolute;
	top: 33%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.training-widget__lang-level {
	height: 4px;
	background: #1d4ed8;
	border-radius: 999px;
	animation: trainingWidgetGrowX 0.4s ease both;
}

.training-widget__lang-level:nth-child(1) { width: 65%; animation-delay: 0.6s; }
.training-widget__lang-level:nth-child(2) { width: 50%; animation-delay: 0.75s; }
.training-widget__lang-level:nth-child(3) { width: 40%; animation-delay: 0.9s; }

.training-widget__lang-grade {
	position: absolute;
	bottom: 24px;
	right: 24px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #eff6ff;
	border: 2px solid #1d4ed8;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: trainingWidgetSpinIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}

.training-widget__lang-grade-text {
	font-size: 28px;
	font-weight: 900;
	color: #1d4ed8;
}

.training-widget__skills-title {
	position: absolute;
	top: 25%;
	left: 0;
	right: 0;
	text-align: center;
}

.training-widget__skills-bar {
	height: 6px;
	width: 55%;
	background: #1d4ed8;
	border-radius: 999px;
	margin: 0 auto;
	animation: trainingWidgetGrowX 0.4s ease 0.3s both;
}

.training-widget__skills-sigs {
	position: absolute;
	bottom: 32px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-around;
	padding: 0 32px;
}

.training-widget__skills-sig {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	animation: trainingWidgetFadeUp 0.4s ease both;
}

.training-widget__skills-sig:nth-child(1) { animation-delay: 0.6s; }
.training-widget__skills-sig:nth-child(2) { animation-delay: 0.8s; }

.training-widget__skills-line {
	width: 64px;
	height: 2px;
	background: #93c5fd;
	border-radius: 999px;
	animation: trainingWidgetGrowX 0.4s ease both;
}

.training-widget__skills-sig:nth-child(1) .training-widget__skills-line { animation-delay: 0.8s; }
.training-widget__skills-sig:nth-child(2) .training-widget__skills-line { animation-delay: 1s; }

.training-widget__skills-box {
	width: 48px;
	height: 4px;
	background: #dbeafe;
	border-radius: 2px;
}

.training-widget__skills-seal {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 56px;
	height: 56px;
	border: 2px solid #1d4ed8;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: trainingWidgetSpinIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}

.training-widget__skills-seal-inner {
	width: 32px;
	height: 32px;
	background: #dbeafe;
	border-radius: 50%;
}

.training-widget__safety-warn {
	position: absolute;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	animation: trainingWidgetPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.training-widget__safety-content {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.training-widget__safety-bar {
	height: 4px;
	background: #f59e0b;
	border-radius: 999px;
	animation: trainingWidgetGrowX 0.4s ease both;
}

.training-widget__safety-bar:nth-child(1) { width: 60%; animation-delay: 0.6s; }
.training-widget__safety-bar:nth-child(2) { width: 45%; animation-delay: 0.75s; }
.training-widget__safety-bar:nth-child(3) { width: 35%; animation-delay: 0.9s; }

.training-widget__safety-stamp {
	position: absolute;
	bottom: 24px;
	left: 24px;
	padding: 6px 12px;
	background: #fef3c7;
	border: 1px solid #fbbf24;
	border-radius: 4px;
	animation: trainingWidgetFadeUp 0.4s ease 1s both;
}

.training-widget__safety-stamp-bar {
	width: 64px;
	height: 4px;
	background: #f59e0b;
	border-radius: 999px;
}

.training-widget__awards-star {
	position: absolute;
	top: 24px;
	left: 50%;
	transform: translateX(-50%);
	animation: trainingWidgetSpinIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.training-widget__awards-title {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.training-widget__awards-bar1 {
	height: 6px;
	width: 50%;
	background: #f59e0b;
	border-radius: 999px;
	animation: trainingWidgetGrowX 0.4s ease 0.6s both;
}

.training-widget__awards-bar2 {
	height: 4px;
	width: 35%;
	background: #fb923c;
	border-radius: 999px;
	animation: trainingWidgetGrowX 0.4s ease 0.8s both;
}

.training-widget__awards-ribbon {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	animation: trainingWidgetFadeUp 0.4s ease 1s both;
}

.training-widget__awards-ribbon-strip {
	width: 8px;
	height: 32px;
	border-radius: 4px;
}

.training-widget__awards-ribbon-strip--gold {
	background: #f59e0b;
}

.training-widget__awards-ribbon-strip--orange {
	background: #fb923c;
}

.training-widget__custom-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	animation: trainingWidgetFadeIn 0.3s ease 0.3s both;
}

.training-widget__custom-box {
	width: 64px;
	height: 64px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	animation: trainingWidgetPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.training-widget__custom-box:nth-child(1) { animation-delay: 0.4s; }
.training-widget__custom-box:nth-child(2) { animation-delay: 0.45s; }
.training-widget__custom-box:nth-child(3) { animation-delay: 0.5s; }
.training-widget__custom-box:nth-child(4) { animation-delay: 0.55s; }
.training-widget__custom-box:nth-child(5) { animation-delay: 0.6s; }
.training-widget__custom-box:nth-child(6) { animation-delay: 0.65s; }
.training-widget__custom-box:nth-child(7) { animation-delay: 0.7s; }
.training-widget__custom-box:nth-child(8) { animation-delay: 0.75s; }
.training-widget__custom-box:nth-child(9) { animation-delay: 0.8s; }

.training-widget__custom-plus {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	animation: trainingWidgetSpinIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}

@keyframes trainingWidgetCertEntry { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes trainingWidgetFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes trainingWidgetFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes trainingWidgetPopIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes trainingWidgetSpinIn { from { transform: scale(0) rotate(-180deg); } to { transform: scale(1) rotate(0); } }
@keyframes trainingWidgetGrowX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes trainingWidgetDigitPop { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 921px) {
	.training-widget {
		width: min(100%, 380px);
		margin: 0 auto;
	}

	.training-widget__card {
		height: 470px;
	}
}

@media (max-width: 640px) {
	.training-widget {
		width: 100%;
		max-width: 360px;
	}

	.training-widget__card {
		height: 450px;
	}

	.training-widget__panel {
		padding: 18px;
	}

	.training-widget__custom-grid {
		gap: 10px;
	}

	.training-widget__custom-box {
		width: 54px;
		height: 54px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.training-widget__cert,
	.training-widget__it-badge,
	.training-widget__it-bar1,
	.training-widget__it-bar2,
	.training-widget__it-digit,
	.training-widget__lang-flag,
	.training-widget__lang-level,
	.training-widget__lang-grade,
	.training-widget__skills-bar,
	.training-widget__skills-sig,
	.training-widget__skills-line,
	.training-widget__skills-seal,
	.training-widget__safety-warn,
	.training-widget__safety-bar,
	.training-widget__safety-stamp,
	.training-widget__awards-star,
	.training-widget__awards-bar1,
	.training-widget__awards-bar2,
	.training-widget__awards-ribbon,
	.training-widget__custom-grid,
	.training-widget__custom-box,
	.training-widget__custom-plus {
		animation: none !important;
	}
}
