.yapg-3d-section {
	--yapg-3d-green: #07593f;
	--yapg-3d-green-dark: #033f2d;
	--yapg-3d-green-soft: #eaf4ef;
	--yapg-3d-lime: #26d58a;
	--yapg-3d-ink: #10231c;
	--yapg-3d-muted: #607169;
	--yapg-3d-line: #d8e3de;
	--yapg-3d-white: #ffffff;
	--yapg-3d-surface: #f4f7f5;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: clamp(40px, 5vw, 76px) clamp(16px, 3.6vw, 56px);
	color: var(--yapg-3d-ink);
	font-family: Montserrat, Arial, sans-serif;
	background: var(--yapg-3d-white);
}

.yapg-3d-section,
.yapg-3d-section * {
	box-sizing: border-box;
}

.yapg-3d-section [hidden] {
	display: none !important;
}

.yapg-3d-heading {
	max-width: 980px;
	margin: 0 auto clamp(28px, 4vw, 48px);
	text-align: center;
}

.yapg-3d-kicker {
	margin: 0 0 12px;
	color: var(--yapg-3d-green);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	line-height: 1.45;
	text-transform: uppercase;
}

.yapg-3d-heading h2 {
	margin: 0;
	color: var(--yapg-3d-green-dark);
	font-size: clamp(32px, 5vw, 68px);
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: .98;
}

.yapg-3d-subtitle {
	margin: 18px 0 0;
	font-size: clamp(16px, 2vw, 22px);
	font-weight: 700;
	line-height: 1.35;
}

.yapg-3d-description {
	max-width: 800px;
	margin: 12px auto 0;
	color: var(--yapg-3d-muted);
	font-size: clamp(14px, 1.35vw, 17px);
	line-height: 1.7;
}

.yapg-3d-layout {
	display: grid;
	grid-template-columns: minmax(0, 2.15fr) minmax(300px, .85fr);
	gap: clamp(18px, 2.4vw, 34px);
	align-items: stretch;
}

.yapg-3d-stage,
.yapg-3d-panel {
	min-width: 0;
}

.yapg-3d-stage {
	position: relative;
	display: flex;
	min-height: 0;
	flex-direction: column;
	padding: 12px;
	overflow: hidden;
	border: 1px solid var(--yapg-3d-line);
	border-radius: 22px;
	background: #edf3f0;
	box-shadow: 0 22px 56px rgba(3, 63, 45, .13);
}

.yapg-3d-viewer-shell {
	position: relative;
	height: clamp(650px, 54vw, 740px);
	min-height: 0;
	overflow: hidden;
	border-radius: 15px;
	background:
		radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .96) 0 17%, rgba(231, 240, 235, .9) 50%, rgba(207, 222, 215, .96) 100%);
}

.yapg-3d-viewer {
	display: block;
	width: 100%;
	height: 100%;
	background: transparent;
	--poster-color: transparent;
	--progress-bar-color: var(--yapg-3d-green);
	--progress-mask: transparent;
}

.yapg-3d-poster,
.yapg-3d-poster img,
.yapg-3d-fallback,
.yapg-3d-fallback > img {
	width: 100%;
	height: 100%;
}

.yapg-3d-poster {
	display: block;
	background: #e9f0ec;
}

.yapg-3d-poster img,
.yapg-3d-fallback > img {
	display: block;
	object-fit: cover;
	object-position: center;
}

.yapg-3d-loading {
	position: absolute;
	right: 18px;
	bottom: 18px;
	left: 18px;
	z-index: 6;
	display: grid;
	grid-template-columns: auto minmax(90px, 180px);
	gap: 12px;
	align-items: center;
	padding: 11px 14px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 13px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	background: rgba(3, 63, 45, .9);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	backdrop-filter: blur(12px);
}

.yapg-3d-progress {
	height: 5px;
	overflow: hidden;
	border-radius: 99px;
	background: rgba(255, 255, 255, .22);
}

.yapg-3d-progress span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--yapg-3d-lime);
	transition: width .24s ease;
}

.yapg-3d-fallback {
	position: absolute;
	inset: 0;
	z-index: 5;
	overflow: hidden;
	background: #e9f0ec;
}

.yapg-3d-fallback-note {
	position: absolute;
	right: 16px;
	bottom: 16px;
	left: 16px;
	display: flex;
	gap: 4px;
	flex-direction: column;
	padding: 14px 16px;
	border-radius: 13px;
	color: #fff;
	font-size: 12px;
	line-height: 1.45;
	background: rgba(3, 63, 45, .9);
	backdrop-filter: blur(10px);
}

.yapg-3d-fallback-note strong {
	font-size: 14px;
}

.yapg-3d-section:not(.is-ready) .yapg-3d-hotspot {
	display: none;
}

