/* ------------------------------------------------------------------
   Страницы «О нас / Контакты / Блог / Галерея» — читаемые полосы контента
   в палитре главной страницы ДПК Арефино.
   Подключается для шаблонов info-page.php и gallery-page.php.
   ------------------------------------------------------------------ */

:root {
	--arefino-dark: #181818;
	--arefino-accent: #ff8562;
	--arefino-accent-dark: #e0663f;
	--arefino-border: #eeedee;
	--arefino-muted: #615454;
	--arefino-bg: #f7f7f7;
}

.arefino-static,
.arefino-gallery {
	display: block;
	padding: 56px 0 84px;
	color: var(--arefino-dark);
	font-size: 16px;
	line-height: 1.7;
}

.arefino-static *,
.arefino-static *::before,
.arefino-static *::after,
.arefino-gallery *,
.arefino-gallery *::before,
.arefino-gallery *::after {
	box-sizing: border-box;
}

.arefino-static .arefino-container,
.arefino-gallery .arefino-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ------------------------------ заголовок ------------------------------ */

.arefino-static__head,
.arefino-gallery__head {
	max-width: 820px;
	margin: 0 auto 40px;
	text-align: center;
}

.arefino-static__title,
.arefino-gallery__title {
	margin: 0 0 12px;
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--arefino-dark);
}

.arefino-gallery__subtitle {
	margin: 0;
	font-size: 16px;
	color: var(--arefino-muted);
}

/* ------------------------------ блог ------------------------------ */

.arefino-blog {
	display: block;
	padding: 56px 0 84px;
	color: #181818;
	font-size: 16px;
	line-height: 1.6;
}

.arefino-blog *,
.arefino-blog *::before,
.arefino-blog *::after {
	box-sizing: border-box;
}

.arefino-blog .arefino-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.arefino-blog__head {
	max-width: 820px;
	margin: 0 auto 44px;
	text-align: center;
}

.arefino-blog__title {
	margin: 0 0 12px;
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: #181818;
}

.arefino-blog__subtitle {
	margin: 0;
	font-size: 16px;
	color: #615454;
}

/* Фильтр по рубрикам над плиткой статей. */
.arefino-blog__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 34px;
}

.arefino-blog__filter {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border: 1px solid #eeedee;
	border-radius: 999px;
	background: #fff;
	color: #181818;
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.arefino-blog__filter:hover {
	border-color: #181818;
}

.arefino-blog__filter.is-active {
	background: #181818;
	border-color: #181818;
	color: #fff;
}

.arefino-blog__filter-count {
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(24, 24, 24, .08);
	font-size: 12px;
	font-weight: 700;
}

.arefino-blog__filter.is-active .arefino-blog__filter-count {
	background: rgba(255, 255, 255, .18);
}

.arefino-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.arefino-blog__card {
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eeedee;
	border-radius: 14px;
	transition: transform .25s ease, box-shadow .25s ease;
}

.arefino-blog__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 42px rgba(24, 24, 24, .12);
}

.arefino-blog__cover {
	display: block;
	height: 200px;
	overflow: hidden;
	background: #f7f7f7;
}

.arefino-blog__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform .4s ease;
}

.arefino-blog__card:hover .arefino-blog__cover img {
	transform: scale(1.05);
}

.arefino-blog__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
}

.arefino-blog__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #8a8280;
}

.arefino-blog__cats {
	padding: 2px 10px;
	color: #e0663f;
	background: rgba(255, 133, 98, .12);
	border-radius: 999px;
	font-weight: 600;
}

