:root {
	--font-display: "Sora", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-heading: var(--font-display);
	--color-green-dark: #173d2b;
	--color-green: #2fac68;
	--color-lime: #c9df4a;
	--color-river: #77becb;
	--color-earth: #8c4b30;
	--color-bg: #fbf7ed;
	--color-surface: #fffdf7;
	--color-text: #1d2a21;
	--color-muted: #647064;
	--color-line: rgba(23, 61, 43, 0.14);
	--radius-lg: 18px;
	--radius-xl: 30px;
	--shadow-soft: 0 22px 70px rgba(23, 61, 43, 0.13);
	--container: min(100% - 2rem, 1160px);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.has-open-menu {
	overflow: hidden;
}

body,
button,
input,
textarea,
select {
	font: inherit;
}

.site-header,
.site-main,
.site-footer,
.site-header *,
.site-main *,
.site-footer * {
	font-family: var(--font-body);
}

a {
	color: inherit;
	text-decoration: none;
}

img,
svg {
	display: block;
	max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
}

p:last-child {
	margin-bottom: 0;
}

p {
	color: var(--color-muted);
	line-height: 1.72;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-bottom: 0.85rem;
	color: var(--color-green-dark);
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.08;
	text-wrap: balance;
}

.site-main :where(h1, h2, h3, h4, h5, h6),
.site-footer :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--font-display);
}

h1 {
	font-size: clamp(2.4rem, 6vw, 4.65rem);
}

h2 {
	font-size: clamp(2rem, 3.4vw, 3rem);
}

h3 {
	font-size: clamp(1.35rem, 2.2vw, 2rem);
}

h4 {
	font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

small,
.text-small {
	font-size: 0.88rem;
	line-height: 1.5;
}

:focus-visible {
	outline: 3px solid var(--color-lime);
	outline-offset: 4px;
}

.container {
	width: var(--container);
	margin-inline: auto;
}

.skip-link,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	z-index: 1000;
	top: 1rem;
	left: 1rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--color-green-dark);
	color: #fff;
	border-radius: 10px;
}

.site-header {
	position: sticky;
	z-index: 100;
	top: 16px;
	padding-top: 16px;
	background: transparent;
}

body.elementor-page .site-header {
	position: fixed;
	right: 0;
	left: 0;
	top: 0;
	padding-top: 16px;
}

body.admin-bar.elementor-page .site-header {
	top: 32px;
}

.header-bar {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 76px;
	padding: 10px 12px 10px 18px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(251, 248, 241, 0.96);
	box-shadow: var(--shadow-soft);
	backdrop-filter: blur(14px);
}

.header-bar--hero-context {
	width: min(calc(100% - 12px), 1410px);
}

.brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	min-width: 0;
}

.brand__logo {
	width: auto;
	height: clamp(44px, 4vw, 54px);
	max-width: min(34vw, 140px);
	object-fit: contain;
}

.main-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
}

.menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(0.9rem, 2vw, 1.65rem);
	padding: 0;
	margin: 0;
	list-style: none;
}

.menu a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.45rem 0;
	color: rgba(29, 42, 33, 0.68);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.menu a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	border-radius: 999px;
	background: transparent;
}

.menu a:hover,
.menu a:focus-visible,
.menu .current-menu-item > a,
.menu .current_page_item > a {
	color: var(--color-text);
}

.menu a:hover::after,
.menu a:focus-visible::after,
.menu .current-menu-item > a::after,
.menu .current_page_item > a::after {
	background: var(--color-lime);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.78rem 1.15rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
	transform: translateY(-1px);
}

button.button {
	cursor: pointer;
}

.button--primary {
	background: var(--color-green-dark);
	color: #fff;
	box-shadow: 0 13px 28px rgba(23, 61, 43, 0.2);
}

.button--primary:hover {
	background: #214f38;
}

.button--secondary {
	background: var(--color-surface);
	border-color: var(--color-line);
	color: var(--color-green-dark);
}

.button--secondary:hover {
	background: #fff;
}

