@font-face {
	font-family: 'TTFirsNeue';
	src: url('../fonts/TTFirsNeue-Regular.woff') format('woff');
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

/* overflow-x:hidden on the shared shell creates a scroll container and
 * disables position:sticky in Chromium. Blog pages use clipping instead. */
html,
body.ag-blog-shell { overflow-x: clip; }

@font-face {
	font-family: 'TTFirsNeue';
	src: url('../fonts/TTFirsNeue-Medium.woff') format('woff');
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
}

#ag-page.ag-blog-page,
#ag-page.ag-blog-page * {
	box-sizing: border-box;
}

#ag-page.ag-blog-page {
	width: 100%;
	background: #fff;
	color: #1e4c43;
	font-family: 'TTFirsNeue', Arial, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	-webkit-font-smoothing: antialiased;
}

#ag-page.ag-blog-page.ag-clean-section {
	--ag-clean-base: 1180px;
}

@media screen and (max-width: 1179px) {
	#ag-page.ag-blog-page.ag-clean-section {
		--ag-clean-base: 960px;
	}
}

@media screen and (max-width: 959px) {
	#ag-page.ag-blog-page.ag-clean-section {
		--ag-clean-base: 640px;
	}
}

@media screen and (max-width: 639px) {
	#ag-page.ag-blog-page.ag-clean-section {
		--ag-clean-base: 320px;
	}
}

#ag-page.ag-blog-page a {
	color: inherit;
	text-decoration: none;
}

#ag-page.ag-blog-page a:focus-visible,
#ag-page.ag-blog-page button:focus-visible,
#ag-page.ag-blog-page input:focus-visible {
	outline: 2px solid #147b66;
	outline-offset: 3px;
}

#ag-page.ag-blog-page img {
	display: block;
	max-width: 100%;
}

#ag-page.ag-blog-page h1,
#ag-page.ag-blog-page h2,
#ag-page.ag-blog-page h3,
#ag-page.ag-blog-page p,
#ag-page.ag-blog-page figure,
#ag-page.ag-blog-page ul {
	margin: 0;
}

#ag-page.ag-blog-page .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	clip-path: inset(50%);
}

.ag-blog-header {
	position: sticky;
	top: 0;
	z-index: 999;
	width: 100%;
	height: 72px;
	background: #1e4c43 url('../pages/pak/media/Frame_1948756806.svg') center / 1200px 100% no-repeat;
	color: #fff;
	font-family: 'TTFirsNeue', Arial, sans-serif;
}

/* Desktop uses the exact compact record exported for the site's scrolled
 * header. Its artboard is fixed; this spacer preserves the 69px page offset.
 * Phones and tablets keep the existing purpose-built blog menu. */
.ag-blog-native-spacer,
#ag-header.ag-blog-native {
	display: none;
}

@media screen and (min-width: 960px) {
	#ag-page.ag-blog-page > .ag-blog-header {
		display: none;
	}

	#ag-page.ag-blog-page > .ag-blog-header--desktop-fallback {
		display: block;
	}

	#ag-page.ag-blog-page > .ag-blog-native-spacer {
		display: block;
		height: 69px;
	}

	#ag-page.ag-blog-page > #ag-header.ag-blog-native {
		display: block;
		height: 0;
	}
}

.ag-blog-header__inner {
	display: flex;
	width: calc(100% - 80px);
	max-width: 1100px;
	height: 100%;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin: 0 auto;
}

.ag-blog-header__brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 12px;
	color: #fff;
	text-decoration: none;
}

.ag-blog-header__brand img {
	display: block;
	width: 125px;
	height: 20px;
	flex: 0 0 auto;
}

.ag-blog-header__tagline {
	display: block;
	flex: 0 0 auto;
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.5px;
	white-space: nowrap;
}

.ag-blog-header__nav {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
	margin-left: auto;
	white-space: nowrap;
}

.ag-blog-header__nav a {
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
	letter-spacing: -0.8px;
	opacity: 1;
	transition: opacity 200ms ease;
}

.ag-blog-header__nav a:hover,
.ag-blog-header__nav a[aria-current="page"] {
	opacity: .72;
}

.ag-blog-header__actions {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-self: flex-start;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 337px;
	height: 61px;
	margin-left: auto;
	padding: 10px;
	box-sizing: border-box;
	background: #edf7f3;
	border-radius: 0 0 12px 12px;
}

/* Inverse corner cutouts for the action block */
.ag-blog-header__actions::before,
.ag-blog-header__actions::after {
	position: absolute;
	top: 0;
	width: 18px;
	height: 18px;
	pointer-events: none;
	content: '';
}

