/* ============================================================
   СТОЛЯРНАЯ МАСТЕРСКАЯ «БЛИЗНЕЦ МАССИВ» — премиум-тема WordPress
   Editorial Luxury: антрацит / сталь-синий / графит
   Версия: 2.0.0  (стиль: Антрацит + Сталь — automotive-luxury)
   ============================================================ */

:root {
	--espresso: #18181B;       /* цинк — главный тёмный */
	--espresso-soft: #27272A;  /* светлее для секций */
	--walnut: #3F3F46;         /* средний серый */
	--oak: #71717A;            /* приглушённый текст */
	--brass: #2563EB;          /* сталь-синий акцент */
	--brass-bright: #3B82F6;   /* светлее для hover */
	--cream: #fafafa;          /* почти белый */
	--cream-soft: #e4e4e7;     /* светлый графит */
	--paper: #ffffff;          /* чистый белый */
	--ink: #18181B;            /* основной текст */
	--ink-soft: #52525B;       /* вторичный текст */
	--hairline: rgba(24, 24, 27, 0.08);
	--hairline-light: rgba(250, 250, 250, 0.12);
	--font-display: 'Cormorant Garamond', 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--ease: cubic-bezier(0.32, 0.72, 0, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--maxw: 1280px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }

body {
	font-family: var(--font-body);
	font-weight: 300;
	background: var(--cream);
	color: var(--ink);
	line-height: 1.6;
	overflow-x: hidden;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Карточки <picture> не должны переполнять контейнер */
picture { display: block; max-width: 100%; }
picture img { max-width: 100%; height: auto; display: block; }

/* Длинные слова/URL не ломают макет */
h1, h2, h3, h4, h5, h6, p, li, a, blockquote, td, th {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0.4;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.07 0 0 0 0 0.04 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mix-blend-mode: multiply;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; text-align: center; transition: color 0.3s var(--ease); }
::selection { background: var(--brass); color: var(--espresso); }

.container { max-width: var(--maxw); margin: 0 auto; }
.section-pad { padding: 70px 32px; }

.skip-link {
	position: absolute;
	left: -9999px;
}
.skip-link:focus {
	position: fixed;
	top: 16px; left: 16px;
	z-index: 200;
	background: var(--espresso);
	color: var(--cream);
	padding: 12px 24px;
	border-radius: 100px;
}

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */
.nav-wrap {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	padding: 12px 32px 24px;
	display: flex;
	justify-content: center;
	pointer-events: none;
	transition: padding 0.5s var(--ease);
}
.nav-wrap.scrolled { padding: 16px 32px; }

.nav {
	pointer-events: auto;
	width: 100%;
	max-width: var(--maxw);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 10px 10px 10px 28px;
	background: rgba(250, 250, 250, 0.72);
	backdrop-filter: blur(20px) saturate(140%);
	-webkit-backdrop-filter: blur(20px) saturate(140%);
	border: 1px solid var(--hairline);
	border-radius: 100px;
	box-shadow: 0 8px 32px rgba(24, 24, 27, 0.06), inset 0 1px 0 rgba(255,255,255,0.5);
	transition: all 0.5s var(--ease);
}
.nav-wrap.scrolled .nav {
	background: rgba(250, 250, 250, 0.92);
	box-shadow: 0 12px 40px rgba(24, 24, 27, 0.1), inset 0 1px 0 rgba(255,255,255,0.6);
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 22px;
	letter-spacing: 0.02em;
	color: var(--espresso);
}
.brand img, .custom-logo { max-height: 44px; width: auto; }
.brand .custom-logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-mark {
	width: 36px; height: 36px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, var(--brass-bright), var(--brass) 60%, var(--walnut));
	display: grid; place-items: center;
	color: var(--espresso);
	font-size: 16px;
	font-weight: 700;
	box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), 0 2px 8px rgba(24, 24, 27,0.4);
	flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { line-height: 1.1; }
.brand-sub {
	font-family: var(--font-body);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--oak);
	margin-top: -2px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
}
.nav-links a {
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 400;
	color: var(--ink-soft);
	border-radius: 100px;
	transition: all 0.4s var(--ease);
	display: inline-block;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
	color: var(--espresso);
	background: rgba(24, 24, 27,0.12);
}

/* Выпадающее подменю (Лестницы/Двери/Мебель/Итерьер под "Производство") */
.nav-links .menu-item-has-children {
	position: relative;
}
.nav-links .menu-item-has-children > a::after {
	content: '▾';
	display: inline-block;
	margin-left: 6px;
	font-size: 10px;
	opacity: 0.5;
	transition: transform 0.3s var(--ease);
}
.nav-links .menu-item-has-children:hover > a::after {
	transform: rotate(180deg);
}
.nav-links .submenu,
.nav-links .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	min-width: 220px;
	background: var(--paper);
	border: 1px solid var(--hairline);
	border-radius: 16px;
	box-shadow: 0 20px 50px -16px rgba(24, 24, 27, 0.22);
	padding: 8px;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
	z-index: 50;
}
.nav-links .menu-item-has-children:hover > .submenu,
.nav-links .menu-item-has-children:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-links .submenu a,
.nav-links .sub-menu a {
	display: block;
	padding: 10px 16px;
	font-size: 14px;
	color: var(--ink-soft);
	background: transparent;
	border-radius: 10px;
	white-space: nowrap;
}
.nav-links .submenu a:hover,
.nav-links .sub-menu a:hover {
	background: rgba(24, 24, 27, 0.1);
	color: var(--espresso);
}

.cta-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 22px;
	background: var(--espresso);
	color: var(--cream) !important;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.5s var(--ease);
	box-shadow: 0 4px 16px rgba(24, 24, 27, 0.2);
	flex-shrink: 0;
}
.cta-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(24, 24, 27, 0.28); }
.cta-pill:active { transform: translateY(0) scale(0.98); }
.cta-pill .icon-dot {
	width: 32px; height: 32px;
	border-radius: 50%;
	background: var(--brass);
	display: grid; place-items: center;
	color: var(--espresso);
	transition: transform 0.5s var(--ease);
	font-size: 16px;
}
.cta-pill:hover .icon-dot { transform: translate(2px, -1px) scale(1.05); }

.burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 110;
}
.burger span {
	width: 26px;
	height: 2px;
	background: var(--espresso);
	transition: all 0.4s var(--ease);
	border-radius: 2px;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
	position: fixed;
	top: 0; right: 0;
	width: 100%;
	max-width: 420px;
	height: 100vh;
	background: var(--espresso);
	color: var(--cream);
	padding: 100px 40px 40px;
	z-index: 105;
	transform: translateX(100%);
	transition: transform 0.6s var(--ease);
	overflow-y: auto;
	visibility: hidden;
	pointer-events: none;
}
.mobile-menu.open {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
}
.mobile-menu-overlay {
	position: fixed;
	inset: 0;
	background: rgba(24, 24, 27,0.5);
	backdrop-filter: blur(4px);
	z-index: 104;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s var(--ease);
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu-links {
	list-style: none;
	margin-bottom: 40px;
}
.mobile-menu-links li { margin-bottom: 4px; }
.mobile-menu-links a {
	display: block;
	padding: 16px 0;
	font-family: var(--font-display);
	font-size: 32px;
	color: var(--cream);
	border-bottom: 1px solid var(--hairline-light);
	transition: color 0.3s var(--ease);
}
.mobile-menu-links a:hover { color: var(--brass-bright); }
.mobile-cta {
	justify-content: center;
	width: 100%;
	margin-bottom: 32px;
}
.mobile-contacts { text-align: center; }
.mobile-phone, .mobile-email {
	display: block;
	padding: 8px 0;
	color: var(--cream-soft);
}
.mobile-phone { font-family: var(--font-display); font-size: 24px; }

/* ============================================================
   HERO
   ============================================================ */
/* HERO — Вертикальная панель (вариант 13) */
.hero {
	display: flex;
	min-height: 100vh;
	overflow: hidden;
}
.hero-rail {
	flex: 0 0 90px;
	background: var( --espresso );
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 50px 0;
	flex-shrink: 0;
}
.hero-rail-name {
	writing-mode: vertical-rl;
	transform: rotate( 180deg );
	font-family: var( --font-body );
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var( --brass );
}
.hero-rail-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var( --brass );
}
.hero-rail-est {
	writing-mode: vertical-rl;
	transform: rotate( 180deg );
	font-family: var( --font-body );
	font-size: 10px;
	color: rgba( 245, 241, 234, 0.35 );
	letter-spacing: 0.15em;
	text-transform: uppercase;
}
.hero-main {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	background: var( --cream );
}
.hero-text {
	padding: 80px 40px 80px 60px;
	position: relative;
	z-index: 3;
}
.hero-text .eyebrow {
	color: var( --brass );
}
.hero-text h1 {
	color: var( --espresso );
}
.hero-text h1 em {
	color: var( --brass );
	font-style: italic;
}
.hero-lead {
	color: var( --ink );
	font-family: var( --font-body );
	font-size: clamp( 15px, 1.5vw, 17px );
	line-height: 1.7;
	margin-bottom: 36px;
	max-width: 420px;
}
.hero-actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}
.hero-photo {
	height: 100vh;
	background-size: cover;
	background-position: center;
	position: relative;
}
.hero-photo::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient( 90deg, var( --cream ) 0%, rgba(245,241,234,0.5) 10%, transparent 28% );
}
.hero-photo-badge {
	position: absolute;
	bottom: 50px;
	right: 40px;
	width: 95px;
	height: 95px;
	background: var( --paper );
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 28px rgba( 0, 0, 0, 0.12 );
	z-index: 2;
}
.hero-photo-num {
	font-family: var( --font-display );
	font-size: 28px;
	color: var( --brass );
	line-height: 1;
}
.hero-photo-label {
	font-family: var( --font-body );
	font-size: 9px;
	font-weight: 500;
	color: var( --ink );
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-top: 4px;
}

/* STUBLABEL — надзаголовок: bold + uppercase + линия снизу */
.eyebrow {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--espresso);
	padding: 0 0 8px 0;
	border-bottom: 3px solid var(--brass);
	line-height: 1.2;
	margin-bottom: 32px;
	background: none;
	border-radius: 0;
}
.eyebrow::before {
	content: none;
}
/* На тёмном фоне — светлый текст */
.cta .eyebrow,
.cta-section .eyebrow,
.dark-section .eyebrow {
	color: var(--cream);
	border-bottom-color: var(--brass-bright);
}

.hero h1 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(48px, 7vw, 96px);
	line-height: 0.98;
	letter-spacing: -0.02em;
	color: var(--espresso);
	margin-bottom: 32px;
}
.hero h1 em {
	font-style: italic;
	font-weight: 400;
	color: var(--brass);
	position: relative;
}
.hero h1 em::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0.08em;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--brass) 30%, var(--brass) 70%, transparent);
	opacity: 0.4;
}

.hero p.lead {
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink-soft);
	max-width: 480px;
	margin-bottom: 40px;
}

.hero-actions {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 30px;
	background: var(--espresso);
	color: var(--cream) !important;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 500;
	transition: all 0.5s var(--ease);
	box-shadow: 0 6px 24px rgba(24, 24, 27, 0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(24, 24, 27,0.3); }
.btn-primary .icon-dot {
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--brass);
	color: var(--espresso);
	display: grid; place-items: center;
	transition: transform 0.5s var(--ease);
	font-size: 18px;
}
.btn-primary:hover .icon-dot { transform: translate(3px,-1px) rotate(-12deg); }

.btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 30px;
	font-size: 15px;
	color: var(--ink);
	border: 1px solid var(--hairline);
	border-radius: 100px;
	transition: all 0.4s var(--ease);
}
.btn-ghost:hover { color: var(--brass); border-bottom-color: var(--brass); }

.hero-visual {
	position: relative;
	height: 100%;
	min-height: 580px;
	align-self: stretch;
}
.hero-frame {
	position: absolute;
	inset: 0;
	padding: 16px;
	background: var(--espresso);
	border-radius: 24px;
	box-shadow: 0 40px 80px -20px rgba(24, 24, 27,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
	overflow: hidden;
}
.hero-frame img,
.hero-frame picture {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 12px;
}
.hero-badge {
	position: absolute;
	bottom: -24px; left: -24px;
	background: var(--paper);
	padding: 6px;
	border-radius: 20px;
	border: 1px solid var(--hairline);
	box-shadow: 0 20px 40px -10px rgba(24, 24, 27,0.25);
	z-index: 3;
}
.hero-badge-inner {
	background: linear-gradient(135deg, var(--espresso), var(--walnut));
	color: var(--cream);
	padding: 20px 28px;
	border-radius: 16px;
	text-align: center;
	min-width: 160px;
}
.hero-badge-num {
	font-family: var(--font-display);
	font-size: 44px;
	font-weight: 600;
	line-height: 1;
	color: var(--brass-bright);
}
.hero-badge-label {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--cream-soft);
	margin-top: 6px;
}

.hero-deco {
	position: absolute;
	right: -8%; top: 12%;
	font-family: var(--font-display);
	font-size: clamp(300px, 40vw, 600px);
	font-weight: 400;
	color: var(--brass);
	opacity: 0.05;
	line-height: 0.8;
	z-index: 1;
	user-select: none;
	pointer-events: none;
}

/* ============================================================
   Заголовки секций
   ============================================================ */
section { position: relative; z-index: 2; }
.section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	margin-bottom: 64px;
}
.section-head h2 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: var(--espresso);
	max-width: 720px;
}
.section-head h2 em { font-style: italic; color: var(--brass); font-weight: 400; }
.section-head p {
	max-width: 360px;
	color: var(--ink-soft);
	font-size: 16px;
}

/* ============================================================
   УСЛУГИ — bento
   ============================================================ */
.services { background: var(--cream); }
.bento {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-auto-rows: 200px;
	gap: 20px;
}
.service-card {
	position: relative;
	padding: 0;
	background: var(--paper);
	border: 1px solid var(--hairline);
	border-radius: 24px;
	overflow: hidden;
	transition: all 0.6s var(--ease);
	display: block;
	color: var(--ink);
}
.service-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px -16px rgba(24, 24, 27,0.18);
	border-color: var(--brass);
	color: var(--ink);
}
.service-img {
	width: 100%;
	height: 100%;
	border-radius: 0;
	overflow: hidden;
	position: absolute;
	inset: 0;
}
.service-img img,
.service-img picture {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 1.2s var(--ease);
}
.service-card:hover .service-img img { transform: scale(1.06); }
.service-img::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(28, 28, 27, 0.3));
}
.service-meta {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 2;
	color: var(--cream);
	display: flex;
	justify-content: flex-start;
	align-items: flex-end;
	gap: 16px;
	padding: 22px 26px;
	background: rgba(28, 28, 27, 0.5);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-top: 1px solid rgba(176, 141, 87, 0.15);
}
.service-name {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 500;
	line-height: 1;
}
.service-tag {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.65;
	margin-bottom: 6px;
	color: var(--brass-bright);
}

