/*
 * Раздел «О предприятии» в новом виде (редизайн 2026): шапка раздела
 * (подразделы — раскрытием у крошки), новости (лента и страница), текст из редактора админки,
 * галерея и просмотр фото во весь экран. Крошки и нумерация страниц — из
 * catalog.css, карточки и цвета — из home.css.
 */

.about-page {
	padding: 24px 0 clamp(52px, 5.5vw, 84px);
}

/* Шапка раздела ----------------------------------------------- */

.news-years .chip.is-current {
	border-color: var(--brand-fill);
	background: var(--brand-fill);
	color: var(--on-brand);
}

.about-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 16px;
	margin-top: 28px;
}

.v26 .about-head__title {
	margin: 0;
}

.v26 .about-head__count {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}

@media (max-width: 640px) {
	.about-head {
		margin-top: 20px;
	}
}

/* Новости: лента ---------------------------------------------- */

.news-years {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.news-years .chip {
	color: var(--ink);
	text-decoration: none;
}

.news-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 28px;
}

.news-item {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--ink);
	overflow: hidden;
	text-decoration: none;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

@media (hover: hover) {
	.news-item:hover {
		border-color: var(--brand);
		box-shadow: var(--shadow-md);
		transform: translateY(-2px);
	}

	.news-item:hover .news-item__media img {
		transform: scale(1.03);
	}

	.news-item:hover .news-item__title {
		color: var(--brand);
	}
}

.news-item__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--surface-sunken);
	overflow: hidden;
}

.news-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.news-item__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px 22px;
}

.news-item__date {
	color: var(--muted);
	font-size: 13px;
}

/* заголовки длинные и часто начинаются одинаково («Святейший Патриарх…
   совершил чин великого освящения…») — четыре строки, чтобы различались */
.news-item__title {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: var(--font-display, var(--font));
	font-size: 18px;
	line-height: 1.35;
	transition: color .15s ease;
}

.news-item__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
}

/* первая новость страницы — во всю ширину: снимок слева, текст справа */
.news-item--lead {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

/* кадр 16:10, а не по высоте снимка: у работ фото часто вертикальные,
   и карточка вытягивалась до 700px при одном заголовке справа */
.news-item--lead .news-item__media {
	aspect-ratio: 16 / 10;
	min-height: 0;
}

.news-item--lead .news-item__body {
	justify-content: center;
	gap: 14px;
	padding: clamp(24px, 3vw, 40px);
}

/* у работы есть своя история — метка на карточке */
.news-item__badge {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--accent) 18%, transparent);
	color: var(--accent-text);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
}

.news-item--lead .news-item__title {
	-webkit-line-clamp: 5;
	font-size: clamp(22px, 2vw, 28px);
	line-height: 1.25;
}

.news-item--lead.news-item--text {
	grid-template-columns: minmax(0, 1fr);
}

/*
 * «Наши работы», вариант «А» (звонок 26.11.2026): первая работа — на две
 * колонки из трёх и две строки, подпись поверх снимка; рядом две малые.
 * Так на первом экране сразу три работы, а не одна во всю ширину.
 */
.news-item--wide {
	position: relative;
	grid-column: span 2;
	grid-row: span 2;
	min-height: 0;
}

.news-item--wide .news-item__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.news-item--wide .news-item__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(3, 14, 18, .9) 0%, rgba(3, 14, 18, .45) 34%, rgba(3, 14, 18, 0) 62%);
	pointer-events: none;
}

.news-item--wide .news-item__body {
	position: relative;
	z-index: 1;
	justify-content: flex-end;
	gap: 12px;
	min-height: 100%;
	padding: clamp(22px, 3vw, 36px);
	color: #fff;
}

.news-item--wide .news-item__title {
	max-width: 640px;
	-webkit-line-clamp: 3;
	font-size: clamp(22px, 2.2vw, 30px);
	line-height: 1.25;
}

@media (hover: hover) {
	.news-item--wide:hover .news-item__title {
		color: #fff;
	}
}

.news-item--wide.news-item--text {
	grid-row: auto;
	color: var(--ink);
}

.news-item--wide.news-item--text .news-item__body {
	color: inherit;
}

/* «Наши работы», вариант «Б» (?vid=b): гармошка флагманов — стили
   .workshops__* с главной (home.css), здесь только отступы и высота */
.v26 .works-strip.workshops__strip {
	margin-top: 28px;
}

.works-strip + .news-list {
	margin-top: 40px;
}

/* на компьютере гармошка выше, чем на главной: здесь она — первый экран */
@media (hover: hover) and (min-width: 901px) {
	.v26 .works-strip.workshops__strip {
		height: clamp(380px, 34vw, 500px);
	}
}

.news-empty {
	margin-top: 28px;
	color: var(--muted);
}

.news-pages {
	margin-top: 36px;
}

@media (max-width: 1100px) {
	.news-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

@media (max-width: 1100px) {
	/* две колонки: широкая работа — во всю ширину кадром 16:10 */
	.news-item--wide {
		grid-row: auto;
		aspect-ratio: 16 / 10;
	}
}

@media (max-width: 640px) {
	.news-item--wide {
		grid-column: auto;
		aspect-ratio: 4 / 3;
	}

	.news-item--wide .news-item__title {
		font-size: 21px;
	}
}

@media (max-width: 760px) {
	.news-item--lead {
		display: flex;
	}

	.news-item--lead .news-item__media {
		aspect-ratio: 16 / 10;
		min-height: 0;
	}
}

@media (max-width: 640px) {
	.news-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		margin-top: 20px;
	}

	.news-item__body {
		padding: 14px 16px 18px;
	}

	.news-item__title {
		font-size: 17px;
	}

	.news-item--lead .news-item__body {
		padding: 16px 16px 20px;
	}

	.news-item--lead .news-item__title {
		font-size: 21px;
	}
}

/* Новости: страница ------------------------------------------- */

.news-article {
	max-width: 820px;
	margin-top: 24px;
}

