@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

body {
	font-family: 'Source Sans 3', sans-serif;
	overflow-x: hidden;
}

html {
	scroll-behavior: smooth;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	width: 100%;
}

.title-container {

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;

	h3 {
		color: rgba(200, 16, 46, 1);
		font-size: 32px;
		font-weight: 600;
		line-height: 1.5;
	}

	.title-container-icons {
		display: flex;
		align-items: center;
		gap: 16px;
}
}
main {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	position: relative;
	box-sizing: border-box;

	
}

.main-content {	
	min-height: 100vh;
	padding-top: 86px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: relative;

	.main-img {
		position: absolute;
		top: 0;
		left: 0;
		z-index: -1;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	h1 {
		font-size: 56px;
		max-width: 566px;
		font-weight: 700;
		line-height: 1.3;
		color: #000000;
	}

	h2 {
		color: rgba(51, 51, 51, 1);
		font-size: 16px;
		font-weight: 400;
		line-height: 1.5;
		max-width: 566px;
		margin-top: 6px;
	}

	.main-buttons {
		display: flex;
		gap: 12px;
		margin-top: 32px;

		button,
		a {
			width: 118px;
			height: 44px;
			cursor: pointer;
			box-sizing: border-box;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			text-decoration: none;
		}
	}
}

.main-content-2 {
	z-index: 90;
	width: 95%;
	transform: translateY(-80px);
	max-width: 1440px;
	padding: 32px;
	background-color: rgba(255, 255, 255, 0.01);
	backdrop-filter: blur(32px);
	border: 1px rgba(232, 240, 254, 1) solid;
	border-radius: 4px;
	display: flex;
	gap: 16px;
	margin: 0 auto;
	align-items: center;
}

.main-content-2-item {
	flex: 1;
	height: 156px;
	background-color: rgba(232, 240, 254, 0.5);
	border-radius: 4px;
	border-left: 2px rgba(26, 58, 107, 1) solid;
	display: flex;
	align-items: center;
	padding: 24px;
	position: relative;

	img {
		width: 50%;
		position: absolute;
		right: 0;
		top: 50%;
		transform: translateY(-50%);
		object-fit: cover;
	}

	.main-content-2-item-text {
		max-width: 60%;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: space-between;

		h4 {
			font-size: 20px;
			font-weight: 400;
			line-height: 1.5;
			color: #000000;
		}

		p {
			font-size: 16px;
			font-weight: 400;
			line-height: 1.5;
			color: #000000;
			opacity: 50%;
			text-wrap: balance;
		}
	}
}



#donate-button {
	background-color: rgba(200, 16, 46, 1);
	border: none;
	color: white;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

#learn-more-button {
	background-color: white;
	border: 1px rgba(200, 16, 46, 1) solid;
	color: rgba(200, 16, 46, 1);
	border-radius: 6px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none;
}

.head-container {
	width: 100%;
	height: 38px;
	display: flex;
	align-items: center;
	background-color: #F7F7F7;
}

.head-item {
	width: 95%;
	max-width: 1440px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.head-item-right-text {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #333333;
}

.head-item-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.head-item-left-text {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #000000;
}

.head-item-left-link {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #1A3A6B;
	text-decoration: none;
	cursor: pointer;
}

.nav-container {
	width: 100%;
	height: 48px;
	background-color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
}

#main,
#missions,
#faq {
	scroll-margin-top: 86px;
}

