/*
Theme Name: Изумрудное кольцо Урала
Theme URI: https://izumrudnoekoltsourala.ru
Author: Alex Elph
Description: Собственная классическая тема сайта «Изумрудное кольцо Урала». Повторяет вёрстку прежнего сайта (Henfam + Elementor) без конструкторов страниц: контент — блоки Gutenberg, типы записей — mu-плагин izumrud-core, карта — плагин interactive-map-manager, карусели — Swiper.
Version: 1.1.0
Requires at least: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: izumrud
*/

/*
 * Значения размеров, цветов и отступов сняты с прежнего сайта (вычисленные стили в браузере).
 * Сетка контейнеров — как у Bootstrap 4 в Henfam; поля полноширинных секций — как у Elementor + Henfam.
 */

:root {
	--iz-green: #008b28;
	--iz-green-047: rgba(0, 139, 40, 0.47);
	--iz-curtain: #008b2878;
	--iz-dark: #1e4844;
	--iz-text: #666;
	--iz-link: #454545;
	--iz-container: 1140px;
	--iz-full-pad: 70px;
}

/* ---------- Основа ---------- */

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

body {
	margin: 0;
	background: #fff;
	color: var(--iz-text);
	font-family: Manrope, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 5px;
	color: var(--iz-dark);
	font-family: Manrope, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	transition: 0.5s;
}

p {
	margin: 0 0 1rem;
}

a {
	color: var(--iz-dark);
	text-decoration: none;
	transition: 0.5s;
}

img,
video,
svg {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

ul,
ol {
	padding-left: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 1000;
	padding: 0.5rem 1rem;
	background: var(--iz-dark);
	color: #fff;
}

.skip-link:focus {
	top: 1rem;
}

/* Контейнер как в Bootstrap 4 (Henfam) */
.container {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding-right: 15px;
	padding-left: 15px;
}

@media (min-width: 576px) {
	.container {
		max-width: 540px;
	}
}

@media (min-width: 768px) {
	.container {
		max-width: 720px;
	}
}

@media (min-width: 992px) {
	.container {
		max-width: 960px;
	}
}

@media (min-width: 1200px) {
	.container {
		max-width: 1140px;
	}
}

/* Кнопка «Подробнее» (контурная зелёная) */
.iz-more {
	display: inline-block;
	padding: 9px 30px;
	border: 1px solid var(--iz-green);
	border-radius: 5px;
	color: var(--iz-green);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	transition: 0.5s;
}

.iz-more:hover {
	background: var(--iz-green);
	color: #fff;
}

/* «Шторка» на картинках-ссылках: светлый изумруд раскрывается из центра */
.iz-curtain {
	position: relative;
	display: inline-block;
	overflow: hidden;
	vertical-align: middle;
}

.iz-curtain::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--iz-curtain);
	transform: scale(0);
	transform-origin: center;
	transition: transform 0.5s ease-in-out;
	pointer-events: none;
}

.iz-curtain:hover::after {
	transform: scale(1);
}

/* ---------- Шапка ---------- */

.site-header {
	position: relative;
	z-index: 50;
	background: #fff;
}

.site-header__bar {
	background: #fff;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-title {
	margin: 0;
	color: var(--iz-dark);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}

.site-title a {
	color: var(--iz-dark);
	font-size: 22px;
	font-weight: 600;
	text-transform: uppercase;
}

.main-menu {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: right;
}

.main-menu > li {
	position: relative;
	display: inline-block;
}

.main-menu > li > a {
	display: block;
	margin: 35px 12px;
	color: var(--iz-dark);
	font-size: 18px;
	font-weight: 600;
	transition: 0.2s;
}

.main-menu > li:last-child > a {
	margin-right: 0;
}

.main-menu > li > a:hover,
.main-menu > .current-menu-item > a,
.main-menu > .current_page_item > a,
.main-menu > .current-menu-ancestor > a,
.main-menu > .current_page_parent > a {
	color: var(--iz-green);
}

.main-menu .sub-menu {
	display: none;
}

@media (min-width: 1025px) and (max-width: 1660px) {
	.site-header__bar {
		padding-right: 50px;
		padding-left: 50px;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
	.site-header__bar {
		padding-right: 20px;
		padding-left: 20px;
	}

	.main-menu > li > a {
		font-size: 15px;
	}

	.site-title a {
		font-size: 19px;
	}
}

/* Мобильная шапка */
.mobile-header {
	display: none;
}

@media (max-width: 991px) {
	.site-header__bar {
		display: none;
	}

	.mobile-header {
		display: block;
		padding: 20px 0;
		background: #fff;
	}

	.mobile-header .site-title a {
		font-size: 18px;
	}

	.mobile-header__inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
}

.menu-toggle,
.menu-close {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: none;
	color: #555;
	cursor: pointer;
}

.mobile-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	width: 280px;
	max-width: 85vw;
	padding: 20px;
	overflow-y: auto;
	background: #fff;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.4s, visibility 0.4s;
}

.mobile-panel.is-open {
	transform: translateX(0);
	visibility: visible;
}

.mobile-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
}

.mobile-panel .site-title a {
	font-size: 18px;
}

.mobile-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-menu li {
	border-bottom: 1px solid #ddd;
}

.mobile-menu a {
	display: block;
	padding: 10px 5px;
	color: var(--iz-dark);
	font-size: 14px;
}

.mobile-menu .current-menu-item > a {
	color: var(--iz-green);
}

.mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 999;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s, visibility 0.4s;
}

.mobile-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* ---------- Подвал ---------- */

.site-footer {
	background: var(--iz-dark);
	color: #fff;
	text-align: center;
}

.site-footer a {
	color: #fff;
}

.site-footer a:hover {
	color: #f0f0f0;
	text-decoration: underline;
}

.site-footer__middle {
	padding: 10px 0;
}

.site-footer__contacts {
	padding-top: 10px;
}

.site-footer__contacts p {
	margin: 0 0 15px;
	padding: 0;
}

.site-footer__contacts p:last-child {
	margin-bottom: 6px;
}

/* На планшете блок контактов прежнего сайта сжат до 210 px — телефон переносится на две строки */
@media (min-width: 768px) and (max-width: 991px) {
	.site-footer__contacts p:first-child {
		max-width: 210px;
		margin-right: auto;
		margin-left: auto;
	}
}

.site-footer__bottom {
	position: relative;
	padding: 26px 0 24px;
}

.site-footer__bottom::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 70%;
	height: 1px;
	background: rgba(255, 255, 255, 0.38);
	transform: translateX(-50%);
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

/* ---------- Внутренние страницы ---------- */

.site-main--inner {
	padding: 90px 0 100px;
}

.site-main--page {
	padding-top: 110px;
	padding-bottom: 156px;
}