.v26 .news-article__date {
	display: block;
	color: var(--accent-text);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
}

.v26 .news-article__title {
	margin: 10px 0 0;
	font-family: var(--font-display, var(--font));
	font-size: clamp(25px, 2.6vw, 36px);
	font-weight: 500;
	line-height: 1.22;
	letter-spacing: -.01em;
	text-wrap: pretty;
}

.v26 .news-article__lead {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 19px;
	line-height: 1.55;
}

/* через .v26: общий сброс обнуляет margin у figure, и фото липло к заголовку */
.v26 .news-article__cover {
	margin: 28px 0 0;
}

.news-article__cover button,
.about-gallery__item {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: var(--surface-sunken);
	cursor: zoom-in;
}

.news-article__cover button {
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.news-article__cover img {
	width: 100%;
	max-height: 560px;
	object-fit: cover;
}

.news-article__text {
	margin-top: 28px;
}

@media (max-width: 640px) {
	.news-article {
		margin-top: 16px;
	}

	.v26 .news-article__lead {
		font-size: 17px;
	}

	.v26 .news-article__cover {
		margin: 20px -16px 0;
	}

	.news-article__cover button {
		border-radius: 0;
	}
}

/*
 * «Читайте ещё» справа от текста — только на широком экране (Заказчик,
 * 16.11.2026): колонка текста 820px, и справа было пусто. Сколько карточек —
 * считает шаблон по объёму статьи; колонка прилипает под шапкой. Внизу в
 * «Других новостях» те, что уже справа, прячем; на узком экране наоборот —
 * колонки нет, внизу первые три.
 */
.news-aside {
	display: none;
}

@media (min-width: 1101px) {
	.news-layout {
		display: grid;
		grid-template-columns: minmax(0, 820px) minmax(260px, 300px);
		justify-content: space-between;
		align-items: start;
		gap: 56px;
	}

	.news-aside {
		display: block;
		align-self: stretch;
		margin-top: 24px;
	}

	.news-aside__inner {
		position: sticky;
		top: 96px;
		display: grid;
		gap: 16px;
	}

	.news-list--related .is-in-aside,
	.news-related.is-narrow-only {
		display: none;
	}
}

@media (max-width: 1100px) {
	.news-list--related .is-wide-only {
		display: none;
	}
}

.v26 .news-aside__title {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.news-aside .news-item__body {
	gap: 8px;
	padding: 14px 16px 16px;
}

.news-aside .news-item__title {
	-webkit-line-clamp: 3;
	font-size: 16px;
}

/* Текст из редактора админки ---------------------------------- */

/*
 * Тексты набирали в редакторе как придётся: свои шрифты, размеры, цвета,
 * выравнивание по центру и ширине, картинки с размерами в пикселях. Тон
 * задаёт страница: инлайновое оформление гасим, жирный и курсив оставляем.
 */
.v26 .prose {
	color: var(--ink);
	font-size: 17px;
	line-height: 1.7;
	overflow-wrap: break-word;
}

.prose [style] {
	color: inherit !important;
	background: none !important;
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	text-align: left !important;
	text-indent: 0 !important;
}

.v26 .prose p,
.v26 .prose ul,
.v26 .prose ol,
.v26 .prose blockquote,
.v26 .prose figure,
.v26 .prose table {
	margin: 0 0 16px;
}

.v26 .prose > :last-child {
	margin-bottom: 0;
}

.prose strong,
.prose b {
	font-weight: 600;
}

.prose a {
	color: var(--accent-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prose img {
	display: block;
	max-width: 100% !important;
	height: auto !important;
	margin: 20px 0;
	border-radius: var(--radius-md);
}

.prose iframe,
.prose video {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 20px 0;
	border: 0;
	border-radius: var(--radius-md);
}

.prose ul,
.prose ol {
	padding-left: 22px;
}

.prose li + li {
	margin-top: 6px;
}

.v26 .prose h2,
.v26 .prose h3,
.v26 .prose h4 {
	margin: 32px 0 12px;
	font-size: 21px;
	line-height: 1.35;
	font-weight: 600;
}

.v26 .prose > :first-child {
	margin-top: 0;
}

.v26 .prose blockquote {
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--accent);
	color: var(--muted);
	font-style: italic;
}

.prose table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 15px;
}

.prose th,
.prose td {
	padding: 8px 12px;
	border: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

/* пустые абзацы-отбивки из редактора («<p>&nbsp;</p>») не раздувают текст */
.v26 .prose p:empty {
	display: none;
}

@media (max-width: 640px) {
	.v26 .prose {
		font-size: 16px;
	}
}

/* Галерея ----------------------------------------------------- */

.about-gallery {
	margin-top: clamp(36px, 4vw, 56px);
}

.v26 .about-gallery__title {
	margin: 0 0 16px;
	font-size: 19px;
	font-weight: 600;
}

.about-gallery__title span {
	color: var(--muted);
	font-weight: 400;
}

.about-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}

.about-gallery__item {
	aspect-ratio: 1;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.about-gallery__item[hidden] {
	display: none;
}

.about-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s cubic-bezier(.2, .7, .2, 1), opacity .2s ease;
}

@media (hover: hover) {
	.about-gallery__item:hover img {
		transform: scale(1.04);
	}
}

.about-gallery__item:focus-visible,
.news-article__cover button:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

/*
 * Ровными рядами одной высоты (about.js ставит .is-justified, собирает ряды
 * и пропорции фото): ряд во всю ширину, вертикальное фото уже горизонтальных.
 */
.about-gallery__grid.is-justified {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.about-gallery__row {
	display: flex;
	gap: 10px;
	min-width: 0;
}

.is-justified .about-gallery__item {
	min-width: 0;
}

/* «С» из логотипа «Софрино» — маской, в золоте темы (плитка магазина без фото) */
.about-gallery__mark {
	width: min(64px, 46%);
	max-height: 70%;
	aspect-ratio: 1;
	background: var(--accent);
	opacity: .8;
	-webkit-mask: url(/static/img/layout/logo4.png) center / contain no-repeat;
	mask: url(/static/img/layout/logo4.png) center / contain no-repeat;
}

.about-gallery__more {
	margin-top: 16px;
}

@media (max-width: 640px) {
	.about-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}

	.about-gallery__grid.is-justified,
	.about-gallery__row {
		gap: 6px;
	}
}

/* Другие новости ---------------------------------------------- */

.news-related {
	margin-top: clamp(44px, 5vw, 72px);
	padding-top: clamp(28px, 3vw, 40px);
	border-top: 1px solid var(--border);
}

.news-related__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 20px;
}

.v26 .news-related__head h2 {
	margin: 0;
}

.news-list--related {
	margin-top: 20px;
}

@media (max-width: 1100px) {
	.news-list--related {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.news-list--related {
		grid-template-columns: minmax(0, 1fr);
	}

	/* на узком — строкой: снимок слева, заголовок справа */
	.news-list--related .news-item {
		display: grid;
		grid-template-columns: 132px minmax(0, 1fr);
	}

	.news-list--related .news-item--text {
		grid-template-columns: minmax(0, 1fr);
	}

	.news-list--related .news-item__media {
		aspect-ratio: auto;
		min-height: 100%;
	}

	.news-list--related .news-item__body {
		padding: 12px 14px;
		gap: 6px;
	}

	.news-list--related .news-item__title {
		-webkit-line-clamp: 3;
		font-size: 16px;
	}
}

/* Просмотр фото во весь экран --------------------------------- */

/*
 * Фон не глухой: полупрозрачный с размытием, страница чуть просвечивает
 * (Заказчик, 16.11.2026). И цвет, и размытие — у самого окна, а не у
 * ::backdrop: так смахивание светлеет фон (--lb-dim), а плавное закрытие
 * (opacity окна) гасит всё вместе.
 */
.lightbox {
	--lb-dim: .72;
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(6, 12, 14, var(--lb-dim));
	backdrop-filter: blur(16px) saturate(1.1);
	-webkit-backdrop-filter: blur(16px) saturate(1.1);
	color: #fff;
	overflow: hidden;
}

.lightbox::backdrop {
	background: transparent;
}

/* увеличение двойным касанием или щелчком: фото можно двигать */
.lightbox__slide img {
	cursor: zoom-in;
}

.lightbox.is-zoomed .lightbox__stage,
.lightbox.is-zoomed .lightbox__slide img {
	cursor: grab;
}

.lightbox.is-zoomed .lightbox__stage:active {
	cursor: grabbing;
}

.lightbox.is-zoomed .lightbox__slide img {
	box-shadow: none;
}

/* пока фото тянут пальцем, кнопки и счётчик не мешают */
.lightbox.is-dragging .lightbox__close,
.lightbox.is-dragging .lightbox__arrow,
.lightbox.is-dragging .lightbox__count {
	opacity: 0;
}

.lightbox[open] {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) 72px;
	grid-template-rows: minmax(0, 1fr);
	align-items: center;
	animation: lightbox-in .22s ease-out;
}

@keyframes lightbox-in {
	from {
		opacity: 0;
	}
}

.lightbox__stage {
	grid-column: 2;
	grid-row: 1;
	position: relative;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	touch-action: none;
	user-select: none;
}

/*
 * Три кадра в ряд с зазором, видимый — средний: каждый кадр шириной с
 * экран, сдвиг к среднему — ширина кадра плюс зазор (about.js).
 */
.lightbox__track {
	--lb-gap: 20px;
	display: flex;
	gap: var(--lb-gap);
	width: calc(300% + 2 * var(--lb-gap));
	height: 100%;
	transform: translate3d(calc(-33.3333% - var(--lb-gap) / 3), 0, 0);
	will-change: transform;
}

.lightbox__slide {
	display: grid;
	flex: 0 0 calc((100% - 2 * var(--lb-gap)) / 3);
	place-items: center;
	height: 100%;
	margin: 0;
	padding: 56px 12px;
}

.lightbox__slide img {
	max-width: 100%;
	max-height: 100%;
	min-height: 0;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
	-webkit-user-drag: none;
	will-change: transform;
}

.lightbox__slide img:not([src]) {
	visibility: hidden;
}

.lightbox__close,
.lightbox__arrow {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	transition: background .15s ease, opacity .2s ease;
}

.lightbox__close svg,
.lightbox__arrow svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (hover: hover) {
	.lightbox__close:hover,
	.lightbox__arrow:hover {
		background: rgba(255, 255, 255, .24);
	}
}

.lightbox__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
}