.button--header {
	min-height: 42px;
	padding: 0.64rem 1rem;
	font-size: 0.9rem;
	white-space: nowrap;
}

.button--downloads {
	border-color: var(--color-green-dark);
	background: var(--color-green-dark);
	color: #fff;
	box-shadow: 0 14px 30px rgba(23, 61, 43, 0.16);
}

.button--downloads:hover,
.button--downloads:focus-visible {
	background: #214f38;
	border-color: #214f38;
}

.button--ghost {
	border-color: var(--color-line);
	background: #fff;
	color: var(--color-green-dark);
	box-shadow: 0 14px 30px rgba(23, 61, 43, 0.06);
}

.button--ghost:hover,
.button--ghost:focus-visible {
	background: #fffdf7;
}

.button__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(23, 61, 43, 0.08);
	color: var(--color-green-dark);
}

.button__icon svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.button--mobile-downloads {
	display: none;
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--color-line);
	flex-direction: column;
	border-radius: 50%;
	background: #fff;
	color: var(--color-green-dark);
	cursor: pointer;
}

.menu-toggle span[aria-hidden="true"] {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 999px;
	transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span[aria-hidden="true"] + span[aria-hidden="true"] {
	margin-top: 5px;
}

.site-header.is-menu-open .menu-toggle span[aria-hidden="true"]:nth-of-type(2) {
	transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span[aria-hidden="true"]:nth-of-type(3) {
	opacity: 0;
}

.site-header.is-menu-open .menu-toggle span[aria-hidden="true"]:nth-of-type(4) {
	transform: translateY(-7px) rotate(-45deg);
}

.site-main {
	min-height: calc(100vh - 76px);
}

.site-main--page-builder {
	overflow-x: clip;
}

.site-main--page-builder > :where(.elementor, .elementor-section-wrap, .entry-content) {
	width: 100%;
}

.site-main--full-width {
	width: 100%;
	max-width: none;
}

body.elementor-page .site-main--page-builder,
body.elementor-page .site-main--page-builder * {
	font-family: inherit;
}

body.elementor-page .site-main--page-builder :where(p, h1, h2, h3, h4, h5, h6) {
	color: inherit;
}

.construction-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(4.25rem, 9vw, 7.25rem) 0 clamp(4rem, 8vw, 6.5rem);
	background:
		radial-gradient(circle at 14% 18%, rgba(201, 223, 74, 0.23), transparent 26rem),
		radial-gradient(circle at 92% 10%, rgba(119, 190, 203, 0.22), transparent 23rem),
		linear-gradient(135deg, #fbf7ed 0%, #f7efdf 58%, #e9f4f2 100%);
}

.construction-hero::before {
	content: "";
	position: absolute;
	right: -10rem;
	bottom: -13rem;
	width: 31rem;
	height: 31rem;
	border: 1.5rem solid rgba(47, 172, 104, 0.08);
	border-radius: 43% 57% 48% 52%;
	pointer-events: none;
}

.construction-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	gap: clamp(2rem, 6vw, 4.5rem);
	align-items: center;
}

.construction-hero__content {
	max-width: 760px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 1rem;
	color: var(--color-earth);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	line-height: 1.2;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	width: 0.72rem;
	height: 0.72rem;
	border-radius: 50%;
	background: var(--color-lime);
	box-shadow: 0 0 0 0.32rem rgba(201, 223, 74, 0.24);
}

h1 {
	max-width: 760px;
	margin-bottom: 1.25rem;
	color: var(--color-green-dark);
	font-family: var(--font-heading);
	font-size: clamp(2.4rem, 6vw, 4.65rem);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.08;
}

.construction-hero p {
	max-width: 690px;
	color: var(--color-muted);
	font-size: clamp(1rem, 2vw, 1.12rem);
	line-height: 1.75;
}

.construction-hero .lead {
	color: #405145;
	font-size: clamp(1.08rem, 2.2vw, 1.24rem);
	line-height: 1.68;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2rem;
}

.construction-hero__visual {
	min-height: 330px;
}

.river-visual {
	position: relative;
	min-height: 330px;
	overflow: hidden;
	border: 1px solid rgba(23, 61, 43, 0.1);
	border-radius: var(--radius-xl);
	background:
		linear-gradient(145deg, rgba(255, 253, 247, 0.94), rgba(236, 247, 244, 0.88)),
		var(--color-surface);
	box-shadow: var(--shadow-soft);
}

.river-visual__shape,
.river-visual__stream,
.river-visual__point {
	position: absolute;
	display: block;
}

.river-visual__shape {
	border: 1px solid rgba(23, 61, 43, 0.11);
}

.river-visual__shape--territory {
	inset: 13% 36% 21% 14%;
	border-radius: 42% 58% 48% 52%;
	background: rgba(201, 223, 74, 0.21);
}

.river-visual__shape--community {
	inset: 26% 12% 14% 44%;
	border-radius: 56% 44% 46% 54%;
	background: rgba(140, 75, 48, 0.12);
}

.river-visual__stream {
	top: -14%;
	left: 47%;
	width: 42%;
	height: 130%;
	border-left: 0.85rem solid rgba(119, 190, 203, 0.92);
	border-radius: 50%;
	transform: rotate(16deg);
}

.river-visual__stream--two {
	left: 52%;
	border-left-width: 0.24rem;
	border-left-color: rgba(255, 253, 247, 0.88);
}

.river-visual__point {
	width: 2rem;
	height: 2rem;
	border: 0.38rem solid var(--color-surface);
	border-radius: 50%;
	background: var(--color-lime);
	box-shadow: 0 11px 24px rgba(23, 61, 43, 0.16);
}

.river-visual__point--one {
	top: 26%;
	left: 31%;
}

.river-visual__point--two {
	top: 50%;
	right: 24%;
	background: var(--color-green);
}

.river-visual__point--three {
	bottom: 18%;
	left: 43%;
	background: var(--color-earth);
}

.river-visual__note {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	padding: 1rem;
	border-radius: var(--radius-lg);
	background: rgba(23, 61, 43, 0.94);
	color: #fff;
}

.river-visual__note span {
	display: block;
	margin-bottom: 0.2rem;
	color: var(--color-lime);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.river-visual__note strong {
	display: block;
	max-width: 22rem;
	font-family: var(--font-heading);
	font-size: clamp(1.05rem, 2vw, 1.28rem);
	line-height: 1.3;
}

.site-footer {
	padding: clamp(3rem, 7vw, 5rem) 0 1.6rem;
	background: #132b20;
	color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
	display: grid;
	gap: 2rem;
}

.footer-brand {
	max-width: 420px;
}

.footer-brand__mark {
	display: inline-block;
	color: #fff;
	font-family: var(--font-heading);
	font-size: 1.14rem;
	font-weight: 800;
	line-height: 1.2;
}

.footer-brand p {
	margin: 1rem 0 0;
	color: rgba(255, 255, 255, 0.72);
}

.footer-column {
	display: grid;
	gap: 0.58rem;
	align-content: start;
}

.footer-column h2 {
	margin-bottom: 0.3rem;
	color: #fff;
	font-family: var(--font-heading);
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.2;
}

.footer-column a,
.footer-column span {
	color: rgba(255, 255, 255, 0.74);
	font-size: 0.95rem;
}

.footer-column a:hover,
.footer-column a:focus-visible {
	color: var(--color-lime);
}

.footer-bottom {
	margin-top: 2.6rem;
	padding-top: 1.35rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.9rem;
}

@media (min-width: 760px) {
	.brand__logo {
		max-width: 236px;
		max-height: 58px;
	}

	.construction-hero__visual {
		min-height: 390px;
	}

	.river-visual {
		min-height: 390px;
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(150px, 0.7fr));
	}
}

@media (min-width: 980px) {
	.header-bar {
		min-height: 82px;
	}

	.construction-hero__grid {
		grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.72fr);
	}

	.construction-hero__visual,
	.river-visual {
		min-height: 460px;
	}
}

