:root {
	--green: #244b3d;
	--green-2: #3d6b58;
	--green-soft: #e6eee9;
	--brown: #8b664d;
	--cream: #f7f4ee;
	--paper: #fffdf9;
	--line: #ddd4c8;
	--text: #24312c;
	--muted: #68736e;
	--shadow: 0 18px 45px rgba(35,52,44,.12);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}



body.modal-open {
	overflow: hidden;
}

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

button,input,textarea {
	font: inherit;
}

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

.top {
	background: #1f4035;
	color: #fff;
	padding: 9px 4vw;
	font-size: 13px;
	display: flex;
	justify-content: space-between;
	gap: 20px;
}




.main main {
	min-height: 70vh;
	line-height: 1.35 !important;
}

.section {
	max-width: 1280px;
	margin: 88px auto;
	padding: 0 22px;
}

.section.compact {
	margin-top: 56px;
}

.section-head {
	max-width: 800px;
	margin-bottom: 34px;
}

.section-head.center {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.eyebrow {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .18em;
	color: var(--brown);
	font-weight: 700;
}


.main main h1 {
	font-size: 56px;
	color: var(--green);
	line-height: 1.35 !important;
}

.main main h2 {
	font-size: 42px;
	color: var(--green);
	line-height: 1.35 !important;
}
.main main h2.h2-white{
	
	color: white;
}
.main main h3 {
	color: var(--green);
	line-height: 1.35 !important;
}

.lead {
	font-size: 19px;
	color: #59645f;
}

.section-head h2 {
	margin: 10px 0 16px;
}

.section-head p {
	color: var(--muted);
	font-size: 18px;
	margin: 0;
}

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

.hero {
	max-width: 1280px;
	margin: 28px auto 0;
	padding: 0 22px;
	display: grid;
	grid-template-columns: 1.02fr 1fr;
	min-height: 590px;
}

.hero-copy {
	background: var(--paper);
	padding: 68px 62px;
	border-radius: 28px 0 0 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero-copy h1 {
	margin: 17px 0 24px;
}

.hero-img {
	border-radius: 0 28px 28px 0;
	overflow: hidden;
	min-height: 590px;
	background: #e9e6df;
}

.hero-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 30px;
}

.btn {
	border: 0;
	border-radius: 999px;
	padding: 15px 24px;
	cursor: pointer;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: .2s;
}

.btn-primary {
	background: var(--green);
	color: white;
}

.btn-primary:hover {
	background: var(--green-2);
	transform: translateY(-1px);
}

.btn-outline {
	background: transparent;
	color: var(--green);
	border: 1px solid var(--green);
}

.btn-light {
	background: white;
	color: var(--green);
}

.features {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 18px;
}

.card {
	background: var(--paper);
	border: 1px solid #e8e0d5;
	border-radius: 22px;
	padding: 28px;
	box-shadow: 0 8px 25px rgba(44,59,51,.05);
}

.icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--green-soft);
	font-size: 22px;
	margin-bottom: 18px;
}

.card h3 {
	font-size: 22px;
	margin-bottom: 10px;
}

.card p {
	color: var(--muted);
	margin: 0;
}

.band {
	background: var(--green);
	color: white;
	border-radius: 30px;
	padding: 44px;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 30px;
}

.band h2 {
	font-size: 38px;
	color: white;
}

.band p {
	max-width: 790px;
	color: #e1ebe6;
	margin-bottom: 0;
}

.rooms {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 18px;
}

.room-card {
	position: relative;
	min-height: 310px;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: var(--shadow);
	background: #d7ddd8;
}

.room-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
	transition: .35s;
}

.room-card:hover img {
	transform: scale(1.04);
}

.room-card:after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 30%,rgba(22,40,33,.92));
}

.room-info {
	position: absolute;
	z-index: 2;
	left: 22px;
	right: 22px;
	bottom: 20px;
	color: white;
}

.room-info h3 {
	font-size: 25px;
	color: white !important;
	margin-bottom: 6px;
}