.lightbox__arrow {
	z-index: 1;
	justify-self: center;
}

.lightbox__arrow--prev {
	grid-column: 1;
	grid-row: 1;
}

.lightbox__arrow--next {
	grid-column: 3;
	grid-row: 1;
}

.lightbox__arrow[hidden] {
	visibility: hidden;
}

.lightbox__count {
	position: absolute;
	left: 50%;
	bottom: 16px;
	margin: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .25);
	color: rgba(255, 255, 255, .85);
	font-size: 14px;
	transform: translateX(-50%);
	transition: opacity .2s ease;
}

.lightbox__close:focus-visible,
.lightbox__arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* сенсорный экран: без стрелок — свайпы за пальцем и смахивание */
@media (hover: none) and (pointer: coarse), (max-width: 640px) {
	.lightbox[open] {
		grid-template-columns: minmax(0, 1fr);
	}

	.lightbox__stage {
		grid-column: 1;
	}

	.lightbox__arrow {
		display: none;
	}

	.lightbox__slide {
		padding: 56px 0 64px;
	}

	.lightbox__slide img {
		border-radius: 0;
	}
}

html.is-lightbox-open {
	overflow: hidden;
}

/* Полоса перехода по главам ----------------------------------- */

/* закреплена под шапкой (top ставит about.js по её нижнему краю);
   текущая глава подсвечена, ряд листается вбок */
