/* Articles: list, rubric, article page, "Useful articles" block. Uses theme vars from stylesheet.css */
.a-page {
	--a-text: #262833;
	--a-muted: #8a8c96;
	--a-line: #ececec;
	--a-soft: #faf7f4;
	--a-column: 760px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px 40px;
	box-sizing: border-box;
	/* the theme's .outer is a grid: wide carousels must not stretch its track */
	contain: inline-size;
}
.a-page *, .a-page *::before, .a-page *::after { box-sizing: border-box; }
/* the theme underlines every link on hover; here only text links in the article body stay underlined */
.a-page a:hover, .a-page a:focus { text-decoration: none; }
.a-body :is(p, li, td, blockquote, figcaption) > a:hover { text-decoration: underline; }
/* the theme clips the page with overflow: hidden, which turns it into a scroller and breaks the sticky TOC;
   clip cuts the same overflow without creating a scroll container */
body.page-article.desktop > .outer > .contain { overflow: clip; }
.a-wrap { max-width: 1200px; margin: 0 auto; }
.a-h1 {
	font-size: 34px;
	line-height: 1.2;
	font-weight: 800;
	color: var(--color-title);
	letter-spacing: -.5px;
	margin: 28px 0 20px;
}

/* ---------- chips & meta ---------- */
.a-rubrics {
	display: flex;
	gap: 8px;
	margin: 0 0 24px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.a-rubrics::-webkit-scrollbar { display: none; }
.a-chip {
	display: inline-flex;
	align-items: center;
	flex: none;
	height: 34px;
	padding: 0 16px;
	border-radius: 17px;
	background: var(--color-bg-gray);
	color: var(--a-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s, color .2s;
}
.a-chip:hover { background: var(--color-brand-15); color: var(--a-text); text-decoration: none; }
.a-chip.is-active { background: var(--color-brand); color: #fff; }
.a-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	color: var(--a-muted);
	font-size: 13px;
}
.a-meta > * + *::before {
	content: '·';
	margin-right: 14px;
}

/* ---------- cards grid ---------- */
.a-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}
.a-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--a-line);
	border-radius: var(--border-radius);
	overflow: hidden;
	transition: box-shadow .25s, transform .25s;
}
.a-card:hover { box-shadow: 0 10px 30px rgb(0 0 0 / 8%); transform: translateY(-2px); }
.a-card-img {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--a-soft);
	overflow: hidden;
}
.a-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-card-noimg {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--color-brand-15), var(--a-soft)) center / cover;
}
.a-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 18px;
	flex: 1;
}
.a-card-rubric {
	color: var(--color-brand);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
}
.a-card-title {
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
	font-weight: 800;
}
.a-card-title a { color: var(--color-title); text-decoration: none; }
.a-card-title a:hover { color: var(--color-a-hover); }
.a-card-lead {
	margin: 0;
	color: #555;
	font-size: 14px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.a-card .a-meta { margin-top: auto; padding-top: 4px; }
/* the newest article on the first page is wider */
@media (min-width: 900px) {
	.a-grid.has-featured { grid-template-columns: repeat(3, 1fr); }
	.a-grid.has-featured .a-card:first-child {
		grid-column: span 3;
		flex-direction: row;
	}
	.a-grid.has-featured .a-card:first-child .a-card-img { flex: 0 0 58%; aspect-ratio: 16 / 9; }
	.a-grid.has-featured .a-card:first-child .a-card-body { padding: 32px; justify-content: center; }
	.a-grid.has-featured .a-card:first-child .a-card-title { font-size: 28px; }
	.a-grid.has-featured .a-card:first-child .a-card-lead { font-size: 16px; -webkit-line-clamp: 4; }
	.a-grid.has-featured .a-card:first-child .a-meta { margin-top: 8px; }
}

.a-empty { color: var(--a-muted); font-size: 16px; padding: 40px 0; }

/* ---------- pagination ---------- */
.a-pages {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 32px 0 8px;
}
.a-pg {
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--color-bg-gray);
	color: var(--a-text);
	font-weight: 700;
	text-decoration: none;
}
a.a-pg:hover { background: var(--color-brand-15); color: var(--a-text); text-decoration: none; }
.a-pg.is-active { background: var(--color-brand); color: #fff; }
.a-pg-gap { background: none; }
.a-pg-arrow { font-size: 22px; }

.a-seo {
	margin: 40px auto 0;
	max-width: var(--a-column);
	color: #555;
	font-size: 15px;
	line-height: 1.65;
}

/* ---------- article ---------- */
.a-preview {
	margin: 0 auto 16px;
	max-width: var(--a-column);
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff4d6;
	color: #7a5a00;
	font-weight: 600;
}
.a-article { margin: 0 auto; }
.a-head {
	max-width: var(--a-column);
	margin: 0 auto;
}
.a-head .a-h1 { font-size: 38px; margin: 32px 0 14px; }
/* rubric chip opens the meta line */
.a-head .a-meta { align-items: center; }
.a-head .a-chip { height: 26px; font-size: 13px; padding: 0 12px; }
.a-lead {
	margin: 20px 0 0;
	font-size: 20px;
	line-height: 1.55;
	color: #3b3d47;
}
.a-cover {
	max-width: 960px;
	margin: 28px auto 0;
}
.a-cover img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
	background: var(--a-soft);
}
.a-layout {
	position: relative;
	max-width: var(--a-column);
	margin: 32px auto 0;
}