.room-info span {
	font-size: 14px;
	opacity: .9;
}

.room-arrow {
	display: inline-flex;
	margin-top: 13px;
	font-weight: 700;
}

.wide {
	grid-column: span 2;
}

.steps {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 16px;
}

.step {
	padding: 24px;
	border-top: 3px solid var(--brown);
	background: var(--paper);
	border-radius: 0 0 20px 20px;
}

.num {
	font-family: Georgia,serif;
	font-size: 34px;
	color: var(--brown);
}

.docs-shell {
	background: linear-gradient(145deg,#f0eadf 0%,#f8f5ef 55%,#edf3ef 100%);
	border: 1px solid #e1d7ca;
	border-radius: 30px;
	padding: 46px;
}

.doc-grid {
	display: grid;
	grid-template-columns: repeat(2,1fr);
	gap: 20px;
	margin-top: 26px;
}

.doc-card {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 22px;
	background: rgba(255,255,255,.82);
	border: 1px solid #e5ddd2;
	border-radius: 22px;
	padding: 20px;
	align-items: center;
}

.doc-cover {
	aspect-ratio: 3/4;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 10px;
	display: grid;
	place-items: center;
	font-family: Georgia,serif;
	color: var(--green);
	text-align: center;
	padding: 12px;
	box-shadow: 0 7px 20px rgba(35,52,44,.1);
}

.doc-card h3 {
	font-size: 22px;
	margin-bottom: 8px;
}

.doc-card p {
	color: var(--muted);
	margin: 0 0 15px;
}

.doc-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.doc-actions a,.doc-actions button {
	border: 0;
	background: none;
	color: var(--green);
	font-weight: 700;
	cursor: pointer;
	padding: 0;
}

.doc-actions a:hover,.doc-actions button:hover {
	text-decoration: underline;
}

.cta {
	background: #efe8dc;
	border-radius: 30px;
	padding: 56px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.cta h2 {
	font-size: 42px;
}

.cta p {
	color: var(--muted);
}

form {
	display: grid;
	gap: 13px;
}

input,textarea {
	width: 100%;
	border: 1px solid #d8cdbf;
	border-radius: 14px;
	padding: 14px 16px;
	background: white;
}

textarea {
	min-height: 95px;
	resize: vertical;
}

.small {
	font-size: 12px;
	color: var(--muted);
}
/* Category pages */
.category-hero {
	max-width: 1280px;
	margin: 28px auto 0;
	padding: 0 22px;
}

.crumbs {
	font-size: 13px;
	color: var(--muted);
	margin: 18px 0;
}

.crumbs a {
	color: var(--green);
}

.category-hero-grid {
	display: grid;
	grid-template-columns: .92fr 1.18fr;
	min-height: 520px;
}

.category-copy {
	background: var(--paper);
	padding: 40px;
	border-radius: 28px 0 0 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.category-copy h1 {
	margin: 16px 0 22px;
}

.category-media {
	position: relative;
	border-radius: 0 28px 28px 0;
	overflow: hidden;
	background: #e5e7e3;
}

.category-media img {
	width: 100%;
	height: 100%;
	min-height: 520px;
	object-fit: cover;
}

.photo-label {
	position: absolute;
	right: 18px;
	bottom: 18px;
	background: rgba(27,55,46,.87);
	color: white;
	border-radius: 999px;
	padding: 9px 14px;
	font-size: 12px;
}

.quick-list {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 14px;
}

.quick-item {
	background: var(--paper);
	border: 1px solid #e8e0d5;
	border-radius: 18px;
	padding: 22px;
}

.quick-item b {
	color: var(--green);
	display: block;
	margin-bottom: 7px;
}

.quick-item span {
	color: var(--muted);
	font-size: 14px;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 20px;
}

.project-card {
	background: var(--paper);
	border: 1px solid #e5ddd2;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(35,52,44,.08);
	cursor: pointer;
	transition: .25s;
}

.project-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.project-photo {
	height: 310px;
	background: #e7e7e3;
	overflow: hidden;
	position: relative;
}

.project-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: .35s;
}

.project-card:hover .project-photo img {
	transform: scale(1.035);
}

.project-photo:after {
	content: 'Открыть фото';
	position: absolute;
	right: 14px;
	bottom: 14px;
	background: rgba(31,64,53,.9);
	color: white;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 12px;
	opacity: 0;
	transition: .2s;
}

.project-card:hover .project-photo:after {
	opacity: 1;
}

.project-body {
	padding: 20px;
}

.project-tag {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--brown);
	font-weight: 700;
}

.project-body h3 {
	font-size: 22px;
	margin: 8px 0;
}

.project-body p {
	color: var(--muted);
	margin: 0;
	font-size: 14px;
}

.project-card.featured {
	grid-column: span 2;
}

.project-card.featured .project-photo {
	height: 410px;
}

.page-nav {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 14px;
}

.page-nav a {
	background: var(--paper);
	border: 1px solid #e5ddd2;
	border-radius: 18px;
	padding: 18px;
	color: var(--green);
	font-weight: 700;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.page-nav a:hover {
	border-color: var(--green);
	background: var(--green-soft);
}
.main section{
	padding: 0 !important;
	
}

.modal-custom {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(16,28,23,.72);
	padding: 20px;
	align-items: center;
	justify-content: center;
}

.modal-custom.open {
	display: flex;
}

.modal-box {
	background: white;
	border-radius: 24px;
	padding: 30px;
	max-width: 540px;
	width: 100%;
	position: relative;
	max-height: 92vh;
	overflow: auto;
}

.close {
	position: absolute;
	right: 16px;
	top: 12px;
	border: 0;
	background: none;
	font-size: 28px;
	cursor: pointer;
	color: var(--green);
}

.lightbox-box {
	width: min(1100px,96vw);
	max-height: 92vh;
	background: #101713;
	border-radius: 22px;
	overflow: hidden;
	position: relative;
	display: grid;
	grid-template-rows: minmax(0,1fr) auto;
}

.lightbox-box img {
	width: 100%;
	height: 100%;
	max-height: 78vh;
	object-fit: contain;
	background: #101713;
}

.lightbox-caption {
	background: white;
	padding: 18px 24px;
}

.lightbox-caption h3 {
	font-size: 24px;
}

.lightbox-caption p {
	margin: 6px 0 0;
	color: var(--muted);
}

.lightbox-close {
	position: absolute;
	right: 14px;
	top: 12px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	background: rgba(255,255,255,.92);
	font-size: 26px;
	cursor: pointer;
	z-index: 2;
}

.pdf-box {
	width: min(1150px,96vw);
	height: 92vh;
	background: white;
	border-radius: 20px;
	overflow: hidden;
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr;
}

.pdf-head {
	padding: 15px 62px 15px 20px;
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.pdf-head h3 {
	font-size: 20px;
}

.pdf-head a {
	font-size: 13px;
	color: var(--green);
	font-weight: 700;
}

.pdf-box iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

@media(max-width:1050px) {
	.navlinks {
		display: none;
	}

	.menu-button {
		display: block;
		margin-left: auto;
	}

	.phone {
		display: none;
	}

	.nav.mobile-open .navlinks {
		display: flex;
		position: absolute;
		left: 20px;
		right: 20px;
		top: 72px;
		background: var(--paper);
		padding: 18px;
		border-radius: 16px;
		box-shadow: var(--shadow);
		flex-direction: column;
	}

	.hero,.category-hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-copy,.category-copy {
		border-radius: 24px 24px 0 0;
		padding: 48px 34px;
	}

	.hero-img,.category-media {
		border-radius: 0 0 24px 24px;
		min-height: 420px;
	}

	.features {
		grid-template-columns: repeat(2,1fr);
	}

	.rooms {
		grid-template-columns: repeat(2,1fr);
	}

	.quick-list {
		grid-template-columns: repeat(2,1fr);
	}

	.project-grid {
		grid-template-columns: repeat(2,1fr);
	}

	.project-card.featured {
		grid-column: span 1;
	}

	.steps {
		grid-template-columns: repeat(2,1fr);
	}

	.cta {
		grid-template-columns: 1fr;
	}

	.page-nav {
		grid-template-columns: repeat(2,1fr);
	}
}

@media(max-width:680px) {
	.top {
		display: none;
	}

	.main main h1 {
		font-size: 40px;
	}

	.main main h2,.cta h2 {
		font-size: 34px;
	}

	.section {
		margin-top: 64px;
	}

	.features,.rooms,.quick-list,.project-grid,.steps,.doc-grid,.page-nav {
		grid-template-columns: 1fr;
	}

	.wide {
		grid-column: span 1;
	}

	.hero-copy,.category-copy {
		padding: 38px 24px;
	}

	.hero-img {
		min-height: 340px;
	}

	.category-media img {
		min-height: 350px;
	}

	.band {
		grid-template-columns: 1fr;
		padding: 30px;
	}

	.cta,.docs-shell {
		padding: 30px;
	}

	.doc-card {
		grid-template-columns: 82px 1fr;
	}

	.project-photo,.project-card.featured .project-photo {
		height: 300px;
	}

	.footer-inner {
		grid-template-columns: 1fr;
	}

	.category-hero {
		padding: 0 14px;
	}

	.hero {
		padding: 0 14px;
	}

	.section {
		padding: 0 14px;
	}

	.pdf-head {
		padding-left: 16px;
	}

	.pdf-head h3 {
		font-size: 16px;
	}
}

/* Project galleries with multi-image carousel */
body.modal-open {
	overflow: hidden;
}

.project-photo:after {
	content: 'Открыть галерею';
}

.gallery-badge {
	position: absolute;
	left: 14px;
	top: 14px;
	z-index: 2;
	background: rgba(255,253,249,.94);
	color: var(--green);
	border: 1px solid rgba(36,75,61,.15);
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 8px 24px rgba(24,46,38,.12);
}

.project-gallery-link {
	display: inline-flex;
	margin-top: 16px;
	color: var(--green);
	font-weight: 700;
	font-size: 14px;
	align-items: center;
	gap: 7px;
}

.project-card:hover .project-gallery-link {
	text-decoration: underline;
}

.gallery-modal {
	width: min(1260px,97vw);
	height: min(900px,94vh);
	background: var(--paper);
	border-radius: 26px;
	overflow: hidden;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0,1.7fr) minmax(330px,.75fr);
	box-shadow: 0 30px 100px rgba(0,0,0,.32);
}

.gallery-close {
	position: absolute;
	right: 14px;
	top: 12px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: rgba(255,255,255,.94);
	color: var(--green);
	font-size: 29px;
	line-height: 1;
	cursor: pointer;
	z-index: 8;
	box-shadow: 0 7px 24px rgba(0,0,0,.16);
}

.gallery-stage {
	position: relative;
	min-width: 0;
	min-height: 0;
	background: #101713;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.gallery-stage>img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #101713;
	cursor: zoom-in;
	user-select: none;
	-webkit-user-drag: none;
}

.gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.9);
	color: var(--green);
	font-size: 38px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 28px rgba(0,0,0,.2);
	transition: .2s;
}