.yapg-3d-hotspot {
	position: relative;
	display: grid;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	place-items: center;
	border: 3px solid #fff;
	border-radius: 50%;
	color: #fff;
	font: 800 11px/1 Montserrat, Arial, sans-serif;
	cursor: pointer;
	background: var(--yapg-3d-green);
	box-shadow: 0 5px 18px rgba(3, 63, 45, .38);
	transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease;
	animation: yapg-3d-pulse 2.4s ease-in-out infinite;
}

.yapg-3d-hotspot:not([data-visible]) {
	opacity: 0;
	pointer-events: none;
}

.yapg-3d-hotspot::after {
	position: absolute;
	bottom: calc(100% + 9px);
	left: 50%;
	width: max-content;
	max-width: 190px;
	padding: 7px 9px;
	border-radius: 7px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	content: attr(aria-label);
	pointer-events: none;
	background: rgba(3, 47, 34, .95);
	opacity: 0;
	transform: translate(-50%, 5px);
	transition: opacity .18s ease, transform .18s ease;
}

.yapg-3d-hotspot:hover,
.yapg-3d-hotspot:focus-visible,
.yapg-3d-hotspot.is-active {
	background: #0b8f63;
	box-shadow: 0 0 0 7px rgba(11, 143, 99, .18), 0 6px 20px rgba(3, 63, 45, .4);
	transform: scale(1.08);
}

.yapg-3d-hotspot:hover::after,
.yapg-3d-hotspot:focus-visible::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

.yapg-3d-controls {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	padding: 12px 2px 0;
}

.yapg-3d-control,
.yapg-3d-show,
.yapg-3d-device-toggle,
.yapg-3d-device-item {
	font-family: inherit;
}

.yapg-3d-control {
	display: inline-flex;
	min-height: 42px;
	gap: 7px;
	align-items: center;
	justify-content: center;
	padding: 9px 13px;
	border: 1px solid #c7d7d0;
	border-radius: 10px;
	color: var(--yapg-3d-green-dark);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	background: #fff;
	transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.yapg-3d-control > span:first-child {
	font-size: 17px;
	line-height: 1;
}

.yapg-3d-control:hover,
.yapg-3d-control.is-active {
	border-color: var(--yapg-3d-green);
	color: #fff;
	background: var(--yapg-3d-green);
}

.yapg-3d-control:disabled,
.yapg-3d-show:disabled {
	cursor: not-allowed;
	opacity: .48;
}

.yapg-3d-panel {
	display: flex;
	gap: 14px;
	flex-direction: column;
}

.yapg-3d-info {
	position: relative;
	padding: clamp(24px, 3vw, 38px);
	overflow: hidden;
	border: 1px solid var(--yapg-3d-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 14px 40px rgba(3, 63, 45, .09);
}

.yapg-3d-info::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 5px;
	height: 100%;
	content: '';
	background: var(--yapg-3d-green);
}

.yapg-3d-info-icon {
	display: grid;
	width: 54px;
	height: 54px;
	margin-bottom: 24px;
	place-items: center;
	border-radius: 15px;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	background: var(--yapg-3d-green);
	box-shadow: 0 9px 24px rgba(7, 89, 63, .23);
}

.yapg-3d-info-label {
	margin: 0 0 8px;
	color: #0c8a61;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.yapg-3d-info h3 {
	margin: 0 0 14px;
	color: var(--yapg-3d-green-dark);
	font-size: clamp(22px, 2.3vw, 32px);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.14;
}

.yapg-3d-info > p:last-of-type {
	min-height: 7.2em;
	margin: 0;
	color: var(--yapg-3d-muted);
	font-size: 14px;
	line-height: 1.7;
}

.yapg-3d-show {
	width: 100%;
	min-height: 46px;
	margin-top: 24px;
	padding: 11px 16px;
	border: 1px solid var(--yapg-3d-green);
	border-radius: 10px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .03em;
	cursor: pointer;
	background: var(--yapg-3d-green);
	transition: background-color .2s ease, transform .2s ease;
}

.yapg-3d-show:hover:not(:disabled) {
	background: var(--yapg-3d-green-dark);
	transform: translateY(-1px);
}

.yapg-3d-device-toggle {
	display: flex;
	width: 100%;
	min-height: 54px;
	align-items: center;
	justify-content: space-between;
	padding: 13px 16px;
	border: 1px solid var(--yapg-3d-line);
	border-radius: 13px;
	color: var(--yapg-3d-green-dark);
	font-size: 12px;
	font-weight: 800;
	text-align: left;
	cursor: pointer;
	background: var(--yapg-3d-green-soft);
}

.yapg-3d-device-toggle span {
	display: grid;
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	place-items: center;
	border-radius: 50%;
	color: #fff;
	font-size: 18px;
	background: var(--yapg-3d-green);
}

.yapg-3d-device-list {
	display: grid;
	gap: 7px;
	padding: 8px;
	border: 1px solid var(--yapg-3d-line);
	border-radius: 14px;
	background: #fff;
}

.yapg-3d-device-item {
	display: grid;
	min-height: 52px;
	grid-template-columns: 34px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 7px 10px;
	border: 0;
	border-radius: 9px;
	color: var(--yapg-3d-ink);
	font-size: 12px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	background: transparent;
	transition: color .18s ease, background-color .18s ease;
}

.yapg-3d-device-item:hover,
.yapg-3d-device-item.is-active {
	color: var(--yapg-3d-green-dark);
	background: var(--yapg-3d-green-soft);
}

.yapg-3d-device-number {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 9px;
	color: #fff;
	font-size: 10px;
	background: var(--yapg-3d-green);
}

.yapg-3d-device-arrow {
	font-size: 17px;
}

.yapg-3d-features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: clamp(26px, 4vw, 44px) 0 0;
	padding: 0;
	list-style: none;
}