/* table of contents: inline box, on wide screens — sticky in the left margin */
.a-toc { margin-bottom: 28px; }
.a-toc-box {
	background: var(--a-soft);
	border-radius: var(--border-radius);
	padding: 14px 18px;
}
.a-toc-box summary {
	cursor: pointer;
	font-weight: 800;
	font-size: 16px;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.a-toc-box summary::-webkit-details-marker { display: none; }
.a-toc-box summary::after {
	content: '';
	width: 8px;
	height: 8px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	transition: transform .2s;
	margin-right: 4px;
}
.a-toc-box[open] summary::after { transform: rotate(-135deg); }
.a-toc ol {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	counter-reset: toc;
}
.a-toc li { margin: 0; }
.a-toc a {
	display: block;
	padding: 5px 0 5px 12px;
	border-left: 2px solid transparent;
	color: #555;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
}
.a-toc a:hover { color: var(--color-a-hover); }
.a-toc a.is-active { color: var(--color-brand); border-left-color: var(--color-brand); font-weight: 700; }
.a-toc .a-toc-l3 a { padding-left: 26px; font-size: 13px; }
@media (min-width: 1300px) {
	.a-layout.has-toc .a-toc {
		position: absolute;
		top: 0;
		bottom: 0;
		right: calc(100% + 40px);
		width: 240px;
		margin: 0;
	}
	.a-layout.has-toc .a-toc-box {
		position: sticky;
		top: 100px;
		max-height: calc(100vh - 120px);
		overflow: auto;
		background: none;
		padding: 0;
	}
	.a-layout.has-toc .a-toc-box summary { pointer-events: none; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--a-muted); }
	.a-layout.has-toc .a-toc-box summary::after { display: none; }
}