.site-main--terms {
	padding-top: 70px;
	padding-bottom: 70px;
}

.site-main--cpt {
	padding-top: 130px;
	padding-bottom: 121px;
}

.site-main--tag {
	padding-bottom: 50px;
}

.site-main--single {
	padding-top: 60px;
	padding-bottom: 60px;
}

.site-main--single .entry .entry-content > :last-child {
	margin-bottom: 10px;
}

.entry .entry-content > .iz-gallery {
	margin-top: 36px;
}

/* Маршруты и новости: картинка «large» с отступом 40 px сверху, у текста свой отступ 40 px (шаблоны Elementor) */
.entry .entry-thumbnail.entry-thumbnail--large {
	margin: 60px 0 0; /* 20 px после заголовка + 40 px поля виджета */
}

.single-marshruty .entry .entry-content,
.single-news .entry .entry-content {
	padding-top: 79px;
}

/* Примечание под маршрутом (было в шаблоне Elementor «Single-Marshrut») */
.entry-note {
	margin-top: 61px;
}

.entry-note p {
	margin: 0 0 16px;
}

/* Телефон (и 768 px — правила Elementor «до 768 включительно»): верхние отступы внутренних страниц */
@media (max-width: 768px) {
	.site-main--terms {
		padding-top: 20px;
	}

	.site-main--terms:not(.site-main--tag) {
		padding-bottom: 60px;
	}

	.site-main--single {
		padding-top: 20px;
	}

	.site-main--cpt {
		padding-top: 30px;
	}

	.site-main--page {
		padding-top: 100px;
	}
}

/* Телефон: поля внутренних страниц как у шаблонов Elementor прежнего сайта */
@media (max-width: 767px) {
	.site-main--terms {
		padding-top: 20px;
	}

	.site-main--terms .layout {
		padding: 0 10px;
	}

	.site-main--single {
		padding-top: 20px;
	}

	.site-main--cpt {
		padding-top: 30px;
	}

	.site-main--single .layout,
	.site-main--cpt .layout {
		padding: 0 20px;
	}

	.site-main--page {
		padding-top: 100px;
	}

	.site-main--page .layout {
		padding: 0 20px;
	}

	/* Картинки карточек архивов на телефоне — пропорция 0,5 (как у Elementor) */
	.site-main--inner .post-card__thumb-inner,
	.site-main--inner .post-cards--1 .post-card__thumb-inner {
		height: auto;
		padding-bottom: 50%;
	}

	.site-main--inner .post-cards--1 .post-card__thumb-inner img {
		top: 50%;
		left: 50%;
		object-position: center;
		transform: translate(-50%, -50%) scale(1.01);
	}

	.site-main--inner .post-cards--1 .post-card__thumb {
		margin-bottom: 20px;
	}

	.site-main--inner .post-cards--1 .post-card__text {
		padding-top: 0;
	}
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	max-width: var(--iz-container);
	margin: 0 auto;
}

.layout--narrow {
	max-width: none;
}

/* Поиск: сетка Bootstrap Henfam (col-lg-8 + col-lg-4 внутри .container) */
.layout--search {
	grid-template-columns: calc((100% + 30px) * 2 / 3 - 30px) calc((100% + 30px) / 3 - 30px);
	gap: 30px;
	max-width: none;
}

/* Планшет 768–991 px: колонки 66,7 % − 20 px и 33,3 % − 20 px с зазором 40 px (контейнеры Elementor) */
@media (min-width: 768px) and (max-width: 991px) {
	.layout {
		grid-template-columns: calc(66.667% - 20px) calc(33.333% - 20px);
		gap: 40px;
		padding: 0 20px;
	}

	.site-main--terms .layout {
		padding: 0 10px;
	}

	/* Поиск: результаты col-md-8, сайдбар ниже шириной col-md-6 */
	.layout--search {
		grid-template-columns: 100%;
		gap: 30px;
		padding: 0;
	}

	.layout--search .layout__main {
		max-width: calc((100% + 30px) * 2 / 3 - 30px);
	}

	.layout--search .sidebar {
		max-width: calc((100% + 30px) / 2 - 30px);
	}
}

/* Маршруты и новости до 1024 px — карточки в две колонки (Elementor, планшет) */
@media (min-width: 768px) and (max-width: 1024px) {
	.post-cards.post-cards--1 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) and (max-width: 768px) {
	.site-main--inner .post-cards--1 .post-card__thumb-inner {
		height: 300px;
	}
}



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

.entry-title {
	margin: 0 0 20px;
	color: var(--iz-dark);
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}

.entry-thumbnail {
	margin: 0 0 30px;
}

.entry-thumbnail img {
	display: block;
	width: 100%;
}

.entry .entry-content > * {
	margin-block: 0 20px;
}

.entry .entry-content p {
	margin: 0 0 16px;
}

.entry .entry-content h2,
.entry .entry-content h3,
.entry .entry-content h4 {
	margin: 0 0 5px;
	font-size: 22px;
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

.archive-title {
	margin: 0 0 20px;
	text-align: center;
}

.archive-title span {
	color: var(--iz-dark);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.6;
}

/* ---------- Сайдбар ---------- */

.sidebar .widget {
	margin-bottom: 30px;
	padding: 35px 30px;
	border-radius: 8px;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.07);
}

.sidebar .widget:last-child {
	margin-bottom: 0;
}

.sidebar .widget-title {
	position: relative;
	margin: 0 0 20px;
	padding: 0 0 12px;
	color: var(--iz-dark);
	font-size: 22px;
	font-weight: 400;
	line-height: 22px;
}

/* Подчёркивание-«дуга» под заголовком виджета */
.sidebar .widget-title::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	box-sizing: border-box;
	width: 26%;
	margin-top: 17px;
	border: 1px solid var(--iz-green);
	border-radius: 50%;
	transform: translateY(-50%);
}

