/* AeroCDM.by — общий слой: шапка, подвал, контент, сайдбар. Подключается на всех страницах. */

:root {
	--ac-ink: #101d26;
	--ac-text: #26333c;
	--ac-body: #40505b;
	--ac-muted: #6b7b86;
	--ac-accent: #0e7bb5;
	--ac-accent-dark: #0a5d8b;
	--ac-soft: #f7fafc;
	--ac-line: #e6eef4;
}

/* фон: перекрывает body{background:#E8E9EE url(bg.png)} из style.php (наш файл грузится позже) */
body {
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ac-text);
}
/* WP печатает в <head> инлайновый стиль body.custom-background{background-color:...} —
   перекрываем весом селектора, без !important */
html body.custom-background {
	background-color: #fff;
	background-image: none;
}

#wrap { width: 100%; }
.inner {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}
.inner::after { content: ""; display: block; clear: both; }

/* ---------- фокус с клавиатуры ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid rgba(14, 123, 181, .55);
	outline-offset: 2px;
}

/* ---------- шапка ---------- */
#header {
	background: #fff;
	height: auto;
	box-shadow: none;
	border-bottom: 1px solid var(--ac-line);
}
#header .inner {
	display: flex;
	align-items: center;
	gap: 24px;
}
/* clearfix .inner::after во flex-контейнере становится лишним элементом и съедает gap */
#header .inner::after { content: none; }
.logo {
	width: auto;
	float: none;
	margin: 0;
	padding: 14px 0;
	flex: 0 0 auto;
}
.logo img {
	height: 46px;
	width: auto;
	display: block;
	/* белый логотип из настроек: на белой шапке показываем тёмным */
	filter: brightness(0) saturate(100%);
}
.logo .animated { animation: none; }
.logo .blogtitle a {
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-weight: 700;
	font-size: 26px;
	color: var(--ac-ink);
	text-decoration: none;
}
.logo .desc { font-size: 13px; color: var(--ac-muted); }

#menu { float: none; width: auto; margin-left: auto; }
.menunav { width: auto; float: none; background: none; }

@media (min-width: 1025px) {
	.menunav ul { float: none; display: flex; align-items: center; }
	.menunav ul li { float: none; display: block; }
	.menunav ul li > a {
		padding: 26px 14px;
		font-size: 14px;
		font-weight: 600;
		letter-spacing: .04em;
		text-transform: uppercase;
		color: #24333d;
		border-bottom: 2px solid transparent;
		text-decoration: none;
	}
	.menunav li.current-menu-item > a,
	.menunav li.current_page_item > a,
	.menunav li.current-menu-parent > a,
	.menunav li.current-menu-ancestor > a,
	.menunav ul li > a:hover {
		background: transparent;
		color: var(--ac-accent);
		border-bottom-color: var(--ac-accent);
	}
	/* выпадающее меню на CSS: style.php прячет подпункты, показываем по наведению и фокусу с клавиатуры */
	.menunav ul li:hover > ul,
	.menunav ul li:focus-within > ul {
		display: block;
		visibility: visible;
	}
	.menunav .menu-item-has-children:hover { background: transparent; }
	.menunav ul li ul {
		top: 100%;
		left: -10px;
		background: #fff;
		border: 1px solid var(--ac-line);
		border-radius: 12px;
		box-shadow: 0 18px 40px rgba(15, 33, 45, .12);
		padding: 8px;
		width: 280px;
		overflow: hidden;
	}
	.menunav ul li ul li a {
		padding: 10px 14px;
		font-size: 14px;
		font-weight: 500;
		text-transform: none;
		letter-spacing: 0;
		border: 0;
		border-radius: 8px;
		text-decoration: none;
	}
	.menunav ul li ul li a:hover {
		background: #f2f8fc;
		color: var(--ac-accent);
		padding-left: 18px;
	}
	.menunav ul li ul li ul { top: -8px; left: 100%; }
}