.s-lestnicy { grid-column: span 7; grid-row: span 2; }
.s-mebel    { grid-column: span 5; grid-row: span 2; }
.s-dveri    { grid-column: span 5; grid-row: span 2; }
.s-interer  { grid-column: span 7; grid-row: span 2; }

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */
.advantages {
	background: var(--espresso);
	color: var(--cream);
	position: relative;
	overflow: hidden;
}
.advantages::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(24, 24, 27,0.12), transparent 50%),
		radial-gradient(ellipse at 80% 100%, rgba(24, 24, 27,0.08), transparent 50%);
	pointer-events: none;
}
.advantages .section-head h2 { color: var(--cream); }
.advantages .section-head p { color: rgba(250, 250, 250,0.7); }
.adv-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	border-top: 1px solid var(--hairline-light);
}
.adv-item {
	padding: 56px 32px 56px 0;
	border-right: 1px solid var(--hairline-light);
	display: flex;
	align-items: center;
	justify-content: center;
}
.adv-item:last-child { border-right: none; padding-right: 0; }
.adv-num {
	font-family: var(--font-display);
	font-size: 96px;
	font-weight: 500;
	line-height: 0.9;
	color: var(--brass);
	letter-spacing: -0.02em;
}
.adv-num sup {
	font-size: 36px;
	vertical-align: super;
	color: var(--brass-bright);
	margin-left: 4px;
}
.adv-label {
	font-size: 15px;
	color: rgba(250, 250, 250,0.75);
	margin-top: 16px;
	max-width: 220px;
	line-height: 1.5;
}

/* ============================================================
   ПОРТФОЛИО — карусель со стрелками и drag-свайпом
   ============================================================ */
.portfolio { background: var(--cream-soft); }

/* Обёртка для позиционирования стрелок */
.portfolio-rail-wrap {
	position: relative;
	padding: 0 32px;
}

/* Сама лента — без видимой полосы прокрутки */
.portfolio-rail {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	padding: 8px 0 32px;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	/* Скрываем стандартный скроллбар во всех браузерах */
	scrollbar-width: none;
	-ms-overflow-style: none;
	/* Drag-to-scroll */
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}
.portfolio-rail::-webkit-scrollbar { display: none; }
.portfolio-rail.dragging {
	cursor: grabbing;
	scroll-behavior: auto;
}
.portfolio-rail.dragging .work-card { pointer-events: none; }

/* Стрелки навигации */
.rail-arrow {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(250, 250, 250, 0.96);
	border: 1px solid rgba(24, 24, 27, 0.12);
	box-shadow: 0 8px 24px rgba(24, 24, 27, 0.18);
	display: grid;
	place-items: center;
	cursor: pointer;
	z-index: 10;
	font-size: 22px;
	color: var(--espresso);
	transition: all 0.3s var(--ease);
}
.rail-arrow:hover {
	background: var(--brass);
	color: var(--paper);
	transform: translateY(-50%) scale(1.08);
	box-shadow: 0 12px 32px rgba(24, 24, 27, 0.35);
}
.rail-arrow:active { transform: translateY(-50%) scale(0.96); }
.rail-arrow.left { left: -10px; }
.rail-arrow.right { right: -10px; }
.rail-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}
.work-card {
	flex: 0 0 420px;
	scroll-snap-align: start;
	padding: 6px;
	background: var(--paper);
	border-radius: 20px;
	border: 1px solid var(--hairline);
	transition: all 0.5s var(--ease);
	color: var(--ink);
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(24, 24, 27,0.2); color: var(--ink); }
.work-img {
	aspect-ratio: 4/3;
	border-radius: 14px;
	overflow: hidden;
}
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-card:hover .work-img img { transform: scale(1.05); }
.work-meta { padding: 20px 18px 8px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.work-title { font-family: var(--font-display); font-size: 22px; color: var(--espresso); font-weight: 500; }
.work-cat { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--oak); }

/* Чтобы якорные ссылки (#category) не прятались под фиксированной шапкой */
.portfolio-cat-section,
section[id] {
	scroll-margin-top: 120px;
}

/* ============================================================
   О МАСТЕРСКОЙ — текст по центру + цитата во всю ширину
   ============================================================ */
.about-section {
	background: var(--cream);
}
.about-text {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}
.about-text .eyebrow { margin-bottom: 24px; }
.about-text h2 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(36px, 4.5vw, 56px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--espresso);
	margin: 0 0 32px;
}
.about-text h2 em { font-style: italic; color: var(--brass); font-weight: 400; }
.about-text p {
	font-size: 18px;
	line-height: 1.75;
	color: var(--ink-soft);
	margin-bottom: 20px;
}
.about-quote {
	position: relative;
	max-width: var(--maxw);
	margin: 64px auto 0;
	padding: 64px 56px;
	background: linear-gradient(160deg, var(--walnut), var(--espresso));
	border-radius: 28px;
	color: var(--cream);
	overflow: hidden;
	text-align: center;
}
.about-quote::before {
	content: '«';
	position: absolute;
	top: -40px; left: 50%;
	transform: translateX(-50%);
	font-family: var(--font-display);
	font-size: 240px;
	color: var(--brass);
	opacity: 0.22;
	line-height: 1;
}
.about-quote p {
	font-family: var(--font-display);
	font-size: clamp(22px, 2.5vw, 30px);
	font-weight: 400;
	line-height: 1.4;
	font-style: italic;
	position: relative;
	z-index: 2;
	max-width: 820px;
	margin: 0 auto;
}
.about-quote .author {
	margin-top: 32px;
	font-family: var(--font-body);
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--brass-bright);
	font-style: normal;
}

/* ============================================================
   CTA / КОНТАКТЫ
   ============================================================ */
.cta {
	background: var(--espresso);
	color: var(--cream);
	text-align: center;
	position: relative;
	overflow: hidden;
}
.cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, rgba(24, 24, 27,0.18), transparent 60%);
}
.cta-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.cta h2 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(40px, 6vw, 80px);
	line-height: 1;
	letter-spacing: -0.02em;
	margin: 24px 0 24px;
	color: var(--cream);
}
.cta h2 em { font-style: italic; color: var(--brass); font-weight: 400; }
.cta p { font-size: 18px; color: rgba(250, 250, 250,0.75); margin-bottom: 48px; }
.cta-actions {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 56px;
}
.cta-contact {
	display: flex;
	gap: 48px;
	justify-content: center;
	flex-wrap: wrap;
	padding-top: 48px;
	border-top: 1px solid var(--hairline-light);
}
.contact-item .label {
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(250, 250, 250,0.5);
	margin-bottom: 8px;
}
.contact-item .value {
	font-family: var(--font-display);
	font-size: 24px;
	color: var(--cream);
}
.contact-item .value:hover { color: var(--brass-bright); }

.btn-brass {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 30px;
	background: var(--brass);
	color: var(--espresso) !important;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 500;
	transition: all 0.5s var(--ease);
	box-shadow: 0 6px 24px rgba(24, 24, 27, 0.18);
}
.btn-brass:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(24, 24, 27, 0.28); }

.btn-outline-light {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 30px;
	border: 1px solid var(--hairline-light);
	border-radius: 100px;
	color: var(--cream) !important;
	font-size: 15px;
	transition: all 0.4s var(--ease);
}
.btn-outline-light:hover { background: rgba(250, 250, 250,0.08); border-color: var(--brass); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
	background: var(--espresso);
	color: rgba(250, 250, 250,0.6);
	padding: 80px 32px 40px;
	border-top: 1px solid var(--hairline-light);
	position: relative;
	z-index: 2;
}
.footer-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 56px;
}
.footer-brand-name {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 600;
	color: var(--cream);
	margin-bottom: 16px;
}
.footer p { font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer h4,
.footer-col-title {
	font-family: var(--font-body);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--brass);
	margin: 0 0 20px;
	font-weight: 500;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; font-size: 14px; }