.ag-blog-header__actions::before {
	left: -18px;
	background: radial-gradient(circle at left bottom, transparent 18px, #edf7f3 18.5px);
}

.ag-blog-header__actions::after {
	right: -18px;
	background: radial-gradient(circle at right bottom, transparent 18px, #edf7f3 18.5px);
}

.ag-blog-header__cta,
.ag-blog-header__contacts {
	display: inline-flex;
	height: 40px;
	align-items: center;
	justify-content: center;
	padding: 0 15px;
	border: 0;
	border-radius: 8px;
	background: #c9e5de;
	color: #1e4c43;
	font: 500 14px/1 'TTFirsNeue', Arial, sans-serif;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: filter 180ms ease;
}

.ag-blog-header__mobile-menu { display: none; }
.ag-blog-header__mobile-nav { display: none; }

.ag-blog-header__cta {
	width: 153px;
	min-width: 0;
	padding: 0;
}

.ag-blog-header__contacts {
	width: 105px;
	min-width: 0;
	padding: 0;
}

.ag-blog-header .ag-blog-header__contacts.ag-contacts-trigger {
	height: 40px;
	min-height: 40px;
	padding: 0;
}

.ag-blog-header__cta:hover,
.ag-blog-header__contacts:hover {
	filter: brightness(.95);
}

.ag-blog-header__telegram {
	display: inline-flex;
	width: 43px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #c9eb67;
	color: #1e4c43;
	text-decoration: none;
	transition: filter 180ms ease;
}

.ag-blog-header__telegram:hover {
	filter: brightness(.95);
}

.ag-blog-header__telegram img {
	display: block;
	width: 21px;
	height: 19px;
}

.ag-blog-header__brand:focus-visible,
.ag-blog-header__nav a:focus-visible,
.ag-blog-header__mobile-nav a:focus-visible,
.ag-blog-header__mobile-menu summary:focus-visible,
.ag-blog-header__telegram:focus-visible {
	outline: 2px solid #c9eb67;
	outline-offset: 4px;
}

.ag-blog-main {
	width: calc(100% - 80px);
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 0 50px;
}

.ag-blog-page__title {
	margin-bottom: 30px !important;
	font-size: 45px;
	font-weight: 500;
	line-height: 1.29;
}

.ag-blog-feature-row {
	display: grid;
	grid-template-columns: minmax(0, 560fr) minmax(0, 530fr);
	align-items: start;
	gap: 10px;
}

.ag-blog-featured {
	min-width: 0;
}

.ag-blog-featured__date,
.ag-blog-article__date {
	display: block;
	color: #5d766d;
	font-size: 14px;
	line-height: 18px;
}

.ag-blog-featured__date {
	margin-bottom: 7px;
}

.ag-blog-featured__media,
.ag-blog-card__media {
	display: block;
	overflow: hidden;
	border-radius: 7px;
	background: #d9d9d9;
}

.ag-blog-featured__media {
	width: 100%;
	aspect-ratio: 560 / 331;
}

.ag-blog-featured__image,
.ag-blog-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.ag-blog-featured__media:hover .ag-blog-featured__image,
.ag-blog-card__media:hover .ag-blog-card__image {
	transform: scale(1.025);
}

.ag-blog-featured__placeholder,
.ag-blog-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #d9d9d9;
}

.ag-blog-featured__title {
	margin-top: 9px !important;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.29;
}

.ag-blog-featured__title a:hover,
.ag-blog-card__title a:hover {
	color: #117a61 !important;
}

.ag-blog-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 0;
	list-style: none;
}

.ag-blog-featured > .ag-blog-meta {
	margin-top: 8px;
}

.ag-blog-meta li {
	display: inline-flex;
	min-height: 25px;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: 6px;
	background: #c9e5de;
	color: #1e4c43;
	font-size: 12px;
	line-height: 1;
}

.ag-blog-meta img {
	width: 15px;
	height: 15px;
	object-fit: contain;
}

.ag-blog-promos {
	display: grid;
	grid-template-rows: repeat(2, minmax(160px, 1fr));
	gap: 10px;
	padding-top: 25px;
}

.ag-blog-promo {
	position: relative;
	display: grid;
	min-height: 160px;
	grid-template-columns: 250px minmax(0, 1fr);
	align-items: center;
	overflow: hidden;
	border-radius: 8px;
	background: radial-gradient(ellipse 77.5% 205% at 73.5% 100%, #00e49d 0%, #1a5652 100%);
	color: #fff !important;
	transition: filter 180ms ease, transform 180ms ease;
}

.ag-blog-promo:hover {
	filter: saturate(1.08);
	transform: translateY(-2px);
}

.ag-blog-promo__icon {
	width: 165px;
	height: 163px;
	justify-self: center;
	object-fit: contain;
}

.ag-blog-promo--videos .ag-blog-promo__icon {
	width: 154px;
	height: 153px;
}

.ag-blog-promo__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}

.ag-blog-promo__copy strong {
	font-size: 32px;
	font-weight: 500;
	line-height: 1.1;
}

.ag-blog-promo__copy > span {
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ag-blog-empty {
	padding: 32px 0;
	color: #5d766d;
}

.ag-blog-search {
	display: flex;
	width: 100%;
	height: 44px;
	align-items: center;
	margin-top: 50px;
	border-radius: 7px;
	background: #f5faf8;
}

.ag-blog-search label {
	flex: 1;
	min-width: 0;
}

.ag-blog-search input {
	width: 100%;
	height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: inherit;
	background: transparent;
	color: #1e4c43;
	font: 400 15px/1.3 'TTFirsNeue', Arial, sans-serif;
}

.ag-blog-search input::placeholder {
	color: #60786f;
	opacity: 1;
}

.ag-blog-search button {
	display: grid;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	place-items: center;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: #1e4c43;
	cursor: pointer;
}

.ag-blog-search button img {
	width: 24px;
	height: 24px;
}

.ag-blog-categories {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
}

.ag-blog-category {
	display: inline-flex;
	min-height: 47px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	border-radius: 999px;
	background: #c9eb67;
	font-size: 16px;
	white-space: nowrap;
	transition: background-color 160ms ease;
}

.ag-blog-category:hover,
.ag-blog-category.is-current {
	background: #b8dc52;
}

.ag-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px 10px;
	margin-top: 32px;
}

