/**
 * NM-D
 * Autor: Paweł Nosko
 * Firma: Design Cart
 * URL: https://www.designcart.pl
 */

:root {
	--nm-d-purple: #5b3fc8;
	--nm-d-dark: #1a1c2e;
	--nm-d-cyan: #00c8e8;
	--nm-d-light: #f0f1f8;
	--nm-d-muted: #6b6d8a;
	--nm-d-font: "JetBrains Mono", monospace;
	--nm-d-font-heading: "DM Sans", sans-serif;
	--nm-d-mono: var(--nm-d-font);
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
	margin: 0;
	background: var(--nm-d-light);
	color: var(--nm-d-dark);
	font-family: var(--nm-d-font);
	font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.nm-d-hero__title,
.nm-d-about__title,
.nm-d-offer__title,
.nm-d-offer__tile-title,
.nm-d-why__title,
.nm-d-why__card-title,
.nm-d-partners__title,
.nm-d-engineer__title,
.nm-d-about__cert-title,
.nm-d-inner-mast__title,
.nm-d-entry__heading,
.nmd-slide-menu__title,
h3.dc-wf-heading {
	font-family: var(--nm-d-font-heading);
}


.nm-d-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.nm-d-skip { position: absolute; left: -999px; }
.nm-d-skip:focus {
	left: 1rem;
	top: 1rem;
	z-index: 100000;
	background: #fff;
	padding: 0.5rem 1rem;
}

.nm-d-icon { display: block; }

/* Burger + modal menu — style w pluginie nm-d-menu.css */

/* Górny pasek + masthead */
.nm-d-inner-head {
	background: var(--nm-d-purple);
	color: #fff;
}

.nm-d-inner-head__bar {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nm-d-inner-head__bar-inner {
	max-width: 72rem;
	margin: 0 auto;
	padding: 0.85rem 5.5rem 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 72px;
}

.nm-d-inner-head__logo {
	line-height: 0;
	display: block;
	flex: 0 1 auto;
}

.nm-d-inner-head__logo img {
	display: block;
	height: 42px;
	width: auto;
	max-width: min(280px, 58vw);
}

.nm-d-inner-head__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.35rem 0.5rem;
	font-family: var(--nm-d-font);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.78);
	margin-right: 0.25rem;
}

.nm-d-inner-head__meta a {
	color: inherit;
	text-decoration: none;
}

.nm-d-inner-head__meta a:hover {
	color: #fff;
}

.nm-d-inner-head__dot { opacity: 0.45; }

.nm-d-inner-mast {
	position: relative;
	overflow: hidden;
	padding: 1.75rem 0 3.5rem;
}

.nm-d-inner-mast::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 0 7.5rem 7.5rem;
	border-color: transparent transparent var(--nm-d-light) transparent;
	pointer-events: none;
}

.nm-d-inner-mast__inner {
	position: relative;
	z-index: 1;
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.nm-d-crumbs { margin: 0 0 0.85rem; }

.nm-d-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--nm-d-font);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.nm-d-crumbs__item {
	display: flex;
	align-items: center;
}

.nm-d-crumbs__item:not(:last-child)::after {
	content: "/";
	margin: 0 0.55rem;
	opacity: 0.45;
}