.gallery-arrow:hover {
	background: white;
	transform: translateY(-50%) scale(1.05);
}

.gallery-arrow[hidden] {
	display: none;
}

.gallery-prev {
	left: 18px;
}

.gallery-next {
	right: 18px;
}

.gallery-counter {
	position: absolute;
	left: 18px;
	bottom: 17px;
	z-index: 5;
	background: rgba(20,33,27,.82);
	color: white;
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 700;
	backdrop-filter: blur(8px);
}

.gallery-loading {
	position: absolute;
	inset: 0;
	z-index: 6;
	background: rgba(13,23,19,.72);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 13px;
	color: white;
	text-align: center;
	padding: 30px;
	font-size: 14px;
	transition: .2s;
}

.gallery-loading.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.gallery-spinner {
	width: 34px;
	height: 34px;
	border: 3px solid rgba(255,255,255,.3);
	border-top-color: white;
	border-radius: 50%;
	animation: gallery-spin .8s linear infinite;
}

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

.gallery-panel {
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 38px 30px 28px;
	overflow: auto;
	background: var(--paper);
}

.gallery-panel h3 {
	font-size: 30px;
	color: var(--green);
	margin: 10px 0 12px;
}

.gallery-panel p {
	color: var(--muted);
	margin: 0;
}