@media (max-width: 979px) {
	.menu-toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.main-nav {
		position: absolute;
		top: calc(100% + 0.65rem);
		right: 1rem;
		left: 1rem;
		display: none;
		padding: 0.85rem;
		border: 1px solid var(--color-line);
		border-radius: var(--radius-lg);
		background: rgba(255, 253, 247, 0.98);
		box-shadow: var(--shadow-soft);
	}

	.site-header.is-menu-open .main-nav {
		display: grid;
	}

	.menu {
		display: grid;
		gap: 0.45rem;
		width: 100%;
		justify-content: stretch;
	}

	.menu a {
		display: flex;
		min-height: 46px;
		padding: 0.78rem 0.9rem;
		border-radius: 14px;
		background: #fff;
		color: var(--color-green-dark);
	}

	.menu a::after {
		display: none;
	}

	.button--mobile-downloads {
		display: inline-flex;
		width: 100%;
		min-height: 46px;
		margin-top: 0.25rem;
		padding: 0.78rem 0.9rem;
		border-radius: 14px;
	}

	.header-actions {
		display: none;
	}
}

@media (max-width: 520px) {
	.site-header {
		top: 10px;
		padding-top: 10px;
	}

	body.elementor-page .site-header {
		top: 0;
		padding-top: 10px;
	}

	body.admin-bar.elementor-page .site-header {
		top: 46px;
	}

	.header-bar {
		min-height: 70px;
		gap: 14px;
		padding: 8px 10px 8px 14px;
		border-radius: 24px;
	}

	.header-bar--hero-context {
		width: min(calc(100% - 24px), var(--container));
	}

	.brand__logo {
		height: 42px;
		max-width: min(45vw, 120px);
	}

	h1 {
		font-size: clamp(2.1rem, 12vw, 3rem);
	}

	.hero-actions {
		display: grid;
	}

	.button {
		width: 100%;
	}

	.construction-hero__visual,
	.river-visual {
		min-height: 300px;
	}
}

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