/* бургер мобильного меню: на десктопе скрыт, на телефоне открывает панель навигации */
.ac-burger {
	display: none;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	padding: 9px 14px;
	border: 1px solid var(--ac-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ac-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.ac-burger__icon {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ac-burger__icon span {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}
.ac-burger:hover,
.ac-burger[aria-expanded="true"] {
	border-color: var(--ac-accent);
	color: var(--ac-accent);
}

@media (max-width: 1024px) {
	#header .inner { flex-wrap: wrap; gap: 0; padding-top: 4px; padding-bottom: 10px; }
	.logo { padding: 10px 0; }
	.logo img { height: 40px; }
	.ac-burger { display: inline-flex; }
	#menu { order: 3; width: 100%; margin-left: 0; }
	.ac-nav { display: none; width: 100%; padding: 4px 0 6px; }
	.ac-nav.is-open { display: block; }
	/* width/height/overflow сбрасывают легаси-правило style.php (≤768: .nav-menu{margin-left:-9999px;width:0;height:0}) */
	.ac-nav ul {
		display: block;
		float: none;
		width: auto;
		height: auto;
		overflow: visible;
		margin: 0;
		padding: 0;
		list-style: none;
	}
	.ac-nav ul li {
		position: static;
		display: block;
		float: none;
		border-top: 1px solid var(--ac-line);
	}
	.ac-nav ul li a {
		display: block;
		padding: 12px 2px;
		font-size: 15px;
		line-height: 1.4;
		font-weight: 600;
		text-transform: none;
		letter-spacing: 0;
		color: var(--ac-ink);
	}
	.ac-nav ul li a:hover,
	.ac-nav ul li.current-menu-item > a,
	.ac-nav ul li.current-menu-parent > a,
	.ac-nav ul li.current-menu-ancestor > a {
		background: none;
		color: var(--ac-accent);
	}
	/* подпункты в мобильной панели — обычный список с отступом */
	.ac-nav ul li ul {
		position: static;
		display: block;
		visibility: visible;
		width: auto;
		margin: 0;
		padding: 0 0 8px 14px;
		background: none;
	}
	.ac-nav ul li ul li { border-top: 0; }
	.ac-nav ul li ul li a {
		padding: 8px 2px;
		font-size: 14px;
		font-weight: 500;
		color: var(--ac-muted);
	}
}

/* ---------- сетка страницы ---------- */
.main-col {
	float: left;
	box-sizing: border-box;
	width: calc(100% - 340px);
	padding: 0 40px 0 0;
	margin: 34px 40px 40px 0;
	min-width: 0;
	/* в теме справа от контента пунктирный разделитель — в новом дизайне не нужен */
	border-right: 0;
}
.main-col-fullwidth {
	float: none;
	box-sizing: border-box;
	width: 100%;
	padding: 0;
	margin-right: 0;
}
.sidebar {
	float: right;
	width: 300px;
	margin: 34px 0 40px;
}

@media (max-width: 960px) {
	.main-col, .main-col-fullwidth, .sidebar {
		float: none;
		width: 100%;
		margin: 24px 0;
	}
}

/* ---------- контент ---------- */
.entry { color: var(--ac-body); }
.entry :is(h1, h2, h3, h4) {
	font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	color: var(--ac-ink);
	font-weight: 700;
	letter-spacing: -.01em;
	text-transform: none;
	text-align: left;
	border: 0;
}
.entry h1 { font-size: 40px; line-height: 1.15; margin: 0 0 20px; }
.entry h2 { font-size: 26px; line-height: 1.28; margin: 32px 0 12px; }
.entry h3 { font-size: 21px; line-height: 1.3; margin: 26px 0 10px; }
.entry h4 { font-size: 18px; line-height: 1.35; margin: 22px 0 8px; }
.entry p { margin: 0 0 16px; }
.entry :is(ul, ol) { margin: 0 0 18px 24px; }
.entry ul { list-style: disc outside; }
.entry ol { list-style: decimal outside; }
/* в теме у пунктов списков картинка-маркер и padding — убираем */
.entry :is(ul, ol) li {
	margin: 0 0 8px;
	padding: 0;
	background: none;
}
.entry a {
	color: var(--ac-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.entry a:hover { color: var(--ac-accent-dark); }
.entry :is(strong, b) { color: var(--ac-ink); font-weight: 600; }
.entry hr { border: 0; border-top: 1px solid var(--ac-line); margin: 28px 0; }

.entry img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}
.entry img.alignright { float: right; margin: 4px 0 18px 26px; max-width: 46%; }
.entry img.alignleft { float: left; margin: 4px 26px 18px 0; max-width: 46%; }
.entry img.aligncenter { display: block; margin: 8px auto; }

.entry blockquote {
	background: var(--ac-soft);
	border-left: 3px solid var(--ac-accent);
	border-radius: 0 12px 12px 0;
	margin: 22px 0;
	padding: 18px 22px;
	color: var(--ac-body);
}

.entry table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 15px;
}
.entry table :is(th, td) {
	border: 1px solid var(--ac-line);
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
}
.entry table th { background: var(--ac-soft); color: var(--ac-ink); font-weight: 600; }

/* каталог: таблица со ссылками превращается в сетку карточек.
   width="438" — атрибут, его перекрывает обычное правило; style="height:358px" —
   инлайновый стиль из контента, его перекрывает только !important */
.entry table.t1 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	width: 100%;
	height: auto !important;
	border: 0;
	margin: 26px 0 10px;
	font-size: 16px;
}
.entry table.t1 :is(tbody, tr) { display: contents; }
.entry table.t1 td {
	display: block;
	padding: 20px 22px;
	border: 1px solid var(--ac-line);
	border-radius: 14px;
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.entry table.t1 td:hover {
	border-color: #b9dcf0;
	box-shadow: 0 16px 34px rgba(15, 48, 70, .10);
	transform: translateY(-2px);
}
.entry table.t1 td p { margin: 0; }
.entry table.t1 td a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-size: 19px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--ac-ink);
	text-decoration: none;
}
.entry table.t1 td a::after {
	content: "→";
	flex: 0 0 auto;
	color: var(--ac-accent);
	font-size: 18px;
	font-weight: 400;
}
.entry table.t1 td a:hover { color: var(--ac-accent); }

@media (max-width: 1100px) {
	.entry table.t1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.entry table.t1 { grid-template-columns: 1fr; }
	.entry h1 { font-size: 30px; }
	.entry h2 { font-size: 23px; }
	.entry :is(img.alignright, img.alignleft) { float: none; display: block; margin: 12px auto; max-width: 100%; }
}

/* ---------- поиск ---------- */
.main-col h1.ac-search__title {
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	font-size: 30px;
	line-height: 1.25;
	text-transform: none;
	color: var(--ac-ink);
}
.ac-search__meta {
	margin: 0 0 24px;
	font-size: 14px;
	color: var(--ac-muted);
}

/* ---------- архивы рубрик ---------- */
#container .breadcrumbs {
	float: none;
	width: 100%;
	margin: 26px 0 0;
	padding: 0 0 16px;
	border: 0;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.5;
	text-transform: none;
	color: var(--ac-muted);
}
#container .breadcrumbs a { color: var(--ac-muted); text-decoration: none; }
#container .breadcrumbs a:hover { color: var(--ac-accent); }

