:root {
	--bg: #ffffff;
	--bg-secondary: #f8f9fa;
	--text: #1a1a1a;
	--text-muted: #6c757d;
	--primary: #2c5aa0;
	--primary-dark: #1e3d6f;
	--accent: #ff6b35;
	--border: #e0e0e0;
	--shadow: rgba(0, 0, 0, 0.1);
	--shadow-hover: rgba(0, 0, 0, 0.15);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: auto !important;
	scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
	html {
		overflow-y: scroll;
	}
}

body {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	font-size: 16px;
	margin: 0;
	/* Единый стабильный отступ под фиксированную шапку (70px) для всех страниц */
	padding: 70px 0 0;
}

/* Стабильность рендеринга: подсказки браузеру для анимируемых/часто меняющихся свойств */
.hero-title,
.hero-subtitle,
.section-title,
.content-section {
	will-change: opacity;
}

.project-card {
	will-change: transform, opacity;
}

.project-card-image img {
	will-change: transform;
}

/* Резервируем место под "большие" изображения в контенте, чтобы меньше сдвигалась верстка */
img.content-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--bg-secondary);
}

.container {
	width: min(1200px, calc(100% - 40px));
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	background: rgba(235, 238, 242, 0.98);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
	z-index: 1000;
	box-shadow: 0 2px 10px var(--shadow);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	gap: 24px;
	flex-wrap: nowrap;
}

.header-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	flex: 1;
	min-width: 0;
	justify-content: center;
}

.logo {
	flex-shrink: 0;
}

.logo img {
	height: 50px;
	display: block;
}

.header-contacts {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-shrink: 0;
	white-space: nowrap;
}

.header-phone,
.header-email {
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	transition: color 0.3s ease;
}

.header-phone:hover,
.header-email:hover {
	color: var(--primary);
}

.nav {
	display: flex;
	gap: 20px;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
}

.nav a {
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
	font-size: 13px;
	transition: color 0.3s ease;
	position: relative;
	white-space: nowrap;
}

.nav a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary);
	transition: width 0.3s ease;
}

.nav a:hover {
	color: var(--primary);
}

.nav a:hover::after {
	width: 100%;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 8px;
}

.menu-toggle span {
	width: 24px;
	height: 2px;
	background: var(--text);
	transition: all 0.3s ease;
}

/* Hero (главная страница) */
.home-page .hero {
	/* Фоновое изображение с глубоким синим наложением в стиле минимализма */
	background: #0f2b5a url('../assets/images/hero-background.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-blend-mode: overlay;
	color: white;
	/* Блок с заголовком сразу после шапки, без дополнительных смещений */
	padding: 80px 0 80px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 43, 90, 0.45);
	z-index: 0;
}

.hero-inner {
	position: relative;
	z-index: 1;
	padding-top: 0;
	padding-bottom: 0;
}

/* Для остальных страниц hero не используется, а контент
   опирается на padding-top у body (80px) */

.hero-title {
	font-size: clamp(36px, 6vw, 72px);
	font-weight: 900;
	margin-bottom: 32px;
	letter-spacing: -0.02em;
	line-height: 1.08;
	text-transform: uppercase;
	color: #ffffff;
	padding: 0 20px;
}

.hero-subtitle {
	font-size: clamp(14px, 1.8vw, 20px);
	font-weight: 400;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
	letter-spacing: 0.005em;
	padding: 20px 40px 0;
	max-width: 800px;
	margin: 0 auto;
}

/* Sections */
.section {
	padding: 60px 0;
}

.section-title {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	margin-bottom: 48px;
	text-align: center;
	color: var(--text);
}

/* Projects Grid */
.projects-grid {
	background: var(--bg-secondary);
}

.projects-grid-inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 32px;
}

.project-card {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	/* Приводим к тому же визуальному языку, что и карточки на странице
	   \"Построенные объекты\" — добавляем внутренние отступы и мягкую
	   \"рамку\" из воздуха вокруг контента. */
	padding: 15px 20px;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 4px 12px var(--shadow);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.project-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px var(--shadow-hover);
}