/* Chrome и Safari не сглаживают эллипс высотой 2 px и рисуют прямоугольник; маска гасит концы, как это делает Firefox. Firefox исключён: у него линия и так как на прежнем сайте */
@supports not (-moz-appearance: none) {
	.sidebar .widget-title::before {
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
		mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.sidebar .widget-title {
		font-size: 19px;
	}
}

.sidebar .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar .widget ul:not(.recent-thumbs) > li {
	position: relative;
	margin: 0 0 10px;
	padding: 0 0 10px 20px;
}

.sidebar .widget ul:not(.recent-thumbs) > li:not(:last-child) {
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.sidebar .widget ul:not(.recent-thumbs) > li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}

/* Стрелка-маркер пункта */
.sidebar .widget ul:not(.recent-thumbs) > li::before {
	content: "";
	position: absolute;
	top: 9px;
	left: 3px;
	width: 7px;
	height: 7px;
	border-top: 2px solid #555;
	border-right: 2px solid #555;
	transform: rotate(45deg);
	transition: 0.5s;
}

.sidebar .widget a {
	color: var(--iz-link);
	transition: 0.5s;
}

.sidebar .widget a:hover,
.sidebar .widget li:hover::before {
	color: var(--iz-green);
	border-color: var(--iz-green);
}

.sidebar .tagcloud {
	display: block;
}

.sidebar .tagcloud a {
	display: inline-block;
	margin: 0 8px 10px 0;
	padding: 7px 15px;
	border: 1px solid #ddd;
	color: var(--iz-link);
	font-size: 14px !important;
	line-height: 1.6;
	transition: 0.5s;
}

.sidebar .tagcloud a:hover {
	border-color: var(--iz-green);
	background: var(--iz-green);
	color: #fff;
}

/* Последние записи с миниатюрами (виджет поиска Henfam) */
.recent-thumbs li {
	display: flex;
	gap: 15px;
	padding-left: 0 !important;
}

.recent-thumbs li::before {
	display: none;
}

.recent-thumbs img {
	flex: none;
	width: 70px;
	height: 70px;
	object-fit: cover;
}

.recent-thumbs a {
	display: block;
	line-height: 1.4;
}

.recent-thumbs span {
	font-size: 13px;
}

/* Поиск */
.search-form {
	position: relative;
}

.search-form__field {
	width: 100%;
	height: 54px;
	padding: 1px 70px 1px 15px;
	border: 0;
	background: #f7f7f7;
	color: #000;
	font: inherit;
}

.search-form__submit {
	position: absolute;
	top: 50%;
	right: 0;
	width: 58px;
	height: 55px;
	border: 0;
	background: var(--iz-green);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
}

/* ---------- Карточки архивов (рубрики, метки, маршруты, новости) ---------- */

.post-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 35px 30px;
}

.post-cards--1 {
	grid-template-columns: minmax(0, 1fr);
}

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

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
	transition: 0.25s;
}

.post-card__thumb {
	position: relative;
	display: block;
	overflow: hidden;
	margin-bottom: 20px;
}

.post-card__thumb-inner {
	position: relative;
	display: block;
	padding-bottom: 66%;
	overflow: hidden;
}

.post-card__thumb-inner img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: translate(-50%, -50%) scale(1.01);
	transition: 0.5s;
}

.post-card__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--iz-green-047);
	transform: scale(0);
	transition: 0.5s;
}

.post-card:hover .post-card__thumb::after {
	transform: scale(1.2);
}

.post-card:hover .post-card__thumb-inner img {
	transform: translate(-50%, -50%) scale(1.2);
}

.post-card__text {
	padding: 0 30px;
	margin-bottom: 15px;
}

.post-card__title {
	margin: 0 0 15px;
	font-size: 22px;
	line-height: 1.2;
}

.post-card__excerpt p {
	margin: 0 0 25px;
	color: #777;
	font-size: 14px;
	line-height: 1.5;
}

.post-card .iz-more {
	margin-bottom: 15px;
}


/* Маршруты и новости: одна колонка, картинка 500 px от верхнего края */
.post-cards--1 .post-card__thumb-inner {
	height: 500px;
	padding-bottom: 0;
}

.post-cards--1 .post-card__thumb-inner img {
	top: 0;
	left: 0;
	object-position: top;
	transform: none;
}

.post-cards--1 .post-card:hover .post-card__thumb-inner img {
	transform: scale(1.2);
}

.post-cards--1 .post-card__thumb {
	margin-bottom: 0;
}

.post-cards--1 .post-card__text {
	padding-top: 20px;
	margin-bottom: 0;
}

.post-cards--1 .post-card .iz-more {
	margin-bottom: 20px;
}

/* ---------- Лента «Места» (плиточная, две колонки) ---------- */

.blog-masonry {
	display: flex;
	gap: 0;
	margin: 0 -15px;
}

.blog-masonry__col {
	flex: 1 1 50%;
	min-width: 0;
	padding: 0 15px;
}

@media (max-width: 767px) {
	.blog-masonry {
		flex-direction: column;
	}
}

.blog-card {
	margin-bottom: 23px;
}

.blog-card__img {
	position: relative;
	display: block;
	overflow: hidden;
}

.blog-card__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 348 / 223;
	object-fit: cover;
}

.blog-card__img::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: var(--iz-curtain);
	transform: scale(0);
	transition: transform 0.5s ease-in-out;
}

.blog-card:hover .blog-card__img::before {
	transform: scale(1);
}

.blog-card__content {
	padding: 23px 25px 26px;
	box-shadow: 0 2px 6px rgb(245, 242, 242);
}

.blog-card__title {
	margin: 10px 0 15px;
	font-size: 22px;
	line-height: 1.2;
}

.blog-card__meta {
	margin: 5px 0 10px;
	font-size: 14px;
}

.blog-card__excerpt {
	font-size: 14px;
	line-height: 1.6;
}

.blog-card__excerpt p {
	margin: 0;
}

.blog-card .iz-more {
	margin: 10px 0 5px;
}

/* Карточка результатов поиска (вид Henfam) */
.blog-card--search {
	margin-bottom: 30px;
	background: #fff;
	box-shadow: 0 0 10px rgba(148, 146, 245, 0.2);
}

.blog-card--search .blog-card__img img {
	aspect-ratio: 390 / 250;
}

.blog-card--search .blog-card__content {
	padding: 20px 15px 0;
	box-shadow: none;
}

.blog-card--search .blog-card__title {
	margin: 0 0 5px;
}

.blog-card__meta {
	margin: 0;
	padding: 0 0 9px;
	color: #888;
	font-size: 16px;
}

.blog-card__meta span {
	margin-right: 5px;
}

.blog-card--search .blog-card__excerpt {
	font-size: 16px;
}

.blog-card--search .blog-card__excerpt p {
	margin: 0 0 16px;
}

.iz-more--plain,
.blog-card .iz-more--plain {
	margin: 0 0 20px;
	padding: 7px 25px;
	border: 1px solid #ddd;
	border-radius: 0;
	color: #444;
	font-weight: 400;
}

.iz-more--plain:hover {
	border-color: var(--iz-green);
}

/* ---------- Пагинация ---------- */

.pagination {
	margin-top: 20px;
	padding: 15px 0 10px;
	text-align: center;
}

.pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination li {
	display: inline-block;
}

.pagination li .page-numbers {
	display: inline-block;
	margin: 0 10px 0 5px;
	padding: 15px 24px;
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(50, 65, 141, 0.12);
	color: #888;
	font-size: 19px;
	font-weight: 500;
	line-height: 1;
	transition: 0.5s;
}

.pagination li .page-numbers.current,
.pagination li a.page-numbers:hover {
	background: var(--iz-green);
	color: #fff;
}