.nav-item {
	display: flex;
	height: 100%;

	ul {
		display: flex;
		height: 100%;

		li {
			width: 130px;
			height: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
			list-style: none;

			a {
				font-size: 16px;
				font-weight: 400;
				line-height: 1.5;
				color: #333333;
				text-decoration: none;
				text-align: center;
				cursor: pointer;
			}

			&.active {
				background: linear-gradient(180deg, rgba(232, 240, 254, 0) 0%, #E8F0FE 100%);
				border-bottom: 1px rgba(26, 58, 107, 1) solid;
			}
		}
	}
}



.officer-content {
	width: 95%;
	transform: translateY(-48px);
	max-width: 1440px;
	margin: 0 auto;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	background-color: rgba(243, 247, 254, 1);
	padding: 16px 32px;
}

.officer-content-text {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(51, 51, 51, 1);
	text-align: center;
}

.officer-container {
	display: flex;
	align-items: center;
	gap: 8px;
	img {
		width: 42px;
		height: 42px;
		object-fit: cover;
		border-radius: 6px;
	}
}

.officer-name {
	display: flex;
	flex-direction: column;

	p:first-child {
		font-size: 16px;
		font-weight: 400;
		line-height: 1.5;
		color: rgba(26, 58, 107, 1);
	}
	p:last-child {
		font-size: 12px;
		font-weight: 400;
		line-height: 1.5;
		color: rgba(0, 0, 0, 1);
	}
}

.missions-section {
	width: 95%;
	max-width: 1440px;
	margin: 0 auto;
	margin-top: 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 32px;
}
.missions-container-item {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.missions-container {
	display: flex;
	align-items: center;
	position: relative;
	justify-content: start;
	gap: 16px;
	width: 100%;
	padding: 48px 24px;
	border-radius: 4px;
	background-color: rgba(232, 240, 254, 0.5);

	border-left: 2px rgba(26, 58, 107, 1) solid;
}
.missions-container-item-text {
	font-size: 24px;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(0, 0, 0, 1);
}

.missions-container-item-img {
	position: absolute;
	right: 0;
	top:0;
	height: 100%;
}

.donate-button {
	cursor: pointer;
	background-color: rgba(200, 16, 46, 1);
	border: none;
	color: white;
	width: max-content;
	border-radius: 6px;
	font-size: 16px;
	padding: 10px 24px;
	font-weight: 400;
	line-height: 1.5;
}

.missions-container-items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 0 auto;
}
.missions-container-item_nav {
	display: flex;
	flex-direction: column;
	border-radius: 4px;
	border: 1px rgba(26, 58, 107, 1) solid;
	padding: 32px;

	h4 {
		display: flex;
		align-items: center;
		gap: 8px;
		font-size: 24px;
		font-weight: 400;
		line-height: 150%;
		color: rgba(0, 0, 0, 1);
		margin-top: 24px;
		margin-bottom: 9px;
	}

	p {
		margin-top: 16px;
	}
}

.missions-container-item_nav-text {
	color: rgba(200, 16, 46, 1);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.missions-container-item_nav-text-p {
	color: rgba(51, 51, 51, 1);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-wrap: balance;
}

.footer-section {
	/* main — flex column + align-items: center; иначе секция сжимается по контенту и .faq не получает «полную» ширину */
	width: 100%;
	max-width: 100%;
	align-self: stretch;
	margin-top: 108px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 32px;
	box-sizing: border-box;
}

.faq {
	/* Внутри .footer-section тоже align-items: center — без stretch .faq снова сжимается по контенту */
	align-self: stretch;
	width: 95%;
	max-width: 720px;
	margin: 0 auto 80px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	box-sizing: border-box;
}

.faq-item {
	display: block;
	width: 100%;
	min-width: 0;
	border-radius: 6px;
	overflow: hidden;
	background: #F7F7F7;
	border: 1px solid transparent;
	transition:
		background-color 300ms ease,
		border-color 300ms ease;
}

.faq-item[open] {
	background: rgba(232, 240, 254, 0.5);
	border-color: rgba(26, 58, 107, 0.12);
}

.faq-summary {
	width: 100%;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.faq-summary::-webkit-details-marker {
	display: none;
}

.faq-icon {
	display: block;
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	object-fit: contain;
	transform-origin: center center;
	transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] .faq-icon {
	transform: rotate(90deg);
}

/* icon starts rotating back at the beginning of close */
.faq-item[data-closing] .faq-icon {
	transform: rotate(0deg);
}

.faq-question {
	flex: 1 1 auto;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.5;
	color: #000000;
	transition: color 300ms ease;
}

.faq-item[open] .faq-question {
	color: rgba(26, 58, 107, 1);
}

/* question color starts returning at the beginning of close */
.faq-item[data-closing] .faq-question {
	color: #000000;
}

.faq-answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] .faq-answer {
	grid-template-rows: 1fr;
}

.faq-item[data-closing] .faq-answer {
	grid-template-rows: 0fr !important;
}

.faq-answer-inner {
	overflow: hidden;
	/* padding lives here so it doesn't create a gap when row height is 0 */
	padding: 0 20px 0 44px;
	transition: padding-bottom 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] .faq-answer-inner {
	padding-bottom: 18px;
}

.faq-item[data-closing] .faq-answer-inner {
	padding-bottom: 0 !important;
}

.faq-answer p {
	color: rgba(51, 51, 51, 1);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	opacity: 0;
	transform: translateY(-5px);
	transition: opacity 240ms ease 60ms, transform 320ms cubic-bezier(0.4, 0, 0.2, 1) 60ms;
}

.faq-item[open] .faq-answer p {
	opacity: 1;
	transform: translateY(0);
}

.faq-item[data-closing] .faq-answer p {
	opacity: 0 !important;
	transform: translateY(-5px) !important;
	transition-delay: 0ms !important;
}


footer {
	background-color: rgba(26, 58, 107, 1);
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px;
	position: relative;
}

.footer-container-item-img {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	object-fit: cover;
}

.footer-container {
	display: flex;
	width: 95%;
	max-width: 1440px;
	align-items: end;
	justify-content: space-between;
	margin: 0 auto;
}
.footer-container-item {
	display: flex;
	flex-direction: column;
	gap: 32px;

	ul {
		display: flex;
		gap: 32px;
		li {
			list-style: none;
			a {
				font-size: 16px;
				font-weight: 400;
				line-height: 1.5;
				color: #FFFFFF;
				text-decoration: none;
				cursor: pointer;

			}
		}
	}
}

.footer-container-item-text {
	display: flex;
	flex-direction: column;
	color: white;

	h4 {
		font-size: 16px;
		font-weight: 600;
		line-height: 1.5;
	}
	#footer-container-item-text-p {
		font-size: 16px;
		font-weight: 400;
		line-height: 1.5;
		color: rgba(255, 255, 255, 1);
		margin-top: 16px;
		margin-bottom: 32px;
		max-width: 512px;
		text-wrap: balance;
	}

	p {
		font-size: 16px;
		font-weight: 400;
		line-height: 1.5;
		color: rgba(255, 255, 255, 1);
	}
}

.footer-container-item-link {
	color: white;
	font-size: 16px;
	z-index: 100;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   Donate modal
═══════════════════════════════════════════════════════════ */

body.dm-open {
	overflow: hidden;
}

.dm-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 200ms ease;
}

.dm-overlay.dm-overlay--open {
	opacity: 1;
	pointer-events: all;
}

.dm-panel {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	background: #ffffff;
	border-radius: 12px;
	padding: 36px 32px 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	transform: translateY(12px);
	transition: transform 200ms ease;
}

.dm-overlay--open .dm-panel {
	transform: translateY(0);
}

.dm-panel--narrow {
	max-width: 380px;
	text-align: center;
	padding: 40px 32px 36px;
}

.dm-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	color: #666;
	transition: background 140ms ease, color 140ms ease;
}