.anchor-bar {
	position: sticky;
	z-index: 20;
	top: var(--header-height, 120px);
	margin-top: clamp(32px, 4vw, 52px);
	border-bottom: 1px solid var(--border);
	background: color-mix(in srgb, var(--page) 88%, transparent);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.anchor-bar__inner {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

.anchor-bar__inner::-webkit-scrollbar {
	display: none;
}

.anchor-bar__link {
	position: relative;
	flex: none;
	padding: 14px 12px 13px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s ease;
}

.anchor-bar__link:first-child {
	padding-left: 0;
}

.anchor-bar__link::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: -1px;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transition: transform .25s ease;
}

.anchor-bar__link:first-child::after {
	left: 0;
}

@media (hover: hover) {
	.anchor-bar__link:hover {
		color: var(--ink);
	}
}

.anchor-bar__link.is-current {
	color: var(--ink);
}

.anchor-bar__link.is-current::after {
	transform: scaleX(1);
}

/* Главы: цеха и залы ------------------------------------------ */

.v26 .chapters-intro {
	max-width: 820px;
	margin-top: 20px;
	font-size: 18px;
}

/* Выставочные залы: вступление и «Как к нам попасть» рядом */
.showroom-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: 24px clamp(24px, 4vw, 56px);
	align-items: start;
}

.showroom-intro .chapters-intro {
	max-width: 760px;
}

.showroom-visit {
	margin-top: 20px;
	padding: 22px 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.v26 .showroom-visit__title {
	margin: 0 0 12px;
	font-family: var(--font-display, var(--font));
	font-size: 22px;
	font-weight: 400;
}

.v26 .showroom-visit__line {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.5;
}

.showroom-visit__line span,
.showroom-visit__hours {
	color: var(--muted);
}

.v26 .showroom-visit__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 12px 0 0;
}

.showroom-visit__contacts a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.showroom-visit__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	color: var(--brand);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.showroom-visit__more svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (hover: hover) {
	.showroom-visit__contacts a:hover {
		color: var(--brand);
	}
}

@media (max-width: 900px) {
	.showroom-intro {
		grid-template-columns: minmax(0, 1fr);
	}

	.showroom-visit {
		margin-top: 0;
	}
}

.chapters {
	display: grid;
	gap: clamp(64px, 8vw, 120px);
	padding: clamp(48px, 6vw, 88px) 0 clamp(16px, 2vw, 24px);
}

.chapter {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
	scroll-margin-top: 140px;
}

/* поочерёдно: фото справа у чётных глав */
.chapter--left .chapter__media {
	order: 2;
}

.v26 .chapter__media {
	position: sticky;
	top: 140px;
	margin: 0;
}

.chapter__media button,
.chapter__thumb,
.longread-intro__cover button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: var(--surface-sunken);
	cursor: zoom-in;
	overflow: hidden;
}

.chapter__media button {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-lg);
}

.chapter__media img,
.chapter__thumb img,
.longread-intro__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

@media (hover: hover) {
	.chapter__media button:hover img,
	.chapter__thumb:hover img,
	.longread-intro__cover button:hover img {
		transform: scale(1.04);
	}
}

.v26 .chapter__num {
	margin: 0;
	color: var(--accent-text);
	font-family: var(--font-display, var(--font));
	font-size: clamp(40px, 4vw, 60px);
	line-height: 1;
}

.v26 .chapter__title {
	margin: 10px 0 0;
	font-family: var(--font-display, var(--font));
	font-size: clamp(26px, 2.6vw, 36px);
	font-weight: 500;
	line-height: 1.2;
}

.v26 .chapter__lead {
	margin-top: 16px;
	font-size: 17px;
}

.chapter__more {
	margin-top: 16px;
}

.chapter__more summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--accent-text);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

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

.chapter__more summary svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	transition: transform .2s ease;
}

.chapter__more[open] summary svg {
	transform: rotate(180deg);
}

.chapter__more-close,
.chapter__more[open] .chapter__more-open {
	display: none;
}

.chapter__more[open] .chapter__more-close {
	display: inline;
}

.v26 .chapter__text {
	margin-top: 14px;
	font-size: 16px;
}

.chapter__thumbs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	margin-top: 22px;
}

.chapter__thumb {
	aspect-ratio: 1;
	border-radius: var(--radius-md);
}

.chapter__thumb[hidden] {
	display: none;
}

.chapter__thumb--more {
	display: grid;
	place-items: center;
	background: var(--surface-subtle);
	color: var(--accent-text);
	font-family: var(--font-display, var(--font));
	font-size: 20px;
	cursor: pointer;
}

.chapter__media button:focus-visible,
.chapter__thumb:focus-visible,
.longread-intro__cover button:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

@media (max-width: 900px) {
	.chapter {
		grid-template-columns: minmax(0, 1fr);
		scroll-margin-top: 120px;
	}

	.chapter--left .chapter__media {
		order: 0;
	}

	.v26 .chapter__media {
		position: static;
	}

	.chapter__thumbs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Лонгрид: храм, музей ---------------------------------------- */

.longread-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
	margin-top: 24px;
}

.longread-intro--text {
	grid-template-columns: minmax(0, 820px);
}

.v26 .longread-intro__lead {
	font-size: 19px;
	line-height: 1.65;
}

.v26 .longread-intro__cover {
	margin: 0;
}

.longread-intro__cover button {
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-lg);
}

.longread-text {
	max-width: 820px;
	margin-top: clamp(32px, 4vw, 52px);
}

@media (max-width: 900px) {
	.longread-intro {
		grid-template-columns: minmax(0, 1fr);
	}

	.longread-intro__cover {
		order: -1;
	}

	.longread-intro__cover button {
		aspect-ratio: 4 / 3;
	}

	.v26 .longread-intro__lead {
		font-size: 17px;
	}
}

/* Видео-экскурсия музея (Rutube) ------------------------------- */

.about-videos {
	margin-top: clamp(36px, 4vw, 56px);
}