.project-card-image {
	width: 100%;
	height: 240px;
	overflow: hidden;
	background: var(--bg-secondary);
	border-radius: 15px;
}

.project-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
	border-radius: 15px;
}

.project-card:hover .project-card-image img {
	transform: scale(1.1);
}

.project-card-content {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.project-card-content h3 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text);
}

/* Декоративная линия с градиентом под заголовком (как на странице "Построенные объекты") */
.project-card-content h3::after {
	content: '';
	display: block;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, #102d5e 0%, #1f4078 40%, rgba(16,45,94,0.08) 100%);
	margin-top: 12px;
}

.project-card-content p {
	color: var(--text-muted);
	font-size: 14px;
	margin: 0;
}

/* CTA Section */
.cta-section {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	color: white;
}

.cta-box {
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

.cta-box h2 {
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 700;
	margin-bottom: 16px;
}

.cta-box p {
	font-size: 18px;
	opacity: 0.95;
	margin-bottom: 32px;
}

.cta-contacts {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	cursor: pointer;
}

.btn-primary {
	background: var(--primary);
	color: white !important;
	border-color: var(--primary);
}

.btn-primary:hover {
	background: #e55a2a;
	border-color: #e55a2a;
	color: white !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
	background: var(--primary-dark);
	color: white;
	border-color: var(--primary-dark);
}

.btn-secondary:hover {
	background: var(--primary);
	border-color: var(--primary);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.btn-outline {
	background: transparent;
	color: white;
	border-color: white;
}

.btn-outline:hover {
	background: white;
	color: var(--primary);
	transform: translateY(-2px);
}

/* Footer - Simple Modern Style */
.site-footer {
	background: #0f0f0f;
	color: #ffffff;
	padding: 0;
	margin-top: auto;
}

.footer-simple {
	background: #0f0f0f;
	color: #ffffff;
	padding: 24px 0;
	text-align: center;
	font-size: 14px;
}

.footer-simple-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.footer-simple-link {
	color: var(--primary);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
}

.footer-simple-link:hover {
	color: #4a7bc4;
	text-decoration: underline;
}

.footer-simple-copyright {
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1.25fr 1fr 1fr;
	gap: 56px;
	padding-bottom: 48px;
}

.footer-col {
	position: relative;
	min-width: 0;
}

.footer-col + .footer-col {
	padding-left: 48px;
}

.footer-col + .footer-col::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 1px;
	background: rgba(255, 255, 255, 0.14);
}

.footer-heading {
	margin: 0 0 22px;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.footer-address {
	font-size: 14px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.8);
}

.footer-address p {
	margin-bottom: 8px;
}

.footer-address a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

.footer-address a:hover {
	color: white;
	text-decoration: underline;
}

.footer-email {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer-email-icon {
	color: var(--accent);
	display: inline-flex;
}

.footer-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-size: 18px;
	font-weight: 500;
	transition: color 0.25s ease, transform 0.25s ease;
}

.footer-bullet {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--accent);
	flex-shrink: 0;
	line-height: 1;
	transform: translateY(-1px);
}

.footer-link:hover {
	color: #ffffff;
	transform: translateX(2px);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 40px 0;
	text-align: center;
}

.footer-bottom-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.footer-social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
}

.footer-social-link {
	color: rgba(255, 255, 255, 0.65);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.footer-social-link:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-1px);
}

.footer-copyright {
	font-size: 18px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
}

/* Page Content */
.page-header {
	padding: 60px 0 40px;
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border);
}

.page-header h1 {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 700;
	margin-bottom: 16px;
}

.page-content {
	padding: 60px 0;
}

.content-section {
	margin-bottom: 48px;
}

.content-section h2 {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 24px;
	color: var(--text);
	border-bottom: 2px solid var(--primary);
	padding-bottom: 8px;
}

.content-section h3 {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 16px;
	color: var(--text);
}

.content-section p {
	margin-bottom: 16px;
	line-height: 1.8;
}

.content-section ul,
.content-section ol {
	margin-left: 24px;
	margin-bottom: 16px;
}

.content-section li {
	margin-bottom: 8px;
	line-height: 1.8;
}