.ag-blog-card {
	min-width: 0;
}

.ag-blog-card__media {
	width: 100%;
	aspect-ratio: 360 / 225;
}

.ag-blog-card__date {
	display: block;
	margin-top: 11px;
	color: #5d766d;
	font-size: 14px;
	line-height: 18px;
}

.ag-blog-card__title {
	margin-top: 5px !important;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
}

.ag-blog-card > .ag-blog-meta {
	margin-top: 8px;
}

.ag-blog-pagination {
	display: flex;
	justify-content: flex-end;
	margin-top: 38px;
}

.ag-blog-pagination .page-numbers {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	list-style: none;
}

.ag-blog-pagination .page-numbers li {
	margin: 0;
}

.ag-blog-pagination .page-numbers a,
.ag-blog-pagination .page-numbers span {
	display: inline-flex;
	min-width: 35px;
	min-height: 35px;
	align-items: center;
	justify-content: center;
	padding: 0 9px;
	border-radius: 5px;
	background: #f5f7f6;
	font-size: 13px;
}

.ag-blog-pagination .page-numbers .current {
	background: #a3e68c;
}

.ag-blog-pagination .page-numbers .dots {
	min-width: 18px;
	padding: 0;
	background: transparent;
}

.ag-blog-article__hero {
	display: grid;
	min-height: 331px;
	grid-template-areas: 'intro image';
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 40px;
	margin-bottom: 44px;
	align-items: start;
	align-content: start;
}

.ag-blog-article__intro {
	display: flex;
	min-width: 0;
	min-height: 331px;
	grid-area: intro;
	flex-direction: column;
	align-items: flex-start;
}

.ag-blog-article__heading {
	display: flex;
	min-width: 0;
	width: 100%;
	grid-area: heading;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 18px;
}

.ag-blog-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
	color: #7b8c87;
	font-size: 12px;
}

.ag-blog-breadcrumbs a { color: inherit !important; text-decoration: none !important; }
.ag-blog-article__category {
	display: inline-flex;
	min-height: 28px;
	align-items: center;
	margin-bottom: 0;
	padding: 0 10px;
	border-radius: 999px;
	background: #c9eb67;
	color: #1e4c43 !important;
	font-size: 12px;
}

.ag-blog-article__eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 9px;
}

.ag-blog-article__heading h1 {
	margin-top: 14px !important;
	font-size: 27px;
	font-weight: 500;
	line-height: 1.29;
}

.ag-blog-article__heading > .ag-blog-meta {
	margin-top: 12px;
}

.ag-blog-article__image {
	position: relative;
	min-width: 0;
	min-height: 0;
	grid-area: image;
	height: 331px;
	overflow: hidden;
	border-radius: 8px;
	background: #d9d9d9;
}

.ag-blog-article__cover,
.ag-blog-article__placeholder {
	width: 100%;
	height: 100%;
}

.ag-blog-article__cover {
	object-fit: cover;
}

.ag-blog-article__placeholder {
	display: block;
	background: #d9d9d9;
}

.ag-blog-article__author {
	display: flex;
	min-width: 0;
	align-items: center;
	align-self: start;
	gap: 14px;
	margin-top: 34px;
}

.ag-blog-article__avatar {
	width: 70px;
	height: 70px;
	flex: 0 0 70px;
	border-radius: 50%;
	object-fit: cover;
}

.ag-blog-article__author-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
}

.ag-blog-article__author-copy strong {
	font-size: 16px;
	font-weight: 500;
}

.ag-blog-article__author-copy > span {
	color: #5d766d;
	font-size: 12px;
}

.ag-blog-article__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
	align-items: start;
	gap: 40px;
}