.pagination li .page-numbers.dots {
	background: none;
	box-shadow: none;
}

/* ---------- Главная: секции ---------- */

.izumrud-section {
	display: flow-root; /* поля первого и последнего элемента не «проваливаются» наружу */
	padding-top: 0;
	padding-bottom: 0;
}

.izumrud-section > .wp-block-group__inner-container,
.izumrud-section:not(.is-full) {
	--iz-section-width: var(--iz-container);
}

/* Обычная секция: колонка 1140 px с полями 10 px, как у Elementor */
.izumrud-section:not(.is-full) > * {
	max-width: var(--iz-container);
	margin-right: auto;
	margin-left: auto;
	padding-right: 10px;
	padding-left: 10px;
}

/* Полноширинная секция: поля зависят от ширины экрана, как в Henfam */
.izumrud-section.is-full {
	padding-right: 10px;
	padding-left: 10px;
}

@media (min-width: 992px) and (max-width: 1024px) {
	.izumrud-section.is-full {
		padding-right: 20px;
		padding-left: 20px;
	}
}

@media (min-width: 1025px) and (max-width: 1364px) {
	.izumrud-section.is-full {
		padding-right: 30px;
		padding-left: 30px;
	}
}

@media (min-width: 1365px) and (max-width: 1660px) {
	.izumrud-section.is-full {
		padding-right: 70px;
		padding-left: 70px;
	}
}

@media (min-width: 1661px) and (max-width: 1850px) {
	.izumrud-section.is-full {
		padding-right: 20px;
		padding-left: 20px;
	}
}

/* Первая полноширинная секция страницы — без полей (правило Henfam) */
.entry-content--sections > .izumrud-section.is-full:first-child {
	padding: 0 !important;
}

.izumrud-section > * + * {
	margin-top: 20px;
}

.izumrud-section > *,
.izumrud-section .wp-block-column > * {
	margin-bottom: 0;
}

/* Заголовок раздела: надзаголовок + заголовок */
.izumrud-title {
	position: relative;
	text-align: center;
}

.izumrud-title.is-left {
	text-align: left;
}

.izumrud-eyebrow {
	display: inline-block;
	margin: 0;
	color: var(--iz-green);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
}

.izumrud-title .izumrud-section-title {
	margin: 0 auto;
	color: var(--iz-dark);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.4;
}

.izumrud-section-title a {
	color: inherit;
}

/* Заголовок-ссылка всегда 40 px (правило «кегль заголовка-ссылки» прежнего сайта), в том числе на телефоне */
.izumrud-title .izumrud-section-title a {
	font-size: 40px;
	line-height: 1.2;
}

.izumrud-title p:not(.izumrud-eyebrow) {
	margin: 10px 0 0;
}

@media (min-width: 992px) and (max-width: 1364px) {
	.izumrud-title .izumrud-section-title {
		font-size: 38px;
	}
}

@media (max-width: 767px) {
	.izumrud-eyebrow {
		margin-bottom: 4px;
		font-size: 15px;
	}

	.izumrud-title .izumrud-section-title {
		font-size: 21px;
		line-height: 30px;
	}

	.izumrud-title {
		text-align: center;
	}
}

@media (min-width: 480px) and (max-width: 767px) {
	.izumrud-title .izumrud-section-title {
		font-size: 25px;
	}
}

/* У колонки Elementor поля 10 px: первый и последний элементы секции отстоят на 10 px */
.izumrud-section > :first-child {
	margin-top: 10px;
}

.izumrud-section > :last-child {
	margin-bottom: 10px;
}

.entry-content--sections > .izumrud-section.is-full:first-child > :first-child {
	margin-top: 0;
}

.entry-content--sections > .izumrud-section.is-full:first-child > :last-child {
	margin-bottom: 0;
}

/* Колонки внутри секций (города, «О проекте»): контейнер 1140 px, у колонки поля 10 px */
.izumrud-section .wp-block-columns {
	display: flex;
	gap: 0 !important;
	margin-top: 0;
	margin-bottom: 0;
}

.izumrud-section > .wp-block-columns {
	padding-right: 0 !important;
	padding-left: 0 !important;
}

.izumrud-section > .iz-inner > * {
	margin-top: 0;
}

.izumrud-section .wp-block-column {
	flex: 1 1 0;
	min-width: 0;
	padding: 10px;
}

.izumrud-section .wp-block-column > * + * {
	margin-top: 20px;
}

@media (max-width: 767px) {
	.izumrud-section .wp-block-columns {
		flex-direction: column;
	}
}

/* Henfam: на планшете (768–991 px) колонки по 25 % становятся по 50 % — города встают сеткой 2×2 */
@media (min-width: 768px) and (max-width: 991px) {
	.izumrud-section .wp-block-columns.izumrud-cities {
		flex-wrap: wrap !important;
	}

	.izumrud-section .wp-block-columns.izumrud-cities > .wp-block-column {
		flex: 0 0 50% !important;
	}
}

/* Колонки складываются только на телефоне (как в Elementor), а не ниже 782 px, как в ядре WordPress */
@media (min-width: 768px) {
	.izumrud-section .wp-block-columns {
		flex-wrap: nowrap !important;
	}

	.izumrud-section .wp-block-columns > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1;
	}
}

/* Города */
.izumrud-cities .wp-block-column {
	text-align: center;
}

.izumrud-cities .wp-block-image {
	margin: 0;
	text-align: center;
}

.izumrud-cities .wp-block-image a {
	position: relative;
	display: inline-block;
	overflow: hidden;
}

.izumrud-cities .wp-block-image a::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--iz-curtain);
	transform: scale(0);
	transform-origin: center;
	transition: transform 0.5s ease-in-out;
	pointer-events: none;
}

.izumrud-cities .wp-block-image a:hover::after {
	transform: scale(1);
}


.izumrud-cities h3 {
	margin: 0;
	font-size: 22px;
	line-height: 1;
	text-align: center;
}

.izumrud-cities h3 a {
	color: var(--iz-dark);
}

.izumrud-cities .wp-block-column:hover h3 a {
	color: var(--iz-green);
	transition: color 0.5s ease;
}

/* «О проекте» */
.izumrud-about .wp-block-column:first-child {
	position: relative;
}

.izumrud-about .wp-block-image {
	position: relative;
	z-index: 3;
	margin: 0;
}

.izumrud-about .wp-block-image img {
	transition: 0.5s;
}

/* Текст «О проекте»: в оригинале один абзац, начинающийся с пустой строки, абзацы разделены пустой строкой */
.izumrud-about .izumrud-title p:not(.izumrud-eyebrow) {
	margin: 25.6px 0 0;
}

.izumrud-about .izumrud-title .izumrud-section-title + p {
	margin-top: 35.6px;
}