.gallery-status {
	font-size: 12px!important;
	margin-top: 13px!important;
	padding: 10px 12px;
	background: var(--green-soft);
	border-radius: 12px;
	color: #607069!important;
}

.gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 8px;
	margin: 24px 0;
	align-content: start;
}

.gallery-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 11px;
	overflow: hidden;
	background: #e6e8e5;
	cursor: pointer;
	aspect-ratio: 1/1;
	transition: .18s;
}

.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gallery-thumb:hover {
	transform: translateY(-2px);
}

.gallery-thumb.active {
	border-color: var(--green);
	box-shadow: 0 0 0 2px rgba(36,75,61,.12);
}

.gallery-actions {
	margin-top: auto;
	display: grid;
	gap: 11px;
}

.gallery-source {
	color: var(--green);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	padding: 8px;
}

.gallery-source:hover {
	text-decoration: underline;
}

.gallery-source.is-hidden {
	display: none;
}

@media(max-width:950px) {
	.gallery-modal {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(350px,58vh) minmax(0,1fr);
		height: 96vh;
	}

	.gallery-panel {
		padding: 25px 24px;
	}

	.gallery-thumbs {
		grid-template-columns: repeat(6,74px);
		overflow-x: auto;
		display: flex;
		padding-bottom: 5px;
	}

	.gallery-thumb {
		width: 72px;
		min-width: 72px;
	}

	.gallery-panel h3 {
		font-size: 26px;
	}
}