body.has-open-modal {
	overflow: hidden;
}

.downloads-page {
	background:
		linear-gradient(180deg, rgba(255, 253, 247, 0) 0%, rgba(255, 253, 247, 0.72) 100%),
		var(--color-bg);
}

.downloads-hero {
	position: relative;
	overflow: hidden;
	margin-top: -108px;
	padding: clamp(8rem, 12vw, 10.25rem) 0 clamp(2.6rem, 5vw, 4rem);
	background:
		radial-gradient(circle at 88% 18%, rgba(201, 223, 74, 0.16), transparent 22rem),
		linear-gradient(135deg, #173d2b 0%, #1f563d 62%, #23694a 100%);
	color: #fff;
}

.downloads-hero::before,
.downloads-hero::after {
	content: "";
	position: absolute;
	border: 1px solid rgba(255, 255, 255, 0.14);
	pointer-events: none;
}

.downloads-hero::before {
	right: -10rem;
	bottom: -15rem;
	width: 34rem;
	height: 34rem;
	border-radius: 42% 58% 48% 52%;
}

.downloads-hero::after {
	top: 24%;
	left: -8rem;
	width: 18rem;
	height: 18rem;
	border-radius: 58% 42% 54% 46%;
	background: rgba(201, 223, 74, 0.06);
}

.downloads-hero__inner {
	position: relative;
	z-index: 1;
}

.downloads-hero__content {
	max-width: 760px;
}

.downloads-hero__eyebrow,
.downloads-listing__label {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 1rem;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	line-height: 1.2;
	text-transform: uppercase;
}

.downloads-hero__eyebrow {
	color: var(--color-lime);
}

.downloads-hero__eyebrow::before,
.downloads-listing__label::before {
	content: "";
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 0.32rem rgba(201, 223, 74, 0.18);
}

.downloads-hero h1 {
	max-width: 720px;
	color: #fff;
	font-size: clamp(2.15rem, 4.6vw, 3.65rem);
}

.downloads-hero p {
	max-width: 760px;
	color: rgba(255, 255, 255, 0.8);
}

.downloads-hero__lead {
	margin-bottom: 0.55rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(1rem, 1.7vw, 1.14rem);
	line-height: 1.65;
}

.downloads-listing {
	padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
}

.downloads-listing > .container {
	width: min(100% - 2rem, 1240px);
}

.downloads-filters {
	position: relative;
	z-index: 3;
	margin-top: clamp(-4.2rem, -5vw, -2.25rem);
	margin-bottom: clamp(2rem, 5vw, 3.4rem);
	padding: clamp(1rem, 2.4vw, 1.35rem);
	border: 1px solid rgba(23, 61, 43, 0.12);
	border-radius: 24px;
	background: rgba(255, 253, 247, 0.96);
	box-shadow: 0 24px 70px rgba(23, 61, 43, 0.14);
	backdrop-filter: blur(14px);
}

.downloads-filters__form {
	display: grid;
	grid-template-columns: minmax(240px, 1.35fr) minmax(180px, 0.7fr) minmax(160px, 0.6fr) auto;
	gap: 0.85rem;
	align-items: end;
}

.downloads-field {
	display: grid;
	gap: 0.42rem;
	min-width: 0;
}

.downloads-field label {
	color: var(--color-green-dark);
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.2;
}

.downloads-field input,
.downloads-field select {
	width: 100%;
	min-height: 52px;
	padding: 0.85rem 0.95rem;
	border: 1px solid rgba(23, 61, 43, 0.16);
	border-radius: 14px;
	background: #fff;
	color: var(--color-text);
	box-shadow: 0 8px 20px rgba(23, 61, 43, 0.04);
}

.downloads-field input::placeholder {
	color: rgba(100, 112, 100, 0.76);
}

.downloads-field select {
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--color-green-dark) 50%),
		linear-gradient(135deg, var(--color-green-dark) 50%, transparent 50%);
	background-position:
		calc(100% - 19px) 52%,
		calc(100% - 13px) 52%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 2.4rem;
}