.ac-arch__head { margin: 0 0 26px; }
/* старые .main-col h1 (26px, uppercase, пунктир) весят столько же — уточняем контекстом */
.main-col .ac-arch__title,
.main-col-fullwidth .ac-arch__title {
	font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	font-size: 40px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--ac-ink);
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	text-transform: none;
	text-align: left;
}
.ac-arch__meta {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ac-muted);
}
.ac-arch__desc { color: var(--ac-body); font-size: 15.5px; line-height: 1.7; }
.ac-arch__desc p { margin: 0 0 12px; }
.ac-arch__empty {
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--ac-ink);
	margin: 0 0 20px;
}

/* чипсы разделов (навигация по рубрикам каталога) */
.ac-chips { margin: 0 0 24px; }
.ac-chips__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ac-chips__list li { margin: 0; padding: 0; list-style: none; }
.ac-chips__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	background: #fff;
	border: 1px solid var(--ac-line);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 500;
	color: var(--ac-ink);
	text-decoration: none;
	transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.ac-chips__item:hover {
	border-color: #b9dcf0;
	color: var(--ac-accent);
	box-shadow: 0 8px 18px rgba(15, 48, 70, .07);
}
.ac-chips__item.is-active {
	background: var(--ac-accent);
	border-color: var(--ac-accent);
	color: #fff;
}
.ac-chips__item.is-active .ac-chips__count { color: rgba(255, 255, 255, .78); }
.ac-chips__count {
	font-size: 12px;
	font-weight: 600;
	color: var(--ac-muted);
}