/* ---------- article body: clean semantic markup from ArticleContent ---------- */
.a-body {
	font-size: 17px;
	line-height: 1.7;
	color: var(--a-text);
	overflow-wrap: break-word;
}
.a-body > :first-child { margin-top: 0; }
.a-body p { margin: 0 0 1.1em; }
.a-body h2, .a-body h3, .a-body h4 {
	color: var(--color-title);
	font-weight: 800;
	line-height: 1.3;
	scroll-margin-top: 100px;
}
/* anchors from the table of contents must not hide under the sticky site header */
.a-body h2, .a-body h3 { scroll-margin-top: 90px; }
.a-body h2 { font-size: 27px; margin: 1.7em 0 .6em; letter-spacing: -.3px; }
.a-body h3 { font-size: 21px; margin: 1.5em 0 .5em; }
.a-body h4 { font-size: 18px; margin: 1.3em 0 .4em; }
.a-body a { color: var(--color-a-brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.a-body a:hover { color: var(--color-brand); }
.a-body b { font-weight: 800; }
.a-body ul, .a-body ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.a-body li { margin: .35em 0; padding-left: .2em; }
.a-body li > ul, .a-body li > ol { margin: .3em 0 .3em; }
.a-body ul > li::marker { color: var(--color-brand); }
.a-body ol > li::marker { color: var(--color-brand); font-weight: 800; }
.a-body ul.a-checklist { list-style: none; padding-left: 0; }
.a-body ul.a-checklist li { position: relative; padding-left: 32px; }
.a-body ul.a-checklist li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .35em;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	border: 2px solid #cfcfcf;
}
.a-body ul.a-checklist li.is-checked::before {
	border-color: var(--color-green);
	background: var(--color-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.a-body hr {
	border: 0;
	height: auto;
	margin: 2em 0;
	text-align: center;
}
.a-body hr::before {
	content: '• • •';
	color: var(--color-brand);
	letter-spacing: 12px;
	font-size: 16px;
}
.a-body blockquote {
	margin: 1.6em 0;
	padding: 18px 22px;
	border-left: 4px solid var(--color-brand);
	border-radius: 0 var(--border-radius) var(--border-radius) 0;
	background: var(--color-brand-10);
	font-size: 18px;
}
.a-body blockquote p { margin: 0; font-style: italic; }
.a-body blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--a-muted); }
.a-body blockquote cite::before { content: '- '; }
.a-note {
	margin: 1.6em 0;
	padding: 16px 20px 16px 56px;
	border-radius: var(--border-radius);
	background: #f1f7ea;
	position: relative;
}
.a-note::before {
	content: '!';
	position: absolute;
	left: 18px;
	top: 16px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--color-green);
	color: #fff;
	font-weight: 900;
	font-size: 16px;
	line-height: 26px;
	text-align: center;
}
.a-note p { margin: 0; }
.a-note p + p { margin-top: .4em; }
.a-note-title { font-weight: 800; }
.a-img { margin: 1.8em 0; }
.a-img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--border-radius);
	background: var(--a-soft);
}
.a-img figcaption {
	margin-top: 8px;
	color: var(--a-muted);
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
}
@media (min-width: 1100px) {
	.a-img.is-wide { margin-left: -100px; margin-right: -100px; }
}
.a-table {
	margin: 1.6em 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--a-line);
	border-radius: var(--border-radius);
}
.a-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.a-table th, .a-table td { padding: 10px 14px; border-bottom: 1px solid var(--a-line); text-align: left; vertical-align: top; }
.a-table th { background: var(--a-soft); font-weight: 800; white-space: nowrap; }
.a-table tr:last-child td { border-bottom: 0; }

/* ---------- product blocks inside the text ---------- */
.a-products {
	margin: 1.8em 0;
	padding: 16px 6px 6px;
	border-radius: 16px;
	background: var(--a-soft);
	line-height: normal;
}
/* fewer cards than carousel slots: the box shrinks to the cards instead of an empty tail
   (slots follow articles.js: 2 / 3 from 576px / 4 from 1200px; 6px = side padding) */
@media (min-width: 576px) {
	.a-products[data-n="2"] { width: calc((100% - 12px) * 2 / 3 + 12px); }
	.a-products[data-n="2"] .a-products-list:not(.owl-loaded) > .product-list-item { flex-basis: 50%; }
}
@media (min-width: 1200px) {
	.a-products[data-n="2"] { width: calc((100% - 12px) * 2 / 4 + 12px); }
	.a-products[data-n="3"] { width: calc((100% - 12px) * 3 / 4 + 12px); }
}
.a-products-title {
	margin: 0 10px 6px !important;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--color-title);
}
.a-products .product-list-item { padding-top: 8px; background: none; }
.a-products .product-list-item .product-list-image { height: auto; }
.a-products .owl-stage-outer { padding-bottom: 6px; }
.a-products a { text-decoration: none; }
/* carousel before init: a horizontally scrolled row, no layout jump */
.a-products-list:not(.owl-loaded) {
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
}
.a-products-list:not(.owl-loaded) > .product-list-item { flex: 0 0 50%; }
@media (min-width: 576px) {
	.a-products-list:not(.owl-loaded) > .product-list-item { flex-basis: 33.333%; }
}
.a-products .owl-nav button.owl-prev,
.a-products .owl-nav button.owl-next {
	position: absolute;
	top: 35%;
	width: 36px;
	height: 36px;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: 0 2px 10px rgb(0 0 0 / 15%);
	font-size: 22px !important;
	line-height: 34px !important;
	color: var(--a-text) !important;
	z-index: 2;
}
.a-products .owl-nav button.owl-prev { left: -8px; }
.a-products .owl-nav button.owl-next { right: -8px; }
.a-products .owl-nav button.disabled { display: none; }

