/*
 Theme Name:   Astra Child
 Theme URI:    https://example.com/astra-child/
 Description:  Дочерняя тема для Astra
 Author:       Ваше Имя
 Author URI:   https://example.com
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/
.entry-title {color:black!important}

/* Enhanced Modern Dynamic Category Structure – Astra Child Theme */
.modern-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	padding: 2rem;
}

.cat-block {
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.06);
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
}

.cat-block:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.cat-title {
	background: #f5f5f5;
	margin: 0;
	padding: 1rem;
	font-size: 1.3rem;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.subcat-block {
	padding: 1rem;
	border-top: 1px solid #ececec;
}

.subcat-title {
	font-size: 1.1rem;
	margin: 0 0 .5rem;
	color: #333333;
}

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

.post-item {
	margin: 0;
	transition: background .3s ease;
}

.post-item.even {
	background: #ffffff;
}

.post-item.odd {
	background: #f9f9f9;
}

.post-item:hover {
	background: #ececec;
}

.post-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .75rem 1rem;
	color: inherit;
	text-decoration: none;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

.post-date {
	font-size: .9rem;
	color: #777777;
	margin-right: .5rem;
	white-space: nowrap!important;
}

.post-title {
	font-size: 1rem;
	flex-grow: 1;
}

.no-posts {
	font-style: italic;
	color: #777777;
}

/* start */
/* h1 на всем сайте */
.site-content h1 {
	font-size: 2rem;
	line-height: 1.3;
}
/* h2 на всем сайте */
.site-content h2 {
	font-size: 1.8rem;
	line-height: 1.3;
}

/* h3 на всем сайте */
.site-content h3,
.entry-content h3  > a {
	font-size: 1.5rem;
}
/* h4 на всем сайте */
.site-content h4,
.entry-content h4 > a {
	font-size: 1.3rem;
}

/* header */
body .site-header-primary-section-left {
	flex-direction: column;
}

.slogan {
	font-size: 12px;
	font-weight: 600;
}

/* отступы слева и справа */
.site-header-section>div:last-child {
	padding-right: 0;
}
.site-header-section>* {
	padding: 0;
}

.wp-block-button__link:hover {
	background-color: #056cb1 !important;
	box-shadow: 0 0 7px #00000057;
    transform: scale(1.05);
}

.ast-builder-grid-row {
	grid-column-gap: 0;
}

.ast-builder-grid-row-container-inner {
	width: 95%;
    margin: 0 auto;
}

.line-educational-programs {
	width: 60% !important;
	margin: 50px auto !important;
}

/* образовательные программы */
.educational-programs-item {
	align-items: center !important;
}

.footer-widget-area[data-section="sidebar-widgets-footer-widget-3"].footer-widget-area-inner {
    color: #fff;
}

/* меню для учебного центра */
.wp-block-navigation .wp-block-navigation-item {
	flex: 0 0 calc(90% / 3);
    line-height: 1.2;
	background-color: #ffffff;
    box-shadow: 2px 2px 5px #00000040;
}
.wp-block-navigation .wp-block-navigation-item__content {
	display: flex;
    align-items: center;
	width: 100%;
    height: 50px;
    padding: 6px 10px;
    background-color: #fff;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.wp-block-navigation-item__content:hover {
	transform: translateY(-3px);
    box-shadow: 0 8px 20px rgb(0 100 200 / 37%);
	border-radius: 0px;
}
.mobile-burger-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid #ddd;
	background: #f5f5f5;
	overflow: hidden;
}
.mobile-burger-btn {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-active-title {
	position: absolute;
	left: 60px;
	width: 79%;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	line-height: 1.1;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
}

/* форма в контактах */
#wpcf7-f3021-p2765-o1 {
	width: 50%;
    margin-left: 0;
    margin-right: auto;
    padding: 15px;
    border-radius: 8px;
    background: #d5dfe9;
}

#wpcf7-f3021-p2765-o1 p > label {
	height: 100px;
}

.wpcf7-textarea {
	resize: none;
	height: 150px;
	overflow-y: auto;
}

/* временный */
.wp-block-uagb-advanced-heading .uagb-heading-text {
	margin: 20px 0;
}

/* ибираем прокрутку при открытии бургер меню */
body.ast-main-header-nav-open,
body.ast-popup-nav-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* Учебный центр h2 Курс по пожарной безопасности */
.kurs-pozharnoy-bezopasnosti--h2 a {
	font-size: 1.3rem;
}