.yapg-3d-features li {
	display: flex;
	min-height: 62px;
	gap: 10px;
	align-items: center;
	padding: 12px 14px;
	border: 1px solid var(--yapg-3d-line);
	border-radius: 12px;
	color: var(--yapg-3d-green-dark);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	background: #fff;
}

.yapg-3d-features li::before {
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	border-radius: 50%;
	content: '';
	background: var(--yapg-3d-green);
	box-shadow: 0 0 0 5px var(--yapg-3d-green-soft);
}

.yapg-3d-noscript {
	margin-top: 24px;
	padding: 16px;
	border: 1px solid var(--yapg-3d-line);
	border-radius: 14px;
	background: var(--yapg-3d-surface);
}

.yapg-3d-noscript img {
	display: block;
	width: 100%;
	max-height: 520px;
	border-radius: 10px;
	object-fit: cover;
}

.yapg-3d-noscript p {
	margin: 12px 0 0;
	color: var(--yapg-3d-muted);
	font-size: 13px;
}

.yapg-3d-noscript ul {
	display: grid;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.yapg-3d-noscript li {
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--yapg-3d-muted);
	font-size: 12px;
	line-height: 1.5;
	background: #fff;
}

.yapg-3d-noscript strong {
	color: var(--yapg-3d-green-dark);
}

.yapg-3d-control:focus-visible,
.yapg-3d-show:focus-visible,
.yapg-3d-device-toggle:focus-visible,
.yapg-3d-device-item:focus-visible,
.yapg-3d-hotspot:focus-visible {
	outline: 3px solid #22b77f;
	outline-offset: 3px;
}

.yapg-3d-stage:fullscreen {
	width: 100vw;
	height: 100vh;
	padding: 14px;
	border: 0;
	border-radius: 0;
	background: #e8f0ec;
}

.yapg-3d-stage:fullscreen .yapg-3d-viewer-shell {
	flex: 1 1 auto;
	height: auto;
	min-height: 0;
}

@keyframes yapg-3d-pulse {
	0%, 100% { box-shadow: 0 5px 18px rgba(3, 63, 45, .34), 0 0 0 0 rgba(11, 143, 99, .28); }
	50% { box-shadow: 0 5px 18px rgba(3, 63, 45, .34), 0 0 0 9px rgba(11, 143, 99, 0); }
}

@media (max-width: 1100px) {
	.yapg-3d-layout {
		grid-template-columns: minmax(0, 1.55fr) minmax(270px, .85fr);
	}

	.yapg-3d-viewer-shell {
		height: clamp(520px, 58vw, 600px);
	}

	.yapg-3d-features {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.yapg-3d-section {
		padding-right: 14px;
		padding-left: 14px;
	}

	.yapg-3d-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.yapg-3d-viewer-shell {
		height: clamp(520px, 72vw, 580px);
	}

	.yapg-3d-info > p:last-of-type {
		min-height: 0;
	}

	.yapg-3d-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.yapg-3d-section {
		padding-top: 34px;
		padding-bottom: 40px;
	}

	.yapg-3d-heading {
		margin-bottom: 25px;
		text-align: left;
	}

	.yapg-3d-description {
		line-height: 1.58;
	}

	.yapg-3d-stage {
		padding: 7px;
		border-radius: 16px;
	}

	.yapg-3d-viewer-shell {
		height: clamp(400px, 118vw, 480px);
		border-radius: 11px;
	}

	.yapg-3d-loading {
		right: 10px;
		bottom: 10px;
		left: 10px;
		grid-template-columns: minmax(0, 1fr);
		gap: 7px;
	}

	.yapg-3d-hotspot {
		width: 44px;
		height: 44px;
	}

	.yapg-3d-hotspot::after {
		display: none;
	}

	.yapg-3d-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yapg-3d-control {
		min-height: 46px;
		padding: 8px;
		font-size: 10px;
	}

	.yapg-3d-control:first-child {
		grid-column: 1 / -1;
	}

	.yapg-3d-info {
		padding: 24px 20px;
	}

	.yapg-3d-features {
		grid-template-columns: minmax(0, 1fr);
	}

	.yapg-3d-features li {
		min-height: 54px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yapg-3d-section *,
	.yapg-3d-section *::before,
	.yapg-3d-section *::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