.footer li a:hover { color: var(--brass-bright); }
.footer-bottom {
	max-width: var(--maxw);
	margin: 0 auto;
	padding-top: 32px;
	border-top: 1px solid var(--hairline-light);
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	flex-wrap: wrap;
	gap: 16px;
}

/* Кнопка «наверх» */
.back-to-top {
	position: fixed;
	bottom: 32px; right: 32px;
	width: 48px; height: 48px;
	border-radius: 50%;
	background: var(--espresso);
	color: var(--brass);
	border: 1px solid var(--brass);
	display: grid; place-items: center;
	cursor: pointer;
	z-index: 90;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.4s var(--ease);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brass); color: var(--espresso); }

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ
   ============================================================ */
.page-header {
	background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
	padding: 180px 32px 80px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(40px, 6vw, 80px);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--espresso);
	margin-bottom: 24px;
}
.page-header h1 em { font-style: italic; color: var(--brass); }
.page-header p {
	font-size: 18px;
	color: var(--ink-soft);
	max-width: 640px;
	margin: 0 auto;
}

/* page-header с фоновой картинкой — тёмный overlay + белый текст */
.page-header--has-bg {
	background-size: cover;
	background-position: left center;
	background-repeat: no-repeat;
	min-height: 480px;
	display: flex;
	align-items: center;
	padding: 160px 32px 80px;
}
.page-header--has-bg::before {
	content: '';
	display: none; /* убираем старый градиент */
}
.page-header-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(24,24,27,0.55) 0%, rgba(24,24,27,0.7) 100%);
	z-index: 1;
}
.page-header--has-bg .container {
	position: relative;
	z-index: 2;
}
.page-header--has-bg h1 {
	color: var(--cream);
}
.page-header--has-bg h1 em {
	color: var(--brass-bright);
}
.page-header--has-bg p {
	color: rgba(250,250,250,0.85);
}
.page-header--has-bg .eyebrow {
	color: var(--cream);
	border-bottom-color: var(--brass-bright);
}
@media (max-width: 768px) {
	.page-header--has-bg { min-height: 360px; padding: 130px 20px 60px; }
}

/* Hero-картинка категории — широкая полоса под заголовком */
.category-hero {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 32px;
	box-sizing: border-box;
}
.category-hero picture,
.category-hero img {
	display: block;
	width: 100%;
	height: 340px;
	object-fit: cover;
	border-radius: 20px;
	box-shadow: 0 16px 40px -12px rgba(24, 24, 27, 0.22);
}

/* Подстраницы — маленькая hero-картинка слева в начале контента */
.subpage-hero {
	float: left;
	width: 280px;
	max-width: 45%;
	margin: 0 28px 16px 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 32px -10px rgba(24, 24, 27, 0.22);
}
.subpage-hero picture,
.subpage-hero img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}
@media (max-width: 768px) {
	.category-hero { padding: 0 20px; }
	.category-hero picture,
	.category-hero img { height: 220px; border-radius: 14px; }
	.subpage-hero {
		float: none;
		width: 100%;
		max-width: 100%;
		margin: 0 0 20px 0;
	}
	.subpage-hero img { height: 200px; }
}

.breadcrumbs {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 32px 32px 0;
	font-size: 13px;
	color: var(--oak);
}
.breadcrumbs a:hover { color: var(--brass); }
.breadcrumbs .sep { margin: 0 10px; opacity: 0.5; }

.page-content {
	max-width: 820px;
	margin: 0 auto;
	padding: 80px 32px;
}
.page-content h2,
.page-content .content-heading,
.catalog-content h2,
.catalog-content .content-heading {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(26px, 3.2vw, 36px);
	color: var(--espresso);
	margin: 56px 0 20px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	position: relative;
	padding-left: 20px;
}
.page-content h2::before,
.page-content .content-heading::before,
.catalog-content h2::before,
.catalog-content .content-heading::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.18em;
	width: 4px;
	height: 1em;
	background: var(--brass);
	border-radius: 2px;
}
.page-content h2:first-child,
.page-content .content-heading:first-child,
.catalog-content h2:first-child { margin-top: 0; }
.page-content h3 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 22px;
	color: var(--espresso);
	margin: 36px 0 14px;
}
.page-content p {
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--ink-soft);
	margin-bottom: 20px;
}
.page-content > p:first-of-type {
	font-size: 17.5px;
	color: var(--ink);
	line-height: 1.7;
}
.page-content ul,
.page-content ol,
.catalog-content ul,
.catalog-content ol {
	margin: 0 0 28px 0;
	padding: 4px 0 4px 28px;
	color: var(--ink-soft);
	list-style: none;
	overflow: hidden; /* Фикс маркеров при обтекании floated картинок */
}
.page-content ul li,
.catalog-content ul li {
	position: relative;
	padding-left: 4px;
	margin-bottom: 12px;
	line-height: 1.65;
	font-size: 16px;
}
.page-content ul li::before,
.catalog-content ul li::before {
	content: '';
	position: absolute;
	left: -18px;
	top: 0.65em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--brass);
	box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.12);
}
.page-content ol,
.catalog-content ol {
	counter-reset: ol-counter;
	padding-left: 36px;
}
.page-content ol li,
.catalog-content ol li {
	position: relative;
	counter-increment: ol-counter;
	padding-left: 8px;
	margin-bottom: 14px;
	line-height: 1.65;
	font-size: 16px;
}
.page-content ol li::before,
.catalog-content ol li::before {
	content: counter(ol-counter);
	position: absolute;
	left: -36px;
	top: 0.1em;
	width: 24px;
	height: 24px;
	background: var(--brass);
	color: #fff;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 600;
	font-family: var(--font-body);
	display: grid;
	place-items: center;
	line-height: 1;
}
.page-content img,
.page-content picture,
.page-content .content-img,
.catalog-content img,
.catalog-content .content-img {
	border-radius: 16px;
	margin: 28px 0;
	box-shadow: 0 16px 40px -12px rgba(24, 24, 27, 0.18);
}
/* Контентная картинка слева — 50% ширины, квадратная, текст обтекает справа */
.page-content img.alignleft,
.catalog-content img.alignleft {
	float: left;
	width: 50%;
	max-width: 50%;
	margin: 4px 28px 16px 0;
	border-radius: 14px;
	box-shadow: 0 12px 32px -10px rgba(24, 24, 27, 0.22);
	object-fit: cover;
	aspect-ratio: 1/1;
	height: auto;
}
/* <a> обёртка вокруг alignleft — float:left, 50% ширины, квадрат */
.page-content a[style*="float:left"],
.catalog-content a[style*="float:left"] {
	float: left !important;
	width: calc(50% - 28px) !important;
	max-width: calc(50% - 28px) !important;
	margin: 4px 28px 16px 0 !important;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 32px -10px rgba(24, 24, 27, 0.22);
	aspect-ratio: 1/1;
}
.page-content a[style*="float:left"] picture,
.catalog-content a[style*="float:left"] picture {
	display: block;
	width: 100%;
	height: 100%;
}
.page-content a[style*="float:left"] picture img,
.catalog-content a[style*="float:left"] picture img {
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}
.page-content a[style*="float:left"] img,
.catalog-content a[style*="float:left"] img {
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
}
/* <a> обёртка вокруг alignright — симметрично alignleft: квадрат 50% */
.page-content a[style*="float:right"],
.catalog-content a[style*="float:right"] {
	float: right !important;
	width: calc(50% - 28px) !important;
	max-width: calc(50% - 28px) !important;
	margin: 4px 0 16px 28px !important;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 32px -10px rgba(24, 24, 27, 0.22);
	aspect-ratio: 1 / 1;
}
.page-content a[style*="float:right"] picture,
.catalog-content a[style*="float:right"] picture {
	display: block;
	width: 100%;
	height: 100%;
}
.page-content a[style*="float:right"] img,
.catalog-content a[style*="float:right"] img {
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
}
.page-content img.alignright,
.catalog-content img.alignright {
	float: right;
	width: 50%;
	max-width: 50%;
	margin: 4px 0 16px 28px;
	border-radius: 14px;
	box-shadow: 0 12px 32px -10px rgba(24, 24, 27, 0.22);
	object-fit: cover;
	aspect-ratio: 1 / 1;
	height: auto;
}
.page-content img.aligncenter,
.catalog-content img.aligncenter {
	display: block;
	margin: 32px auto;
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: 0 16px 40px -12px rgba(24, 24, 27, 0.22);
}
/* Первая картинка-герой в контенте — крупная, на всю ширину статьи */
.page-content > p:first-of-type + img.aligncenter,
.page-content > img.aligncenter:first-child,
.catalog-content > img.aligncenter:first-child {
	width: 100%;
	max-width: 900px;
	max-height: 520px;
	object-fit: cover;
	margin: 0 auto 40px;
	border-radius: 20px;
}
.page-content img.alignnone,
.catalog-content img.alignnone {
	display: block;
	margin: 24px 0;
}

