/* Dentalmarket Koolitused */
:root {
	--dmo-navy: #13233a;
	--dmo-blue: #1473e6;
	--dmo-blue-dark: #0a58b4;
	--dmo-blue-soft: #eaf4ff;
	--dmo-ink: #172132;
	--dmo-muted: #647083;
	--dmo-line: #dfe5ec;
	--dmo-surface: #ffffff;
	--dmo-surface-soft: #f5f8fb;
	--dmo-radius: 18px;
}

.dmo-page,
.dmo-page * {
	box-sizing: border-box;
}

.dmo-page {
	width: min(100% - 32px, 1240px);
	margin: 0 auto;
	padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 7vw, 88px);
	color: var(--dmo-ink);
	font: inherit;
}

.dmo-page button,
.dmo-page input,
.dmo-page select,
.dmo-page textarea {
	font: inherit;
}

.dmo-page button,
.dmo-page a {
	-webkit-tap-highlight-color: transparent;
}

.dmo-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 32px;
	align-items: center;
	min-height: 276px;
	padding: clamp(32px, 5vw, 64px);
	overflow: hidden;
	border-radius: 24px;
	background:
		radial-gradient(circle at 82% 20%, rgba(54, 149, 255, 0.35), transparent 30%),
		linear-gradient(135deg, #0f1c31 0%, #142d50 58%, #1268bd 130%);
	color: #fff;
}

.dmo-hero::after {
	position: absolute;
	right: -70px;
	bottom: -150px;
	width: 360px;
	height: 360px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 50%;
	box-shadow:
		0 0 0 52px rgba(255, 255, 255, 0.035),
		0 0 0 104px rgba(255, 255, 255, 0.022);
	content: "";
}

.dmo-hero__copy {
	position: relative;
	z-index: 1;
	max-width: 760px;
}

.dmo-eyebrow {
	margin: 0 0 14px;
	color: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.dmo-hero .dmo-eyebrow {
	color: #8fc6ff;
}

.dmo-hero__title {
	max-width: 780px;
	margin: 0;
	color: #fff;
	font-size: clamp(34px, 4.4vw, 58px);
	font-weight: 650;
	letter-spacing: -0.038em;
	line-height: 1.04;
}

.dmo-hero__intro {
	max-width: 690px;
	margin: 22px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(16px, 1.4vw, 18px);
	line-height: 1.72;
}

.dmo-hero__mark {
	position: relative;
	z-index: 1;
	display: grid;
	width: 132px;
	height: 132px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.17);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.075);
	backdrop-filter: blur(8px);
}

.dmo-hero__mark svg {
	width: 72px;
	fill: none;
	stroke: rgba(255, 255, 255, 0.86);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 4;
}

.dmo-toolbar {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	padding: 0 0 24px;
}

.dmo-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.dmo-filter {
	min-height: 44px;
	padding: 9px 19px;
	border: 1px solid var(--dmo-line);
	border-radius: 999px;
	background: var(--dmo-surface);
	color: var(--dmo-ink);
	cursor: pointer;
	font-size: 14px;
	font-weight: 650;
	line-height: 1;
	transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.dmo-filter:hover {
	border-color: #aeb9c7;
}

.dmo-filter:active {
	transform: translateY(1px);
}

.dmo-filter.is-active {
	border-color: var(--dmo-blue);
	background: var(--dmo-blue);
	color: #fff;
}

.dmo-filter:focus-visible,
.dmo-button:focus-visible {
	outline: 3px solid rgba(20, 115, 230, 0.3);
	outline-offset: 3px;
}

.dmo-count {
	flex: 0 0 auto;
	margin: 0;
	color: var(--dmo-muted);
	font-size: 14px;
}

.dmo-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.dmo-card {
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--dmo-line);
	border-radius: var(--dmo-radius);
	background: var(--dmo-surface);
	box-shadow: 0 2px 4px rgba(19, 35, 58, 0.02);
	transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.dmo-card[hidden] {
	display: none;
}

.dmo-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--dmo-surface-soft);
}

.dmo-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.dmo-card__image-link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	color: inherit;
	cursor: zoom-in;
	text-decoration: none;
}

.dmo-card__image-link:focus-visible {
	outline: 3px solid var(--dmo-blue);
	outline-offset: -3px;
}

.dmo-card__image-zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(7, 21, 39, 0.85);
	color: #fff;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.2;
	pointer-events: none;
	transition: opacity 160ms ease, transform 160ms ease;
}

.dmo-card__image-zoom svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.dmo-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background:
		radial-gradient(circle at 72% 30%, rgba(20, 115, 230, 0.16), transparent 28%),
		linear-gradient(145deg, #eef4fa, #f8fafc);
}