/* подсветить активную ссылку в Навигация по учебному центру */
.page-uchebnyy-tsentr-sveden 
.wp-block-navigation-item__content[href="/uchebnyy-tsentr-sveden"]
.wp-block-navigation-item__label {
  background: #000;
}

/* страницы Услуги */
.uslug-obshchiy-blok {
	padding-bottom: 50px !important;
}

/* страница Статьи */
.statia-custom-block ul li {
	border-bottom: solid 1px #00000059;
    display: flex;
    flex-direction: row-reverse;
	justify-content: flex-end;
    align-items: center;
	gap: 20px;
}

.statia-custom-block h2 {
	font-size: 2rem;
}
	
.statia-custom-block ul li a {
	color: #083385;
    font-weight: 600;
	padding: 5px;
	transition: 0.3s;
}

.statia-custom-block ul li a:hover {
	padding-left: 20px;
	background: #02020214;
	transition: 0.3s;
}

/* отступы во всех картинках */
.site-content figure {
	margin: 20px 0 !important;
}
/* учебный центр */
.entry-content .uagb-block-02a538c6 p {
	font-size: 1.8rem !important;
}

.mobile-burger-btn {
  width: 100%;
  padding: 14px;
  font-size: 22px;
  background: #333;
  border: 1px solid #ddd;
  cursor: pointer;
  text-align: left;
}

/* Шторка */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateY(0);
}

body.no-scroll {
  overflow: hidden;
}

/* Крестик */
.mobile-menu-close {
  width: 100%;
  padding: 14px;
  font-size: 22px;
  background: #000;
  border: none;
  border-bottom: 1px solid #ddd;
  text-align: right;
  cursor: pointer;
}

/* Пункты */
.mobile-menu .wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.mobile-menu .wp-block-navigation__container li {
  width: 90%
}

.mobile-menu a {
  padding: 14px;
  display: block;
}
/* подсветка активный пункт в мобильной шторке */
.mobile-menu a.is-active {
	position: relative;
	color: #0d6efd;
	font-weight: 600;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgb(0 100 200 / 37%);
}

.mobile-menu a.is-active::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -5px;
	width: 100%;
	height: 2px;
	background: currentColor;
}

/* подсветка навигации */
.entry-content .uagb-block-02a538c6 a.is-active {
	position: relative;
	color: #0d6efd;
	font-weight: 600;
	transform: translateY(-3px);
    box-shadow: 0 8px 20px rgb(0 100 200 / 37%);
}

.entry-content .uagb-block-02a538c6 a.is-active::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 100%;
	height: 2px;
	background: currentColor;
}

/* footer */
footer .uagb-heading-text {
	font-size: 1.2rem !important;
	line-height: 1.3 !important;
}
/* footer .site-footer-primary-section-1 {
	width: 600px;
} */

.pravo-info {
	font-size: 10px;
	line-height: 1;
	padding: 20px 0;
	color: #fff;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
	padding-top: 30px;
	padding-bottom: 0;
}

.footer-widget-area[data-section="section-fb-html-2"] .ast-builder-html-element {
	text-align: left;
}

/* медиа запросы */
@media (max-width: 425px) {
	body p {
        font-size: 1rem !important;
    }
	
	#ast-hf-mobile-menu .menu-link {
		font-size: 0.9rem !important;
	}
	.wp-block-uagb-container.uagb-block-9b707797 {
		padding-left: 0;
        padding-right: 0;
	}
	.uagb-ifb-content {
		padding: 20px;
	}
	.uagb-container-inner-blocks-wrap {
		padding: 20px;
	}
    .uagb-ifb-title-wrap h1 {
        font-size: 1.5rem !important;
    }
	.wp-block-uagb-advanced-heading h2, .uagb-container-inner-blocks-wrap h2, .has-text-align-right {
        font-size: 1rem !important;
    }
	.uagb-container-inner-blocks-wrap > h2 {
		font-size: 1rem !important;
	}
	.uagb-container-inner-blocks-wrap {
		padding: 0;
	}
	.wp-block-uagb-container.uagb-block-d8e4ff52 {
		padding: 0;
	}
	.uagb-ifb-title-wrap > h6 {
        font-size: 1rem !important;
    }
	.uagb-block-30b9d017.wp-block-uagb-info-box .uagb-ifb-desc {
		width: 120%;
        margin-left: -10%;
	}
	.uagb-block-0d08908e {
		width: 100%;
    	height: 250px;
	}
	body .ast-container .uagb-container-inner-blocks-wrap>ul {
		margin-left: 0;
	}
	body .wp-elements-2d6bbfc7884404e1294e0034ad42b578 {
		font-size: 1rem !important;
		padding: 10px;
	}
	.wp-elements-f3b1e5b399463a1cdca53307d8808d61 {
		font-size: 1rem !important;
	}
	.wp-block-uagb-advanced-heading > h3 {
		margin: 20px 0;
    	font-size: 1rem;
	}
	
	/* главная страница */
	body .main-h2 {
		font-size: 1.3rem !important;
    	line-height: 1.5;
	}
	body .tasks-blocks-wrapper > .wp-block-uagb-info-box {
		margin-top: -40px !important;
	}
	
	/* страница Статьи */
	body .statia-custom-block h2 {
		font-size: 1.3rem !important;
	}
}