/* single product: a horizontal card in the text flow */
.a-product-one { padding: 6px; }
.a-product-one .products-list .product-list-item {
	flex-direction: row;
	align-items: center;
	gap: 6px;
	padding: 6px;
	border-top: 0;
}
.a-product-one .product-list-item .product-list-image {
	flex: 0 0 130px;
	margin: 0;
	background: #fff;
}
.a-product-one .product-list-image .thumbs,
.a-product-one .product-list-image .thumbs .thumb { width: 130px; }
.a-product-one .product-list-item .product-list-body {
	flex: 1;
	margin: 0 10px;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto auto;
	grid-template-areas: 'title buy' 'price buy' 'rating buy';
	column-gap: 20px;
	align-items: center;
}
.a-product-one .product-list-body .price-rate { grid-area: price; }
.a-product-one .product-list-body .product-list-title { grid-area: title; }
.a-product-one .product-list-body .product-rating { grid-area: rating; }
.a-product-one .product-list-body .product-buy-action { grid-area: buy; margin: 0; min-width: 170px; }
.a-product-one .xdstickers_wrapper { display: none; }
@media (max-width: 575px) {
	.a-product-one .product-list-item .product-list-image,
	.a-product-one .product-list-image .thumbs,
	.a-product-one .product-list-image .thumbs .thumb { flex-basis: 100px; width: 100px; }
	.a-product-one .product-list-item .product-list-body {
		grid-template-columns: 1fr;
		grid-template-areas: 'title' 'rating' 'price' 'buy';
	}
	.a-product-one .product-list-body .product-buy-action { margin-top: 8px; min-width: 0; }
}

/* ---------- share ---------- */
.a-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 36px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--a-line);
	line-height: normal;
}
.a-share-label { color: var(--a-muted); font-size: 14px; margin-right: 6px; }
.a-body .a-share-btn,
.a-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	min-width: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 10px;
	background: var(--color-bg-gray);
	color: var(--a-text);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}
