.nntbp-project,
.nntbp-standalone-form,
.nntbp-person-facts,
.nntbp-modal {
	--nntbp-accent: #176b5b;
	--nntbp-ink: #17201d;
	--nntbp-muted: #6a746f;
	--nntbp-paper: #f7f3ea;
	--nntbp-line: #ded8cc;
	--nntbp-white: #fff;
	color: var(--nntbp-ink);
	font-family: inherit;
}

.nntbp-project *,
.nntbp-standalone-form *,
.nntbp-person-facts *,
.nntbp-modal * { box-sizing: border-box; }

.nntbp-project { margin: 0 auto; max-width: 1440px; }

.nntbp-hero {
	background:
		radial-gradient(circle at 82% 24%, rgba(255,255,255,.2) 0 3px, transparent 4px),
		linear-gradient(135deg, #113e36, var(--nntbp-accent));
	border-radius: 28px;
	color: #fff;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	margin: 24px 0 26px;
	overflow: hidden;
	padding: clamp(34px, 6vw, 76px);
	position: relative;
}

.nntbp-hero::after {
	border: 1px solid rgba(255,255,255,.24);
	border-radius: 50%;
	content: "";
	height: 390px;
	position: absolute;
	right: -120px;
	top: -160px;
	width: 390px;
}

.nntbp-hero__eyebrow,
.nntbp-section-heading span,
.nntbp-contribute span,
.nntbp-modal__intro > span,
.nntbp-form-intro > span {
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	margin-bottom: 14px;
	text-transform: uppercase;
}

.nntbp-hero h1 {
	color: inherit;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(48px, 8vw, 104px);
	font-weight: 500;
	letter-spacing: -.055em;
	line-height: .9;
	margin: 0 0 24px;
}

.nntbp-hero > p {
	color: rgba(255,255,255,.86);
	font-size: clamp(17px, 2vw, 22px);
	line-height: 1.55;
	margin: 0;
	max-width: 760px;
}

.nntbp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.nntbp-hero__stats {
	align-self: end;
	border-left: 1px solid rgba(255,255,255,.3);
	margin-left: 30px;
	padding-left: 28px;
	position: relative;
	z-index: 1;
}

.nntbp-hero__stats strong { display: block; font-family: Georgia, serif; font-size: 70px; font-weight: 500; line-height: 1; }
.nntbp-hero__stats span { color: rgba(255,255,255,.75); display: block; line-height: 1.4; margin-top: 8px; }

.nntbp-button {
	align-items: center;
	appearance: none;
	border: 1px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 15px;
	font-weight: 750;
	justify-content: center;
	line-height: 1.2;
	min-height: 50px;
	padding: 13px 24px;
	text-decoration: none !important;
	transition: transform .2s ease, background .2s ease, color .2s ease;
}
.nntbp-button:hover { transform: translateY(-2px); }
.nntbp-button--primary { background: var(--nntbp-accent); color: #fff !important; }
.nntbp-hero .nntbp-button--primary { background: #fff; color: var(--nntbp-accent) !important; }
.nntbp-button--ghost { background: transparent; border-color: currentColor; color: inherit !important; }
.nntbp-button--light { background: #fff; color: var(--nntbp-accent) !important; }

.nntbp-toolbar {
	align-items: center;
	background: #fff;
	border: 1px solid var(--nntbp-line);
	border-radius: 18px;
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(220px, 1.45fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
	margin-bottom: 18px;
	padding: 10px;
	position: sticky;
	top: 12px;
	z-index: 25;
}

.nntbp-toolbar input,
.nntbp-toolbar select {
	background: #f7f7f4;
	border: 0;
	border-radius: 12px;
	color: var(--nntbp-ink);
	font: inherit;
	height: 50px;
	margin: 0;
	max-width: none;
	padding: 0 16px;
	width: 100%;
}

.nntbp-reset { background: transparent; border: 0; color: var(--nntbp-accent); cursor: pointer; font: inherit; font-weight: 700; padding: 12px 16px; }

.nntbp-map-shell {
	background: var(--nntbp-paper);
	border: 1px solid var(--nntbp-line);
	border-radius: 24px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	height: min(68vh, 720px);
	min-height: 540px;
	overflow: hidden;
}

.nntbp-map { background: #e9e4da; min-height: 100%; position: relative; }
.nntbp-map__loader { align-items: center; color: var(--nntbp-muted); display: flex; gap: 12px; inset: 0; justify-content: center; position: absolute; }
.nntbp-map__loader span { animation: nntbp-spin 1s linear infinite; border: 2px solid rgba(23,107,91,.2); border-radius: 50%; border-top-color: var(--nntbp-accent); height: 24px; width: 24px; }
.nntbp-map__message { align-items: center; color: var(--nntbp-muted); display: flex; font-size: 17px; inset: 0; justify-content: center; line-height: 1.5; padding: 36px; position: absolute; text-align: center; }

@keyframes nntbp-spin { to { transform: rotate(360deg); } }

.nntbp-map-info { background: #fff; border-left: 1px solid var(--nntbp-line); padding: 32px; }
.nntbp-map-info__top { align-items: baseline; display: flex; justify-content: space-between; }
.nntbp-map-info__top span { color: var(--nntbp-muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nntbp-map-info__top strong { color: var(--nntbp-accent); font-family: Georgia, serif; font-size: 44px; font-weight: 500; }
.nntbp-map-info h2 { font-family: Georgia, serif; font-size: 31px; font-weight: 500; line-height: 1.08; margin: 38px 0 18px; }
.nntbp-map-info p { color: var(--nntbp-muted); line-height: 1.6; }
.nntbp-legend { border-top: 1px solid var(--nntbp-line); list-style: none; margin: 30px 0 0; padding: 22px 0 0; }
.nntbp-legend li { align-items: center; display: flex; font-size: 13px; gap: 10px; margin: 10px 0; }
.nntbp-legend__dot { background: var(--nntbp-accent); border: 4px solid rgba(23,107,91,.18); border-radius: 50%; display: inline-block; height: 15px; width: 15px; }
.nntbp-legend__dot--exact { background: #c48728; border-color: rgba(196,135,40,.2); }

.nntbp-section-heading { align-items: end; display: flex; justify-content: space-between; padding: 72px 0 24px; }
.nntbp-section-heading span { color: var(--nntbp-accent); margin-bottom: 8px; }
.nntbp-section-heading h2 { font-family: Georgia, serif; font-size: clamp(36px, 5vw, 58px); font-weight: 500; letter-spacing: -.035em; margin: 0; }
.nntbp-section-heading p { color: var(--nntbp-muted); }

.nntbp-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nntbp-card { background: #fff; border: 1px solid var(--nntbp-line); border-radius: 20px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.nntbp-card:hover { box-shadow: 0 22px 60px rgba(23,32,29,.1); transform: translateY(-4px); }
.nntbp-card[hidden] { display: none; }
.nntbp-card__visual { background: linear-gradient(145deg, #d9e5df, #e9e0cd); display: block; height: 230px; overflow: hidden; position: relative; text-decoration: none; }
.nntbp-card__visual img { height: 100%; object-fit: cover; width: 100%; }
.nntbp-card__placeholder { align-items: center; color: rgba(23,107,91,.78); display: flex; font-family: Georgia, serif; font-size: 76px; height: 100%; justify-content: center; letter-spacing: -.06em; }
.nntbp-card__years { background: rgba(255,255,255,.94); border-radius: 999px; bottom: 14px; color: var(--nntbp-ink); font-size: 13px; font-weight: 800; left: 14px; padding: 8px 12px; position: absolute; }
.nntbp-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.nntbp-card__meta { color: var(--nntbp-accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; min-height: 17px; text-transform: uppercase; }
.nntbp-card h3 { font-family: Georgia, serif; font-size: 29px; font-weight: 500; line-height: 1.05; margin: 10px 0 12px; }
.nntbp-card h3 a { color: inherit; text-decoration: none; }
.nntbp-card__place { align-items: center; color: var(--nntbp-muted); display: flex; font-size: 14px; gap: 6px; margin: 0 0 15px; }
.nntbp-card__excerpt { color: #4f5a55; font-size: 15px; line-height: 1.55; margin: 0 0 22px; }
.nntbp-card__footer { align-items: center; border-top: 1px solid var(--nntbp-line); display: flex; gap: 12px; justify-content: space-between; margin-top: auto; padding-top: 17px; }
.nntbp-card__footer a { color: var(--nntbp-accent); font-size: 14px; font-weight: 800; text-decoration: none; }
.nntbp-card__footer button { background: none; border: 0; color: var(--nntbp-muted); cursor: pointer; font: inherit; font-size: 12px; padding: 0; text-decoration: underline; }
.nntbp-empty { background: var(--nntbp-paper); border-radius: 18px; color: var(--nntbp-muted); padding: 48px; text-align: center; }

.nntbp-contribute { align-items: center; background: var(--nntbp-accent); border-radius: 24px; color: #fff; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) auto; margin-top: 70px; padding: clamp(32px, 5vw, 62px); }
.nntbp-contribute h2 { color: inherit; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1; margin: 0 0 16px; }
.nntbp-contribute p { color: rgba(255,255,255,.8); line-height: 1.55; margin: 0; max-width: 760px; }

.nntbp-modal[hidden] { display: none; }
.nntbp-modal { inset: 0; overflow-y: auto; padding: 24px; position: fixed; z-index: 999999; }
.nntbp-modal__backdrop { background: rgba(10,19,16,.7); inset: 0; position: fixed; }
.nntbp-modal__dialog { background: #fff; border-radius: 22px; box-shadow: 0 28px 100px rgba(0,0,0,.3); margin: 4vh auto; max-width: 680px; padding: clamp(26px, 5vw, 48px); position: relative; z-index: 1; }
.nntbp-modal__dialog--wide { max-width: 840px; }
.nntbp-modal__close { background: #f1f2ef; border: 0; border-radius: 50%; color: var(--nntbp-ink); cursor: pointer; font: 28px/1 Arial, sans-serif; height: 42px; position: absolute; right: 18px; top: 18px; width: 42px; }
.nntbp-modal__intro { padding-right: 48px; }
.nntbp-modal__intro > span,
.nntbp-form-intro > span { color: var(--nntbp-accent); }
.nntbp-modal__intro h2,
.nntbp-form-intro h1 { font-family: Georgia, serif; font-size: clamp(34px, 5vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1; margin: 0 0 14px; }
.nntbp-modal__intro p,
.nntbp-form-intro p { color: var(--nntbp-muted); line-height: 1.55; margin-bottom: 28px; }

.nntbp-form { display: grid; gap: 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nntbp-form label > span { display: block; font-size: 13px; font-weight: 750; margin-bottom: 7px; }
.nntbp-form input[type="text"],
.nntbp-form input[type="email"],
.nntbp-form input[type="url"],
.nntbp-form textarea {
	background: #f7f7f4;
	border: 1px solid #dde0dc;
	border-radius: 10px;
	color: var(--nntbp-ink);
	font: inherit;
	margin: 0;
	max-width: none;
	padding: 13px 14px;
	width: 100%;
}
.nntbp-form textarea { line-height: 1.5; resize: vertical; }
.nntbp-form input:focus,
.nntbp-form textarea:focus { border-color: var(--nntbp-accent); box-shadow: 0 0 0 3px rgba(23,107,91,.12); outline: none; }
.nntbp-form__wide { grid-column: 1 / -1; }
.nntbp-checkbox { align-items: flex-start; display: flex; gap: 9px; }
.nntbp-checkbox input { margin-top: 4px; }
.nntbp-checkbox span { color: var(--nntbp-muted); font-weight: 500 !important; line-height: 1.45; }
.nntbp-form__result { border-radius: 10px; display: none; line-height: 1.45; padding: 12px 14px; }
.nntbp-form__result.is-visible { display: block; }
.nntbp-form__result.is-success { background: #e8f5ee; color: #155b41; }
.nntbp-form__result.is-error { background: #fff0ed; color: #9b3226; }
.nntbp-hp { left: -10000px; position: absolute; }
.nntbp-standalone-form { background: #fff; border: 1px solid var(--nntbp-line); border-radius: 24px; margin: 28px auto; max-width: 920px; padding: clamp(28px, 6vw, 68px); }

.nntbp-person-facts { background: var(--nntbp-paper); border-left: 4px solid var(--nntbp-accent); border-radius: 4px 16px 16px 4px; margin: 36px 0; padding: clamp(22px, 4vw, 36px); }
.nntbp-person-facts__grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }
.nntbp-person-facts__grid div { background: #fff; border: 1px solid var(--nntbp-line); border-radius: 12px; padding: 16px; }
.nntbp-person-facts__grid span { color: var(--nntbp-muted); display: block; font-size: 12px; margin-bottom: 7px; text-transform: uppercase; }
.nntbp-person-facts__grid strong { font-size: 16px; }
.nntbp-image-credit { color: var(--nntbp-muted); font-size: 13px; line-height: 1.55; }
.nntbp-image-credit a { color: inherit; text-decoration: underline; }
.nntbp-verified { color: var(--nntbp-accent); font-weight: 700; }

.nntbp-balloon { font-family: Arial, sans-serif; max-width: 260px; padding: 4px; }
.nntbp-balloon__years { color: #176b5b; font-size: 12px; font-weight: 700; }
.nntbp-balloon h3 { font-family: Georgia, serif; font-size: 22px; line-height: 1.05; margin: 6px 0 8px; }
.nntbp-balloon p { color: #59635e; margin: 5px 0 12px; }
.nntbp-balloon a { color: #176b5b; font-weight: 700; }

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

/* На автоматически созданной странице заголовок уже находится внутри спецпроекта. */
.nntbp-map-page .entry-header > .entry-title,
.nntbp-map-page .page-header > .page-title,
.nntbp-submit-page .entry-header > .entry-title,
.nntbp-submit-page .page-header > .page-title { display: none; }

@media (max-width: 1024px) {
	.nntbp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nntbp-map-shell { grid-template-columns: minmax(0, 1fr) 280px; }
	.nntbp-map-info { padding: 24px; }
	.nntbp-toolbar { grid-template-columns: 1fr 1fr; position: static; }
}

@media (max-width: 720px) {
	.nntbp-hero { border-radius: 18px; display: block; padding: 34px 24px; }
	.nntbp-hero h1 { font-size: 54px; }
	.nntbp-hero__stats { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); margin: 34px 0 0; padding: 24px 0 0; }
	.nntbp-hero__stats strong { font-size: 48px; }
	.nntbp-toolbar { grid-template-columns: 1fr; }
	.nntbp-map-shell { display: block; height: auto; min-height: 0; }
	.nntbp-map { height: 480px; min-height: 480px; }
	.nntbp-map-info { border-left: 0; border-top: 1px solid var(--nntbp-line); }
	.nntbp-map-info h2 { margin-top: 20px; }
	.nntbp-grid { grid-template-columns: 1fr; }
	.nntbp-section-heading { align-items: start; display: block; padding-top: 52px; }
	.nntbp-contribute { display: block; }
	.nntbp-contribute__actions { margin-top: 24px; }
	.nntbp-form { grid-template-columns: 1fr; }
	.nntbp-form label { grid-column: 1; }
	.nntbp-person-facts__grid { grid-template-columns: 1fr; }
	.nntbp-modal { padding: 10px; }
	.nntbp-modal__dialog { border-radius: 16px; margin: 1vh auto; padding: 28px 20px; }
	.nntbp-modal__intro { padding-right: 35px; }
}