.dm-close:hover {
	background: rgba(232, 240, 254, 1);
	color: rgba(26, 58, 107, 1);
}

.dm-otp-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(232, 240, 254, 0.6);
	border-radius: 50%;
	color: rgba(26, 58, 107, 1);
}

.dm-title {
	font-size: 22px;
	font-weight: 600;
	color: rgba(26, 58, 107, 1);
	margin-bottom: 6px;
}

.dm-subtitle {
	font-size: 14px;
	color: #666;
	margin-bottom: 24px;
	line-height: 1.5;
}

.dm-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dm-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dm-field--half {
	flex: 1;
	min-width: 0;
}

.dm-row {
	display: flex;
	gap: 12px;
}

.dm-label {
	font-size: 13px;
	font-weight: 500;
	color: rgba(26, 58, 107, 1);
}

.dm-input {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid rgba(232, 240, 254, 1);
	border-radius: 6px;
	font-family: inherit;
	font-size: 15px;
	color: #111;
	background: #f9fafc;
	transition: border-color 150ms ease, box-shadow 150ms ease;
	box-sizing: border-box;
}

.dm-input:focus {
	outline: none;
	border-color: rgba(26, 58, 107, 0.6);
	box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
	background: #fff;
}

.dm-input--otp {
	letter-spacing: 0.35em;
	font-size: 22px;
	text-align: center;
	font-weight: 600;
}