.arefino-blog__card-title {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.arefino-blog__card-title a {
	color: #181818;
	text-decoration: none;
}

.arefino-blog__card-title a:hover {
	color: #e0663f;
}

.arefino-blog__excerpt {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.65;
	color: #615454;
}

.arefino-blog__more {
	margin-top: auto;
	font-size: 14px;
	font-weight: 700;
	color: #e0663f;
	text-decoration: none;
}

.arefino-blog__more:hover {
	color: #181818;
}

.arefino-blog__empty {
	text-align: center;
	color: #615454;
	padding: 60px 0;
}

.arefino-blog__pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.arefino-blog__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	font-size: 15px;
	font-weight: 600;
	color: #181818;
	background: #fff;
	border: 1px solid #eeedee;
	border-radius: 9px;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.arefino-blog__pagination .page-numbers.current {
	color: #181818;
	background: #ff8562;
	border-color: #ff8562;
}

.arefino-blog__pagination .page-numbers:not(.current):not(.dots):hover {
	background: #181818;
	border-color: #181818;
	color: #fff;
}

.arefino-blog__pagination .page-numbers.dots {
	border: none;
	min-width: 20px;
	padding: 0;
	background: transparent;
}

/* ------------------------------ контент ------------------------------ */

.arefino-static__body {
	max-width: 820px;
	margin: 0 auto;
}

.arefino-static__cover {
	margin: 0 0 32px;
}

.arefino-static__cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
}

.arefino-static__content {
	font-size: 16.5px;
}

.arefino-static__content h2,
.arefino-static__content h3 {
	margin: 1.6em 0 0.6em;
	color: var(--arefino-dark);
	line-height: 1.25;
}

.arefino-static__content h2 { font-size: 26px; }
.arefino-static__content h3 { font-size: 20px; }

.arefino-static__content p {
	margin: 0 0 1.1em;
}

.arefino-static__content ul,
.arefino-static__content ol {
	margin: 0 0 1.3em;
	padding-left: 1.4em;
}

.arefino-static__content li {
	margin: 0.35em 0;
}

.arefino-static__content a {
	color: var(--arefino-accent-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.arefino-static__content a:hover {
	color: var(--arefino-dark);
}

.arefino-static__content blockquote {
	margin: 1.6em 0;
	padding: 14px 20px;
	border-left: 4px solid var(--arefino-accent);
	background: var(--arefino-bg);
	border-radius: 0 10px 10px 0;
	color: var(--arefino-muted);
}

/* --------------------------- «О нас»: две колонки --------------------------- */
/* Текст страницы прижат влево, справа — колонка из трёх фотографий друг под
   другом. Колонка занимает место всегда: пока фото не выбраны, в ячейках
   видны рамки-заглушки, чтобы страница сразу выглядела как задумано.
   Класс .arefino-static--about ставит шаблон info-page.php (только /o-nas/). */

.arefino-static--about {
	padding-top: 48px;
}

.arefino-static--about .arefino-static__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 56px;
	align-items: start;
	max-width: none;
	margin: 0;
}

/* Текстовая колонка: заголовок и содержимое по левому краю. */
.arefino-static--about .arefino-static__main {
	/* Колонка сетки не должна растягиваться под длинные слова формы. */
	min-width: 0;
}

.arefino-static--about .arefino-static__head {
	max-width: none;
	margin: 0 0 28px;
	text-align: left;
}

.arefino-static--about .arefino-static__title {
	font-size: 38px;
}

.arefino-static--about .arefino-static__content {
	font-size: 16.5px;
}

.arefino-static--about .arefino-static__content h2 {
	margin-top: 1.1em;
	font-size: 27px;
}

/* Первый подзаголовок идёт сразу под заголовком — лишний отступ сверху не нужен. */
.arefino-static--about .arefino-static__content > h2:first-child {
	margin-top: 0;
}

.arefino-static--about .arefino-static__content p,
.arefino-static--about .arefino-static__content li {
	text-align: left;
}

/* --------------------------- «Контакты»: две колонки --------------------------- */
/* Слева адреса, контактные данные и карта, справа — форма для дилеров.
   Класс .arefino-static--contacts ставит шаблон info-page.php (только /kontakty/).
   Пропорция 1fr / 400px: левой колонке нужна ширина под карту, правой —
   под поля формы, чтобы они не сжимались меньше удобного. */

.arefino-static--contacts .arefino-static__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 48px;
	align-items: start;
	max-width: none;
	margin: 0;
}

/* Заголовок страницы — над обеими колонками. */
.arefino-static--contacts .arefino-static__head {
	max-width: none;
	margin: 0 0 32px;
	text-align: left;
}