.dmo-card__placeholder svg {
	width: 58px;
	fill: #b9c8d8;
}

.dmo-card__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	max-width: calc(100% - 32px);
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 4px 16px rgba(19, 35, 58, 0.09);
	color: var(--dmo-navy);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.095em;
	line-height: 1;
	text-transform: uppercase;
	backdrop-filter: blur(8px);
	pointer-events: none;
}

.dmo-card__body {
	display: flex;
	min-height: 0;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.dmo-card__date {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0;
	color: var(--dmo-blue-dark);
	font-size: 12px;
	font-weight: 680;
	letter-spacing: 0.015em;
}

.dmo-card__date svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.dmo-card__title {
	margin: 14px 0 0;
	color: var(--dmo-ink);
	font-size: clamp(20px, 1.65vw, 24px);
	font-weight: 680;
	letter-spacing: -0.025em;
	line-height: 1.23;
}

.dmo-card__excerpt {
	display: -webkit-box;
	margin: 11px 0 0;
	overflow: hidden;
	color: var(--dmo-muted);
	font-size: 14px;
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.dmo-card__actions {
	display: grid;
	gap: 10px;
	margin-top: auto;
	padding-top: 24px;
}

.dmo-button {
	display: inline-flex;
	width: 100%;
	min-height: 48px;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding: 11px 16px;
	border: 1px solid transparent;
	border-radius: 11px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 680;
	line-height: 1.2;
	text-align: left;
	text-decoration: none;
	transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.dmo-button svg {
	width: 19px;
	height: 19px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	transition: transform 180ms ease;
}

.dmo-button--primary {
	border-color: var(--dmo-blue);
	background: var(--dmo-blue);
	color: #fff;
}

.dmo-button--primary:hover {
	border-color: var(--dmo-blue-dark);
	background: var(--dmo-blue-dark);
	color: #fff;
}

.dmo-button--secondary {
	border-color: var(--dmo-line);
	background: #fff;
	color: var(--dmo-ink);
}

.dmo-button--secondary:hover {
	border-color: #b2bfcd;
	background: var(--dmo-surface-soft);
	color: var(--dmo-ink);
}

.dmo-button[disabled] {
	cursor: wait;
	opacity: 0.65;
}

.dmo-button:hover svg {
	transform: translateX(3px);
}

.dmo-empty {
	display: none;
	padding: 58px 24px;
	border: 1px dashed #cbd5df;
	border-radius: var(--dmo-radius);
	background: var(--dmo-surface-soft);
	text-align: center;
}

.dmo-empty.is-visible {
	display: block;
}

.dmo-empty svg {
	width: 42px;
	height: 42px;
	fill: none;
	stroke: #94a3b4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.dmo-empty h2 {
	margin: 18px 0 0;
	color: var(--dmo-ink);
	font-size: 21px;
}

.dmo-empty p {
	margin: 8px auto 0;
	color: var(--dmo-muted);
	font-size: 14px;
}

.dmt-dialog {
	width: min(calc(100% - 28px), 680px);
	max-width: none;
	max-height: min(880px, calc(100dvh - 28px));
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: 20px;
	background: #fff;
	color: var(--dmo-ink);
	box-shadow: 0 28px 90px rgba(7, 21, 39, 0.3);
}

.dmt-dialog::backdrop,
.dmt-image-dialog::backdrop {
	background: rgba(7, 21, 39, 0.68);
	backdrop-filter: blur(4px);
}

.dmt-image-dialog {
	width: min(calc(100% - 28px), 1200px);
	max-width: none;
	max-height: calc(100dvh - 28px);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: 20px;
	background: #fff;
	color: var(--dmo-ink);
	box-shadow: 0 28px 90px rgba(7, 21, 39, 0.3);
}

.dmt-image-dialog__panel {
	padding: clamp(16px, 3vw, 24px);
}

.dmt-image-dialog__header {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.dmt-image-dialog__header h2 {
	margin: 0;
	color: var(--dmo-ink);
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 650;
	line-height: 1.35;
}

.dmt-image-dialog__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100dvh - 210px);
	margin: 0 auto;
	object-fit: contain;
}

.dmt-image-dialog__original {
	display: flex;
	width: fit-content;
	gap: 6px;
	align-items: center;
	margin: 16px auto 0;
	color: var(--dmo-blue-dark);
	font-size: 14px;
	line-height: 1.4;
}

.dmt-image-dialog__original svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.dmt-image-dialog__status {
	margin: 16px 0;
	color: #a42b2b;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.dmt-dialog__panel {
	padding: clamp(24px, 5vw, 40px);
}

.dmt-dialog__header {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	justify-content: space-between;
}

.dmt-eyebrow {
	margin: 0 0 8px;
	color: var(--dmo-blue-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.dmt-dialog__header h2 {
	margin: 0;
	color: var(--dmo-ink);
	font-size: clamp(25px, 4vw, 34px);
	font-weight: 680;
	letter-spacing: -0.03em;
	line-height: 1.18;
}

.dmt-dialog__close {
	display: grid;
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	place-items: center;
	padding: 0;
	border: 1px solid var(--dmo-line);
	border-radius: 50%;
	background: #fff;
	color: var(--dmo-ink);
	cursor: pointer;
}

.dmt-dialog__close:hover {
	background: var(--dmo-surface-soft);
}

.dmt-dialog__close:focus-visible {
	outline: 3px solid rgba(20, 115, 230, 0.3);
	outline-offset: 3px;
}

.dmt-dialog__close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.8;
}

.dmt-dialog__intro {
	margin: 16px 0 0;
	color: var(--dmo-muted);
	font-size: 15px;
	line-height: 1.6;
}

.dmt-form {
	margin-top: 27px;
}

.dmt-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 17px;
}

.dmt-field {
	display: block;
	margin: 0 0 17px;
	color: var(--dmo-ink);
	font-size: 13px;
	font-weight: 650;
}

.dmt-field > span {
	display: block;
	margin-bottom: 7px;
}

.dmt-field b {
	color: var(--dmo-blue);
}

.dmt-field input,
.dmt-field select,
.dmt-field textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 11px 13px;
	border: 1px solid #cfd8e2;
	border-radius: 10px;
	background: #fff;
	color: var(--dmo-ink);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	outline: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dmt-field textarea {
	min-height: 106px;
	resize: vertical;
}

.dmt-field input:focus,
.dmt-field select:focus,
.dmt-field textarea:focus {
	border-color: var(--dmo-blue);
	box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.13);
}

.dmt-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: var(--dmo-muted);
	cursor: pointer;
	font-size: 12px;
	line-height: 1.55;
}