.content-section a {
	color: var(--primary);
	text-decoration: none;
}

.content-section a:hover {
	text-decoration: underline;
}

/* Tables */
.table-wrapper {
	overflow-x: auto;
	margin: 24px 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px var(--shadow);
}

table th {
	background: var(--primary);
	color: white;
	padding: 12px 16px;
	text-align: left;
	font-weight: 600;
	font-size: 14px;
}

table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	font-size: 14px;
}

table tr:last-child td {
	border-bottom: none;
}

table tr:hover {
	background: var(--bg-secondary);
}

/* Images */
.content-image {
	width: 100%;
	max-width: 900px;
	border-radius: 12px;
	margin: 24px 0;
	box-shadow: 0 4px 12px var(--shadow);
}

/* Компактный layout для страниц проектов */
.project-hero {
	background: white;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	margin-bottom: 40px;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.project-hero-image {
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 20px;
}

.project-hero-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: 10px;
}

.project-hero-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
}

.project-hero-nav .btn {
	width: 100%;
	text-align: center;
	justify-content: center;
	padding: 12px 16px;
	font-size: 14px;
	white-space: nowrap;
	border-radius: 8px;
}

@media (max-width: 768px) {
	.project-hero {
		padding: 16px;
		margin-bottom: 32px;
	}
	
	.project-hero-image {
		margin-bottom: 16px;
	}
	
	.project-hero-nav {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	
	.project-hero-nav .btn {
		padding: 14px 16px;
		font-size: 15px;
	}
}

.image-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	margin: 24px 0;
}

.image-gallery img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.image-gallery img:hover {
	transform: scale(1.05);
}

/* Document Links */
.doc-list {
	list-style: none;
	margin-left: 0;
}

.doc-list li {
	margin-bottom: 12px;
	padding: 12px;
	background: var(--bg-secondary);
	border-radius: 8px;
	border-left: 4px solid var(--primary);
}

.doc-list a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 8px;
}

.doc-list a:hover {
	text-decoration: underline;
}

.doc-list a::before {
	content: '📄';
	margin-right: 4px;
}

/* Выпадающий список документации */
.docs-accordion {
	margin-top: 24px;
}

.docs-accordion summary {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: var(--primary);
	color: white;
	border-radius: 8px;
	font-weight: 600;
	font-size: 18px;
	user-select: none;
	transition: background-color 0.3s ease, transform 0.2s ease;
	list-style: none;
}

.docs-accordion summary::-webkit-details-marker {
	display: none;
}

.docs-accordion summary::marker {
	display: none;
}

.docs-accordion summary::after {
	content: '▼';
	font-size: 14px;
	transition: transform 0.3s ease;
	display: inline-block;
	margin-left: 12px;
}

.docs-accordion[open] summary::after {
	transform: rotate(180deg);
}

.docs-accordion summary:hover {
	background: var(--primary-dark);
	transform: translateY(-1px);
}

.docs-accordion .doc-list {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(20px);
	transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
	            transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
	            padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
	            margin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 0 20px;
	margin: 0;
}

.docs-accordion[open] .doc-list {
	max-height: 2000px;
	opacity: 1;
	transform: translateY(0);
	padding: 20px;
	margin-top: 12px;
	background: var(--bg-secondary);
	border-radius: 8px;
	transition-delay: 0s, 0.1s, 0.1s, 0.1s, 0.1s;
}

/* Стили для ссылок внутри выпадающего списка документации */
.docs-accordion .doc-list a.link {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 8px;
}