.arefino-static--contacts .arefino-static__title {
	font-size: 38px;
}

.arefino-static--contacts .arefino-static__content h2 {
	margin-top: 1.1em;
	font-size: 27px;
}

.arefino-static--contacts .arefino-static__content > h2:first-child {
	margin-top: 0;
}

/* Правая колонка прилипает к экрану: форма остаётся на виду, пока читают
   адреса слева. На невысоких экранах прилипание отключено — иначе длинная
   форма упирается в низ окна. Только «Контакты»: на «О нас» форма стоит
   в левой колонке под текстом и прилипать не должна. */
.arefino-static--contacts .arefino-dealer {
	position: sticky;
	top: 24px;
}

@media (max-height: 780px) {
	.arefino-static--contacts .arefino-dealer {
		position: static;
	}
}

/* -------------------- «О нас»: та же форма под текстом -------------------- */
/* На «Контактах» блок стоит в правой колонке шириной 400px, поэтому поля идут
   в один столбец. На «О нас» он занимает левую колонку под текстом — там места
   вдвое больше, и полям хватает двух столбцов: иначе карточка растягивается
   в ширину, а поля выглядят пустыми. Разметка и стили полей — те же
   (template-parts/contacts-dealer.php, assets/arefino-dealer.css). */

.arefino-static--about .arefino-dealer {
	margin-top: 48px;
	padding-top: 44px;
	/* Форма занимает всю ширину текстовой колонки: на «Контактах» её ширина
	   ограничена 400 px, здесь ограничение не нужно. */
	max-width: none;
	border-top: 1px solid var(--arefino-border);
}

/* Два поля в ряд — только там, где под форму есть место (левая колонка
   шире ~640 px):
   • шире 1039px — двухколоночная раскладка «О нас»;
   • 681–900px — фото уже ушли под текст, форма занимает всю ширину страницы.
   В промежутке 901–1039px левая колонка сужается до ~525–640px (как правая
   колонка «Контактов»), и там поля остаются в один столбец.
   Кнопка и телефон на широком месте встают в одну строку. */
@media (min-width: 1040px), (min-width: 681px) and (max-width: 900px) {
	.arefino-static--about .arefino-dealer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 16px;
	}

	.arefino-static--about .arefino-dealer__actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px 20px;
	}

	.arefino-static--about .arefino-dealer__submit {
		width: auto;
		min-width: 240px;
		padding: 12px 32px;
	}
}

@media (max-width: 680px) {
	.arefino-static--about .arefino-dealer {
		margin-top: 36px;
		padding-top: 32px;
	}
}

/* ------------------------- правая колонка: фото ------------------------- */

.arefino-about__aside {
	display: block;
}

.arefino-about__gallery {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.arefino-about__photo {
	position: relative;
	margin: 0;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--arefino-bg);
	border: 1px solid var(--arefino-border);
	border-radius: 14px;
}

.arefino-about__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Пустая ячейка: место под фото видно сразу, но подсказок админки нет. */
.arefino-about__photo--empty {
	background: #fafafa;
	border: 1px dashed #d9d7d8;
}

.arefino-about__photo--empty::before {
	content: "";
	position: absolute;
	inset: 0;
	/* Нейтральная иконка «картинка» — рисуется фоном, лишней разметки не нужно. */
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9c6c7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.6'/%3E%3Cpath d='M21 15.5l-4.6-4.3a1.6 1.6 0 0 0-2.2 0L5 19'/%3E%3C/svg%3E") center / 44px 44px no-repeat;
	opacity: .85;
}

/* -------------------- политика конфиденциальности -------------------- */
/* Длинный юридический документ: разделы идут лесенкой, текст выровнен
   по левому краю, а не «по ширине» — так он читается заметно легче.
   Класс .arefino-static--policy ставит шаблон info-page.php. */

.arefino-static--policy .arefino-static__content h2 {
	padding-bottom: 8px;
	border-bottom: 1px solid var(--arefino-border);
	text-align: left;
}

.arefino-static--policy .arefino-static__content p {
	text-align: left;
	hyphens: auto;
}