.dm-input--amount {
	font-size: 18px;
	font-weight: 600;
	color: rgba(26, 58, 107, 1);
}

.dm-card-row {
	position: relative;
}

.dm-card-row .dm-input {
	padding-right: 100px;
}

.dm-brands {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 4px;
}

.dm-brands img {
	height: 18px;
	width: auto;
	opacity: 0.75;
}

.dm-select-wrap {
	position: relative;
}

.dm-select {
	width: 100%;
	height: 44px;
	padding: 0 32px 0 12px;
	border: 1px solid rgba(232, 240, 254, 1);
	border-radius: 6px;
	font-family: inherit;
	font-size: 15px;
	color: #111;
	background: #f9fafc;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color 150ms ease;
	box-sizing: border-box;
}

.dm-select:focus {
	outline: none;
	border-color: rgba(26, 58, 107, 0.6);
	box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
	background: #fff;
}

.dm-select-wrap::after {
	content: '';
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #888;
	pointer-events: none;
}

.dm-submit {
	width: 100%;
	height: 48px;
	background: rgba(200, 16, 46, 1);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 4px;
	transition: background 150ms ease, transform 100ms ease;
}

.dm-submit:hover {
	background: rgba(170, 10, 36, 1);
}

.dm-submit:active {
	transform: scale(0.98);
}

.dm-submit:disabled {
	background: #555;
	cursor: not-allowed;
	transform: none;
	opacity: 0.6;
}

.dm-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	color: #999;
	margin-top: -4px;
}

@media (max-width: 1024px) {
	.main-content {
		padding-inline: 24px;

		h1 {
			font-size: 44px;
			max-width: 680px;
		}

		h2 {
			max-width: 640px;
		}
	}

	.main-content-2 {
		flex-direction: column;
		transform: translateY(-48px);
		padding: 24px;
	}

	.main-content-2-item {
		width: 100%;
		min-height: 156px;
	}

	.officer-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		transform: translateY(-24px);
	}

	.missions-container {
		flex-direction: column;
		align-items: flex-start;
		padding: 32px 24px;
	}

	.missions-container-item-img {
		position: static;
		width: min(100%, 420px);
		height: auto;
		align-self: center;
	}

	.missions-container-items {
		grid-template-columns: repeat(2, 1fr);
		width: 100%;
	}

	.footer-container {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.footer-container-item-img {
		opacity: 0.14;
	}
}