/* ============================================================
   PROJ-GRID — сетка чертежей/эскизов 2×N (для /proektirovanie/).
   Картинки квадратные, единый стиль, hover-эффект, lightbox по клику.
   ============================================================ */
.proj-grid {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 24px;
	margin: 40px 0;
}
.proj-grid br {
	display: none;
}
.proj-grid > a {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 32px -10px rgba( 24, 24, 27, 0.22 );
	transition: transform 0.5s var( --ease ), box-shadow 0.5s var( --ease );
	cursor: zoom-in;
	background: var( --cream-soft, #f5f1ea );
}
.proj-grid > a:hover {
	transform: translateY( -4px );
	box-shadow: 0 22px 48px -12px rgba( 24, 24, 27, 0.32 );
}
.proj-grid > a picture,
.proj-grid > a img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
}
.proj-grid > a img {
	object-fit: cover;
	object-position: center;
}
/* Перебиваем глобальные alignleft/alignright внутри .proj-grid */
.proj-grid img.alignleft,
.proj-grid img.alignright,
.proj-grid img.content-img {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	margin: 0 !important;
	aspect-ratio: auto !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
@media ( max-width: 640px ) {
	.proj-grid {
		grid-template-columns: 1fr;
		gap: 16px;
		margin: 28px 0;
	}
}

/* ============================================================
   LEAD IMAGE — первая картинка в статье: 50/50 grid
   слева квадратная картинка (cover), справа текст.
   Работает для первого <p>, содержащего float-<a> с картинкой.
   ============================================================ */
.catalog-content > p:first-of-type:has( > a[style*="float"] ),
.page-content > p:first-of-type:has( > a[style*="float"] ) {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 44px;
	align-items: start;
	margin: 0 0 36px;
}
/* Сбрасываем inline float и делаем квадрат */
.catalog-content > p:first-of-type > a[style*="float"],
.page-content > p:first-of-type > a[style*="float"] {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 16px 40px -12px rgba(24, 24, 27, 0.22);
	cursor: zoom-in;
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.catalog-content > p:first-of-type > a[style*="float"]:hover,
.page-content > p:first-of-type > a[style*="float"]:hover {
	transform: translateY(-4px);
	box-shadow: 0 26px 55px -14px rgba(24, 24, 27, 0.32);
}
.catalog-content > p:first-of-type > a[style*="float"] picture,
.page-content > p:first-of-type > a[style*="float"] picture {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
}
.catalog-content > p:first-of-type > a[style*="float"] img,
.page-content > p:first-of-type > a[style*="float"] img {
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	display: block;
}
@media ( max-width: 768px ) {
	.catalog-content > p:first-of-type:has( > a[style*="float"] ),
	.page-content > p:first-of-type:has( > a[style*="float"] ) {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-bottom: 28px;
	}
}

/* ============================================================
   СЕТКА ТИПОВ — чёткая ровная grid: картинка + текст
   ============================================================ */
.type-card {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 28px;
	align-items: center;
	margin-bottom: 0;
	padding: 28px 0;
	border-bottom: 1px solid var(--hairline);
}
.type-card:first-of-type {
	padding-top: 0;
}
.type-card:last-of-type {
	border-bottom: none;
}
.type-card-img {
	width: 100%;
	height: 220px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 8px 28px -10px rgba(24, 24, 27, 0.2);
	background: var(--cream-soft);
	position: relative;
}
.type-card-img a {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.type-card-img > *,
.type-card-img picture,
.type-card-img source,
.type-card-img img,
.type-card-img .content-img {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
.type-card-img picture {
	display: block;
	width: 100%;
	height: 100%;
}
.type-card-img img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center top !important;
	display: block !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	vertical-align: top !important;
}
.type-card-text h3 {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 500;
	color: var(--espresso);
	margin: 0 0 10px;
	line-height: 1.2;
}
.type-card-text h3 a {
	color: var(--espresso);
	text-decoration: none; text-align: center;
}
.type-card-text h3 a:hover {
	color: var(--brass);
}
.type-card-text p {
	font-size: 15px;
	line-height: 1.65;
	color: var(--ink-soft);
	margin: 0;
}
@media (max-width: 640px) {
	.type-card {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.type-card-img {
		max-width: 280px;
		margin: 0 auto;
	}
}

/* clearfix — только на контейнере, не на каждом <p> (иначе обтекание не работает) */
.page-content::after,
.catalog-content::after {
	content: '';
	display: table;
	clear: both;
}
.page-content blockquote {
	border-left: 3px solid var(--brass);
	padding: 20px 28px;
	margin: 36px 0;
	font-family: var(--font-display);
	font-size: 22px;
	font-style: italic;
	color: var(--walnut);
	background: rgba(24, 24, 27, 0.05);
	border-radius: 0 16px 16px 0;
	line-height: 1.4;
}
.page-content strong,
.catalog-content strong { color: var(--espresso); font-weight: 600; }
.page-content a,
.catalog-content a {
	color: var(--brass);
	text-decoration: underline;
	text-decoration-color: rgba(24, 24, 27, 0.3);
	text-underline-offset: 3px;
	transition: all 0.3s ease;
}
.page-content a:hover,
.catalog-content a:hover {
	color: var(--brass-bright);
	text-decoration-color: var(--brass-bright);
}

/* ============================================================
   АРХИВ ПРОЕКТОВ
   ============================================================ */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 32px 120px;
}
.project-filter {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
	padding: 0 32px 48px;
	max-width: var(--maxw);
	margin: 0 auto;
}
.filter-btn {
	padding: 10px 20px;
	border: 1px solid var(--hairline);
	border-radius: 100px;
	background: var(--paper);
	color: var(--ink-soft);
	font-size: 13px;
	cursor: pointer;
	transition: all 0.4s var(--ease);
	font-family: var(--font-body);
}
.filter-btn:hover,
.filter-btn.active {
	background: var(--espresso);
	color: var(--cream);
	border-color: var(--espresso);
}

/* ============================================================
   ОТДЕЛЬНЫЙ ПРОЕКТ
   ============================================================ */
.single-project {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 40px 32px 120px;
}
.project-gallery {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 16px;
	margin-bottom: 48px;
}
.project-gallery .main-img {
	grid-row: span 2;
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 4/3;
}
.project-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.project-gallery .thumb {
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4/3;
}
.project-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-info {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 48px;
}
.project-info h1 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(32px, 4vw, 48px);
	color: var(--espresso);
	margin-bottom: 24px;
	line-height: 1.1;
}
.project-info .entry-content {
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink-soft);
}
.project-meta {
	background: var(--paper);
	border: 1px solid var(--hairline);
	border-radius: 20px;
	padding: 32px;
	height: fit-content;
}
.project-meta dt {
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--brass);
	margin-bottom: 6px;
}
.project-meta dd {
	font-family: var(--font-display);
	font-size: 20px;
	color: var(--espresso);
	margin-bottom: 24px;
}
.project-nav {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 64px;
	padding-top: 32px;
	border-top: 1px solid var(--hairline);
}