.docs-accordion .doc-list a.link:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
	.nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: white;
		flex-direction: column;
		padding: 20px;
		box-shadow: 0 4px 12px var(--shadow);
		border-top: 1px solid var(--border);
		max-height: calc(100vh - 100%);
		overflow-y: auto;
	}

	.nav.active {
		display: flex;
	}

	.nav a {
		padding: 12px 0;
		border-bottom: 1px solid var(--border);
	}

	.nav a:last-child {
		border-bottom: none;
	}

	.menu-toggle {
		display: flex;
	}

	.menu-toggle.active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}

	.menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle.active span:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -6px);
	}

	.header-right {
		display: none;
	}

	.header-right.active {
		display: flex;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: white;
		padding: 20px;
		box-shadow: 0 4px 12px var(--shadow);
		border-top: 1px solid var(--border);
		flex-direction: column;
		align-items: flex-start;
	}

	.header-contacts {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		width: 100%;
	}

	.nav {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: 12px;
	}

	.footer-inner {
		grid-template-columns: 1fr;
	}

	.footer-col + .footer-col {
		padding-left: 0;
	}

	.footer-col + .footer-col::before {
		display: none;
	}

	.projects-grid-inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.section {
		padding: 60px 0;
	}

	.hero {
		padding: 160px 0 120px;
	}

	.hero-inner {
		padding-top: 0;
		padding-bottom: 0;
	}

	.hero-title {
		font-size: clamp(28px, 8vw, 48px);
		letter-spacing: -0.02em;
		margin-bottom: 24px;
		padding: 0 20px;
	}

	.hero-subtitle {
		font-size: clamp(13px, 3.5vw, 18px);
		padding: 16px 30px 0;
	}

	.cta-contacts {
		flex-direction: column;
		width: 100%;
	}

	.cta-contacts .btn {
		width: 100%;
		text-align: center;
	}
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in-up {
	animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center {
	text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.text-muted {
	color: var(--text-muted);
}

.badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	background: var(--accent);
	color: white;
}

.badge-success {
	background: #28a745;
	color: white;
}

/* Стиль для "ДОМ СДАН" */
.status-sold {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	background: #28a745;
	color: white;
	margin: 12px 0 8px 0;
}

/* Стиль для телефонов */
.phone-number {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 2px solid var(--primary);
	border-radius: 8px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
}

.phone-number::before {
	content: '☎';
	font-size: 16px;
	line-height: 1;
}

.badge-info {
	background: var(--primary);
}

/* Lightbox - обычный указатель на миниатюрах */
a[data-lightbox] img,
.gallery-item img,
.gallery-thumb img,
.image-gallery img {
	cursor: pointer !important;
}

/* Lightbox image size constraints */
.lightbox-overlay img {
	min-width: 500px;
	min-height: 350px;
	width: auto;
	height: auto;
}

@media (max-width: 768px) {
	.lightbox-overlay img {
		min-width: 90vw !important;
		min-height: auto !important;
	}
}

@media (max-width: 600px) {
	.lightbox-overlay img {
		min-width: 95vw !important;
		min-height: auto !important;
	}
}

/* Lightbox Mobile Styles */
@media (max-width: 768px) {
	.lightbox-nav {
		width: 44px !important;
		height: 44px !important;
		font-size: 20px !important;
		left: 10px !important;
		right: 10px !important;
		border-radius: 10px !important;
	}

	.lightbox-close {
		top: 10px !important;
		right: 10px !important;
		width: 40px !important;
		height: 40px !important;
		font-size: 20px !important;
		border-radius: 10px !important;
	}

	.lightbox-counter {
		top: 60px !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
		font-size: 12px !important;
	}

	.lightbox-caption {
		font-size: 14px !important;
		margin-top: 10px !important;
		padding: 0 10px !important;
	}

	.lightbox-container {
		max-height: 100vh !important;
	}
}

/* Заголовок страницы */
.page-header-simple {
    padding: 60px 0;
    background: #f8f9fa;
    margin-bottom: 40px;
}

.page-header-simple h1 {
    font-size: 42px;
    font-weight: 900;
    color: #102d5e;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Сетка карточек */
.objects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 50px 30px;
    padding-bottom: 80px;
}

/* Карточка */
.object-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* Область изображения */
.object-image {
    width: 100%;
    height: 260px;
    background: #eee;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    /* For sliding animation */
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.object-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px; /* Дублируем закругление для самой картинки */
    display: block;
    position: absolute; /* Absolute positioning for stacking */
    top: 0;
    left: 0;
    opacity: 1;
    will-change: transform, opacity;
    transition:
        transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        opacity 0.35s ease-in-out;
}

.object-card:hover img {
    transform: scale(1.05);
}

/* Заглушка, если нет фото */
.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: 15px; /* Чтобы заглушка тоже была круглой */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Информация */
.object-info h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text);
    min-height: 46px; /* Чтобы заголовки были в одну линию */
}