.about-videos__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.about-videos__item {
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-md);
	background: var(--surface-sunken);
	overflow: hidden;
}

.about-videos__item iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 1100px) {
	.about-videos__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.about-videos__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Проявление при прокрутке (about.js ставит .is-in) ------------- */

@media (prefers-reduced-motion: no-preference) {
	.reveal-ready [data-reveal] {
		transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
	}

	.reveal-ready [data-reveal]:not(.is-in) {
		opacity: 0;
		transform: translateY(32px);
	}
}

/* Справочные: документы ---------------------------------------- */

.v26 .ref-intro {
	max-width: 820px;
	margin-top: 20px;
}

.doc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.doc-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

@media (hover: hover) {
	.doc-card:hover {
		border-color: var(--brand);
		box-shadow: var(--shadow-md);
		transform: translateY(-2px);
	}
}

.doc-card__open {
	display: flex;
	flex: 1;
	flex-direction: column;
	color: var(--ink);
	text-decoration: none;
}

.doc-card__thumb {
	display: grid;
	place-items: center;
	aspect-ratio: 3 / 4;
	padding: 14px;
	background: var(--surface-subtle);
	color: var(--muted);
}

.doc-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	box-shadow: var(--shadow-sm);
}

.doc-card__thumb svg {
	width: 48px;
	height: 48px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.doc-card__name {
	padding: 14px 16px 6px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

.doc-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 16px 14px;
}

.doc-card__kind {
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.doc-card__download {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--accent-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.doc-card__download svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 640px) {
	.doc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}

/* Справочные: ссылки ------------------------------------------- */

.link-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 16px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.link-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	height: 100%;
	padding: 20px 52px 20px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}

@media (hover: hover) {
	.link-card:hover {
		border-color: var(--accent);
		box-shadow: var(--shadow-md);
	}
}

.link-card__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: var(--radius-md);
	background: var(--surface-subtle);
	color: var(--accent-text);
	font-family: var(--font-display, var(--font));
	font-size: 22px;
	overflow: hidden;
}

.link-card__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.link-card__body {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.link-card__body b {
	font-size: 17px;
	font-weight: 600;
}

.link-card__host {
	color: var(--accent-text);
	font-size: 14px;
	overflow-wrap: anywhere;
}

.link-card__about {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

.link-card__arrow {
	position: absolute;
	top: 20px;
	right: 18px;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--accent);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 640px) {
	.link-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Справочные: реквизиты ---------------------------------------- */

.reqs {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
	margin-top: 28px;
}

.reqs--text {
	grid-template-columns: minmax(0, 820px);
}

.reqs-card {
	padding: clamp(20px, 2.4vw, 32px);
	border: 1px solid var(--border);
	border-top: 3px solid var(--accent);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.reqs-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px 20px;
}

.v26 .reqs-card__title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
}

.v26 .reqs-card__company {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

.reqs-card__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.reqs-card__all svg,
.reqs-card__copy svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.v26 .reqs-card__list {
	margin: 18px 0 0;
}

.reqs-card__row {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 10px 0;
	border-top: 1px solid var(--border);
}

.v26 .reqs-card__row dt {
	color: var(--muted);
	font-size: 14px;
}

.v26 .reqs-card__row dd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.reqs-card__row dd > span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.reqs-card__copy {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--accent-text);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	opacity: .75;
	transition: background .15s ease, opacity .15s ease;
}

@media (hover: hover) {
	.reqs-card__row:hover .reqs-card__copy,
	.reqs-card__copy:hover {
		opacity: 1;
	}

	.reqs-card__copy:hover {
		background: color-mix(in srgb, var(--accent) 14%, transparent);
	}
}

.reqs-card__copy.is-copied,
.reqs-card__all.is-copied {
	opacity: 1;
	color: var(--brand);
}

.v26 .reqs-text {
	font-size: 16px;
}

@media (max-width: 900px) {
	.reqs {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 520px) {
	.reqs-card__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.reqs-card__copy [data-copy-label] {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
}

/* Справочные: вакансии ----------------------------------------- */

.jobs-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
	margin-top: 24px;
}

.jobs-intro--text {
	grid-template-columns: minmax(0, 820px);
}

.v26 .jobs-intro__text {
	font-size: 16px;
}

.v26 .jobs-intro__cover {
	margin: 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.jobs-intro__cover img {
	width: 100%;
	height: auto;
}

.jobs {
	margin-top: clamp(40px, 5vw, 64px);
}

.jobs__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}

.v26 .jobs__head h2 {
	margin: 0;
}

.jobs__search {
	position: relative;
	flex: 0 1 340px;
}

.jobs__search svg {
	position: absolute;
	top: 50%;
	left: 14px;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--muted);
	stroke-width: 2;
	stroke-linecap: round;
	transform: translateY(-50%);
	pointer-events: none;
}

.jobs__search input {
	width: 100%;
	height: 44px;
	padding: 0 14px 0 42px;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 15px;
}

.jobs__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 32px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.jobs__list > li[hidden] {
	display: none;
}

.job {
	border-bottom: 1px solid var(--border);
}

.job summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 2px;
	font-size: 17px;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}

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

.job summary svg {
	flex: none;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--accent);
	stroke-width: 2;
	stroke-linecap: round;
	transition: transform .2s ease;
}

.job[open] summary svg {
	transform: rotate(180deg);
}

@media (hover: hover) {
	.job summary:hover {
		color: var(--brand);
	}
}

.v26 .job__text {
	padding: 0 2px 20px;
	font-size: 15px;
}

.jobs__empty {
	margin-top: 20px;
	color: var(--muted);
}

@media (max-width: 900px) {
	.jobs-intro,
	.jobs__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.jobs-intro__cover {
		order: -1;
	}

	.jobs__search {
		flex-basis: 100%;
	}
}

/* Справочные: отзывы ------------------------------------------- */

/* свои классы review-entry: у отзывов на главной есть .review-card с
   линией над шапкой, курсивом и обрезкой текста — сюда они не нужны */