/* ============================================================
   ФОРМА ЗАЯВКИ
   ============================================================ */
.order-form {
	max-width: 640px;
	margin: 0 auto;
	background: var(--paper);
	padding: 8px;
	border-radius: 28px;
	border: 1px solid var(--hairline);
}
.order-form-inner {
	background: var(--cream);
	border-radius: 22px;
	padding: 48px;
}
.order-form h3 {
	font-family: var(--font-display);
	font-size: 32px;
	color: var(--espresso);
	margin-bottom: 8px;
	font-weight: 500;
}
.order-form .form-desc {
	color: var(--ink-soft);
	margin-bottom: 32px;
	font-size: 15px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
	display: block;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--oak);
	margin-bottom: 8px;
	font-weight: 500;
}
.form-row input,
.form-row textarea,
.form-row select {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--hairline);
	border-radius: 12px;
	background: var(--paper);
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--ink);
	transition: border 0.3s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
	outline: none;
	border-color: var(--brass);
}
.form-row textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   АНИМАЦИИ
   ============================================================ */
.reveal {
	opacity: 0;
	transform: translateY(40px);
	filter: blur(8px);
	transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
}
.reveal.in {
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ============================================================
   КАТАЛОГ УСЛУГ (дочерние страницы)
   ============================================================ */
.services-catalog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.catalog-card {
	background: var(--paper);
	border: 1px solid var(--hairline);
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.5s var(--ease);
	display: flex;
	flex-direction: column;
	color: var(--ink);
}
.catalog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -16px rgba(24, 24, 27,0.18);
	border-color: var(--brass);
	color: var(--ink);
}
.catalog-img {
	aspect-ratio: 4/3;
	overflow: hidden;
}
.catalog-img img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
}
.catalog-card:hover .catalog-img img { transform: scale(1.06); }
.catalog-body {
	padding: 20px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.catalog-body h3 {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 500;
	color: var(--espresso);
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.catalog-arrow {
	font-size: 20px;
	color: var(--brass);
	flex-shrink: 0;
	transition: transform 0.4s var(--ease);
}
.catalog-card:hover .catalog-arrow { transform: translateX(6px); }

/* ============================================================
   КОНТЕНТ ИЗОБРАЖЕНИЙ (после очистки Divi)
   ============================================================ */
.page-content img,
.entry-content img,
.content-img {
	border-radius: 16px;
	margin: 32px 0;
	max-width: 100%;
	height: auto;
	box-shadow: 0 12px 32px -12px rgba(24, 24, 27,0.18);
}
.page-content img.aligncenter,
.entry-content img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.page-content img.alignleft,
.entry-content img.alignleft {
	float: left;
	margin: 8px 32px 16px 0;
	max-width: 45%;
}
.page-content img.alignright,
.entry-content img.alignright {
	float: right;
	margin: 8px 0 16px 32px;
	max-width: 45%;
}
.page-content figure,
.entry-content figure { margin: 32px 0; }
.page-content figcaption,
.entry-content figcaption {
	font-size: 13px;
	color: var(--ink-soft);
	text-align: center;
	margin-top: 8px;
	font-style: italic;
}

/* Стили Divi-остаточного контента — таблицы, галереи */
.page-content table,
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 32px 0;
	background: var(--paper);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(24, 24, 27,0.06);
}
.page-content th,
.entry-content th {
	background: var(--espresso);
	color: var(--cream);
	padding: 16px 20px;
	text-align: left;
	font-family: var(--font-display);
	font-weight: 500;
}
.page-content td,
.entry-content td {
	padding: 14px 20px;
	border-bottom: 1px solid var(--hairline);
}
.page-content tr:last-child td,
.entry-content tr:last-child td { border-bottom: none; }

.page-content .wp-caption,
.entry-content .wp-caption { max-width: 100%; }

/* ============================================================
   MASONRY-ГАЛЕРЕЯ ПОРТФОЛИО
   ============================================================ */
.portfolio-masonry {
	columns: 4;
	column-gap: 16px;
}
.masonry-item {
	display: block;
	break-inside: avoid;
	margin-bottom: 16px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--paper);
	box-shadow: 0 4px 16px rgba(24, 24, 27,0.06);
	transition: all 0.5s var(--ease);
	position: relative;
}
.masonry-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 32px -8px rgba(24, 24, 27,0.22);
}
.masonry-item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(28, 28, 27, 0.4);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.4s var(--ease);
	pointer-events: none;
}
.masonry-item:hover::after { opacity: 1; }
.masonry-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.8s var(--ease);
}
.masonry-item:hover img { transform: scale(1.04); }

@media (max-width: 1024px) {
	.portfolio-masonry { columns: 3; }
}
@media (max-width: 768px) {
	.portfolio-masonry { columns: 2; column-gap: 12px; }
	.masonry-item { margin-bottom: 12px; }
	/* Контент на мобайле */
	.page-content { padding: 56px 20px; }
	.page-content img.alignleft,
	.page-content img.alignright,
	.catalog-content img.alignleft,
	.catalog-content img.alignright {
		float: none;
		display: block;
		margin: 20px auto;
		max-width: 100%;
		width: 100%;
	}
	.page-content p,
	.catalog-content p { font-size: 15.5px; }
	.page-content ul li,
	.page-content ol li,
	.catalog-content ul li,
	.catalog-content ol li { font-size: 15px; margin-bottom: 10px; }
}
@media (max-width: 480px) {
	.portfolio-masonry { columns: 1; }
}

/* ============================================================
   КАТАЛОГ УСЛУГ — layout с боковым меню
   ============================================================ */
.catalog-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 64px;
	padding: 60px 32px 80px;
	align-items: start;
}

/* Боковое меню */
.catalog-sidebar {
	position: sticky;
	top: 100px;
	background: var(--paper);
	border: 1px solid var(--hairline);
	border-radius: 20px;
	padding: 28px 24px;
}

/* Кнопка-аккордеон (видна только на мобильных) */
.sidebar-toggle {
	display: none;
	width: 100%;
	padding: 16px 20px;
	background: var(--espresso);
	color: var(--cream);
	border: none;
	border-radius: 14px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	margin: -28px -24px 0;
	border-radius: 20px 20px 0 0;
	transition: background 0.3s var(--ease);
}
.sidebar-toggle:hover { background: var(--espresso-soft); }
.sidebar-toggle-icon {
	transition: transform 0.4s var(--ease);
	flex-shrink: 0;
}
.sidebar-toggle[aria-expanded="true"] .sidebar-toggle-icon {
	transform: rotate(180deg);
}
.sidebar-toggle span { flex: 1; text-align: left; }

.sidebar-group { margin-bottom: 28px; }
.sidebar-group:last-of-type { margin-bottom: 0; }

.sidebar-heading {
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--brass);
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--hairline);
}

.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 2px; }
.sidebar-menu a {
	display: block;
	padding: 9px 12px;
	font-size: 14px;
	color: var(--ink-soft);
	border-radius: 8px;
	transition: all 0.3s var(--ease);
	line-height: 1.35;
}
.sidebar-menu a:hover {
	color: var(--ink);
	background: rgba(24, 24, 27, 0.07);
	padding-left: 16px;
}
.sidebar-menu a.is-active {
	color: var(--paper);
	background: var(--brass);
	font-weight: 500;
}