@media (max-width: 544px) {
	/* h1 на всем сайте */
	body .site-content h1,
	body .entry-content h1 {
		font-size: 1.5rem !important;
	}
	/* h2 на всем сайте */
	.site-content h2 {
		font-size: 1.3rem !important;
	}
	/* h3 на всем сайте */
	body .site-content h3,
	body .entry-content h3  > a {
		font-size: 1.2rem !important;
	}
	/* h4 на всем сайте */
	body .site-content h4,
	body .entry-content h4 > a {
		font-size: 1.1rem !important;
	}
	/* p на всем сайте */
	body p {
		font-size: 1.2rem;
		line-height: 1.8;
	}
	/* header	 */
	body .slogan {
		width: 200px;
		text-align: center;
		font-size: 11px !important;
		margin-top: 10px;
	}
	/* контейнер контента */
	body .wp-block-uagb-container {
		padding: 5px 0 !important;
	}
	body .entry-content {
		padding: 20px !important;
	}
	body .uagb-container-inner-blocks-wrap {
		padding: 0 !important;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
        border-radius: 0 !important;
	}
	body .wp-block-uagb-container div {
		margin-top: 0 !important;
        margin-bottom: 0 !important;
	}
    .ast-header-break-point .footer-widget-area[data-section="sidebar-widgets-footer-widget-3"] {
        display: block;
        text-align: center;
    }
	body .post-1400 .wp-block-uagb-image.wp-block-uagb-image--align-none {
        width: 100% !important; /* Жестко 70% */
        max-width: 100% !important;
        margin: 10px auto !important; /* auto центрирует картинку по горизонтали */
    }
	body .wp-block-uagb-advanced-heading .uagb-heading-text,
	body .wp-block-uagb-container .wp-block-heading {
		font-size: 1.2rem;
		text-align: center;
	}
	
	body .uagb-block-29a99bce p {
		font-size: 1.3rem !important;
	}
	
	/* страница Статьи */
	.statia-custom-block a {
		font-size: 0.9rem;
	}
	
	/* страница Обучение */
/* 	body .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: 70% !important;
    } */
	
	/* страница Прайс-лист по выездному обслуживанию стационарных аккумуляторных батарей */
	body .uagb-block-06370c62 {
		padding: 10px !important;
	}
	
	/* страница Аренда */
	body .uagb-block-99814c9d > ul {
		margin-left: 20px !important;
	}

	bpdy .uagb-heading-text {
		text-align: center !important;
	}
	/* контакты на главной */
	body .site .main-contacts .wp-block-column:first-child {
        flex-basis: 10% !important;
    }
	body .main-contacts .wp-block-column:first-child > div {
		width: 80% !important;
	}
	/* footer */
	footer .site-below-footer-wrap {
		padding-bottom: 30px;
	}
	footer .uagb-block-afb148f0 > p {
		text-align: center !important;
		width: 100% !important;
	}
	
	/* учебный центр */
	body .site .entry-content .uagb-block-02a538c6 p {
        font-size: 1.4rem !important;
    }
	body .site .entry-content .uagb-block-f4a70399 h1 {
		font-size: 1.4rem !important;
	}
	body .site .entry-content .uagb-block-f4a70399 h2 {
		font-size: 1.2rem !important;
	}
	body .entry-content .uagb-block-f4a70399 p {
        font-size: 1rem !important;
    }
	body .entry-content .uagb-block-02a538c6 .wp-block-navigation-item__content {
        justify-content: center;
    	align-items: center;
    }
	body .entry-content .uagb-block-02a538c6 .wp-block-navigation-item__content {
		height: 60px !important;
	}
	body .wp-block-navigation .wp-block-navigation-item__content {
		font-size: 12px !important;
		height: 60px !important;
	}
	body .entry-content .wp-block-navigation .wp-block-navigation-item {
        flex: 0 0 calc(45% / 3) !important;
    }
	
	body .entry-content .wp-block-navigation .wp-block-navigation-item {
        flex: 0 0 calc(95% / 2) !important;
    }
	/* подсветка ссылок учебного центра */
	body .uagb-block-02a538c6 .wp-block-navigation-item:has(a[href="/uchebnyy-tsentr-education/"])> .wp-block-navigation-item__content {
	  background: #2563eb !important;
	  color: #fff !important;
	  border-radius: 6px !important;
	}
	
	/* бургер меню для учебного центра */
	body .mobile-nav-select {
	  width: 100%;
	  padding: 12px 14px;
	  font-size: 16px;
	}
}

