.breadcrumbs-custom a {
    vertical-align: baseline !important;
}
.navi a {
	position: relative;
    display: inline-block;
    min-height: 52px;
    min-width: 52px;
    height: 52px;
    padding: 10px 20px;
    color: #000;
    background: transparent;
    border-color: #cdcdcd;
    border: 1px solid;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 2.3;
    vertical-align: middle;
    margin-right: 5px;
}
.navi a:hover {
    color: #fff;
    background-color: #39bbe0;
    border-color: #39bbe0;
}
.navi span {
	position: relative;
    display: inline-block;
    min-height: 52px;
    min-width: 52px;
    height: 54px;
    margin-top: 7px;
    padding: 10px 20px;
    color: #fff;
    background-color: #39bbe0;
    border-color: #39bbe0;
    border: 1px solid;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 2.3;
    vertical-align: middle;
    margin-right: 5px;
}

#project .slick-slider-vertical .slick-thumb {
	padding-bottom: 0%;
}/* =====================================================================
   perm.arenda-shpunta.ru — надстройка к теме, 21.08.2026
   Дописывается в конец templates/Default/css/custom.css.
   style.css не трогаем: обновится тема — правки не потеряются.
   ===================================================================== */

/* --- Заголовок статьи (новости): в шаблоне был <h4>, стал <h1> --- */
.post-single__title {
	font-size: 28px;
	line-height: 1.25;
	font-weight: 700;
	color: #151515;
}

@media (min-width: 768px) {
	.post-single__title { font-size: 36px; }
}

@media (min-width: 1200px) {
	.post-single__title { font-size: 44px; }
}

/* --- Заголовок страницы услуги --- */
#project > h1 {
	font-size: 32px;
	line-height: 1.25;
	font-weight: 700;
	color: #151515;
}

@media (min-width: 1200px) {
	#project > h1 { font-size: 44px; }
}

/* --- Единый размер превью в списке услуг --- */
.thumb-minimal__image-wrap {
	display: block;
	width: 100%;
	padding-top: 64.6%; /* 469x303 */
	position: relative;
	overflow: hidden;
	background: #f5f5f5;
}

.thumb-minimal__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-width: 0;
	object-fit: cover;
	object-position: center;
}

/* Карточка занимает всю ширину ячейки: картинка больше не в потоке,
   иначе ширину задаёт длина заголовка. */
.thumb-minimal {
	display: block;
	width: 100%;
}

/* На экранах < 768px карточки лежат во flex-строке .row без ширины. */
@media (max-width: 767px) {
	.box-bordered__item {
		width: 100%;
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* --- Единый размер превью в списке новостей --- */
.post-modern__image-wrap {
	display: block;
	width: 100%;
	padding-top: 58.9%; /* 365x215 */
	position: relative;
	overflow: hidden;
	background: #f5f5f5;
}

.post-modern__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	min-width: 0;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transform: none;
}

/* --- Главная: блок новостей, карточки одной высоты --- */
.post-boxed {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
}

.post-boxed__image-wrap {
	display: block;
	width: 100%;
	padding-top: 67.7%; /* 524x355 */
	position: relative;
	overflow: hidden;
	background: #f5f5f5;
}

.post-boxed__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-width: 0;
	object-fit: cover;
	object-position: center;
}

.post-boxed__main {
	flex: 1 1 auto;
}

/* --- Главная: "Наши проекты" сеткой вместо слайдера ---
   Внутренности карточки (.thumb-janez) не трогаем: у темы там
   3D-эффект с выездом описания по наведению. */
.projects-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-top: 30px;
	text-align: left;
}

@media (min-width: 768px) {
	.projects-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 30px;
	}
}