.arefino-static--policy .arefino-static__content ul {
	margin: 0 0 1.4em;
	padding-left: 1.5em;
}

.arefino-static--policy .arefino-static__content ul li {
	text-align: left;
}

/* Длинные адреса и e-mail не должны выпирать за колонку. */
.arefino-static--policy .arefino-static__content a {
	overflow-wrap: anywhere;
}

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

.arefino-gallery__empty {
	text-align: center;
	color: var(--arefino-muted);
	padding: 60px 0;
}

/* Подсказка администратору: где добавлять объекты (видна только с правом правки). */
.arefino-gallery__hint {
	max-width: 640px;
	margin: 0 auto;
	padding: 14px 18px;
	border: 1px dashed var(--arefino-border);
	border-radius: 10px;
	background: var(--arefino-bg);
	color: var(--arefino-muted);
	font-size: 14px;
	text-align: center;
}

.arefino-gallery__hint a {
	color: var(--arefino-accent-dark);
	font-weight: 600;
}

.arefino-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.arefino-gallery__item {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 10px;
	background: var(--arefino-bg);
	border: 1px solid var(--arefino-border);
	cursor: zoom-in;
}

.arefino-gallery__item img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
	object-position: center;
	transition: transform .35s ease;
}

.arefino-gallery__item:hover img {
	transform: scale(1.05);
}

.arefino-gallery__zoom {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 8px;
	color: #fff;
	background: rgba(24, 24, 24, .55);
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s ease, background .2s ease;
}

.arefino-gallery__item:hover .arefino-gallery__zoom,
.arefino-gallery__zoom:focus-visible {
	opacity: 1;
}

.arefino-gallery__zoom:hover {
	background: var(--arefino-accent);
	color: var(--arefino-dark);
}

.arefino-gallery__zoom svg {
	width: 20px;
	height: 20px;
}

/* ------------------------------ светбокс ------------------------------ */

.arefino-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 60px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}

.arefino-lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.arefino-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 12, 12, .92);
}

.arefino-lightbox__stage {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.arefino-lightbox__stage img {
	max-width: 100%;
	max-height: 82vh;
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

/* Подпись под фото в светбоксе — название объекта. */
.arefino-lightbox__caption {
	position: absolute;
	left: 50%;
	bottom: -44px;
	transform: translateX(-50%);
	max-width: min(760px, 86vw);
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 15px;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.arefino-lightbox__caption[hidden] {
	display: none;
}

.arefino-lightbox__close,
.arefino-lightbox__nav {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	cursor: pointer;
	transition: background .2s ease;
}

.arefino-lightbox__close:hover,
.arefino-lightbox__nav:hover {
	background: var(--arefino-accent);
	color: var(--arefino-dark);
}

.arefino-lightbox__close {
	top: 18px;
	right: 18px;
	width: 46px;
	height: 46px;
	font-size: 30px;
	line-height: 1;
}

.arefino-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	font-size: 34px;
	line-height: 1;
}

.arefino-lightbox__nav--prev { left: 18px; }
.arefino-lightbox__nav--next { right: 18px; }

/* --------------------------- статья блога --------------------------- */
/* Отдельная запись: шаблон single.php. Текст идёт одной колонкой 860 px,
   фото и галереи из Tilda получают свою вёрстку, боковой колонки с
   виджетами нет. */

.arefino-article {
	display: block;
	padding: 36px 0 80px;
	color: var(--arefino-dark);
	font-size: 16.5px;
	line-height: 1.72;
}

.arefino-article *,
.arefino-article *::before,
.arefino-article *::after {
	box-sizing: border-box;
}

.arefino-article .arefino-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Хлебные крошки: «Блог / Рубрика». */
.arefino-article__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	max-width: 860px;
	margin: 0 auto 22px;
	font-size: 14px;
	color: #8a8280;
}

.arefino-article__crumbs a {
	color: #615454;
	text-decoration: none;
}

.arefino-article__crumbs a:hover {
	color: var(--arefino-accent-dark);
}

.arefino-article__body {
	max-width: 860px;
	margin: 0 auto;
}

.arefino-article__head {
	margin: 0 0 26px;
}

.arefino-article__title {
	margin: 0 0 14px;
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.16;
	color: var(--arefino-dark);
}

.arefino-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: #8a8280;
}