.ac-prod-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0 0 6px;
}
.ac-prod-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ac-line);
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ac-prod-card:hover {
	border-color: #b9dcf0;
	box-shadow: 0 16px 34px rgba(15, 48, 70, .10);
	transform: translateY(-2px);
}
.ac-prod-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 10px;
	background: rgba(255, 255, 255, .94);
	border: 1px solid var(--ac-line);
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--ac-accent);
}
.ac-prod-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: var(--ac-soft);
	border-bottom: 1px solid var(--ac-line);
}
.ac-prod-card__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	padding: 16px;
	box-sizing: border-box;
	object-fit: contain;
}
.ac-prod-card__placeholder {
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #c2cfd8;
}
.ac-prod-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px 18px 18px;
}
.ac-prod-card__name {
	display: block;
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--ac-ink);
	margin: 0 0 8px;
}
.ac-prod-card__pack {
	display: inline-block;
	align-self: flex-start;
	margin: 0 0 10px;
	padding: 3px 10px;
	background: var(--ac-soft);
	border-radius: 8px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--ac-body);
}
.ac-prod-card__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ac-body);
	margin: 0 0 14px;
}
.ac-prod-card__more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	padding: 9px 15px;
	border: 1px solid rgba(14, 123, 181, .28);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--ac-accent);
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.ac-prod-card:hover .ac-prod-card__more {
	background: var(--ac-accent);
	border-color: var(--ac-accent);
	color: #fff;
}

/* характеристики товара в карточке */
.ac-specs {
	margin: 26px 0 0;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid var(--ac-line);
	border-radius: 12px;
}
.ac-specs .ac-specs__title {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ac-ink);
	text-transform: none;
}
.ac-specs__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
}
.ac-specs__row {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 14px;
	align-items: baseline;
}
.ac-specs__key {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--ac-muted);
}
.ac-specs__val {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ac-ink);
}
@media (max-width: 620px) {
	.ac-specs { padding: 16px 18px; margin-top: 20px; }
	.ac-specs__row { grid-template-columns: 1fr; gap: 2px; }
}

.ac-arch__cta { margin: 8px 0 0; }
.ac-arch__cta .ac-request { margin: 24px 0 0; }

@media (max-width: 1240px) {
	.ac-prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.ac-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.ac-prod-grid { grid-template-columns: 1fr; gap: 14px; }
	.main-col .ac-arch__title,
	.main-col-fullwidth .ac-arch__title { font-size: 30px; }
	.ac-chips { margin-bottom: 18px; }
	.ac-chips__item { padding: 7px 12px; font-size: 13px; }
}

/* ---------- сайдбар ---------- */
.side-blok {
	background: #fff;
	border: 1px solid var(--ac-line);
	border-radius: 14px;
	padding: 18px 20px;
	margin: 0 0 16px;
}
.side-blok p { margin: 0 0 10px; font-size: 14.5px; color: var(--ac-muted); }
.side-title {
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ac-ink);
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}
.side-title span { display: none; }
/* у виджета без заголовка в разметке остаётся пустой .side-title — не рисуем плашку */
.side-title:has(> span:only-child) { display: none; }
.side-blok ul { margin: 0; padding: 0; list-style: none; }
.side-blok ul li {
	margin: 0;
	padding: 0;
	background: none;
	font-size: 14.5px;
	line-height: 1.45;
}
.side-blok ul li a {
	display: inline-block;
	padding: 5px 0;
	color: #3c4b56;
	text-decoration: none;
}
.side-blok ul li a:hover { color: var(--ac-accent); }

.searchform div {
	display: flex;
	align-items: center;
	gap: 8px;
}
/* в старой теме поле и кнопка поиска заданы через #s / #searchsubmit — перекрываем тем же весом */
#searchform #s {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--ac-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ac-ink);
	font-size: 15px;
	line-height: 40px;
	text-align: left;
	text-transform: none;
	box-shadow: none;
}
#searchform #s:focus {
	border-color: #b9dcf0;
	box-shadow: 0 0 0 3px rgba(14, 123, 181, .12);
}
#searchform #searchsubmit {
	flex: 0 0 auto;
	width: auto;
	height: 42px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid var(--ac-accent);
	border-radius: 10px;
	background: var(--ac-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 40px;
	cursor: pointer;
}
#searchform #searchsubmit:hover { background: var(--ac-accent-dark); border-color: var(--ac-accent-dark); }