/* CTA в сайдбаре */
.sidebar-cta {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--hairline);
}
.sidebar-cta-inner {
	background: linear-gradient(160deg, var(--espresso), var(--walnut));
	border-radius: 16px;
	padding: 24px 20px;
	color: var(--cream);
	text-align: center;
}
.sidebar-cta-inner h4 {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 500;
	margin-bottom: 8px;
	color: var(--cream);
}
.sidebar-cta-inner p {
	font-size: 13px;
	color: rgba(250, 250, 250, 0.7);
	margin-bottom: 16px;
	line-height: 1.5;
}
.btn-small {
	font-size: 13px;
	padding: 10px 22px;
	justify-content: center;
	text-align: center;
}

/* Основной контент каталога */
.catalog-main { min-width: 0; }
.catalog-content {
	max-width: none;
	padding-top: 0;
	padding-bottom: 48px;
}

/* Сетка групп категорий */
.catalog-grid-section { margin-top: 24px; }
.catalog-group-block { margin-bottom: 56px; }
.catalog-group-block:last-child { margin-bottom: 0; }
.catalog-group-title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 32px;
	color: var(--espresso);
	letter-spacing: -0.02em;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--brass);
	display: inline-block;
}
.catalog-cards-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
.catalog-card {
	background: var(--paper);
	border: 1px solid var(--hairline);
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	transition: all 0.5s var(--ease);
	display: flex;
	flex-direction: column;
	color: var(--ink);
}
.catalog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -16px rgba(24, 24, 27, 0.18);
	border-color: var(--brass);
	color: var(--ink);
}
.catalog-card-img {
	overflow: hidden;
	background: var(--cream-soft);
	position: relative;
}
.catalog-card-img::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(28, 28, 27, 0.25));
	pointer-events: none;
}
.catalog-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
}
.catalog-card:hover .catalog-card-img img { transform: scale(1.06); }
/* Blur-плашка внизу — единый стиль с bento */
.catalog-card-body {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 2;
	padding: 18px 22px;
	background: rgba(28, 28, 27, 0.5);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-top: 1px solid rgba(176, 141, 87, 0.15);
}
.catalog-card-body h3 {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 500;
	color: var(--cream);
	line-height: 1.2;
}
.catalog-arrow {
	font-size: 18px;
	color: var(--brass);
	flex-shrink: 0;
	transition: transform 0.4s var(--ease);
}
.catalog-card:hover .catalog-arrow { transform: translateX(6px); }