.arefino-article__tag {
	padding: 3px 12px;
	color: var(--arefino-accent-dark);
	background: rgba(255, 133, 98, .12);
	border-radius: 999px;
	font-weight: 600;
}

.arefino-article__cover {
	margin: 0 0 30px;
	overflow: hidden;
	border-radius: 16px;
	background: var(--arefino-bg);
}

.arefino-article__cover img {
	display: block;
	width: 100%;
	height: auto;
}

/* ------- текст статьи ------- */

.arefino-article__content > *:first-child {
	margin-top: 0;
}

.arefino-article__content p {
	margin: 0 0 1.05em;
}

/* Вступление: чуть крупнее и темнее остального текста. */
.arefino-article__content .arefino-article__lead {
	margin-bottom: 1.3em;
	font-size: 19px;
	line-height: 1.6;
	color: #33302f;
}

.arefino-article__content h2 {
	margin: 1.9em 0 0.7em;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: var(--arefino-dark);
}

.arefino-article__content h3 {
	margin: 1.5em 0 0.6em;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--arefino-dark);
}

.arefino-article__content a {
	color: var(--arefino-accent-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.arefino-article__content a:hover {
	color: var(--arefino-dark);
}

.arefino-article__content strong {
	font-weight: 700;
}

.arefino-article__content ul,
.arefino-article__content ol {
	margin: 0 0 1.3em;
	padding-left: 1.5em;
}

.arefino-article__content li {
	margin: 0.4em 0;
}

.arefino-article__content li > ul,
.arefino-article__content li > ol {
	margin: 0.5em 0 0.2em;
}

/* Перечень «1. … 2. …» из Tilda: аккуратные номера в кружках. */
.arefino-article__content ol.arefino-article__steps {
	padding-left: 0;
	list-style: none;
	counter-reset: arefino-step;
}

.arefino-article__content ol.arefino-article__steps > li {
	position: relative;
	padding-left: 42px;
	counter-increment: arefino-step;
}

.arefino-article__content ol.arefino-article__steps > li::before {
	content: counter(arefino-step);
	position: absolute;
	top: 1px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--arefino-accent);
	color: #181818;
	font-size: 14px;
	font-weight: 700;
}

.arefino-article__content blockquote {
	margin: 1.6em 0;
	padding: 14px 20px;
	border-left: 4px solid var(--arefino-accent);
	background: var(--arefino-bg);
	border-radius: 0 10px 10px 0;
	color: var(--arefino-muted);
}

.arefino-article__divider {
	margin: 34px 0;
	border: 0;
	height: 1px;
	background: var(--arefino-border);
}

/* ------- картинки ------- */

.arefino-article__content figure {
	margin: 26px 0;
}

.arefino-article__content figure img,
.arefino-article__content > img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
}

/* Картинка с подписью сбоку от текста: на широком экране обтекание,
   на узком — обычная картинка во всю ширину. */
.arefino-article__aside {
	float: right;
	width: 300px;
	margin: 6px 0 22px 28px;
}

.arefino-article__aside figure {
	margin: 0;
}

.arefino-article__aside + p {
	margin-top: 0;
}

.arefino-article__caption {
	margin: 10px 0 0;
	font-size: 13.5px;
	line-height: 1.45;
	color: #8a8280;
}

/* Галерея фото из статьи: сетка 3 в ряд с одинаковым кадром. */
.arefino-article__gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 26px 0;
	clear: both;
}

.arefino-article__gallery figure {
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
}

.arefino-article__gallery img {
	display: block;
	width: 100%;
	height: 190px;
	object-fit: cover;
	object-position: center;
}

/* Одна картинка в галерее — на всю ширину, без пустых ячеек. */
.arefino-article__gallery figure:only-child img {
	height: auto;
	max-height: 460px;
	object-fit: contain;
	background: var(--arefino-bg);
}

/* ------- карточки, видео, кнопки ------- */

.arefino-article__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 26px 0;
}