.reviews-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
	margin-top: 28px;
}

.reviews-list {
	display: grid;
	gap: 16px;
}

.review-entry {
	padding: clamp(18px, 2vw, 26px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.review-entry__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.review-entry__avatar {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--accent) 18%, transparent);
	color: var(--accent-text);
	font-family: var(--font-display, var(--font));
	font-size: 19px;
}

.review-entry__name {
	display: block;
	font-weight: 600;
}

.review-entry__date {
	color: var(--muted);
	font-size: 13px;
}

.v26 .review-entry__text {
	margin-top: 14px;
	font-size: 16px;
	line-height: 1.65;
}

.review-entry__reply {
	margin-top: 16px;
	padding: 14px 16px;
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	background: var(--surface-subtle);
}

.v26 .review-entry__reply-label {
	margin: 0 0 6px;
	color: var(--accent-text);
	font-size: 13px;
	font-weight: 600;
}

.review-entry__reply .prose {
	font-size: 15px;
}

.reviews-pages {
	margin-top: 20px;
}

.review-form {
	position: sticky;
	top: 120px;
	padding: clamp(20px, 2.4vw, 28px);
	border: 1px solid var(--border);
	border-top: 3px solid var(--accent);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.v26 .review-form__title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 600;
}

.review-form__field {
	display: grid;
	gap: 6px;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 500;
}

.review-form__field input,
.review-form__field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	background: var(--page);
	color: var(--ink);
	font: inherit;
	font-size: 15px;
	font-weight: 400;
	resize: vertical;
}

.review-form__field input:focus,
.review-form__field textarea:focus {
	border-color: var(--accent);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.review-form__submit {
	width: 100%;
}

.review-form__error {
	margin: 0 0 12px;
	color: #C4472E;
	font-size: 14px;
}

.review-form__done b {
	display: block;
	font-family: var(--font-display, var(--font));
	font-size: 22px;
	font-weight: 400;
}

.v26 .review-form__done p {
	margin: 6px 0 0;
	color: var(--muted);
}

@media (max-width: 900px) {
	.reviews-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.review-form {
		position: static;
	}
}

/* Вакансия в окне ----------------------------------------------- */

/* со скриптом пункты не раскрываются на месте, а открывают окно —
   стрелка смотрит вправо, как у ссылки */
.jobs.is-modal .job summary svg {
	transform: rotate(-90deg);
}

.jobs.is-modal .job[open] summary svg {
	transform: rotate(-90deg);
}

.job-dialog {
	width: min(760px, calc(100vw - 32px));
	max-height: min(86vh, 900px);
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--ink);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	overflow: hidden;
}

.job-dialog[open] {
	display: flex;
	flex-direction: column;
}

.job-dialog::backdrop {
	background: rgba(4, 9, 11, .55);
	backdrop-filter: blur(2px);
}

.job-dialog__head {
	position: relative;
	padding: clamp(20px, 2.6vw, 30px) 64px 16px clamp(20px, 2.6vw, 32px);
	border-bottom: 1px solid var(--border);
}

.v26 .job-dialog__kicker {
	margin: 0;
	color: var(--accent-text);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.v26 .job-dialog__title {
	margin: 6px 0 0;
	font-family: var(--font-display, var(--font));
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 500;
	line-height: 1.25;
}

.job-dialog__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: var(--surface-subtle);
	color: var(--ink);
	cursor: pointer;
}

.job-dialog__close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.v26 .job-dialog__body {
	flex: 1;
	min-height: 0;
	padding: 20px clamp(20px, 2.6vw, 32px) 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
	font-size: 16px;
}

.job-dialog__foot {
	padding: 16px clamp(20px, 2.6vw, 32px) 20px;
	border-top: 1px solid var(--border);
	background: var(--surface-subtle);
}

.v26 .job-dialog__foot-title {
	margin: 0 0 6px;
	color: var(--accent-text);
	font-size: 13px;
	font-weight: 600;
}

.job-dialog__foot .prose {
	font-size: 15px;
}

/* на телефоне — снизу во всю ширину */
@media (max-width: 640px) {
	.job-dialog {
		width: 100vw;
		max-width: none;
		max-height: 92vh;
		margin: auto 0 0;
		border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	}
}

html.is-job-open {
	overflow: hidden;
}

/* Контакты ------------------------------------------------------ */

/* Все пункты сразу карточками: фото, название, адрес, телефон, часы.
   Вся карточка — ссылка на пункт (растянутая ссылка заголовка), телефон
   поверх неё — звонит. */
/*
 * Темы вопросов под заголовком контактов: строка плашек, по нажатию —
 * панель «кому звонить» (раскрывашка как «Категории» в каталоге, на
 * телефоне — лист снизу, см. catalog.css .sort-menu__list). С 20.11.2026
 * компактно: без заголовка «По какому вопросу?» и без подложки-блока,
 * просто строка плашек над карточками.
 */
.contact-ask {
	margin-top: 20px;
}

.contact-ask__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.contact-ask__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 10px 0 14px;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font-size: 14px;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
	user-select: none;
	transition: border-color .15s ease, background .15s ease;
}

.contact-ask__chip::-webkit-details-marker {
	display: none;
}

.contact-ask__chip svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .15s ease;
}

@media (hover: hover) {
	.contact-ask__chip:hover {
		border-color: var(--accent);
	}
}

.contact-ask__topic[open] > .contact-ask__chip {
	border-color: var(--brand);
	background: var(--brand);
	color: #fff;
}

.contact-ask__topic[open] > .contact-ask__chip svg {
	transform: rotate(180deg);
}

.contact-ask__chip:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