.nm-d-crumbs a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.nm-d-crumbs a:hover { color: #fff; }

.nm-d-crumbs .is-current span { color: rgba(255, 255, 255, 0.95); }

.nm-d-inner-mast__title {
	margin: 0;
	max-width: 46rem;
	font-size: clamp(1.75rem, 3.2vw, 2.65rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #fff;
}

/* Treść */
.nm-d-content {
	flex: 1 0 auto;
	width: 100%;
	max-width: 72rem;
	margin: -1.75rem auto 3rem;
	padding: 0 1.25rem;
	position: relative;
	z-index: 2;
}

.nm-d-entry {
	background: #fff;
	border-radius: 1rem;
	padding: 2.25rem 2.25rem 2.75rem;
	box-shadow: 0 16px 48px rgba(26, 28, 46, 0.07);
}

.nm-d-archive {
	display: grid;
	gap: 1.25rem;
}

.nm-d-entry--teaser { padding-bottom: 2rem; }

.nm-d-entry__heading {
	margin: 0 0 0.4rem;
	font-size: 1.35rem;
}

.nm-d-entry__heading a {
	color: var(--nm-d-dark);
	text-decoration: none;
}

.nm-d-entry__heading a:hover { color: var(--nm-d-purple); }

.nm-d-entry__meta {
	margin: 0 0 1.25rem;
	font-family: var(--nm-d-font);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: var(--nm-d-muted);
}

.nm-d-entry__thumb {
	margin: -2.25rem -2.25rem 1.75rem;
	overflow: hidden;
	border-radius: 1rem 1rem 0 0;
}

.nm-d-entry__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.nm-d-entry__body {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #2a2c40;
}

.nm-d-entry__body > *:first-child { margin-top: 0; }
.nm-d-entry__body > *:last-child { margin-bottom: 0; }

.nm-d-entry__body h1,
.nm-d-entry__body h2,
.nm-d-entry__body h3,
.nm-d-entry__body h4 {
	color: var(--nm-d-dark);
	line-height: 1.25;
	margin: 2rem 0 0.75rem;
}

.nm-d-entry__body h2 {
	font-size: 1.35rem;
	font-family: var(--nm-d-font-heading);
	font-weight: 700;
}

.nm-d-entry__body h3 { font-size: 1.15rem; }

.nm-d-entry__body p { margin: 0 0 1.1rem; }

.nm-d-entry__body a {
	color: var(--nm-d-purple);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nm-d-entry__body a:hover { color: #47319c; }

.nm-d-entry__body ul,
.nm-d-entry__body ol {
	margin: 0 0 1.25rem;
	padding-left: 1.25rem;
}

.nm-d-entry__body li { margin: 0.35rem 0; }

.nm-d-entry__body table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
}

.nm-d-entry__body th,
.nm-d-entry__body td {
	border-bottom: 1px solid #ececf4;
	padding: 0.65rem 0.5rem;
	text-align: left;
}

.nm-d-entry__pages { margin-top: 1.5rem; }

.nm-d-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: var(--nm-d-purple);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 0.9rem;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	border: 0;
	cursor: pointer;
}

.nm-d-btn:hover { background: #47319c; }

.nm-d-btn--ghost {
	background: transparent;
	color: var(--nm-d-purple) !important;
	padding: 0;
	border-radius: 0;
}

.nm-d-btn--ghost:hover { color: #47319c !important; background: transparent; }

.nav-links {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.nav-links a {
	color: var(--nm-d-purple);
	text-decoration: none;
	font-weight: 600;
}

.nm-d-woo .woocommerce-notices-wrapper { margin-bottom: 1rem; }

/* Stopka */
.nm-d-site-footer { background: var(--nm-d-purple); color: #fff; }

/* Logo stopki wyciągnięte JS — 1/4 szerokości + własne paddingi, bez borderów kolumny */
.nm-d-footer-logo {
	width: calc(100% / var(--nm-d-footer-logo-cols, 4));
	max-width: calc(100% / var(--nm-d-footer-logo-cols, 4));
	box-sizing: border-box;
	padding: 20px 24px;
	margin: 0;
	border: 0;
}
.nm-d-footer-logo .dc-wf-tile {
	margin-bottom: 0;
}
.nm-d-footer-logo .dc-wf-img-wrap,
.nm-d-footer-logo .dc-wf-img,
.nm-d-footer-logo img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}
@media (max-width: 767.98px) {
	.nm-d-footer-logo {
		width: 100%;
		max-width: 100%;
	}
}

.nmd-footer-bottom {
	max-width: 72rem;
	margin: 0 auto;
	padding: 0.85rem 1.25rem 1.35rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	flex-wrap: wrap;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.nmd-footer-bottom p { margin: 0; }
.nmd-footer-copy {
	font-size: 0.8125rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.78);
}
.nmd-footer-credit {
	font-family: var(--nm-d-font);
	font-size: 0.6875rem;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.38);
	margin-left: auto;
}
.nmd-footer-credit a {
	color: inherit;
	text-decoration: none;
}
.nmd-footer-credit a:hover,
.nmd-footer-credit a:focus-visible {
	color: rgba(255, 255, 255, 0.62);
	text-decoration: underline;
}

h3.dc-wf-heading {
	color: #fff !important;
	font-family: var(--nm-d-font-heading) !important;
	font-weight: 700;
}

@media (max-width: 767px) {
	.nm-d-inner-head__meta { display: none; }
	.nm-d-inner-head__bar-inner { padding-right: 5rem; min-height: 64px; }
	.nm-d-inner-head__logo img { height: 34px; }
	.nm-d-inner-mast { padding: 1.25rem 0 3rem; }
	.nm-d-entry { padding: 1.5rem 1.25rem 2rem; }
	.nm-d-entry__thumb { margin: -1.5rem -1.25rem 1.25rem; }
}