.dmt-consent input {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	margin: 1px 0 0;
	accent-color: var(--dmo-blue);
}

.dmt-consent a {
	color: var(--dmo-blue-dark);
}

.dmt-form__footer {
	display: flex;
	gap: 18px;
	align-items: center;
	margin-top: 23px;
}

.dmt-form__submit {
	width: auto;
	min-width: 210px;
}

.dmt-form__status {
	margin: 0;
	color: var(--dmo-muted);
	font-size: 13px;
	line-height: 1.45;
}

.dmt-form__status.is-success {
	flex: 1 1 280px;
	padding: 12px 15px;
	border: 1px solid #cce8d5;
	border-radius: 10px;
	background: #f0faf3;
	color: #17663a;
	font-weight: 650;
}

.dmt-form__status.is-error {
	color: #a42b2b;
}

.dmt-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (hover: hover) and (pointer: fine) {
	.dmo-card__image-zoom {
		opacity: 0;
		transform: translateY(4px);
	}

	.dmo-card__image-link:hover .dmo-card__image-zoom,
	.dmo-card__image-link:focus-visible .dmo-card__image-zoom {
		opacity: 1;
		transform: none;
	}

	.dmo-card:hover {
		border-color: #bfcbd7;
		box-shadow: 0 18px 44px rgba(19, 35, 58, 0.1);
		transform: translateY(-5px);
	}

	.dmo-card:hover .dmo-card__image {
		transform: scale(1.035);
	}
}

@media (max-width: 980px) {
	.dmo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dmo-hero__mark {
		width: 110px;
		height: 110px;
	}
}

@media (max-width: 700px) {
	.dmo-page {
		width: min(100% - 24px, 1240px);
		padding-top: 18px;
	}

	.dmo-toolbar {
		align-items: flex-start;
		flex-direction: column;
		padding: 0 0 20px;
	}

	.dmo-filters {
		width: 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 2px 2px 6px;
		scrollbar-width: none;
	}

	.dmo-filters::-webkit-scrollbar {
		display: none;
	}

	.dmo-filter {
		flex: 0 0 auto;
	}

	.dmo-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.dmt-form__grid {
		grid-template-columns: 1fr;
	}

	.dmt-form__footer {
		align-items: stretch;
		flex-direction: column;
	}

	.dmt-form__submit {
		width: 100%;
	}

	.dmo-card__body {
		padding: 21px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.dmo-page *,
	.dmo-page *::before,
	.dmo-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