.downloads-filters__actions {
	display: flex;
	gap: 0.65rem;
	align-items: end;
}

.downloads-filters__submit,
.downloads-filters__clear {
	min-height: 52px;
	white-space: nowrap;
}

.downloads-listing__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.downloads-listing__label {
	margin-bottom: 0.65rem;
	color: var(--color-earth);
}

.downloads-listing__header h2 {
	margin-bottom: 0;
	font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.downloads-listing__header p {
	margin: 0 0 0.25rem;
	color: var(--color-muted);
	font-weight: 700;
	white-space: nowrap;
}

.materials-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.6vw, 2rem);
}

.material-card {
	position: relative;
	display: flex;
	overflow: hidden;
	min-width: 0;
	min-height: 100%;
	border: 1px solid rgba(23, 61, 43, 0.12);
	border-radius: 20px;
	flex-direction: column;
	background: var(--color-surface);
	box-shadow: 0 18px 45px rgba(23, 61, 43, 0.08);
	cursor: pointer;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.material-card:hover,
.material-card:focus-within,
.material-card:focus-visible {
	border-color: rgba(47, 172, 104, 0.32);
	box-shadow: 0 26px 64px rgba(23, 61, 43, 0.13);
	transform: translateY(-3px);
}

.material-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	margin: 0;
	background: #edf4e8;
}

.material-card__media img,
.material-modal__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.material-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	min-height: 190px;
	place-items: center;
	background:
		linear-gradient(135deg, rgba(201, 223, 74, 0.28), rgba(119, 190, 203, 0.18)),
		#f5f1e6;
}

.material-placeholder span {
	display: grid;
	width: 4.4rem;
	height: 4.4rem;
	border: 1px solid rgba(23, 61, 43, 0.14);
	border-radius: 50%;
	place-items: center;
	background: rgba(255, 253, 247, 0.82);
	color: var(--color-green-dark);
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 800;
}