.a-share-btn.is-vk { background: #0077ff; color: #fff; }
.a-share-btn.is-tg { background: #27a7e7; color: #fff; }
.a-share-btn.is-wa { background: #25d366; color: #fff; }
.a-body .a-share-btn:hover, .a-share-btn:hover { opacity: .85; color: inherit; }
.a-share-btn.is-vk:hover, .a-share-btn.is-tg:hover, .a-share-btn.is-wa:hover { color: #fff; }
.a-share-btn.is-done { background: var(--color-green); color: #fff; }

/* ---------- related / category block ---------- */
.a-related { margin: 56px auto 0; }
.a-section-title { font-size: 26px; font-weight: 800; margin: 0 0 20px; color: var(--color-title); }
.a-related .a-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.a-related .a-card-title { font-size: 17px; }
.a-related .a-card-lead { display: none; }
@media (min-width: 900px) {
	.a-related .a-grid { grid-template-columns: repeat(3, 1fr); }
}
.a-related .a-block-head { margin-bottom: 20px; }
.a-related .a-section-title { margin: 0; }

/* "read on": big card of the next article right after the text */
.a-body a.a-next,
.a-next {
	display: flex;
	margin: 32px 0 0;
	border-radius: 16px;
	background: var(--a-soft);
	overflow: hidden;
	color: var(--a-text);
	text-decoration: none;
	transition: box-shadow .2s, transform .2s;
}
.a-next:hover { box-shadow: 0 10px 30px rgb(0 0 0 / 8%); transform: translateY(-2px); color: var(--a-text); }
.a-next-img { flex: 0 0 42%; aspect-ratio: 4 / 3; background: var(--a-soft); }
.a-next-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-next-body { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 24px 28px; line-height: 1.35; }
.a-next-label { color: var(--color-brand); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.a-next-title { color: var(--color-title); font-size: 22px; font-weight: 800; }
.a-next:hover .a-next-title { color: var(--color-a-hover); }
.a-next-lead {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #555;
	font-size: 15px;
	line-height: 1.5;
}
.a-next-go { display: flex; align-items: center; gap: 10px; color: var(--a-muted); font-size: 14px; }
.a-next-go i { font-style: normal; font-size: 20px; color: var(--color-brand); transition: transform .2s; }
.a-next:hover .a-next-go i { transform: translateX(4px); }

/* "read also": compact card in the middle of the text */
.a-also {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 28px 0;
	padding: 12px;
	border-radius: var(--border-radius);
	border-left: 4px solid var(--color-brand);
	background: var(--a-soft);
	line-height: 1.35;
}
.a-body .a-also-img,
.a-also-img { flex: 0 0 120px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.a-also-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-also-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.a-also-label { color: var(--color-brand); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.a-body a.a-also-title { color: var(--color-title); font-size: 17px; font-weight: 800; text-decoration: none; }
.a-body a.a-also-title:hover { color: var(--color-a-hover); }
.a-also-meta { color: var(--a-muted); font-size: 13px; }

/* rubric chips at the very bottom */
.a-topics { margin: 40px 0 0; }
.a-topics-label { display: block; margin-bottom: 12px; color: var(--a-muted); font-size: 14px; }
.a-topics .a-rubrics { flex-wrap: wrap; margin: 0; }

.a-block { margin: 40px 0 10px; }
.a-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.a-block-all { color: var(--color-a-brand); font-weight: 700; white-space: nowrap; }

/* ---------- mobile ---------- */
@media (max-width: 767px) {
	.a-page { padding-bottom: 24px; }
	.a-h1 { font-size: 26px; margin: 20px 0 14px; }
	.a-head .a-h1 { font-size: 27px; margin-top: 20px; }
	.a-lead { font-size: 18px; margin-top: 14px; }
	.a-cover { margin: 20px -16px 0; }
	.a-cover img { border-radius: 0; }
	.a-layout { margin-top: 24px; }
	.a-body { font-size: 16px; line-height: 1.65; }
	.a-body h2 { font-size: 23px; }
	.a-body h3 { font-size: 19px; }
	.a-body blockquote { font-size: 16px; padding: 14px 16px; }
	.a-grid { gap: 16px; }
	.a-rubrics { margin: 0 -16px 18px; padding: 0 16px; }
	/* related cards: horizontal swipe instead of a long column */
	.a-grid-scroll {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin: 0 -16px;
		padding: 0 16px 8px;
		scrollbar-width: none;
	}
	.a-grid-scroll::-webkit-scrollbar { display: none; }
	.a-grid-scroll .a-card { flex: 0 0 78%; scroll-snap-align: start; }
	.a-grid-scroll .a-card:hover { transform: none; }
	.a-section-title { font-size: 22px; }
	.a-related { margin-top: 40px; }
	.a-next { flex-direction: column; }
	.a-next-img { flex-basis: auto; aspect-ratio: 16 / 9; }
	.a-next-body { padding: 18px 18px 20px; }
	.a-next-title { font-size: 19px; }
	.a-also { gap: 12px; padding: 10px; }
	.a-body .a-also-img, .a-also-img { flex-basis: 84px; }
	.a-body a.a-also-title { font-size: 15px; }
	.a-related .a-block-head { flex-direction: column; gap: 4px; }
	.a-topics .a-rubrics { flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px; }
	.a-products { margin-left: -10px; margin-right: -10px; }
}