@media (max-width: 600px) {
	.modern-cat-grid {
		padding: 1rem;
	}
	.cat-title {
		font-size: 1.1rem;
	}
	.subcat-title {
		font-size: 1rem;
	}
	
	/* образовательные программы */
	body .educational-programs-item {
		flex-direction: column-reverse !important;
	}
	body .site .educational-programs-item .wp-block-column:first-child {
		flex-basis: 0 !important;
	}
	body .site .educational-programs-item .wp-block-column:last-child {
		flex-basis: 0 !important;
	}
}

@media (max-width: 768px) {
	/* h1 на всем сайте */
	body .site-content h1,
	body .entry-content h1 {
		font-size: 1.5rem;
	}
	/* h2 на всем сайте */
	.site-content h2 {
		font-size: 1.3rem;
	}
	/* h3 на всем сайте */
	body .site-content h3,
	body .entry-content h3  > a {
		font-size: 1.2rem;
	}
	/* h4 на всем сайте */
	body .site-content h4,
	body .entry-content h4 > a {
		font-size: 1.1rem;
	}
	
	/* Оборачиваем таблицу, чтобы она скроллилась */
    body .entry-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
	
	.wp-block-uagb-container.uagb-block-9b707797 {
		padding-left: 0;
        padding-right: 0;
	}
    .uagb-ifb-title-wrap h1 {
        font-size: 2rem;
    }
	.wp-block-uagb-advanced-heading h2, .has-text-align-right {
        font-size: 1.5rem;
    }
	.main-h2 {
		font-size: 1.5rem !important;
	}
	.uagb-ifb-title-wrap > h6 {
        font-size: 1.1rem;
    }
	.spectra-image-gallery__layout--carousel {
		width: 95%;
    	margin: 0 auto;
	}
	.uagb-block-b1276c49 .spectra-image-gallery__control-arrows--carousel.slick-next {
		right: -35px;
	}
	.uagb-block-b1276c49 .spectra-image-gallery__control-arrows--carousel.slick-prev {
		left: -35px;
	}
	.wp-elements-2d6bbfc7884404e1294e0034ad42b578 {
		font-size: 1.2rem !important;
	}
	.wp-block-uagb-container.uagb-block-3d8cc8e5 {
		padding: 0;
		padding-top: 20px;
	}
	.wp-elements-f3b1e5b399463a1cdca53307d8808d61 {
		font-size: 1.8rem;
		text-align: center;
	}
	
	.uagb-block-29a99bce p {
		font-size: 1.5rem !important;
	}
	
	/* главная */
	.site .uagb-block-cc134eb3 h2 {
		text-align: center;
	}
	.site .main-contacts .wp-block-column:first-child {
		width: 4% !important;
        flex-basis: 5% !important;
    }
	
	/* страница Обучение */
	.wp-container-core-columns-is-layout-28f84493 figure {
		width: 70%;
    	margin: 0 auto !important;
	}
	
	/* страница Услуги	*/
	body .wp-block-uagb-container.uagb-block-cc481d13,
	body .uslug-obshchiy-blok 
	{
		padding-bottom: 0 !important;
		margin-top: 0 !important;
        margin-bottom: 0 !important;
	}
	
	/* страница Статьи */
	.statia-custom-block:first-child {
		margin-bottom: 50px !important;
	}
	/* внутри страницы Статьи */
	/* Оборачиваем таблицу, чтобы она скроллилась */
    body .wp-block-jetpack-markdown table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
	/* учебный центр */
	.site .entry-content .uagb-block-02a538c6 p {
		font-size: 1.8rem !important;
	}
	.entry-content .uagb-block-f4a70399 p {
		font-size: 1.2rem !important;
	}
	.site .entry-content .uagb-block-f4a70399 h1 {
		font-size: 1.6rem !important;
	}
	.entry-content .uagb-block-f4a70399 .wp-block-table.has-fixed-layout td {
		width: 50% !important;
	}
	
	/* образовательные программы */
	.site .educational-programs-item .wp-block-column:first-child {
		flex-basis: 8% !important;
	}
	.site .educational-programs-item .wp-block-column:last-child {
		flex-basis: 85% !important;
	}
}