.sort-menu__list.contact-ask__panel {
	gap: 4px;
	width: min(380px, calc(100vw - 32px));
	max-height: min(70vh, 520px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 10px;
}

.ask-person {
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	font-size: 15px;
	line-height: 1.45;
}

.ask-person + .ask-person {
	border-top: 1px solid var(--border);
	border-radius: 0;
}

.v26 .ask-person p {
	margin: 0;
}

.v26 .ask-person__role {
	color: var(--muted);
	font-size: 13px;
}

.v26 .ask-person__name {
	margin-top: 2px;
	font-weight: 600;
}

.ask-person a,
.diocese-finder a {
	color: var(--brand);
	text-decoration: none;
}

@media (hover: hover) {
	.ask-person a:hover,
	.diocese-finder a:hover {
		text-decoration: underline;
	}
}

/* поиск менеджера по епархии внутри «Храмам и епархиям» */
.diocese-finder {
	display: grid;
	gap: 8px;
	padding: 4px 4px 2px;
}

.diocese-finder__label {
	font-size: 15px;
	font-weight: 600;
}

.diocese-finder__input {
	width: 100%;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}

.diocese-finder__input:focus {
	border-color: var(--brand);
	outline: none;
}

.v26 .diocese-finder__hint {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.diocese-finder__results {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.diocese-finder__row,
.diocese-finder__more {
	display: grid;
	gap: 2px;
	padding: 10px 2px;
	border-top: 1px solid var(--border);
	font-size: 15px;
	line-height: 1.4;
}

.diocese-finder__more {
	color: var(--muted);
	font-size: 14px;
}

.diocese-finder__where {
	font-weight: 600;
}

.diocese-finder__where small {
	display: block;
	color: var(--muted);
	font-size: 13px;
	font-weight: 400;
}

.diocese-finder__who {
	margin-top: 4px;
}

@media (max-width: 640px) {
	.contact-ask {
		margin-top: 16px;
	}

	/* одиннадцать тем столбиком заняли бы весь экран — одной лентой с
	   прокруткой вбок, как полоса разделов каталога; ответ выезжает
	   листом снизу (fixed — лентой не обрезается) */
	.contact-ask__list {
		flex-wrap: nowrap;
		gap: 6px;
		margin: 0 -16px;
		padding: 0 16px 2px;
		overflow-x: auto;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
	}

	.contact-ask__list::-webkit-scrollbar {
		display: none;
	}

	.contact-ask__topic {
		flex: none;
	}

	.contact-ask__chip {
		min-height: 38px;
		padding: 0 10px 0 14px;
		font-size: 14px;
		white-space: nowrap;
	}

	.sort-menu__list.contact-ask__panel {
		width: auto;
		max-height: 80vh;
	}
}

.contact-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 20px;
	margin-top: 28px;
}

.contact-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	overflow: hidden;
	scroll-margin-top: 110px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

@media (hover: hover) {
	.contact-tile:hover {
		border-color: var(--border-strong);
		box-shadow: var(--shadow-md);
	}

	.contact-tile:hover .contact-tile__more {
		color: var(--brand);
	}

	.contact-tile:hover .contact-tile__more svg {
		transform: translateX(3px);
	}
}

.contact-tile:target {
	border-color: var(--accent);
}

.contact-tile__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--surface-sunken);
	overflow: hidden;
}

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

.contact-tile__media--empty {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 7;
	background:
		radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 14%, transparent) 0, transparent 60%),
		repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 9%, transparent) 0 1px, transparent 1px 12px),
		repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 9%, transparent) 0 1px, transparent 1px 12px),
		var(--surface-subtle);
}

.contact-tile__media--empty .about-gallery__mark {
	width: 52px;
}

.contact-tile__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px 20px;
}

/*
 * Город — бейджем на фото, а не строкой над названием (Заказчик,
 * 19.11.2026): строка сдвигала название, и у карточек без города оно
 * стояло на другом уровне. Светлая плашка читается на любом снимке.
 */
.contact-tile__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	max-width: calc(100% - 24px);
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 1px 4px rgba(16, 32, 31, .18);
	color: #10201F;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* автор снимка со свободной лицензией — мелко в углу фото, ссылкой
   над растянутой ссылкой карточки */