/* список рубрик: сбрасываем старые .nice-cats li.cat-item */
.side-blok ul.nice-cats li.cat-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding: 0;
	background: none;
	border-bottom: 1px solid var(--ac-line);
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.45;
	color: #3c4b56;
}
.side-blok ul.nice-cats li.cat-item:last-child { border-bottom: 0; }
.side-blok ul.nice-cats li.cat-item a {
	display: inline-block;
	flex: 1 1 auto;
	float: none;
	padding: 7px 0;
	text-align: left;
	color: #3c4b56;
	text-decoration: none;
}
.side-blok ul.nice-cats li.cat-item a:hover { color: var(--ac-accent); }

.side-blok table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.side-blok table caption { padding-bottom: 8px; font-weight: 600; color: var(--ac-ink); }
.side-blok table :is(th, td) { padding: 4px 2px; border: 0; text-align: center; }
.side-blok table td a { color: #3c4b56; text-decoration: none; }
.side-blok table td a:hover { color: var(--ac-accent); }

/* ---------- похожие записи ---------- */
.related-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}
.related-posts h5 {
	grid-column: 1 / -1;
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	text-transform: none;
	color: var(--ac-ink);
}
.related-posts li.related {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	float: none;
	width: auto;
	margin: 0;
	padding: 14px;
	border: 1px solid var(--ac-line);
	border-radius: 12px;
	background: #fff;
}
.related a { flex: 0 0 auto; display: block; }
.related img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.related-inner { min-width: 0; }
.related-posts .related-inner .post-title {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
	text-transform: none;
	text-align: left;
}
.related-inner .post-title a { color: var(--ac-ink); text-decoration: none; }
.related-inner .post-title a:hover { color: var(--ac-accent); }

@media (max-width: 960px) {
	.related-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.related-posts { grid-template-columns: 1fr; }
}

/* ---------- карточка товара: блок заявки ---------- */
.ac-request {
	margin: 28px 0 0;
	padding: 24px 26px;
	background: var(--ac-soft);
	border: 1px solid var(--ac-line);
	border-radius: 12px;
}
/* два класса: перебиваем .entry h2 из style.php без !important */
.ac-request .ac-request__title {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	text-transform: none;
	color: var(--ac-ink);
}
.ac-request .ac-request__text {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ac-body);
}
/* два класса: перебиваем .entry ul из style.php (маркеры и отступы) */
.ac-request .ac-request__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ac-request .ac-request__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ac-request__list a {
	font-size: 17px;
	font-weight: 600;
	color: var(--ac-accent);
}
.ac-request__more {
	margin: 12px 0 0;
	font-size: 14px;
}
.ac-request__more a { color: var(--ac-muted); }

@media (max-width: 620px) {
	.ac-request { padding: 18px; }
	.ac-request__list { flex-direction: column; gap: 8px; }
}

/* ---------- пагинация ---------- */
.wp-pagenavi {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 26px 0 0;
	font-size: 14px;
}
.wp-pagenavi :is(a, span) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--ac-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ac-text);
	text-decoration: none;
}
.wp-pagenavi a:hover { border-color: var(--ac-accent); color: var(--ac-accent); }
.wp-pagenavi span.current { background: var(--ac-accent); border-color: var(--ac-accent); color: #fff; }

/* ---------- подвал ---------- */
.site-credits {
	width: auto;
	margin: 0;
	padding: 26px 0 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.7;
	text-transform: none;
	text-align: center;
	color: var(--ac-muted);
}
.footer {
	background: #fff;
	color: var(--ac-muted);
	border-top: 1px solid var(--ac-line);
	width: 100%;
	margin: 0;
	padding: 24px 0 26px;
}
.footer .footer-text {
	float: none;
	width: 100%;
	padding: 0;
	font-size: 14px;
	line-height: 1.7;
	text-align: center;
	color: var(--ac-muted);
}
.footer .footer-text a { color: var(--ac-accent); }

@media (max-width: 620px) {
	.inner { padding: 0 18px; }
	.entry h1 { font-size: 27px; }
	.logo img { height: 38px; }
}

/* в теме a:link / #wrap a подчёркивают все ссылки — навигации, карточкам и кнопкам это не нужно */
#wrap :is(.menunav a, .side-blok a, .site-credits a, .footer-text a, .related-posts .post-title a, .entry table.t1 td a, .ac-prod-card, .wp-pagenavi a, .ac-request a) {
	text-decoration: none;
}
