/**
 * Copyright © 2026 Виталий Сухов, Роберт Лапунов, RV Soft (https://rv-soft.ru)
 * Лицензия Flips Engine на сайт: /site/LICENSE.md
 *
 */

/* — DA Medical stub */

.this-stub {
	position: relative;
	isolation: isolate;
}

.this-stub #html-body,
.this-stub #content {
	position: relative;
	z-index: 1;
}

.this-stub #content {
	min-height: 60vh;
}

/* Ambient background */
.stub-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 50% at 10% -10%, rgba(225, 101, 137, 0.1), transparent 55%),
		radial-gradient(ellipse 60% 45% at 95% 15%, rgba(49, 64, 68, 0.06), transparent 50%),
		#fff;
}

.stub-bg__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(48px);
	opacity: 0.5;
}

.stub-bg__orb--a {
	width: 280px;
	height: 280px;
	top: 10%;
	left: -80px;
	background: rgba(225, 101, 137, 0.2);
}

.stub-bg__orb--b {
	width: 340px;
	height: 340px;
	top: 45%;
	right: -120px;
	background: rgba(49, 64, 68, 0.1);
}

.stub-bg__orb--c {
	width: 220px;
	height: 220px;
	bottom: 12%;
	left: 38%;
	background: rgba(225, 101, 137, 0.1);
}

/* Hero */
.stub-hero {
	padding-top: 1.75rem;
}

.stub-hero__logo {
	display: inline-block;
	margin-bottom: 1.25rem;
}

.stub-hero__logo img {
	display: block;
	width: min(320px, 72vw);
	height: auto;
	margin: 0 auto;
	filter: drop-shadow(0 10px 28px rgba(225, 101, 137, 0.18));
	transition: transform 0.45s ease, filter 0.45s ease;
}

@media (hover: hover) {
	.stub-hero__logo:hover img {
		transform: scale(1.03);
		filter: drop-shadow(0 14px 32px rgba(225, 101, 137, 0.28));
	}
}

.stub-hero__title {
	max-width: 40rem;
	margin: 0.35rem auto 0;
	color: var(--emphasis-text);
	font-weight: 700;
	font-size: clamp(1.2rem, 2.5vw, 1.65rem);
	line-height: 1.32;
}

.stub-hero__line {
	width: min(180px, 40vw);
	height: 2px;
	margin: 1.5rem auto 0;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, var(--prim-bg), transparent);
	transform-origin: center;
}

/* Section heads */
.stub-section-head {
	margin-bottom: 2.25rem;
}

.stub-section-head__label {
	margin: 0 0 0.4rem;
	color: var(--prim-text);
	font-size: 0.85rem;
	font-weight: 600;
}

.stub-section-head__title {
	margin: 0;
	color: var(--emphasis-text);
	font-weight: 700;
}

/* Devices — photo stage + floating rounded text card */
.stub-device__stage {
	border-radius: 28px;
	background: #f3f5f5;
	isolation: isolate;
}

.stub-device__img {
	display: block;
	width: 100%;
	height: auto;
	min-height: 420px;
	object-fit: cover;
	object-position: top center;
	will-change: transform;
}

.stub-device__card {
	position: absolute;
	z-index: 2;
	left: 6%;
	right: 6%;
	bottom: 8%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: auto;
	max-width: 340px;
	min-height: 300px;
	margin-left: auto;
	margin-right: auto;
	padding: 1.5rem 1.35rem 1.4rem;
	text-align: center;
	border-radius: 40px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow: 0 18px 48px rgba(49, 64, 68, 0.18);
	backdrop-filter: blur(12px);
	will-change: transform;
	box-sizing: border-box;
}

.stub-device__card > * {
	width: 100%;
}

.stub-device__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem;
}

.stub-device__logo img {
	display: block;
	max-width: 150px;
	max-height: 48px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.stub-device__title {
	margin: 0 0 0.65rem;
	color: var(--emphasis-text);
	font-size: clamp(0.95rem, 1.5vw, 1.15rem);
	font-weight: 700;
	line-height: 1.25;
}

.stub-device__text {
	margin: 0 0 1rem;
	color: var(--def-text);
	font-size: 0.84rem;
	line-height: 1.45;
}

.stub-device__card .stub-btn {
	min-width: 8rem;
}


/* Product cards */
.stub-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.75rem 1.5rem 1.5rem;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(49, 64, 68, 0.06);
	border-radius: 18px;
	text-align: center;
	box-shadow: 0 14px 36px rgba(49, 64, 68, 0.05);
	backdrop-filter: blur(8px);
}