/* Превью проекта — единая пропорция */
@media (min-width: 768px) {
	.projects-grid .thumb-janez__image-wrap {
		width: 100%;
		padding-top: 79.6%; /* 481x383 */
		position: relative;
		overflow: hidden;
		background: #f5f5f5;
	}

	.projects-grid .thumb-janez__image-wrap img {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

/* В сетке подпись видна всегда: у темы описание выезжает 3D-поворотом
   только по наведению — для статичных карточек это не годится,
   три чертежа без подписей не читаются. */
@media (min-width: 992px) {
	html:not(.tablet):not(.mobile) .projects-grid .thumb-janez {
		display: block;
	}

	html:not(.tablet):not(.mobile) .projects-grid .thumb-janez__image-wrap {
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
	}

	html:not(.tablet):not(.mobile) .projects-grid .thumb-janez img {
		min-width: 0;
		min-height: 0;
		transition: transform 0.4s;
	}

	html:not(.tablet):not(.mobile) .projects-grid .thumb-janez:hover img {
		transform: scale(1.04);
	}

	html:not(.tablet):not(.mobile) .projects-grid .thumb-janez__content {
		display: block;
		position: static;
		width: 100%;
		min-width: 0;
		min-height: 0;
		opacity: 1;
		transform: none;
	}
}

/* пустой анонс проекта не должен оставлять точки */
.thumb-janez__content-inner p:empty {
	display: none;
}

/* --- SEO-текст внизу главной ---
   Лежал внутри .range (flex-строка новостей с отрицательными полями) и на
   телефоне упирался в края экрана. Вынесен в свой блок. */
.seo-text {
	margin-top: 40px;
	text-align: justify;
}

.seo-text p + p { margin-top: 16px; }

@media (max-width: 767px) {
	.seo-text {
		padding-left: 5px;
		padding-right: 5px;
		/* моноширинный шрифт + выключка по формату на узком экране
		   рвёт строки дырами — выравниваем по левому краю */
		text-align: left;
	}
}

/* --- Типографика текста статей и услуг --- */
.post-single__main h2,
.post-single__main h3,
#project .layout-horizontal__main h3 {
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	margin: 34px 0 14px;
	color: #151515;
}

@media (min-width: 768px) {
	.post-single__main h2,
	.post-single__main h3 { font-size: 26px; }
}

.post-single__main p,
.post-single__main li {
	font-size: 16px;
	line-height: 1.65;
}

.post-single__main ul,
.post-single__main ol {
	margin: 14px 0 18px;
	padding-left: 22px;
	list-style: disc outside;
}

.post-single__main ol { list-style: decimal outside; }

.post-single__main li { margin-bottom: 8px; }

.post-single__main p + p { margin-top: 12px; }

.post-single__main img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 18px auto;
}

/* --- Таблицы в статьях: рамки, зебра, прокрутка на узких экранах --- */
.post-single__main table {
	width: 100%;
	min-width: 460px;
	border-collapse: collapse;
	margin: 18px 0;
	font-size: 15px;
	background: #fff;
}

.post-single__main table th,
.post-single__main table td {
	border: 1px solid #e1e1e1;
	padding: 10px 12px;
	text-align: left;
	vertical-align: middle;
}

.post-single__main table th {
	background: #f5f5f5;
	font-weight: 700;
	text-transform: none;
}

.post-single__main table tr:nth-child(even) td { background: #fafafa; }

/* обёртка в тексте: <div class="table-scroll"><table>…</table></div> */
.table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 18px 0;
}

.table-scroll table { margin: 0; }

/* --- Мобильные правки --- */
@media (max-width: 767px) {
	.post-single__main p,
	.post-single__main li { font-size: 15px; }

	.post-single__main table { font-size: 14px; }

	.post-single__main table th,
	.post-single__main table td { padding: 8px 10px; }

	.post-single__main,
	#project .layout-horizontal__main {
		overflow-wrap: break-word;
		word-wrap: break-word;
	}

	#project > h1 {
		padding: 18px 10px !important;
		font-size: 26px;
		line-height: 1.25;
	}
}