.material-card__featured {
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
	padding: 0.38rem 0.62rem;
	border-radius: 999px;
	background: var(--color-lime);
	color: var(--color-green-dark);
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.2;
}

.material-card__body {
	display: grid;
	gap: 0.9rem;
	padding: 1.35rem 1.35rem 0;
}

.material-card__meta,
.material-modal__meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.material-card time,
.material-modal time {
	color: var(--color-muted);
	font-size: 0.84rem;
	font-weight: 700;
}

.material-tag {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0.36rem 0.62rem;
	border: 1px solid rgba(47, 172, 104, 0.18);
	border-radius: 999px;
	background: rgba(47, 172, 104, 0.1);
	color: var(--color-green-dark);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.2;
}

.material-card h3 {
	margin: 0;
	font-size: clamp(1.22rem, 1.6vw, 1.42rem);
	line-height: 1.2;
}

.material-card p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #526052;
	font-size: 0.98rem;
	line-height: 1.68;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.material-card__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin-top: auto;
	padding: 1.25rem 1.35rem 1.35rem;
}

.material-card__actions .button {
	width: 100%;
	min-height: 50px;
	padding-inline: 0.85rem;
	text-align: center;
}

.material-card__actions .button:only-child {
	grid-column: 1 / -1;
}

.material-card__details,
.material-card__download {
	cursor: pointer;
}

.material-modal {
	position: fixed;
	z-index: 1000;
	inset: 0;
	display: grid;
	padding: clamp(0.7rem, 3vw, 2rem);
	place-items: center;
}

.material-modal[hidden] {
	display: none;
}

.material-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 28, 20, 0.72);
	backdrop-filter: blur(6px);
}