.izumrud-about .izumrud-title p:last-child {
	margin-bottom: 16px;
}

.izumrud-about strong,
.izumrud-about span {
	color: #38302b;
	font-weight: 700;
}

/* Вертикальная надпись «СРЕДНИЙ УРАЛ» с анимацией «шторки» */
.izumrud-vertical-text {
	position: absolute;
	top: -44px;
	left: 176px;
	z-index: 5;
	width: 100%;
	margin: 0 !important;
	color: #f3f3f3;
	font-size: 60px;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	transform: rotate(-90deg);
	pointer-events: none;
	-webkit-text-fill-color: #f3f3f3;
	-webkit-text-stroke: 1px #f3f3f3;
}

.izumrud-vertical-text .iz-clip {
	position: relative;
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	text-align: left;
}

.izumrud-vertical-text .iz-clip::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 2px;
	height: 100%;
	background-color: #aebcb9;
}

.izumrud-vertical-text .iz-clip > span {
	display: inline-block;
	text-align: right;
	white-space: nowrap;
}

@media (max-width: 1024px) {
	.izumrud-vertical-text {
		left: 120px;
	}
}

@media (max-width: 767px) {
	.izumrud-vertical-text {
		left: 100px;
	}
}

/* Карта */
.izumrud-map {
	width: 100vw;
	max-width: none !important;
	margin-left: calc(50% - 50vw) !important;
	padding: 0 !important;
}

.izumrud-video-gallery {
	width: 100vw;
	max-width: none !important;
	margin-left: calc(50% - 50vw) !important;
}

.izumrud-map svg {
	display: block;
	width: 100%;
	height: auto;
}

/* Плитки маршрутов */
.izumrud-tiles {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	padding: 10px 0 !important;
}

@media (max-width: 767px) {
	.izumrud-tiles {
		grid-template-columns: minmax(0, 1fr);
		padding: 10px !important;
	}

	.izumrud-testimonials .testimonial {
		margin-right: 0;
	}

	/* Колонки «О проекте» на телефоне: поля 0 20 px (настройки Elementor) */
	.izumrud-about .wp-block-column[style] {
		padding: 0 20px !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.izumrud-about .wp-block-column[style] {
		padding: 0 10px !important;
	}
}

.izumrud-tiles > * {
	margin: 0 !important;
}

.izumrud-tiles .wp-block-image {
	position: relative;
	overflow: hidden;
}

.izumrud-tiles .wp-block-image a {
	display: block;
}

.izumrud-tiles .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 420 / 257;
	object-fit: cover;
}

/* Передняя полоса с названием */
.izumrud-tiles .wp-element-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	display: flex;
	width: 100%;
	margin: 0;
	padding: 27px 20px 15px 40px;
	background: var(--iz-green-047);
	color: #fff;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	transition: 0.5s;
	pointer-events: none;
}

/* Задний слой: выезжает сверху при наведении */
.izumrud-tiles .wp-block-image::before {
	content: attr(data-title);
	position: absolute;
	top: -100%;
	left: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0 30px;
	background: var(--iz-green-047);
	color: #fff;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	transition: 0.5s;
	pointer-events: none;
}

.izumrud-tiles .wp-block-image:hover::before {
	top: 0;
}

.izumrud-tiles .wp-block-image:hover .wp-element-caption {
	bottom: -100%;
}

/* Логотип фонда и одиночные картинки по центру */
.izumrud-section .wp-block-image.aligncenter,
.izumrud-section > .wp-block-image {
	text-align: center;
}



/* ---------- Карусели (Swiper) ---------- */

.iz-swiper {
	position: relative;
}

.iz-swiper .swiper-slide {
	height: auto;
}

.iz-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	padding: 0;
	border: 0;
	background: none;
	color: rgba(237, 237, 237, 0.9);
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: 0.25s;
}

.iz-arrow--prev {
	left: 0;
}

.iz-arrow--next {
	right: 0;
}

.iz-arrow svg {
	display: block;
	width: 1em;
	height: 1em;
}

/* Стрелки карточек: зелёные квадраты 42 px */
.iz-arrow--square {
	font-size: 42px;
}

.iz-arrow--square .button {
	fill: var(--iz-green);
	transition: fill 0.3s;
}

.iz-arrow--square:hover .button {
	fill: #1e48447d;
}

/* Стрелки галерей: белые шевроны */
.iz-arrow--chevron {
	font-size: 25px;
}

.iz-arrow--chevron svg {
	fill: rgba(237, 237, 237, 0.9);
}

.iz-gallery .iz-arrow--chevron {
	font-size: 20px;
}

.iz-gallery .iz-arrow--prev {
	left: 10px;
}

.iz-gallery .iz-arrow--next {
	right: 10px;
}

/* Карточка карусели записей */
.loop-card {
	padding: 10px 0;
}

.loop-card__thumb {
	display: block;
}

.loop-card__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 770 / 450;
	object-fit: cover;
}

.loop-card__title {
	margin: 28px 0 0;
	font-size: 22px;
	line-height: 1;
}

.loop-card__title a {
	color: var(--iz-dark);
}

/* Карусели в полноширинных секциях: как у Elementor, шире колонки на 20 px вправо */
@media (min-width: 1025px) and (max-width: 1850px) {
	.izumrud-section.is-full > .izumrud-video-carousel,
	.izumrud-section.is-full .izumrud-posts-carousel {
		margin-right: -20px;
	}
}

.izumrud-video-carousel .swiper-slide {
	padding: 10px 0;
}

/* Видео в карусели */
.izumrud-video-carousel video {
	display: block;
	width: 100%;
	height: auto;
	background: #000;
	object-fit: cover;
}

.izumrud-video-carousel .wp-block-video {
	margin: 0;
}

/* Галерея записи: по три фото высотой 230 px */
.iz-gallery .swiper-slide a {
	display: block;
	height: 230px;
	background-position: center;
	background-size: cover;
}

.iz-gallery .swiper-slide img {
	display: none;
}

/* Отзывы */
.izumrud-testimonials {
	padding: 20px 10px;
}

.izumrud-testimonials .swiper {
	padding-top: 4px;
	margin-top: -4px;
}

.testimonial {
	position: relative;
	margin: 50px 15px 23px 0;
	padding: 30px 17px 20px 30px;
	text-align: center;
}

.testimonial__photo {
	position: absolute;
	top: -54px;
	left: 72px;
	z-index: 22;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	object-fit: cover;
	transform: translateX(-50%);
}

.testimonial__head {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin: 0;
	padding: 17px 0 15px;
}

.testimonial__stars {
	display: inline-flex;
	gap: 2px;
}

.testimonial__stars svg {
	width: 16px;
	height: 16px;
	fill: #ddd;
}

.testimonial__stars svg.is-active {
	fill: var(--iz-green);
}