@media (max-width: 781px) {
	.uagb-block-a6c74044 .wp-block-columns {
		flex-wrap: nowrap !important;
	}
}

@media (max-width: 921px) {
	/* ----- мобильное меню ----- */
	#ast-hf-mobile-menu {
		padding: 10px !important;
		background-color: #f4f6f9;
	}

	#ast-hf-mobile-menu li {
		list-style: none;
		margin: 0;
		padding: 0;
		border: none !important;
	}

	/* --- Оформление основных пунктов (Карточки) --- */
	#ast-hf-mobile-menu > .menu-item {
		background-color: #ffffff;
		margin-bottom: 10px;
		border-radius: 8px;
		box-shadow: 0 4px 10px rgba(0,0,0,0.03);
		display: flex;
		flex-wrap: wrap;
		overflow: hidden;
		transition: transform 0.2s ease;
	}

	#ast-hf-mobile-menu > .menu-item:active {
		transform: scale(0.98); /* Эффект нажатия */
	}

	/* --- Ссылка (Текст) --- */
	#ast-hf-mobile-menu .menu-link {
		flex-grow: 1; /* Занимает всё свободное место */
		color: #333333 !important;
		font-weight: 600;
		font-size: 16px;
		text-decoration: none;
		border: none !important;
		display: flex;
		align-items: center;
	}

	/* --- Кнопка открытия подменю (Стрелочка справа) --- */
	#ast-hf-mobile-menu .ast-menu-toggle {
		background: transparent !important;
		width: 50px;
		border: none !important;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #007bff;
	}

	#ast-hf-mobile-menu .ast-menu-toggle svg {
		width: 14px;
		height: 14px;
		fill: currentColor;
		transition: transform 0.3s ease;
	}

	/* Поворот стрелки при открытии */
	.ast-menu-toggle[aria-expanded="true"] svg {
		transform: rotate(180deg);
	}

	/* --- Подменю (Выпадающий список) --- */
	#ast-hf-mobile-menu .sub-menu {
		width: 100%;
		background-color: #fcfcfc;
		border-top: 1px solid #eee;
		padding: 5px 0 !important;
		margin: 0 !important;
		line-height: 1.3;
	}

	#ast-hf-mobile-menu .sub-menu .menu-item {
		background: transparent;
		box-shadow: none;
		margin: 0;
		border-radius: 0;
	}

	#ast-hf-mobile-menu .sub-menu .menu-link {
		padding: 12px 20px 12px 30px !important;
		font-size: 14px;
		color: #555 !important;
		font-weight: 500;
	}

	/* Убираем лишние иконки внутри ссылок подменю */
	#ast-hf-mobile-menu .sub-menu .menu-link .ast-icon {
		display: none; 
	}

	/* --- Активный пункт меню (Текущая страница) --- */
	.current-menu-item > .menu-link,
	.current-menu-ancestor > .menu-link {
		color: #007bff !important; 
		background: rgba(0, 123, 255, 0.05);
	}
	
	/* ------------- */
	
	.ast-grid-right-section {
		justify-content: flex-end !important;
	}
	.ast-header-break-point .ast-mobile-header-wrap .ast-flex.stack-on-mobile {
		flex-wrap: nowrap;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		background-color: #fff;
	}
	.ast-header-break-point .main-navigation ul .menu-item .menu-link {
		width: auto;
	}
	.site-below-footer-wrap[data-section="section-below-footer-builder"].ast-footer-row-tablet-stack .site-footer-section {
        display: block;
        margin-bottom: 10px;
        height: 100%;
    }
	.ast-header-break-point .footer-widget-area[data-section="section-fb-html-1"] {
        display: block;
        position: absolute;
        top: 80%;
    }
	
	/* страица Услуги */
	.uslug-obshchiy-blok {
        justify-content: center;
    }

    /* 2. Превращаем строки в карточки (Тень, отступы, колонка) */
    .uslug-obshchiy-blok .uagb-container-inner-blocks-wrap {
        flex-direction: column !important; /* По умолчанию всё в столбик */
        padding: 20px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16); /* Тень */
        border-radius: 12px; /* Скругление углов (для красоты) */
        margin-bottom: 20px; /* Отступ между карточками */
    }

    /* 3. Логика для НЕЧЕТНЫХ блоков (Зебра / Чередование) */
    /* Это перевернет порядок элементов в каждом втором блоке */
    .uslug-obshchiy-blok:nth-child(odd) .uagb-container-inner-blocks-wrap {
        flex-direction: column-reverse !important;
    }

    /* 4. Настройка картинок (70% ширины и центр) */
    .post-1400 .wp-block-uagb-image.wp-block-uagb-image--align-none {
        width: 70% !important; /* Жестко 70% */
        max-width: 70% !important;
        margin: 20px auto !important; /* auto центрирует картинку по горизонтали */
        display: block;
    }
	    
    /* Дополнительно: центрируем саму картинку внутри блока */
    .post-1400 .wp-block-uagb-image figure {
        display: flex;
        justify-content: center;
    }
	