.material-modal__panel {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
	grid-template-rows: 1fr auto;
	width: min(100%, 980px);
	max-height: min(88vh, 760px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 24px;
	background: var(--color-surface);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
}

.material-modal__close {
	position: absolute;
	z-index: 10;
	top: 0.85rem;
	right: 0.85rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(23, 61, 43, 0.14);
	border-radius: 50%;
	background: rgba(255, 253, 247, 0.96);
	color: var(--color-green-dark);
	box-shadow: 0 14px 30px rgba(23, 61, 43, 0.12);
	cursor: pointer;
	transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.material-modal__close:hover {
	background: var(--color-green-dark);
	color: #fff;
	transform: scale(1.05);
}

.material-modal__close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.2;
}

.material-modal__scrollable {
	grid-column: 1 / -1;
	grid-row: 1;
	display: grid;
	grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
	height: 100%;
	overflow: hidden;
}

.material-modal__media {
	grid-column: 1;
	min-height: 100%;
	min-width: 0;
	background: #edf4e8;
}

.material-modal__content {
	grid-column: 2;
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
	padding: clamp(1.25rem, 3vw, 2.25rem);
}

.material-modal__content h2 {
	margin: 0.9rem 0 0.8rem;
	font-size: clamp(1.55rem, 3vw, 2.35rem);
	line-height: 1.12;
}

.material-modal__summary {
	margin-bottom: 1.1rem;
	color: #405145;
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.7;
}

.material-modal__description {
	color: var(--color-muted);
}

.material-modal__description :where(p, ul, ol) {
	margin-bottom: 1rem;
}

.material-modal__description :where(ul, ol) {
	padding-left: 1.2rem;
}

.material-modal__actions {
	grid-column: 2;
	grid-row: 2;
	display: flex;
	gap: 12px;
	background: var(--color-surface);
	padding: 1.25rem clamp(1.25rem, 3vw, 2.25rem);
	border-top: 1px solid rgba(23, 61, 43, 0.08);
	box-shadow: 0 -8px 24px rgba(23, 61, 43, 0.03);
	z-index: 2;
}

.material-modal__actions .button {
	flex: 1 1 calc(50% - 6px);
	min-width: 180px;
}

.downloads-empty {
	max-width: 680px;
	padding: clamp(1.4rem, 3vw, 2rem);
	border: 1px solid rgba(23, 61, 43, 0.12);
	border-radius: 22px;
	background: var(--color-surface);
	box-shadow: 0 18px 45px rgba(23, 61, 43, 0.08);
}

.downloads-empty h2 {
	margin-bottom: 0.65rem;
	font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.downloads-empty .button {
	margin-top: 1.1rem;
}

.downloads-page .navigation.pagination {
	margin-top: 2rem;
}

.downloads-page .nav-links {
	display: flex;
	gap: 0.45rem;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.downloads-page .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--color-line);
	border-radius: 999px;
	background: #fff;
	color: var(--color-green-dark);
	font-weight: 800;
}

.downloads-page .page-numbers.current {
	background: var(--color-green-dark);
	color: #fff;
}

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

	.downloads-field--search,
	.downloads-filters__actions {
		grid-column: 1 / -1;
	}

	.downloads-filters__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

	.downloads-listing__header {
		display: grid;
		align-items: start;
	}

	.downloads-listing__header p {
		white-space: normal;
	}

	.material-modal__panel {
		display: flex;
		flex-direction: column;
		width: min(100%, 680px);
		max-height: calc(100dvh - 2rem);
		overflow: hidden;
		border-radius: 24px;
	}

	.material-modal__scrollable {
		display: flex;
		flex-direction: column;
		flex: 1;
		overflow-y: auto;
		min-height: 0;
	}

	.material-modal__media {
		grid-column: auto;
		aspect-ratio: 16 / 9;
		min-height: auto;
		width: 100%;
		flex-shrink: 0;
	}

	.material-modal__content {
		grid-column: auto;
		overflow-y: visible;
		flex: none;
		padding: 1.5rem 1.5rem 0.5rem;
	}

	.material-modal__actions {
		grid-column: auto;
		grid-row: auto;
		width: 100%;
		padding: 1rem 1.5rem;
		background: rgba(255, 253, 247, 0.95);
		backdrop-filter: blur(12px);
		border-top: 1px solid rgba(23, 61, 43, 0.08);
		box-shadow: 0 -10px 24px rgba(23, 61, 43, 0.05);
		z-index: 10;
		flex-shrink: 0;
		margin-top: 0;
		display: flex;
		gap: 12px;
	}

	.material-modal__actions .button {
		flex: 1 1 calc(50% - 6px);
		min-width: auto;
	}
}

@media (max-width: 620px) {
	.downloads-hero {
		margin-top: -90px;
		padding-top: 7.35rem;
		padding-bottom: 2.4rem;
	}

	.downloads-hero h1 {
		font-size: clamp(2rem, 9vw, 2.7rem);
	}

	.downloads-filters {
		border-radius: 18px;
	}

	.downloads-filters__form,
	.downloads-filters__actions,
	.materials-grid {
		grid-template-columns: 1fr;
	}

	.downloads-field input,
	.downloads-field select,
	.downloads-filters__submit,
	.downloads-filters__clear {
		min-height: 54px;
	}

	.material-card {
		border-radius: 18px;
	}

	.material-card__media {
		aspect-ratio: 1.55 / 1;
	}

	.material-card__body {
		padding: 1.18rem 1.08rem 0;
	}

	.material-card__actions {
		grid-template-columns: 1fr;
		padding: 1.05rem 1.08rem 1.15rem;
	}

	.material-modal {
		padding: 0;
		align-items: end;
	}

	.material-modal__panel {
		width: 100%;
		max-height: 96dvh;
		border-radius: 22px 22px 0 0;
	}

	.material-modal__content {
		padding: 1.25rem 1rem 0.5rem;
	}

	.material-modal__actions {
		padding: 0.85rem 1rem 1.25rem;
		display: flex;
		flex-direction: column;
		gap: 8px;
		width: 100%;
		box-shadow: 0 -10px 24px rgba(23, 61, 43, 0.08);
	}

	.material-modal__actions .button {
		width: 100%;
		flex: none;
		margin-top: 0;
	}
}