.testimonial__result {
	margin: 0 0 0 15px;
	color: var(--iz-green);
	font-size: 18px;
	font-style: italic;
	font-weight: 600;
	line-height: 1.2;
}

.testimonial__text {
	margin: 0 0 16px;
	text-align: left;
}

.testimonial__text p {
	margin: 0;
}

.testimonial__name {
	margin: 0 0 5px;
	font-size: 22px;
	line-height: 23px;
	text-align: left;
}

.testimonial__status {
	display: block;
	font-size: 16px;
	text-align: left;
}

.iz-dots {
	position: absolute;
	bottom: -17px !important;
	left: 50% !important;
	z-index: 11;
	width: auto !important;
	text-align: center;
	transform: translateX(-50%);
}

.iz-dots .swiper-pagination-bullet {
	width: 60px;
	height: 4px;
	margin: 0 5px !important;
	border-radius: 0;
	background: rgba(0, 139, 40, 0.36);
	opacity: 1;
	transition: 0.5s;
}

.iz-dots .swiper-pagination-bullet-active {
	background: var(--iz-green);
}

/* ---------- Видеогалерея (страница «Видео») ---------- */

.izumrud-video-gallery {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 41px !important;
	margin-bottom: 70px !important;
	padding: 0 4px 0 10px;
}

@media (max-width: 1024px) {
	.izumrud-video-gallery {
		grid-template-columns: minmax(0, 1fr);
	}
}

.izumrud-video-gallery > .wp-block-video {
	margin: 0 !important;
}

.vg-item {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 0;
	border: 2px solid #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}

.vg-item img {
	display: block;
	width: 100%;
	height: auto;
}

.vg-item::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: 0.5s;
}

.vg-item span {
	position: absolute;
	top: 50%;
	left: 50%;
	color: #fff;
	font-family: Georgia, serif;
	font-size: 15px;
	opacity: 0;
	transform: translate(-50%, -50%);
	transition: 0.5s;
}

.vg-item:hover::before,
.vg-item:hover span {
	opacity: 1;
}

.vg-hidden {
	display: none !important;
}

.vg-pagination {
	display: flex;
	justify-content: center;
	margin: -5px 0 0 5px;
	padding: 20px 0;
	grid-column: 1 / -1;
}

/* Кнопки страниц как в Total Soft Video Gallery: зелёные квадраты, текущая — кружок с точкой */
.vg-pagination button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	margin: 0 8px 6px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--iz-green);
	color: #fff;
	font-size: 18px;
	font-weight: 500;
	cursor: pointer;
}

.vg-pagination button.is-current {
	background: transparent;
	color: var(--iz-dark);
	cursor: default;
}

.vg-pagination button.is-current::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid #ddd;
	border-radius: 50%;
}

.vg-pagination button.is-current::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--iz-dark);
}

.vg-pagination button[hidden] {
	display: none;
}

/* Просмотр видео и фото во всплывающем окне */
.iz-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
}

.iz-lightbox video,
.iz-lightbox img {
	max-width: 90vw;
	max-height: 85vh;
}

.iz-lightbox__close,
.iz-lightbox__prev,
.iz-lightbox__next {
	position: absolute;
	padding: 10px;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.8);
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

.iz-lightbox__close {
	top: 15px;
	right: 20px;
}

.iz-lightbox__prev {
	top: 50%;
	left: 15px;
	transform: translateY(-50%);
}

.iz-lightbox__next {
	top: 50%;
	right: 15px;
	transform: translateY(-50%);
}

/* ---------- 404 ---------- */

.not-found-area {
	padding: 0 0 16px;
	border-top: 1px solid #f5f3f3;
}

.not-found {
	display: table;
	width: 100%;
	height: 500px;
	padding: 0 15px 40px;
}

.not-found__inner {
	display: table-cell;
	color: var(--iz-text);
	font-size: 30px;
	line-height: 1.6;
	text-align: center;
	vertical-align: middle;
}

.not-found__code {
	display: inline-block;
	margin: 0 0 5px;
	padding: 15px 0;
	color: var(--iz-green);
	font-size: 160px;
	font-weight: 700;
	line-height: 1.2;
}

.not-found__home a {
	display: inline-block;
	margin-top: 40px;
	color: #606b82;
	font-size: 24px;
	line-height: 1.6;
	text-decoration: underline;
}


/* ---------- Отступы секций (переносятся из настроек Elementor) ---------- */

.iz-pt-0 {
	padding-top: 0px !important;
}

.iz-pb-0 {
	padding-bottom: 0px !important;
}

.iz-pt-5 {
	padding-top: 5px !important;
}

.iz-pb-5 {
	padding-bottom: 5px !important;
}

.iz-pt-10 {
	padding-top: 10px !important;
}

.iz-pb-10 {
	padding-bottom: 10px !important;
}

.iz-pt-15 {
	padding-top: 15px !important;
}

.iz-pb-15 {
	padding-bottom: 15px !important;
}

.iz-pt-20 {
	padding-top: 20px !important;
}

.iz-pb-20 {
	padding-bottom: 20px !important;
}

.iz-pt-25 {
	padding-top: 25px !important;
}

.iz-pb-25 {
	padding-bottom: 25px !important;
}

.iz-pt-30 {
	padding-top: 30px !important;
}

.iz-pb-30 {
	padding-bottom: 30px !important;
}

.iz-pt-35 {
	padding-top: 35px !important;
}

.iz-pb-35 {
	padding-bottom: 35px !important;
}

.iz-pt-40 {
	padding-top: 40px !important;
}

.iz-pb-40 {
	padding-bottom: 40px !important;
}

.iz-pt-45 {
	padding-top: 45px !important;
}

.iz-pb-45 {
	padding-bottom: 45px !important;
}

.iz-pt-50 {
	padding-top: 50px !important;
}

.iz-pb-50 {
	padding-bottom: 50px !important;
}

.iz-pt-55 {
	padding-top: 55px !important;
}

.iz-pb-55 {
	padding-bottom: 55px !important;
}

.iz-pt-60 {
	padding-top: 60px !important;
}

.iz-pb-60 {
	padding-bottom: 60px !important;
}

.iz-pt-65 {
	padding-top: 65px !important;
}

.iz-pb-65 {
	padding-bottom: 65px !important;
}

.iz-pt-70 {
	padding-top: 70px !important;
}

.iz-pb-70 {
	padding-bottom: 70px !important;
}

.iz-pt-75 {
	padding-top: 75px !important;
}

.iz-pb-75 {
	padding-bottom: 75px !important;
}

.iz-pt-80 {
	padding-top: 80px !important;
}

.iz-pb-80 {
	padding-bottom: 80px !important;
}

.iz-pt-85 {
	padding-top: 85px !important;
}