.contact-tile__credit {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 2;
	max-width: 100%;
	padding: 3px 8px;
	border-top-left-radius: 6px;
	background: rgba(16, 32, 31, .55);
	color: rgba(255, 255, 255, .9);
	font-size: 11px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.contact-tile__credit a {
	color: inherit;
}

.v26 .contact-tile__title {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
}

.contact-tile__title a {
	color: var(--ink);
	text-decoration: none;
}

.contact-tile__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.contact-tile__title a:focus-visible {
	outline: none;
}

.contact-tile:has(.contact-tile__title a:focus-visible) {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

/*
 * Отдел внутри магазина (лавка в Торговом доме в Петербурге, 20.11.2026):
 * строкой под фактами, за тонкой чертой. Ссылки — поверх растянутой ссылки
 * карточки, как телефон.
 */
.contact-tile__inside {
	display: grid;
	gap: 2px;
	padding-top: 10px;
	border-top: 1px solid var(--border);
	font-size: 14px;
	line-height: 1.45;
}

.v26 .contact-tile__inside p {
	margin: 0;
}

.contact-tile__inside a {
	position: relative;
	z-index: 2;
}

.contact-tile__inside-title a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.contact-tile__inside-line {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 10px;
	color: var(--muted);
}

.contact-tile__inside-line a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

@media (hover: hover) {
	.contact-tile__inside a:hover {
		color: var(--brand);
	}
}

.v26 .contact-tile__note {
	margin: 0;
	color: #C8613C;
	font-size: 14px;
	font-weight: 500;
}

.contact-facts {
	display: grid;
	gap: 8px;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 1.45;
}

.contact-facts li {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}

.contact-facts svg {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-facts small {
	display: block;
	color: var(--muted);
	font-size: 14px;
}

.contact-facts__link a {
	position: relative;
	z-index: 2;
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

@media (hover: hover) {
	.contact-facts__link a:hover {
		color: var(--brand);
	}
}

/* почта длиннее телефона и не так важна: обычным начертанием и с переносом */
/*
 * «Открыто до 19:00» / «Закрыто · откроется завтра в 10:00» над часами —
 * ставит static/js/v26/contacts.js по расписанию пункта и времени в Москве.
 */
.open-status {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 2px;
	color: var(--muted);
	font-weight: 600;
}

.open-status::before {
	content: "";
	flex: none;
	align-self: flex-start;
	width: 8px;
	height: 8px;
	margin-top: .5em;
	border-radius: 50%;
	background: currentColor;
}

.open-status--open {
	color: #2E7D4F;
}

.open-status--soon {
	color: #B7791F;
}

.v26[data-theme="dark"] .open-status--open {
	color: #6FCF97;
}

.v26[data-theme="dark"] .open-status--soon {
	color: #F2C14E;
}

.contact-facts__mail a {
	font-weight: 400;
	white-space: normal;
	overflow-wrap: anywhere;
}

.contact-tile__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 6px;
	color: var(--accent-text);
	font-size: 14px;
	font-weight: 600;
	transition: color .15s ease;
}

.contact-tile__more svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .15s ease;
}

@media (max-width: 640px) {
	.contact-tiles {
		gap: 14px;
		margin-top: 20px;
	}

	/* фото сверху невысокой полосой: сбоку узкой колонкой на всю высоту
	   карточки снимок превращался в непонятную вертикальную полоску */
	.contact-tile__media {
		aspect-ratio: 16 / 7;
	}

	/* телефон с добавочным не помещается в строку — переносим, а не режем */
	.contact-facts__link a {
		white-space: normal;
	}

	/* без фото на телефоне заглушка только съедает ширину — текст во всю */
	.contact-tile--no-photo {
		display: flex;
	}

	.contact-tile--no-photo .contact-tile__media {
		display: none;
	}

	.contact-tile__body {
		padding: 14px 16px 16px;
	}



	.v26 .contact-tile__title {
		font-size: 17px;
	}
}

/* Пункт контактов: текст и карта, ниже — полный текст */
.contact-card--item {
	margin-top: 28px;
}

.contact-card__figure {
	margin: 0;
}

.contact-card__credit {
	margin-top: 6px;
	color: var(--muted);
	font-size: 12px;
}

.contact-card__credit a {
	color: inherit;
}

.contact-card__photo {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius-md);
	object-fit: cover;
}

.contacts-back {
	margin: 28px 0 0;
}

.contacts-back a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent-text);
	font-weight: 600;
	text-decoration: none;
}

.contacts-back svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	gap: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	overflow: hidden;
}

.contact-card--text {
	grid-template-columns: minmax(0, 1fr);
}

.contact-card__info {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(20px, 2.4vw, 30px);
}

.v26 .contact-card__title {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.35;
}

.v26 .contact-card__text {
	font-size: 16px;
	line-height: 1.6;
}

.v26 .contact-card__text p {
	margin-bottom: 12px;
}

/* предупреждения в тексте (в админке — красным) оставляем заметными */
.contacts-page .prose [style*="color"] {
	display: inline-block;
	color: #C8613C !important;
	font-weight: 500;
}

/* шапка пункта: факты крупнее, чем на карточке, и кнопки действий */
.contact-facts--lead {
	gap: 10px;
	font-size: 16px;
}

.contact-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

/* «Позвонить» — главная: при нечётном числе кнопок во всю ширину */
.contact-actions__btn:first-child:nth-last-child(odd) {
	grid-column: 1 / -1;
}

.contact-actions__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
}

.contact-actions__btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* остаток текста из админки — после фактов, отделён линией */
.v26 .contact-card__text {
	padding-top: 14px;
	border-top: 1px solid var(--border);
}

.contact-card__map {
	min-height: 320px;
	border-left: 1px solid var(--border);
	background: var(--surface-sunken);
}

.contact-card__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
}

.contact-card > .contact-card__extra {
	grid-column: 1 / -1;
	padding: 18px clamp(20px, 2.4vw, 30px) 22px;
	border-top: 1px solid var(--border);
}

.v26 .contact-card__extra {
	font-size: 15px;
}

/*
 * Сотрудники пункта (у отдела продаж) — списком людей вместо таблицы из
 * админки: группа («Пошивочный салон», «Менеджеры по России») и люди в ней
 * сеткой; должность, имя, телефоны, почта (Pages/contacts_view_v26).
 */
.staff {
	display: grid;
	gap: 20px;
}

.staff__group {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 14px 28px;
	padding-top: 18px;
	border-top: 1px solid var(--border);
}

.staff__group:first-child {
	padding-top: 0;
	border-top: 0;
}

.v26 .staff__row {
	grid-column: 1 / -1;
	margin: 0 0 -4px;
	color: var(--accent-text);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.v26 .staff__person p {
	margin: 0;
	line-height: 1.5;
}

.v26 .staff__label {
	color: var(--muted);
	font-size: 13px;
}

.v26 .staff__name {
	font-weight: 600;
}

.staff__line a {
	color: var(--brand);
	text-decoration: none;
}

@media (hover: hover) {
	.staff__line a:hover {
		text-decoration: underline;
	}
}

/* таблица сотрудников из админки — без чужих рамок, строками */
.contact-card__extra table {
	display: table;
	width: 100%;
	border-collapse: collapse;
}

.contact-card__extra td {
	padding: 12px 12px 12px 0;
	border: 0;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

.contact-card__extra td:first-child {
	width: 38%;
	color: var(--muted);
}

@media (max-width: 900px) {
	.contact-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.contact-card__map {
		order: 2;
		min-height: 260px;
		border-top: 1px solid var(--border);
		border-left: 0;
	}

	.contact-card__map iframe {
		min-height: 260px;
	}

	.contact-card > .contact-card__extra {
		order: 3;
	}

	.contact-card__extra td {
		display: block;
		width: auto !important;
		padding: 4px 0;
		border-bottom: 0;
	}

	.contact-card__extra tr {
		display: block;
		padding: 10px 0;
		border-bottom: 1px solid var(--border);
	}
}