@media (max-width: 1024px) {
	.catalog-layout { grid-template-columns: 1fr; gap: 32px; }
	/* Сайдбар на планшетах/мобильных — без рамки, во всю ширину */
	.catalog-sidebar {
		position: static;
		padding: 0;
		background: none;
		border: none;
		border-radius: 0;
	}
	.catalog-cards-grid { grid-template-columns: repeat(2, 1fr); }
	/* Кнопка-аккордеон во всю ширину */
	.sidebar-toggle {
		display: flex;
		width: 100%;
		margin: 0;
		border-radius: 14px;
		padding: 16px 20px;
	}
	/* Контент в виде аккордеона — скрыт по умолчанию */
	.sidebar-content {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.5s var(--ease), padding 0.4s ease;
		padding: 0;
		background: var(--paper);
		border: 1px solid var(--hairline);
		border-radius: 14px;
		margin-top: 12px;
	}
	/* Когда аккордеон открыт — показываем */
	.catalog-sidebar.open .sidebar-content {
		max-height: 2000px;
		padding: 20px;
	}
}
@media (max-width: 768px) {
	.catalog-cards-grid { grid-template-columns: 1fr; }
	.catalog-layout { padding: 40px 20px; }
	/* Type-card на мобильных — картинка сверху, текст снизу */
	.type-card {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.type-card-img {
		max-width: 280px;
		margin: 0 auto;
	}

/* ============================================================
   SERVICES GRID — карточки разделов на /uslugi/
   Отдельный стиль от catalog-card, чтобы не конфликтовать.
   Квадратные картинки, отступ 28px снизу.
   ============================================================ */
.services-grid {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 24px;
	margin-bottom: 28px;
}
.services-card {
	display: flex;
	flex-direction: column;
	background: var( --paper );
	border: 1px solid var( --hairline );
	border-radius: 18px;
	overflow: hidden;
	color: var( --ink );
	text-decoration: none; text-align: center;
	transition: transform 0.5s var( --ease ), box-shadow 0.5s var( --ease ), border-color 0.5s var( --ease );
}
.services-card:hover {
	transform: translateY( -4px );
	box-shadow: 0 20px 40px -16px rgba( 24, 24, 27, 0.18 );
	border-color: var( --brass );
}
.services-card-img {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var( --cream-soft );
}
.services-card-img picture,
.services-card-img img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
}
.services-card-img img {
	object-fit: cover;
	object-position: center;
	transition: transform 1s var( --ease );
}
.services-card:hover .services-card-img img {
	transform: scale( 1.06 );
}
/* Перебиваем глобальные alignleft/alignright/content-img */
.services-card-img img.alignleft,
.services-card-img img.alignright,
.services-card-img img.content-img {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	margin: 0 !important;
	aspect-ratio: auto !important;
}
.services-card-body {
	padding: 16px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.services-card-body h3 {
	font-family: var( --font-display );
	font-size: 18px;
	font-weight: 500;
	color: var( --espresso );
	line-height: 1.2;
	margin: 0;
}
.services-arrow {
	font-size: 18px;
	color: var( --brass );
	flex-shrink: 0;
	transition: transform 0.4s var( --ease );
}
.services-card:hover .services-arrow {
	transform: translateX( 6px );
}
@media ( max-width: 640px ) {
	.services-grid {
		grid-template-columns: 1fr;
	}
}

	/* CTA-блок в сайдбаре на мобильных */
	.sidebar-cta {
		margin-top: 16px;
	}
	.sidebar-cta-inner {
		padding: 20px;
	}
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
	.hero-main { grid-template-columns: 1fr; }
	.hero-photo { display: none; }
	.hero-text { padding: 100px 32px 60px; }
	.about-text { text-align: left; margin-left: 0; }
	.about-quote { margin-top: 48px; padding: 48px 32px; }
	.adv-grid { grid-template-columns: repeat(2, 1fr); }
	.adv-item:nth-child(2) { border-right: none; }
	.adv-item:nth-child(1), .adv-item:nth-child(2) { border-bottom: 1px solid var(--hairline-light); }
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.projects-grid { grid-template-columns: repeat(2, 1fr); }
	.project-info { grid-template-columns: 1fr; }
	.services-catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.nav-wrap { padding: 16px; }
	.nav { padding: 8px 8px 8px 16px; }
	.nav-links { display: none; }
	.nav .cta-pill span:not(.icon-dot) { display: none; }
	.nav .cta-pill { padding: 8px; }
	.burger { display: flex; }

	.hero { min-height: auto; }
	.hero-rail { display: none; }
	.hero-text { padding: 100px 24px 60px; text-align: center; }
	.hero-text .eyebrow { margin-left: auto; margin-right: auto; }
	.hero-actions { justify-content: center; }
	.section-pad { padding: 80px 20px; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }

	.bento { grid-template-columns: 1fr; grid-auto-rows: 280px; }
	.s-lestnicy, .s-mebel, .s-dveri, .s-interer { grid-column: span 1; grid-row: span 1; }

	.adv-grid { grid-template-columns: 1fr; }
	.adv-item { border-right: none; border-bottom: 1px solid var(--hairline-light); padding: 32px 0; }
	.adv-num { font-size: 60px; }

	.portfolio-rail-wrap { padding: 0 20px; }
	.portfolio-rail { padding: 8px 0 24px; }
	.work-card { flex: 0 0 320px; }
	/* На мобильных стрелки прячем — управляем свайпом */
	.rail-arrow { display: none !important; }

	.about-quote { padding: 40px 24px; }
	.about-quote p { font-size: 20px; }

	.cta-actions { flex-direction: column; align-items: stretch; }
	.cta-contact { flex-direction: column; gap: 28px; }

	.footer-inner { grid-template-columns: 1fr; gap: 32px; }
	.footer-bottom { flex-direction: column; text-align: center; }

	.projects-grid { grid-template-columns: 1fr; }
	.project-gallery { grid-template-columns: 1fr; }
	.project-gallery .main-img { grid-row: auto; }
	.services-catalog-grid { grid-template-columns: 1fr; }

	.page-header { padding: 130px 20px 60px; }
	.page-content { padding: 60px 20px; }
	.order-form-inner { padding: 32px 24px; }
	.back-to-top { bottom: 20px; right: 20px; }

	/* Уточнения для очень узких экранов */
	.hero h1 { font-size: clamp(40px, 11vw, 56px); }
	.section-head h2,
	.page-header h1,
	.about-text h2,
	.cta-section h2,
	.section-head h2,
	.catalog-group-title { font-size: clamp(32px, 9vw, 44px); }
	.adv-num { font-size: 56px; }
	.work-card { flex: 0 0 85%; }
	.service-meta { left: 16px; right: 16px; bottom: 16px; }
	.service-name { font-size: 22px; }
	.hero-badge { left: -8px; bottom: -16px; padding: 4px; }
	.hero-badge-inner { padding: 14px 18px; min-width: 130px; }
	.hero-badge-num { font-size: 32px; }
	.catalog-card-body h3 { font-size: 17px; }
	.cta-contact { gap: 20px; }
	.contact-item .value { font-size: 18px; }
	.sidebar-menu a { padding: 11px 10px; font-size: 13px; }
	.sidebar-heading { font-size: 10px; }
	.mobile-menu { padding: 80px 24px 24px; max-width: 100%; }
	.mobile-menu-links a { font-size: 24px; padding: 12px 0; }
}

@media (max-width: 360px) {
	.hero h1 { font-size: 36px; }
	.adv-num { font-size: 44px; }
	.section-pad { padding: 60px 16px; }
	.container { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	.reveal { opacity: 1; transform: none; filter: none; }
}

/* ============================================================
   КОНТАКТЫ — адаптив
   ============================================================ */
@media (max-width: 768px) {
	.kontakty-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* ============================================================
   LIGHTBOX — модальный зум изображений
   ============================================================ */
.lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(15, 15, 18, 0);
	backdrop-filter: blur(0px);
	-webkit-backdrop-filter: blur(0px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s var(--ease), background 0.4s var(--ease),
	            backdrop-filter 0.4s var(--ease), visibility 0s linear 0.4s;
	padding: 32px;
}
.lightbox-overlay.open {
	opacity: 1;
	visibility: visible;
	background: rgba(15, 15, 18, 0.82);
	backdrop-filter: blur(12px) saturate(140%);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	transition: opacity 0.4s var(--ease), background 0.4s var(--ease),
	            backdrop-filter 0.4s var(--ease), visibility 0s;
}
.lightbox-wrap {
	max-width: min(92vw, 1400px);
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	transform: scale(0.92);
	opacity: 0;
	transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
}
.lightbox-overlay.open .lightbox-wrap {
	transform: scale(1);
	opacity: 1;
	transition-delay: 0.08s;
}
.lightbox-img {
	max-width: min(92vw, 1400px);
	max-height: 80vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
	background: #1a1a1d;
}
.lightbox-caption {
	color: #f0f0f3;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 300;
	letter-spacing: 0.02em;
	text-align: center;
	max-width: 600px;
	opacity: 0.8;
	line-height: 1.4;
}
.lightbox-close {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 10001;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: all 0.3s var(--ease);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
	border-color: rgba(255, 255, 255, 0.35);
}
@media (max-width: 768px) {
	.lightbox-overlay { padding: 16px; }
	.lightbox-img { max-width: 96vw; max-height: 76vh; border-radius: 6px; }
	.lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
	.lightbox-caption { font-size: 13px; }
}

/* ============================================================
   ГЛАВНАЯ — секция статьи (заменяет Избранные работы + О мастерской)
   ============================================================ */
.home-article {
	background:
		radial-gradient(circle at 0% 0%, rgba(24, 24, 27, 0.04), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(24, 24, 27, 0.03), transparent 45%),
		var(--paper);
	position: relative;
}
.home-article-head {
	text-align: center;
	max-width: var(--maxw);
	margin: 0 auto 56px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
/* STUBLABEL в секции «О мастерской» — по центру */
.home-article-head .eyebrow {
	width: fit-content;
	margin: 0 0 28px 0 !important;
	text-align: center;
}
.home-article-head h2 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(32px, 4.2vw, 52px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--espresso);
	margin: 0;
}
.home-article-head h2 em {
	font-style: italic;
	color: var(--brass);
	font-weight: 400;
}
/* Контент статьи — во всю ширину контейнера (как меню), не узкий */
.home-article .page-content,
.home-article .catalog-content {
	max-width: 100%;
	margin: 0;
}
/* Колонки для широкого контента — двухколоночный layout на десктопе */
.home-article .page-content,
.home-article .catalog-content {
	column-count: 2;
	column-gap: 56px;
	column-rule: 1px solid var(--hairline);
}
/* Заголовки h2 не должны разрываться между колонками */
.home-article .page-content h2,
.home-article .catalog-content h2 {
	break-after: avoid;
	page-break-after: avoid;
	-webkit-column-break-after: avoid;
}
/* Списки и параграфы тоже не разрывать посередине */
.home-article .page-content h2 + p,
.home-article .catalog-content h2 + p,
.home-article .page-content ul,
.home-article .catalog-content ul,
.home-article .page-content ol,
.home-article .catalog-content ol {
	break-inside: avoid;
	page-break-inside: avoid;
	-webkit-column-break-inside: avoid;
}
/* Первый параграф-лид — на всю ширину над колонками */
.home-article .page-content > p:first-of-type,
.home-article .catalog-content > p:first-of-type {
	font-family: var(--font-display);
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.55;
	font-weight: 400;
	color: var(--ink);
	letter-spacing: -0.01em;
	column-span: all;
	margin-bottom: 40px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--hairline);
}
/* Последний h2 — CTA-заголовок «Закажите бесплатный расчёт» —
   на всю ширину, по центру, с вертикальной акцентной линией слева от текста */
.home-article .page-content > h2:last-of-type,
.home-article .catalog-content > h2:last-of-type {
	column-span: all;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 56px;
}
.home-article .page-content > h2:last-of-type::before,
.home-article .catalog-content > h2:last-of-type::before {
	content: '';
	flex-shrink: 0;
	width: 5px;
	height: 36px;
	background: var( --brass );
	border-radius: 3px;
}
/* Последний CTA-параграф (текст под заголовком) — по центру */
.home-article .page-content > p:last-of-type,
.home-article .catalog-content > p:last-of-type {
	column-span: all;
	text-align: center;
	margin-top: 20px;
}
@media (max-width: 768px) {
	.home-article-head { margin-bottom: 36px; }
	.home-article .page-content,
	.home-article .catalog-content {
		column-count: 1;
		column-gap: 0;
		column-rule: none;
	}
}