.iz-pb-85 {
	padding-bottom: 85px !important;
}

.iz-pt-90 {
	padding-top: 90px !important;
}

.iz-pb-90 {
	padding-bottom: 90px !important;
}

.iz-pt-95 {
	padding-top: 95px !important;
}

.iz-pb-95 {
	padding-bottom: 95px !important;
}

.iz-pt-100 {
	padding-top: 100px !important;
}

.iz-pb-100 {
	padding-bottom: 100px !important;
}

.iz-pt-105 {
	padding-top: 105px !important;
}

.iz-pb-105 {
	padding-bottom: 105px !important;
}

.iz-pt-110 {
	padding-top: 110px !important;
}

.iz-pb-110 {
	padding-bottom: 110px !important;
}

.iz-pt-115 {
	padding-top: 115px !important;
}

.iz-pb-115 {
	padding-bottom: 115px !important;
}

.iz-pt-120 {
	padding-top: 120px !important;
}

.iz-pb-120 {
	padding-bottom: 120px !important;
}

.iz-pt-125 {
	padding-top: 125px !important;
}

.iz-pb-125 {
	padding-bottom: 125px !important;
}

.iz-pt-130 {
	padding-top: 130px !important;
}

.iz-pb-130 {
	padding-bottom: 130px !important;
}

.iz-pt-140 {
	padding-top: 140px !important;
}

.iz-pb-140 {
	padding-bottom: 140px !important;
}

.iz-pt-150 {
	padding-top: 150px !important;
}

.iz-pb-150 {
	padding-bottom: 150px !important;
}

@media (max-width: 1024px) {
	.iz-mt-t-0 {
		margin-top: 0px !important;
	}

	.iz-mb-t-0 {
		margin-bottom: 0px !important;
	}

	.iz-mt-t-5 {
		margin-top: 5px !important;
	}

	.iz-mb-t-5 {
		margin-bottom: 5px !important;
	}

	.iz-mt-t-10 {
		margin-top: 10px !important;
	}

	.iz-mb-t-10 {
		margin-bottom: 10px !important;
	}

	.iz-mt-t-15 {
		margin-top: 15px !important;
	}

	.iz-mb-t-15 {
		margin-bottom: 15px !important;
	}

	.iz-mt-t-20 {
		margin-top: 20px !important;
	}

	.iz-mb-t-20 {
		margin-bottom: 20px !important;
	}

	.iz-mt-t-25 {
		margin-top: 25px !important;
	}

	.iz-mb-t-25 {
		margin-bottom: 25px !important;
	}

	.iz-mt-t-30 {
		margin-top: 30px !important;
	}

	.iz-mb-t-30 {
		margin-bottom: 30px !important;
	}

	.iz-mt-t-35 {
		margin-top: 35px !important;
	}

	.iz-mb-t-35 {
		margin-bottom: 35px !important;
	}

	.iz-mt-t-40 {
		margin-top: 40px !important;
	}

	.iz-mb-t-40 {
		margin-bottom: 40px !important;
	}

	.iz-mt-t-45 {
		margin-top: 45px !important;
	}

	.iz-mb-t-45 {
		margin-bottom: 45px !important;
	}

	.iz-mt-t-50 {
		margin-top: 50px !important;
	}

	.iz-mb-t-50 {
		margin-bottom: 50px !important;
	}

	.iz-mt-t-55 {
		margin-top: 55px !important;
	}

	.iz-mb-t-55 {
		margin-bottom: 55px !important;
	}

	.iz-mt-t-60 {
		margin-top: 60px !important;
	}

	.iz-mb-t-60 {
		margin-bottom: 60px !important;
	}

	.iz-mt-t-65 {
		margin-top: 65px !important;
	}

	.iz-mb-t-65 {
		margin-bottom: 65px !important;
	}

	.iz-mt-t-70 {
		margin-top: 70px !important;
	}

	.iz-mb-t-70 {
		margin-bottom: 70px !important;
	}

	.iz-mt-t-75 {
		margin-top: 75px !important;
	}

	.iz-mb-t-75 {
		margin-bottom: 75px !important;
	}

	.iz-mt-t-80 {
		margin-top: 80px !important;
	}

	.iz-mb-t-80 {
		margin-bottom: 80px !important;
	}

	.iz-mt-t-85 {
		margin-top: 85px !important;
	}

	.iz-mb-t-85 {
		margin-bottom: 85px !important;
	}

	.iz-mt-t-90 {
		margin-top: 90px !important;
	}

	.iz-mb-t-90 {
		margin-bottom: 90px !important;
	}

	.iz-mt-t-95 {
		margin-top: 95px !important;
	}

	.iz-mb-t-95 {
		margin-bottom: 95px !important;
	}

	.iz-mt-t-100 {
		margin-top: 100px !important;
	}

	.iz-mb-t-100 {
		margin-bottom: 100px !important;
	}

	.iz-mt-t-105 {
		margin-top: 105px !important;
	}

	.iz-mb-t-105 {
		margin-bottom: 105px !important;
	}

	.iz-mt-t-110 {
		margin-top: 110px !important;
	}

	.iz-mb-t-110 {
		margin-bottom: 110px !important;
	}

	.iz-mt-t-115 {
		margin-top: 115px !important;
	}

	.iz-mb-t-115 {
		margin-bottom: 115px !important;
	}

	.iz-mt-t-120 {
		margin-top: 120px !important;
	}

	.iz-mb-t-120 {
		margin-bottom: 120px !important;
	}

	.iz-mt-t-125 {
		margin-top: 125px !important;
	}

	.iz-mb-t-125 {
		margin-bottom: 125px !important;
	}

	.iz-mt-t-130 {
		margin-top: 130px !important;
	}

	.iz-mb-t-130 {
		margin-bottom: 130px !important;
	}

	.iz-mt-t-140 {
		margin-top: 140px !important;
	}

	.iz-mb-t-140 {
		margin-bottom: 140px !important;
	}

	.iz-mt-t-150 {
		margin-top: 150px !important;
	}

	.iz-mb-t-150 {
		margin-bottom: 150px !important;
	}
}