/* 	.uagb-container-inner-blocks-wrap div {
		width: 100% !important;
		max-width: 100% !important;
	} */
	
	.wp-block-uagb-advanced-heading .uagb-heading-text {
		text-align: center;
	}
	
	.main-contacts .wp-block-column p {
		width: 80%;
		font-size: 1rem !important;
	}
	
	/* footer */
	footer .site-footer-below-section-1 {
		width: 100% !important;
	}
}

@media (max-width: 980px) {
	.ast-header-social-wrap {
		width: 80px;
	}
	.main-header-menu .menu-link {
		padding: 0 5px;
	}
	.uagb-heading-text {
		font-size: 1.5rem;
	}
	.wp-block-uagb-advanced-heading .uagb-heading-text {
		font-size: 1.5rem;
	}	
	body .entry-content p {
		line-height: 1.3 !important;
	}
	
	/* footer */
	.uagb-block-afb148f0 > p {
		text-align: left !important;
	}
}

@media (max-width: 1000px) {
	/* h1 на всем сайте */
	body .site .site-content h1 {
		font-size: 1.8rem;
    	line-height: 1.2;
	}
	/* h2 на всем сайте */
	body .site .site-content h2 {
		font-size: 1.5rem;
    	line-height: 1.2;
	}
	.ast-builder-grid-row {
		grid-column-gap: 0;
	}
	.main-contacts .wp-block-column:first-child {
		width: 4% !important;
        flex-basis: 3% !important;
    }
	.entry-content .wp-block-navigation .wp-block-navigation-item {
		flex: 0 0 calc(90% / 2) !important;
	}
	
}

@media (max-width: 1220px) {
	.site-header-primary-section-left {
		width: 200px;
	}
	.slogan {
		font-size: 11px;
	}
	header .custom-logo-link img {
		width: 100%;
	}
	.site-header-primary-section-right {
		flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
	}
	.ast-builder-menu .main-navigation > ul {
		width: 100%;
	}
	.main-header-menu > li {
		line-height: 50px !important;
   		font-size: 0.8rem;
	}
	.uagb-ifb-title-wrap h1 {
		font-size: 2.5rem;
        line-height: 1.2em;
	}
	.wp-block-uagb-advanced-heading h2,
	.uagb-container-inner-blocks-wrap h2,
	.has-text-align-right {
		font-size: 1.8rem;
	}
	.main-h2 {
		font-size: 1.8rem;
	}
	.uagb-ifb-title-wrap > h6 {
		font-size: 1.3rem;
	}
	/* учебный центр */
	.site .entry-content .uagb-block-02a538c6 .wp-block-navigation__container {
		justify-content: center !important;
	}
	.entry-content .uagb-block-02a538c6 .wp-block-navigation-item__content {
		height: 70px !important;
	}
	.entry-content .uagb-block-f4a70399 h1 {
		font-size: 1.8rem !important;
	}
}

@media (min-width: 920px) {
	.ast-builder-grid-row-container-inner {
		width: 95%;
    	margin: 0 auto;
	}
}