.object-info p {
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
    line-height: 1.4;
}

.object-info .date {
    margin-top: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #102d5e;
    font-weight: 700;
}

/* Декоративная линия Лебедева */
.object-info h2::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    /* Более аккуратная, растянутая по всей карточке линия
       с лёгким градиентом в фирменных цветах */
    background: linear-gradient(90deg, #102d5e 0%, #1f4078 40%, rgba(16,45,94,0.08) 100%);
    margin-top: 12px;
}

/* Эффект при наведении на карточки портфолио */
.object-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px var(--shadow-hover);
}

.object-card {
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow);
  border-radius: 16px;
  overflow: hidden;
}

/* Улучшение стилей для изображений в lightbox */
.object-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  display: block;
  position: absolute; /* Absolute positioning for stacking */
  top: 0;
  left: 0;
  opacity: 1;
  will-change: transform, opacity;
  transition:
    transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
    opacity 0.35s ease-in-out;
  cursor: pointer;
}

.object-card:hover .object-image img {
  transform: scale(1.05);
}

/* --- Expandable 'Подробнее' (site-wide) --- */
details.expandable {
	margin-top: 18px;
}

/* Fallback: style plain details/summary used site-wide so 'подробнее' looks consistent
   This will apply when pages haven't been updated to use .expandable / .expandable-summary */
details > summary {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	background: #f3f5f7;
	border-radius: 10px;
	font-weight: 700;
	font-size: 16px;
	color: var(--text);
	user-select: none;
	border: 1px solid var(--border);
}

details > summary::-webkit-details-marker { display: none; }

/* --- Исправленный стиль для кнопки "Подробнее о проекте" --- */
details.expandable summary.expandable-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 10px;
    background: #f3f5f7;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    user-select: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

details.expandable summary.expandable-summary:hover {
    background-color: #e9ecef;
}

details.expandable summary.expandable-summary .expandable-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #1F4078;
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
}

details.expandable summary.expandable-summary .expandable-icon svg {
    width: 14px;
    height: 14px;
    display: block;
    transition: transform 0.3s cubic-bezier(0.2,0.9,0.2,1);
}

details.expandable[open] summary.expandable-summary .expandable-icon svg {
    transform: rotate(180deg);
}

details.expandable .details-body {
    background: #f3f5f7;
    padding: 0 24px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin: 8px 0 0 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition:
        max-height 0.7s cubic-bezier(0.4,0,0.2,1),
        opacity 0.5s cubic-bezier(0.4,0,0.2,1),
        padding 0.5s cubic-bezier(0.4,0,0.2,1),
        transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

details.expandable[open] .details-body {
    max-height: 2000px;
    padding: 24px;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s, 0.1s, 0.1s, 0.1s;
}

details.expandable {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (min-width: 600px) {
  details.expandable .details-body {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 700px) {
	details.expandable summary.expandable-summary { width: 100%; box-sizing: border-box; }
}

/* Альтернативный вариант - отступы для всей карточки */
.object-card {
    padding: 15px;
    padding-left: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
    background: white; /* Добавляем фон, если его нет */
}

.object-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px var(--shadow-hover);
}

/* Тогда убираем отступы из .object-info */
.object-info {
    padding: 0;
}

.object-info h2,
.object-info p {
    padding-right: 0;
}

.custom-bullet-list {
    list-style: none;
    padding-left: 0;
}

.custom-bullet-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.custom-bullet-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 3px;
    color: #0158a5;
    font-size: 16px;
    font-weight: bold;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .objects-grid {
        grid-template-columns: 1fr;
    }
    .page-header-simple h1 {
        font-size: 28px;
    }
}

/* Page structure */
.page-spacer {
    height: 40px;
    background: white;
}

.page-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    padding: 20px 0;
    color: var(--text);
    background: var(--bg-secondary);
}