@media (max-width: 767px) {
	.iz-mt-m-0 {
		margin-top: 0px !important;
	}

	.iz-mb-m-0 {
		margin-bottom: 0px !important;
	}

	.iz-mt-m-5 {
		margin-top: 5px !important;
	}

	.iz-mb-m-5 {
		margin-bottom: 5px !important;
	}

	.iz-mt-m-10 {
		margin-top: 10px !important;
	}

	.iz-mb-m-10 {
		margin-bottom: 10px !important;
	}

	.iz-mt-m-15 {
		margin-top: 15px !important;
	}

	.iz-mb-m-15 {
		margin-bottom: 15px !important;
	}

	.iz-mt-m-20 {
		margin-top: 20px !important;
	}

	.iz-mb-m-20 {
		margin-bottom: 20px !important;
	}

	.iz-mt-m-25 {
		margin-top: 25px !important;
	}

	.iz-mb-m-25 {
		margin-bottom: 25px !important;
	}

	.iz-mt-m-30 {
		margin-top: 30px !important;
	}

	.iz-mb-m-30 {
		margin-bottom: 30px !important;
	}

	.iz-mt-m-35 {
		margin-top: 35px !important;
	}

	.iz-mb-m-35 {
		margin-bottom: 35px !important;
	}

	.iz-mt-m-40 {
		margin-top: 40px !important;
	}

	.iz-mb-m-40 {
		margin-bottom: 40px !important;
	}

	.iz-mt-m-45 {
		margin-top: 45px !important;
	}

	.iz-mb-m-45 {
		margin-bottom: 45px !important;
	}

	.iz-mt-m-50 {
		margin-top: 50px !important;
	}

	.iz-mb-m-50 {
		margin-bottom: 50px !important;
	}

	.iz-mt-m-55 {
		margin-top: 55px !important;
	}

	.iz-mb-m-55 {
		margin-bottom: 55px !important;
	}

	.iz-mt-m-60 {
		margin-top: 60px !important;
	}

	.iz-mb-m-60 {
		margin-bottom: 60px !important;
	}

	.iz-mt-m-65 {
		margin-top: 65px !important;
	}

	.iz-mb-m-65 {
		margin-bottom: 65px !important;
	}

	.iz-mt-m-70 {
		margin-top: 70px !important;
	}

	.iz-mb-m-70 {
		margin-bottom: 70px !important;
	}

	.iz-mt-m-75 {
		margin-top: 75px !important;
	}

	.iz-mb-m-75 {
		margin-bottom: 75px !important;
	}

	.iz-mt-m-80 {
		margin-top: 80px !important;
	}

	.iz-mb-m-80 {
		margin-bottom: 80px !important;
	}

	.iz-mt-m-85 {
		margin-top: 85px !important;
	}

	.iz-mb-m-85 {
		margin-bottom: 85px !important;
	}

	.iz-mt-m-90 {
		margin-top: 90px !important;
	}

	.iz-mb-m-90 {
		margin-bottom: 90px !important;
	}

	.iz-mt-m-95 {
		margin-top: 95px !important;
	}

	.iz-mb-m-95 {
		margin-bottom: 95px !important;
	}

	.iz-mt-m-100 {
		margin-top: 100px !important;
	}

	.iz-mb-m-100 {
		margin-bottom: 100px !important;
	}

	.iz-mt-m-105 {
		margin-top: 105px !important;
	}

	.iz-mb-m-105 {
		margin-bottom: 105px !important;
	}

	.iz-mt-m-110 {
		margin-top: 110px !important;
	}

	.iz-mb-m-110 {
		margin-bottom: 110px !important;
	}

	.iz-mt-m-115 {
		margin-top: 115px !important;
	}

	.iz-mb-m-115 {
		margin-bottom: 115px !important;
	}

	.iz-mt-m-120 {
		margin-top: 120px !important;
	}

	.iz-mb-m-120 {
		margin-bottom: 120px !important;
	}

	.iz-mt-m-125 {
		margin-top: 125px !important;
	}

	.iz-mb-m-125 {
		margin-bottom: 125px !important;
	}

	.iz-mt-m-130 {
		margin-top: 130px !important;
	}

	.iz-mb-m-130 {
		margin-bottom: 130px !important;
	}

	.iz-mt-m-140 {
		margin-top: 140px !important;
	}

	.iz-mb-m-140 {
		margin-bottom: 140px !important;
	}

	.iz-mt-m-150 {
		margin-top: 150px !important;
	}

	.iz-mb-m-150 {
		margin-bottom: 150px !important;
	}
}

/* Правило Henfam для первой полноширинной секции сильнее отступов из настроек */
.entry-content--sections > .izumrud-section.is-full:first-child[class] {
	padding: 0 !important;
}

/* ---------- Планшет (значения сняты с прежнего сайта) ---------- */

/* До 1024 px Henfam не обнуляет поле колонки у первой полноширинной секции: карта и видеогалерея с отступом 10 px */
@media (max-width: 1024px) {
	.entry-content--sections > .izumrud-section.is-full:first-child[class] {
		padding: 10px !important;
	}

	.izumrud-map,
	.izumrud-video-gallery {
		width: auto;
		margin-left: 0 !important;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.izumrud-title .izumrud-section-title {
		font-size: 30px;
		line-height: 1.4;
	}

	.izumrud-video-carousel .swiper-slide {
		padding: 0;
	}

	.izumrud-tiles {
		gap: 30px;
		padding: 0 !important;
	}

}

@media (min-width: 769px) and (max-width: 991px) {
	.loop-card {
		padding: 10px;
	}

	.izumrud-video-carousel .swiper-slide {
		padding: 4px 0;
	}
}

/* До 768 px: слайд видео — поля 10 px по бокам и снизу (контейнер Elementor на телефоне) */
@media (max-width: 768px) {
	.izumrud-video-carousel .swiper-slide {
		padding: 0 10px 10px;
	}
}

@media (max-width: 767px) {
	/* Подвал на телефоне: копирайт 15/24 px, контакты на 1 px ниже */
	.site-footer__bottom p {
		font-size: 15px;
		line-height: 24px;
	}

	.site-footer__contacts {
		padding-top: 11px;
	}

	.site-footer__contacts p {
		margin-bottom: 16px;
	}


	.site-main--single .entry .entry-content > :last-child {
		margin-bottom: 0;
	}

	.site-main--cpt .layout {
		row-gap: 40px;
	}

	.izumrud-video-gallery {
		margin-bottom: 50px !important;
	}

	.vg-pagination {
		padding-bottom: 30px;
	}

	/* «Места» на телефоне: одна колонка во всю ширину контейнера */
	.blog-masonry {
		margin: 0;
	}

	.blog-masonry__col {
		padding: 0;
	}

	/* Запись на телефоне: у текста поля 10 px, под картинкой 20 px (виджеты Elementor) */
	.site-main--single .entry .entry-thumbnail {
		margin-bottom: 20px;
	}

	.site-main--single .entry .entry-content {
		padding-right: 10px;
		padding-left: 10px;
	}

	/* У абзаца «О проекте» на телефоне поле 10 px сверху (Henfam) */
	.izumrud-about .izumrud-title .izumrud-section-title + p {
		margin-top: 44.6px;
	}
}

/* Видеогалерея на планшете: до подвала 110 px вместе с отступом секции */
@media (min-width: 768px) and (max-width: 1024px) {
	.izumrud-video-gallery {
		margin-bottom: 50px !important;
	}
}