@media (max-width: 768px) {
	#main,
	#missions,
	#faq {
		scroll-margin-top: 132px;
	}

	.title-container {
		padding-inline: 16px;

		h3 {
			font-size: 28px;
			text-align: center;
		}
	}

	.head-container {
		height: auto;
		padding: 8px 0;
	}

	.head-item {
		width: calc(100% - 32px);
		align-items: flex-start;
		gap: 8px;
	}

	.head-item-left {
		flex-wrap: wrap;
		gap: 8px;
	}

	.nav-container {
		height: auto;
		padding: 0 16px;
	}

	.nav-item {
		width: 100%;
		overflow-x: visible;

		ul {
			width: 100%;
			min-width: 0;

			li {
				flex: 1;
				width: auto;
			}
		}
	}

	.main-content {
		min-height: auto;
		padding: 146px 20px 120px;

		h1 {
			font-size: 38px;
			max-width: 100%;
		}

		h2 {
			font-size: 15px;
			max-width: 100%;
		}

		.main-buttons {
			width: 100%;
			flex-direction: column;
			align-items: center;

			button,
			a {
				width: min(100%, 280px);
			}
		}
	}

	.main-content-2 {
		width: calc(100% - 32px);
		transform: translateY(-56px);
		padding: 20px;
	}

	.main-content-2-item {
		padding: 20px;
	}

	.officer-content {
		width: calc(100% - 32px);
		padding: 20px;
	}

	.officer-content-text {
		text-align: left;
	}

	.missions-section {
		margin-top: 32px;
		gap: 24px;
	}

	.missions-container-item-text {
		font-size: 20px;
	}

	.missions-container-item_nav {
		padding: 24px;

		h4 {
			font-size: 20px;
		}
	}

	.missions-container-items {
		grid-template-columns: 1fr;
	}

	.faq {
		width: calc(100% - 32px);
		margin-bottom: 56px;
	}

	.faq-summary {
		padding: 16px 18px;
		align-items: flex-start;
	}

	.faq-question {
		font-size: 18px;
	}

	.faq-answer {
		padding: 0 18px 18px 18px;
	}

	footer {
		padding: 28px 20px 72px;
	}

	.footer-container-item {
		gap: 24px;

		ul {
			flex-wrap: wrap;
			gap: 16px 24px;
		}
	}
}

@media (max-width: 480px) {
	#main,
	#missions,
	#faq {
		scroll-margin-top: 156px;
	}

	.head-item {
		width: calc(100% - 24px);
		flex-direction: column;
	}

	.head-item-left-text,
	.head-item-left-link,
	.head-item-right-text {
		font-size: 12px;
	}

	.main-content {
		padding: 168px 16px 104px;

		h1 {
			font-size: 32px;
			line-height: 1.2;
		}
	}

	.main-content-2 {
		width: calc(100% - 24px);
		transform: translateY(-40px);
		padding: 16px;
		gap: 12px;
	}

	.main-content-2-item {
		min-height: 0;
		height: auto;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;

		img {
			position: static;
			width: min(100%, 220px);
			transform: none;
			margin-left: auto;
		}

		.main-content-2-item-text {
			max-width: 100%;
			gap: 8px;
			justify-content: flex-start;
		}
	}

	.officer-content {
		width: calc(100% - 24px);
		transform: translateY(-12px);
		padding: 16px;
	}

	.officer-content-text {
		font-size: 15px;
	}

	.missions-section {
		width: calc(100% - 24px);
	}

	.missions-container {
		padding: 20px 16px;
	}

	.donate-button {
		width: 100%;
	}

	.missions-container-item_nav {
		padding: 20px;

		h4 {
			font-size: 18px;
			margin-top: 18px;
		}
	}

	.faq {
		width: calc(100% - 24px);
	}

	.faq-answer {
		padding: 0 16px 16px 16px;
	}

	.footer-container {
		width: 100%;
	}

	.footer-container-item {
		width: 100%;

		ul {
			flex-direction: column;
			gap: 12px;
		}
	}

	.footer-container-item-link {
		align-self: flex-start;
	}

	.footer-container-item-img {
		width: 180px;
		height: auto;
		top: auto;
		bottom: 0;
		opacity: 0.1;
	}

	.dm-panel,
	.dm-panel--narrow {
		padding: 32px 20px 24px;
	}

	.dm-row {
		flex-direction: column;
	}

	.dm-card-row .dm-input {
		padding-right: 88px;
	}
}