.ag-blog-article__content {
	min-width: 0;
	color: #274f46;
	font-size: 15px;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.ag-blog-article__content .ag-blog-lead {
	margin: 0 0 26px !important;
	font-size: 20px;
	line-height: 1.45;
}

.ag-blog-block__heading,
.ag-blog-block__faq h2,
.ag-blog-block__related h2 {
	margin: 36px 0 14px !important;
	color: #111;
	font-size: 27px;
	font-weight: 500;
	line-height: 1.2;
}

.ag-blog-block__text { margin: 20px 0; }
.ag-blog-block__text p { margin: 0 0 16px !important; }
.ag-blog-block__image { margin: 26px 0; }
.ag-blog-block__image img { width: 100%; height: auto; }
.ag-blog-block__image figcaption { margin-top: 8px; color: #71827d; font-size: 13px; }

.ag-blog-block__list {
	margin: 20px 0 24px !important;
	padding: 0;
	list-style: none;
}

.ag-blog-block__list li {
	position: relative;
	margin: 0 !important;
	padding: 13px 0 13px 34px;
	border-bottom: 1px solid #dce8e3;
}

.ag-blog-block__list li::before {
	position: absolute;
	top: 15px;
	left: 0;
	display: grid;
	width: 20px;
	height: 20px;
	place-items: center;
	border-radius: 50%;
	background: #1e594d;
	color: #c9eb67;
	font-size: 12px;
	content: '•';
}

ol.ag-blog-block__list { counter-reset: ag-list; }
ol.ag-blog-block__list li { counter-increment: ag-list; }
ol.ag-blog-block__list li::before { content: counter(ag-list); }

.ag-blog-block__quote {
	margin: 30px 0;
	padding: 28px 24px;
	border: 0;
	border-radius: 16px;
	background: #f4f5f3;
	color: #111;
}
.ag-blog-block__quote::before { display: block; margin-bottom: 12px; color: #216255; font-size: 42px; line-height: .5; content: '“'; }
.ag-blog-block__quote p { margin: 0 0 18px !important; font-size: 20px; font-weight: 500; }
.ag-blog-block__quote footer { color: #667570; font-size: 13px; }

.ag-blog-block__table { margin: 28px 0; overflow-x: auto; }
.ag-blog-block__table table { width: 100%; min-width: 560px; border-collapse: collapse; }
.ag-blog-block__table th,
.ag-blog-block__table td { padding: 15px 16px; border: 1px solid #dce8e3; text-align: left; vertical-align: top; }
.ag-blog-block__table th { background: #f4f8f6; font-weight: 500; }

.ag-blog-block__faq { margin: 38px 0; }
.ag-blog-block__faq h2 { padding-bottom: 12px; border-bottom: 1px solid #dce8e3; }
.ag-blog-block__faq details { padding: 15px 0; border-bottom: 1px solid #dce8e3; }
.ag-blog-block__faq summary { cursor: pointer; font-weight: 500; }
.ag-blog-block__faq details > div { padding-top: 10px; color: #667570; }

.ag-blog-block__important {
	margin: 30px 0;
	padding: 22px 24px;
	border-left: 4px solid #c9eb67;
	border-radius: 0 12px 12px 0;
	background: #f4f8f6;
}
.ag-blog-block__important > strong { display: block; margin-bottom: 10px; font-size: 18px; }
.ag-blog-block__important p { margin: 0 !important; }
.ag-blog-block__video { margin: 28px 0; aspect-ratio: 16 / 9; }
.ag-blog-block__video iframe { width: 100%; height: 100%; min-height: 0; }
.ag-blog-block__divider { margin: 38px 0; border: 0; border-top: 1px solid #dce8e3; }

.ag-blog-block__related { margin-top: 44px; padding-top: 10px; border-top: 1px solid #dce8e3; }
.ag-blog-block__related > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ag-blog-block__related a { display: flex; min-height: 150px; flex-direction: column; gap: 12px; padding: 20px; border-radius: 14px; background: #f4f5f3; }
.ag-blog-block__related small { color: #71827d; }
.ag-blog-block__related strong { color: #111; font-size: 18px; font-weight: 500; line-height: 1.3; }

/* Keep the article list spacing after the generic prose rules below. */
#ag-page.ag-blog-page .ag-blog-article__content ul.ag-blog-block__list,
#ag-page.ag-blog-page .ag-blog-article__content ol.ag-blog-block__list { padding-left: 0; }
#ag-page.ag-blog-page .ag-blog-article__content .ag-blog-block__list li { margin: 0 !important; padding: 13px 0 13px 34px; }

.ag-blog-contact-block {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
	gap: 44px;
	margin: 28px 0 38px;
	padding: 34px 38px;
	border-radius: 14px;
	background: linear-gradient(120deg, #96dc78 0%, #327b63 100%);
	color: #fff;
}
.ag-blog-contact-block__copy h2 { margin: 0 0 12px !important; color: #fff; font-size: 30px; font-weight: 400; }
.ag-blog-contact-block__copy p { margin: 0 !important; color: rgba(255,255,255,.9); }
.ag-blog-contact-block__form { display: grid; gap: 12px; align-content: start; }
.ag-blog-contact-block__form label:not(.ag-blog-contact-block__consent) { border-bottom: 1px solid rgba(255,255,255,.85); }
.ag-blog-contact-block__form input[type='text'],
.ag-blog-contact-block__form input[type='tel'] { display: block !important; width: 100% !important; height: 42px !important; padding: 0 !important; border: 0 !important; outline: 0; background: transparent !important; color: #fff !important; font: inherit !important; box-shadow: none !important; }
.ag-blog-contact-block__form input::placeholder { color: #fff; opacity: 1; }
.ag-blog-contact-block__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; line-height: 1.3; }
.ag-blog-contact-block__form button { min-height: 44px; justify-self: start; padding: 0 18px; border: 0; border-radius: 999px; background: #c9eb67; color: #1e4c43; font: inherit; cursor: pointer; }
.ag-blog-contact-block__status { margin: 0 !important; font-size: 12px; }
.ag-blog-contact-block--aside {
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	margin: 0 0 16px;
	padding: 20px;
	background: #0c201d;
}
.ag-blog-contact-block--aside .ag-blog-contact-block__copy h2 { font-size: 21px; }
.ag-blog-contact-block--aside .ag-blog-contact-block__form { gap: 9px; }

.ag-blog-article__content .ag-blog-important {
	margin: 28px 0;
	padding: 22px 24px;
	border-left: 4px solid #c9eb67;
	border-radius: 0 12px 12px 0;
	background: #f4f8f6;
}
.ag-blog-article__content .ag-blog-important strong { display: block; margin-bottom: 9px; font-size: 18px; }
.ag-blog-article__content .ag-blog-quote { border: 0; border-radius: 14px; background: #f4f5f3; }
.ag-blog-article__content .ag-blog-table { min-width: 560px; }
.ag-blog-article__content .ag-blog-faq details { padding: 14px 0; border-top: 1px solid #dce8e3; }
.ag-blog-article__content .ag-blog-faq summary { cursor: pointer; font-weight: 500; }

#ag-page.ag-blog-page .ag-blog-article__content > * + * {
	margin-top: 15px;
}

.ag-blog-article__content h2 {
	margin-top: 25px !important;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
}

.ag-blog-article__content h3 {
	margin-top: 22px !important;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
}

#ag-page.ag-blog-page .ag-blog-article__content p {
	margin-bottom: 15px;
}

.ag-blog-article__content a {
	color: #117a61 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.ag-blog-article__content ul,
.ag-blog-article__content ol {
	padding-left: 24px;
	margin-bottom: 18px;
}

.ag-blog-article__content li {
	margin: 0 0 7px;
	padding-left: 2px;
}

.ag-blog-article__content li::marker {
	color: #9edc82;
}

.ag-blog-article__content blockquote {
	margin: 24px 0;
	padding: 16px 20px;
	border-left: 3px solid #a3e68c;
	background: #f5faf8;
}

#ag-page.ag-blog-page .ag-blog-article__content figure {
	max-width: 100%;
	margin: 22px 0;
}

.ag-blog-article__content figure img,
.ag-blog-article__content > img {
	width: auto;
	height: auto;
	max-width: 100%;
	margin: 0 auto;
	border-radius: 7px;
}

.ag-blog-article__content figcaption {
	margin-top: 8px;
	color: #5d766d;
	font-size: 13px;
}

.ag-blog-article__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.ag-blog-article__content th,
.ag-blog-article__content td {
	padding: 9px 11px;
	border: 1px solid #dce8e3;
	text-align: left;
	vertical-align: top;
}

.ag-blog-article__content th {
	background: #f0f6f3;
	font-weight: 500;
}

.ag-blog-article__content .wp-block-table {
	overflow-x: auto;
}

.ag-blog-article__content .wp-block-image img,
.ag-blog-article__content .wp-block-gallery img {
	height: auto;
	max-width: 100%;
}

#ag-page.ag-blog-page .ag-blog-article__content .wp-block-image.alignwide,
#ag-page.ag-blog-page .ag-blog-article__content .wp-block-gallery.alignwide,
#ag-page.ag-blog-page .ag-blog-article__content > .alignwide {
	position: relative;
	left: calc(50% + 150px);
	width: min(960px, calc(100vw - 80px));
	max-width: calc(100vw - 80px);
	margin-left: 0;
	transform: translateX(-50%);
}

#ag-page.ag-blog-page .ag-blog-article__content .wp-block-image.alignfull,
#ag-page.ag-blog-page .ag-blog-article__content .wp-block-gallery.alignfull,
#ag-page.ag-blog-page .ag-blog-article__content > .alignfull {
	position: relative;
	left: calc(50% + 150px);
	width: min(1100px, calc(100vw - 80px));
	max-width: calc(100vw - 80px);
	margin-left: 0;
	transform: translateX(-50%);
}

.ag-blog-article__content .wp-block-quote,
.ag-blog-article__content .wp-block-pullquote,
.ag-blog-article__content .is-style-ag-highlight {
	padding: 16px 20px;
	border-left: 3px solid #a3e68c;
	border-radius: 0 7px 7px 0;
	background: #f5faf8;
}

.ag-blog-article__content .wp-block-pullquote {
	border-right: 0;
	text-align: left;
}

.ag-blog-article__content .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.ag-blog-article__content .is-style-ag-checklist {
	padding-left: 0;
	list-style: none;
}

.ag-blog-article__content .is-style-ag-checklist li::before {
	margin-right: 9px;
	color: #117a61;
	content: '✓';
}

.ag-blog-article__content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ag-blog-article__content .wp-block-button__link,
.ag-blog-article__content .wp-element-button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0 18px;
	border-radius: 7px;
	background: #a3e68c;
	color: #1e4c43 !important;
	text-decoration: none !important;
}

.ag-blog-article__content .wp-block-cover {
	min-height: 240px;
	border-radius: 8px;
}

.ag-blog-article__content .wp-block-columns {
	gap: 24px;
}

.ag-blog-article__content .wp-block-group {
	max-width: 100%;
}

.ag-blog-article__content .wp-block-embed,
.ag-blog-article__content .wp-block-video {
	max-width: 100%;
}

.ag-blog-article__content .wp-block-embed__wrapper {
	position: relative;
	aspect-ratio: 16 / 9;
}

.ag-blog-article__content .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.ag-blog-article__content .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.ag-blog-article__content .wp-block-file__button {
	min-height: 40px;
	padding: 9px 14px;
	border-radius: 6px;
	background: #c9e5de;
	text-decoration: none !important;
}

.ag-blog-article__content .wp-block-separator {
	max-width: 100%;
	border: 0;
	border-top: 1px solid #dce8e3;
}

.ag-blog-article__content .wp-block-code,
.ag-blog-article__content .wp-block-preformatted {
	padding: 16px;
	border-radius: 7px;
	background: #f5faf8;
	color: #1e4c43;
	font-family: 'Courier New', monospace;
	white-space: pre-wrap;
}

.ag-blog-article__content .has-background {
	padding: 16px 20px;
	border-radius: 7px;
}

.ag-blog-article__content iframe,
.ag-blog-article__content video {
	width: 100%;
	max-width: 100%;
}

.ag-blog-article__content iframe {
	min-height: 300px;
}

.ag-blog-article__aside {
	position: sticky;
	/* The native compact site header is fixed at the top of the viewport. */
	top: var(--ag-blog-aside-sticky-top, 80px);
	min-width: 0;
}

.ag-blog-article__toc {
	padding: 14px 16px;
	border-radius: 8px;
	background: #f4f8f6;
}

.ag-blog-article__toc ul {
	display: grid;
	gap: 11px;
	padding: 0 0 0 16px;
	list-style: disc;
}

.ag-blog-article__toc li {
	padding-left: 1px;
	color: #a3e68c;
	font-size: 13px;
	line-height: 1.25;
}

.ag-blog-article__toc a {
	color: #5d766d !important;
	transition: color 160ms ease;
}

.ag-blog-article__toc a:hover {
	color: #117a61 !important;
}

/* On short desktop viewports, make room for the contact form and remove the
 * optional table of contents. Keep the form below the fixed header while it
 * is sticky; on very short screens let it return to normal document flow. */
@media screen and (min-width: 1025px) and (max-height: 800px) {
	.ag-blog-article__toc {
		display: none;
	}

	.ag-blog-contact-block--aside {
		gap: 12px;
		padding: 16px;
	}

	.ag-blog-contact-block--aside .ag-blog-contact-block__copy h2 {
		margin-bottom: 8px !important;
		font-size: 18px;
	}

	.ag-blog-contact-block--aside .ag-blog-contact-block__copy p {
		font-size: 14px;
	}

	.ag-blog-contact-block--aside .ag-blog-contact-block__form {
		gap: 7px;
	}

	.ag-blog-contact-block--aside .ag-blog-contact-block__form input[type='text'],
	.ag-blog-contact-block--aside .ag-blog-contact-block__form input[type='tel'] {
		height: 34px !important;
	}

	.ag-blog-contact-block--aside .ag-blog-contact-block__consent {
		font-size: 10px;
	}

	.ag-blog-contact-block--aside .ag-blog-contact-block__form button {
		min-height: 38px;
	}
}

@media screen and (min-width: 1025px) and (max-height: 520px) {
	.ag-blog-article__aside--form {
		position: static;
		top: auto;
	}
}

.ag-blog-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 38px;
}

.ag-blog-article__tags a {
	display: inline-flex;
	min-height: 31px;
	align-items: center;
	padding: 0 12px;
	border-radius: 6px;
	background: #c9e5de;
	font-size: 12px;
}

.ag-blog-article__tags a:hover {
	background: #a3e68c;
}

@media screen and (max-width: 1023px) {
	.ag-blog-feature-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.ag-blog-promos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: minmax(140px, auto);
		gap: 12px;
		padding-top: 0;
	}

	.ag-blog-promo {
		min-height: 140px;
		grid-template-columns: clamp(85px, 13vw, 125px) minmax(0, 1fr);
		padding-right: 10px;
	}

	.ag-blog-promo__icon {
		width: clamp(80px, 12vw, 116px);
		height: clamp(78px, 12vw, 114px);
	}

	.ag-blog-promo--videos .ag-blog-promo__icon {
		width: clamp(76px, 11.2vw, 108px);
		height: clamp(74px, 11.2vw, 106px);
	}

	.ag-blog-promo__copy strong {
		font-size: clamp(19px, 2.5vw, 25px);
	}

	.ag-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 16px;
	}

	.ag-blog-article__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-blog-article__aside {
		display: none;
	}
}

@media screen and (max-width: 959px) {
	.ag-blog-header { background-image: none; }

	.ag-blog-header__inner {
		width: calc(100% - 48px);
		justify-content: space-between;
		gap: 0;
	}

	.ag-blog-header__nav {
		display: none;
	}

	.ag-blog-header__mobile-menu {
		position: static;
		display: block;
		order: 3;
		margin-left: auto;
	}

	.ag-blog-header__mobile-menu summary {
		display: flex;
		width: 44px;
		height: 44px;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		border: 1px solid rgba(255, 255, 255, .35);
		border-radius: 10px;
		cursor: pointer;
		list-style: none;
	}

	.ag-blog-header__mobile-menu summary::-webkit-details-marker { display: none; }
	.ag-blog-header__mobile-menu summary span { width: 18px; height: 2px; border-radius: 2px; background: #fff; }

	.ag-blog-header__mobile-menu[open] > .ag-blog-header__mobile-nav {
		position: absolute;
		top: calc(100% + 10px);
		right: 16px;
		z-index: 1000;
		display: grid;
		width: min(280px, calc(100vw - 32px));
		gap: 4px;
		padding: 10px;
		border: 1px solid rgba(30, 76, 67, .1);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 16px 40px rgba(15, 50, 42, .18);
		color: #1e4c43;
	}

	.ag-blog-header__mobile-nav a,
	.ag-blog-header__mobile-nav button {
		display: flex;
		min-height: 44px;
		align-items: center;
		padding: 0 12px;
		border-radius: 9px;
		color: #1e4c43;
		font: 500 15px/1.2 'TTFirsNeue', Arial, sans-serif;
		text-decoration: none;
	}

	.ag-blog-header__mobile-nav a:hover,
	.ag-blog-header__mobile-nav a[aria-current='page'] { background: #edf7f3; }
	.ag-blog-header__mobile-nav .ag-blog-header__mobile-cta { background: #c9eb67; }
	.ag-blog-header__mobile-nav .ag-blog-header__mobile-contacts { width: 100%; justify-content: flex-start; }
	.ag-blog-header__mobile-nav .ag-blog-header__mobile-contacts.ag-contacts-trigger { min-height: 44px; padding: 0 12px; }
	.ag-blog-header__actions { order: 4; margin-left: 8px; }

	.ag-blog-categories {
		flex-wrap: wrap;
	}
}

@media screen and (max-width: 1024px) {
	.ag-blog-categories {
		flex-wrap: wrap;
	}

	#ag-page.ag-blog-page .ag-blog-article__content .wp-block-image.alignwide,
	#ag-page.ag-blog-page .ag-blog-article__content .wp-block-gallery.alignwide,
	#ag-page.ag-blog-page .ag-blog-article__content > .alignwide,
	#ag-page.ag-blog-page .ag-blog-article__content .wp-block-image.alignfull,
	#ag-page.ag-blog-page .ag-blog-article__content .wp-block-gallery.alignfull,
	#ag-page.ag-blog-page .ag-blog-article__content > .alignfull {
		position: static;
		left: auto;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		transform: none;
	}

	.ag-blog-article__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-blog-article__aside {
		display: none;
	}

	.ag-blog-article__aside--form {
		display: block;
		order: -1;
		position: static;
	}

	.ag-blog-article__aside--form .ag-blog-article__toc { display: none; }
	.ag-blog-contact-block--aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media screen and (max-width: 759px) {
	.ag-blog-article__hero {
		height: auto;
		grid-template-areas: 'intro image';
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto;
		column-gap: 22px;
	}

	.ag-blog-article__intro { height: auto; }

	.ag-blog-article__heading {
		padding-top: 0;
	}

	.ag-blog-article__image {
		min-height: 0;
		width: 100%;
		height: auto;
		max-width: 100%;
		aspect-ratio: 345 / 210;
	}

	.ag-blog-article__cover,
	.ag-blog-article__placeholder {
		width: 100%;
		height: auto;
		max-width: 100%;
		aspect-ratio: 345 / 210;
		object-fit: cover;
	}

	.ag-blog-article__author {
		align-self: start;
		margin: 4px 0 0;
	}
}

@media screen and (max-width: 639px) {
	.ag-blog-header {
		height: 64px;
		background-image: none;
	}

	.ag-blog-header__actions {
		height: 56px;
		width: auto;
		padding: 8px 10px;
		border-radius: 0 0 10px 10px;
	}

	.ag-blog-header__actions::before,
	.ag-blog-header__actions::after { display: none; }

	.ag-blog-header__cta,
	.ag-blog-header__actions .ag-blog-header__contacts { display: none; }

	.ag-blog-header__telegram {
		width: 36px;
		height: 36px;
	}

	.ag-blog-header__inner {
		width: calc(100% - 40px);
	}

	.ag-blog-header__brand { gap: 8px; }
	.ag-blog-header__brand img { width: 104px; height: auto; }
	.ag-blog-header__tagline { font-size: 12px; }
	.ag-blog-header__actions { margin-left: 8px; }
	.ag-blog-header__mobile-menu { margin-left: auto; }
	.ag-blog-header__inner { gap: 12px; }
	.ag-blog-header__tagline { display: none; }
	.ag-blog-header__actions { margin-left: 0; }

	.ag-blog-main {
		width: calc(100% - 40px);
		padding-top: 36px;
		padding-bottom: 36px;
	}

	.ag-blog-category {
		min-height: 35px;
		padding: 0 16px;
		font-size: 13px;
	}

	.ag-blog-page__title {
		margin-bottom: 16px !important;
		font-size: 21px;
		line-height: 1.3;
	}

	.ag-blog-feature-row {
		gap: 15px;
	}

	.ag-blog-featured__date,
	.ag-blog-article__date {
		font-size: 10px;
		line-height: 12px;
	}

	.ag-blog-featured__date {
		margin-bottom: 5px;
	}

	.ag-blog-featured__media {
		aspect-ratio: 345 / 210;
	}

	.ag-blog-featured__title {
		margin-top: 7px !important;
		font-size: 15px;
		line-height: 1.3;
	}

	.ag-blog-featured > .ag-blog-meta {
		margin-top: 8px;
	}

	.ag-blog-meta {
		gap: 4px;
	}

	.ag-blog-meta li {
		min-height: 19px;
		padding: 2px 6px;
		font-size: 9px;
	}

	.ag-blog-meta img {
		width: 12px;
		height: 12px;
	}

	.ag-blog-promos {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(2, 98px);
		gap: 8px;
	}

	.ag-blog-promo {
		min-height: 98px;
		grid-template-columns: 123px minmax(0, 1fr);
		column-gap: 8px;
		justify-items: stretch;
		padding: 0 11px 0 0;
		text-align: left;
	}

	.ag-blog-promo__icon {
		width: 103px;
		height: 102px;
	}

	.ag-blog-promo--videos .ag-blog-promo__icon {
		width: 96px;
		height: 95px;
	}

	.ag-blog-promo__copy {
		align-items: flex-start;
		gap: 3px;
	}

	.ag-blog-promo__copy strong {
		font-size: 18px;
	}

	.ag-blog-promo__copy > span {
		font-size: 11px;
	}

	.ag-blog-search {
		height: 36px;
		margin-top: 15px;
	}

	.ag-blog-search input {
		height: 36px;
		padding: 0 16px;
		font-size: 12px;
	}

	.ag-blog-search button {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
	}

	.ag-blog-search button img {
		width: 20px;
		height: 20px;
	}

	.ag-blog-categories {
		flex-wrap: nowrap;
		gap: 7px;
		overflow-x: auto;
		margin: 12px 0 0;
		padding: 0 0 3px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.ag-blog-categories::-webkit-scrollbar {
		display: none;
	}

	.ag-blog-category {
		min-height: 35px;
	}

	.ag-blog-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 19px;
		margin-top: 15px;
	}

	.ag-blog-card__media {
		aspect-ratio: 345 / 210;
	}

	.ag-blog-card__date {
		margin-top: 7px;
		font-size: 10px;
		line-height: 12px;
	}

	.ag-blog-card__title {
		margin-top: 3px !important;
		font-size: 13px;
		line-height: 1.3;
	}

	.ag-blog-card > .ag-blog-meta {
		margin-top: 6px;
	}

	.ag-blog-pagination {
		margin-top: 21px;
	}

	.ag-blog-pagination .page-numbers {
		gap: 2px;
	}

	.ag-blog-pagination .page-numbers a,
	.ag-blog-pagination .page-numbers span {
		min-width: 26px;
		min-height: 36px;
		padding: 0 6px;
		font-size: 10px;
	}

	.ag-blog-article__hero {
		height: auto;
		grid-template-areas: 'intro' 'image';
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto;
		gap: 12px;
		margin-bottom: 22px;
	}

	.ag-blog-article__heading {
		padding: 0;
	}

	.ag-blog-article__intro { display: flex; height: auto; min-height: 0; }

	.ag-blog-article__heading h1 {
		margin-top: 3px !important;
		font-size: 21px;
		line-height: 1.29;
	}

	.ag-blog-article__heading > .ag-blog-meta {
		margin-top: 8px;
	}

	.ag-blog-article__image {
		min-height: 0;
		aspect-ratio: 345 / 210;
	}

	.ag-blog-article__author {
		align-self: auto;
		gap: 10px;
		margin: 0;
	}

	#ag-page.ag-blog-page .ag-blog-article__avatar {
		display: none;
	}

	.ag-blog-article__author-copy strong {
		font-size: 12px;
	}

	.ag-blog-article__author-copy > span {
		font-size: 9px;
	}

	.ag-blog-article__content {
		font-size: 13px;
		line-height: 1.29;
	}

	.ag-blog-breadcrumbs { font-size: 10px; }
	.ag-blog-article__content .ag-blog-lead { font-size: 16px; }
	.ag-blog-block__heading,
	.ag-blog-block__faq h2,
	.ag-blog-block__related h2 { font-size: 21px; }
	.ag-blog-block__related > div { grid-template-columns: minmax(0, 1fr); }
	.ag-blog-contact-block { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; }
	.ag-blog-contact-block__copy h2 { font-size: 24px; }

	.ag-blog-article__content h2 {
		font-size: 16px;
	}

	.ag-blog-article__content iframe {
		min-height: 172px;
	}

	.ag-blog-article__tags {
		gap: 5px;
		margin-top: 23px;
	}

	.ag-blog-article__tags a {
		min-height: 36px;
		padding: 0 8px;
		font-size: 9px;
	}
}

@media screen and (max-width: 420px) {
	.ag-blog-main {
		max-width: 345px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#ag-page.ag-blog-page *,
	#ag-page.ag-blog-page *::before,
	#ag-page.ag-blog-page *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* Migration notice — shown while articles are being transferred from Habr */
.ag-blog-migration-notice {
	margin: 32px 0 16px;
	padding: 22px 28px;
	border-radius: 14px;
	background: #edf5f2;
	color: #1f4d44;
	font-size: 16px;
	line-height: 1.5;
}
.ag-blog-migration-notice a {
	color: #1f4d44;
	text-decoration: underline;
	text-underline-offset: 3px;
}
@media (max-width: 639px) {
	.ag-blog-migration-notice {
		padding: 18px 20px;
		font-size: 15px;
	}
}