.stub-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	margin-bottom: 0.85rem;
}

.stub-card__logo img {
	max-width: 170px;
	max-height: 48px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.stub-card--cumlaude .stub-card__logo img {
	max-width: 300px;
	max-height: 78px;
}

.stub-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.stub-card__title {
	margin: 0 0 1rem;
	color: var(--emphasis-text);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.3;
}

.stub-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	margin-bottom: 1.1rem;
	padding: 1rem 0.75rem;
	background: #f7f8f8;
	border-radius: 14px;
	overflow: hidden;
}

.stub-card__media > img {
	display: block;
	max-width: 100%;
	max-height: 240px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.stub-card__media--stack {
	gap: 0.5rem;
}

.stub-card__media--stack img {
	flex: 1 1 0;
	max-width: 32%;
	max-height: 200px;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(49, 64, 68, 0.12));
}

.stub-card__text {
	margin: 0;
	flex: 1 1 auto;
	color: var(--def-text);
	font-size: 0.95rem;
	line-height: 1.5;
}

.stub-card__action {
	margin-top: 1.35rem;
}

/* Shared CTA */
.stub-btn {
	min-width: 9.5rem;
	border-color: rgba(225, 101, 137, 0.45);
	color: var(--prim-text);
	font-weight: 600;
	background: rgba(255, 255, 255, 0.85);
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.stub-btn:hover,
.stub-btn:focus {
	border-color: var(--prim-bg);
	color: #fff;
	background: var(--prim-bg);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(225, 101, 137, 0.28);
}

/* Contacts */
.stub-contacts__name {
	margin: 0;
	color: var(--emphasis-text);
	font-weight: 700;
}

.stub-contacts {
	color: var(--emphasis-text);
}

.stub-contacts a {
	font-weight: 500;
	transition: color 0.2s ease;
}

/* Footer */
.stub-footer {
	border-top: 1px solid rgba(49, 64, 68, 0.08);
	background: #fff !important;
	padding-top: 12px;
	padding-bottom: 12px;
}

.stub-legal {
	flex-wrap: wrap;
	row-gap: 0.25rem;
	justify-content: center;
	margin: 0;
}

.stub-legal > * > a {
	font-size: 0.72rem;
	line-height: 1.35;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--muted-text) !important;
}

.stub-legal > * > a:hover,
.stub-legal > * > a:focus {
	color: var(--prim-text) !important;
}

.stub-legal.uk-subnav-divider > :nth-child(n+2)::before {
	border-left-color: rgba(49, 64, 68, 0.15);
	margin-left: 0;
}

/* Compact cookie card — leaves footer legal links visible */
.stub-cookie {
	left: 0;
	right: 0;
	bottom: 1.25rem;
	display: flex;
	justify-content: center;
	padding: 0 1rem;
	pointer-events: none;
	background: transparent;
	box-shadow: none;
}

.stub-cookie__card {
	pointer-events: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	width: 100%;
	max-width: 380px;
	padding: 0.9rem 1rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(49, 64, 68, 0.1);
	box-shadow: 0 12px 36px rgba(49, 64, 68, 0.16);
	backdrop-filter: blur(12px);
}

.stub-cookie__text {
	flex: 1 1 200px;
	color: var(--def-text);
	line-height: 1.4;
}

.stub-cookie__btn {
	flex: 0 0 auto;
	min-width: 4.5rem;
}

@media (max-width: 959px) {
	.stub-hero {
		padding-top: 0.75rem;
	}

	.stub-device {
		margin-bottom: 40px;
	}

	.stub-device__img {
		min-height: 360px;
	}

	.stub-device__card {
		bottom: 5%;
		left: 5%;
		right: 5%;
		max-width: none;
		min-height: 260px;
		border-radius: 28px;
		padding: 1.25rem 1.1rem 1.2rem;
	}

	.stub-device__img,
	.stub-device__card {
		transform: none !important;
	}

	.stub-card__inner {
		padding: 1.35rem 1.15rem 1.25rem;
	}

	.stub-legal {
		flex-direction: column;
		align-items: center;
		row-gap: 0.45rem;
	}

	.stub-legal.uk-subnav-divider > :nth-child(n+2)::before {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stub-card__media--stack img,
	.stub-btn,
	.stub-hero__logo img {
		animation: none !important;
		transition: none !important;
	}

	.stub-device__img,
	.stub-device__card {
		transform: none !important;
	}
}