.arefino-article__card {
	padding: 22px;
	background: #fff;
	border: 1px solid var(--arefino-border);
	border-radius: 14px;
}

.arefino-article__card h3 {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
}

.arefino-article__card p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--arefino-muted);
}

.arefino-article__video {
	margin: 26px 0;
}

.arefino-article__video iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: 14px;
	background: #000;
}

.arefino-article__cta {
	margin: 26px 0;
	text-align: center;
}

.arefino-article__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	border-radius: 10px;
	background: var(--arefino-accent);
	color: #181818 !important;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .2s ease;
}

.arefino-article__btn:hover {
	background: var(--arefino-dark);
	color: #fff !important;
}

/* ------- подвал статьи и похожие записи ------- */

.arefino-article__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 40px 0 0;
	padding-top: 26px;
	border-top: 1px solid var(--arefino-border);
}

.arefino-article__back {
	font-size: 15px;
	font-weight: 600;
	color: #615454;
	text-decoration: none;
}

.arefino-article__back:hover {
	color: var(--arefino-accent-dark);
}

.arefino-article__related {
	margin: 56px 0 0;
}

.arefino-article__related-title {
	margin: 0 0 22px;
	font-size: 26px;
	font-weight: 700;
}

/* ------------------------------ адаптив ------------------------------ */

@media (max-width: 1024px) {
	.arefino-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.arefino-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* «О нас»: колонка под фото становится уже, текст получает больше места. */
	.arefino-static--about .arefino-static__body {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 36px;
	}
	.arefino-static--about .arefino-static__title { font-size: 34px; }
	.arefino-article__title { font-size: 34px; }
}

/* «Контакты»: формы рядом с адресами тесно — форма уходит под них.
   1080px, а не 1024px: на 1025–1080px правая колонка в 400px оставляла бы
   левой меньше 500px, и адреса в окошках начинали ломаться по слогам. */
@media (max-width: 1080px) {
	.arefino-static--contacts .arefino-static__body {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
	.arefino-static--contacts .arefino-static__title { font-size: 34px; }
	.arefino-static--contacts .arefino-dealer {
		position: static;
		max-width: 560px;
	}
}

@media (max-width: 900px) {
	/* Узкий экран: фото уходят под текст, но остаются друг под другом. */
	.arefino-static--about .arefino-static__body {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.arefino-about__gallery {
		gap: 16px;
	}
	/* Статья: картинка с подписью больше не обтекается текстом. */
	.arefino-article__aside {
		float: none;
		width: auto;
		margin: 24px 0;
	}
	.arefino-article__cards { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
	.arefino-static,
	.arefino-gallery,
	.arefino-blog { padding: 40px 0 60px; }
	.arefino-article { padding: 24px 0 56px; font-size: 16px; }
	.arefino-static__title,
	.arefino-gallery__title,
	.arefino-blog__title,
	.arefino-article__title { font-size: 30px; }
	.arefino-article__title { font-size: 26px; }
	.arefino-article__content h2 { font-size: 23px; }
	.arefino-article__content h3 { font-size: 19px; }
	.arefino-article__content .arefino-article__lead { font-size: 17px; }
	.arefino-article__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.arefino-article__gallery img { height: 150px; }
	.arefino-article__content ol.arefino-article__steps > li { padding-left: 36px; }
	.arefino-static--about .arefino-static__title { font-size: 28px; }
	.arefino-static--about .arefino-static__content h2 { font-size: 23px; }
	.arefino-static--contacts .arefino-static__title { font-size: 28px; }
	.arefino-static--contacts .arefino-static__content h2 { font-size: 23px; }
	.arefino-static--contacts .arefino-dealer { max-width: none; }
	.arefino-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.arefino-blog__grid { grid-template-columns: 1fr; }
	.arefino-gallery__item img { height: 200px; }
	.arefino-blog__cover { height: 190px; }
	.arefino-lightbox { padding: 20px 44px; }
	.arefino-lightbox__nav { width: 42px; height: 42px; font-size: 26px; }
	.arefino-lightbox__nav--prev { left: 6px; }
	.arefino-lightbox__nav--next { right: 6px; }
}