@media(max-width:620px) {
	.gallery-modal {
		width: 100vw;
		height: 100vh;
		max-height: none;
		border-radius: 0;
		grid-template-rows: 52vh minmax(0,1fr);
	}

	.modal-custom {
		padding: 0;
	}

	.gallery-close {
		right: 10px;
		top: 10px;
	}

	.gallery-arrow {
		width: 42px;
		height: 42px;
		font-size: 32px;
	}

	.gallery-prev {
		left: 10px;
	}

	.gallery-next {
		right: 10px;
	}

	.gallery-panel {
		padding: 22px 18px 20px;
	}

	.gallery-panel h3 {
		font-size: 24px;
	}

	.gallery-status {
		font-size: 11px!important;
	}

	.gallery-thumbs {
		margin: 17px 0;
	}

	.gallery-actions .btn {
		justify-content: center;
	}
}

.project-card[data-gallery-warm="loading"] .gallery-badge {
	opacity: .82;
}

.project-card[data-gallery-warm="ready"] .gallery-badge {
	background: rgba(230,238,233,.96);
	border-color: rgba(36,75,61,.28);
}

.gallery-actions:has(.btn:only-child) {
	grid-template-columns: 1fr;
}

.project-photo.photo-unavailable {
	background: linear-gradient(135deg,#e8eee9,#f4efe6);
	display: grid;
	place-items: center;
}

.project-photo.photo-unavailable::before {
	content: 'Фотография проекта';
	font-family: Georgia,serif;
	color: var(--green);
	font-size: 20px;
	text-align: center;
	padding: 24px;
}

.project-card[data-gallery-warm="loading"] .gallery-badge {
	background: rgba(255,253,249,.92);
}

.project-card[data-gallery-warm="ready"] .gallery-badge {
	background: rgba(229,238,232,.96);
	color: var(--green);
}

.gallery-actions {
	grid-template-columns: 1fr;
}