/* Блог RaketkIN: список статей (upstore/category) и статья (upstore/article).
   Цвета и шрифты — из yonex.css (--yx-*). */

.rk-blog { --rk-blog-radius: 14px; }
/* тема задаёт z-index всем <header> — иначе шапка блога перекрывает закреплённое меню */
body header.rk-blog-hero,
body header.rk-post__head { z-index: auto; }
.rk-blog #content { min-height: 0; }

/* ---------- шапка блога ---------- */
.rk-blog-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 28px;
	padding: 44px 5% 40px;
	border-radius: var(--rk-blog-radius);
	background: radial-gradient(120% 140% at 100% 0%, #0B4F8A 0%, rgba(11,79,138,0) 55%), linear-gradient(135deg, #06101F 0%, #0A2240 100%);
	color: #FFFFFF;
	isolation: isolate;
}
.rk-blog-hero::after {
	content: '';
	position: absolute;
	inset: 18px;
	z-index: -1;
	border: 2px solid rgba(255,255,255,.06);
	border-radius: 8px;
}
.rk-blog-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--yx-head);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: inherit;
}
.rk-blog-hero__kicker::before { content: ''; width: 40px; height: 3px; background: var(--yx-green); }
a.rk-blog-hero__kicker { color: var(--yx-blue); text-decoration: none; }
a.rk-blog-hero__kicker:hover { color: var(--yx-blue-dark); }
.rk-blog-hero__title {
	margin: 14px 0 12px;
	font-family: var(--yx-head);
	font-size: clamp(32px, 4.4vw, 56px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: #FFFFFF;
}
.rk-blog-hero__text { max-width: 680px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.78); }
.rk-blog-hero__text p { margin: 0 0 8px; }
.rk-blog-hero__text p:last-child { margin: 0; }

.rk-blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.rk-blog-tags a { padding: 8px 16px; border: 1px solid var(--yx-line); border-radius: 999px; font-size: 14px; color: var(--yx-ink); text-decoration: none; }
.rk-blog-tags a:hover { border-color: var(--yx-blue); color: var(--yx-blue); }

/* ---------- карточки ---------- */
.rk-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0 0 32px;
}
.rk-blog-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--yx-line);
	border-radius: var(--rk-blog-radius);
	background: #FFFFFF;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.rk-blog-card:hover { border-color: transparent; box-shadow: 0 14px 36px rgba(6,16,31,.12); transform: translateY(-3px); }
.rk-blog-card__image { display: block; overflow: hidden; aspect-ratio: 40 / 21; background: #06101F; }
.rk-blog-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rk-blog-card:hover .rk-blog-card__image img { transform: scale(1.04); }
.rk-blog-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.rk-blog-card__title { margin: 10px 0 10px; font-family: var(--yx-head); font-size: 21px; font-weight: 500; line-height: 1.25; }
.rk-blog-card__title a { color: var(--yx-ink); text-decoration: none; }
.rk-blog-card__title a:hover { color: var(--yx-blue); }
.rk-blog-card__text { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--yx-text); }
.rk-blog-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-family: var(--yx-head);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--yx-blue);
	text-decoration: none;
}
.rk-blog-card__more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.rk-blog-card:hover .rk-blog-card__more svg { transform: translateX(4px); }

/* первая статья — крупно */
.rk-blog-card--featured { grid-column: 1 / -1; flex-direction: row; }
.rk-blog-card--featured .rk-blog-card__image { flex: 0 0 58%; aspect-ratio: auto; min-height: 340px; }
.rk-blog-card--featured .rk-blog-card__body { justify-content: center; padding: 36px 40px; }
.rk-blog-card--featured .rk-blog-card__title { font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; }
.rk-blog-card--featured .rk-blog-card__text { font-size: 16px; }
.rk-blog-card--featured .rk-blog-card__more { margin-top: 6px; }

.rk-blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--yx-muted); }
.rk-blog-meta span { display: inline-flex; align-items: center; gap: 6px; }
.rk-blog-meta span + span::before { content: ''; width: 4px; height: 4px; margin-right: 10px; border-radius: 50%; background: currentColor; opacity: .6; }
.rk-blog-meta svg { width: 16px; height: 16px; }

.rk-blog-pagination { margin: 0 0 32px; text-align: center; }
.rk-blog-empty { padding: 40px 0; color: var(--yx-muted); text-align: center; }

/* ---------- статья ---------- */
.rk-post__article { max-width: 1100px; margin: 0 auto; }
.rk-post__head { max-width: 860px; margin: 8px auto 26px; text-align: center; }
.rk-post__head .rk-blog-hero__kicker { justify-content: center; }
.rk-post__title {
	margin: 14px 0 16px;
	font-family: var(--yx-head);
	font-size: clamp(30px, 3.6vw, 48px);
	font-weight: 600;
	line-height: 1.12;
	color: var(--yx-ink);
}
.rk-post__head .rk-blog-meta { justify-content: center; }
.rk-post__cover { margin: 0 0 40px; overflow: hidden; border-radius: var(--rk-blog-radius); background: #06101F; }
.rk-post__cover img { display: block; width: 100%; height: auto; }

.rk-post__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.rk-post__toc[hidden] { display: none; }
.rk-post__layout:has(.rk-post__toc[hidden]) { grid-template-columns: minmax(0, 760px); justify-content: center; }
.rk-post__toc {
	position: sticky;
	top: 110px;
	padding: 20px 20px 16px;
	border-radius: 12px;
	background: var(--yx-bg-soft);
}
.rk-post__toc-title { margin: 0 0 12px; font-family: var(--yx-head); font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--yx-ink); }
.rk-post__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.rk-post__toc li { counter-increment: toc; }
.rk-post__toc a {
	display: flex;
	gap: 8px;
	padding: 6px 0 6px 10px;
	border-left: 2px solid transparent;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--yx-text);
	text-decoration: none;
}
.rk-post__toc a::before { content: counter(toc, decimal-leading-zero); flex: 0 0 auto; font-family: var(--yx-head); color: var(--yx-muted); }
.rk-post__toc a:hover, .rk-post__toc a.is-active { border-left-color: var(--yx-blue); color: var(--yx-blue); }

/* текст статьи */
.rk-art { max-width: 760px; font-size: 17px; line-height: 1.75; color: var(--yx-text); }
.rk-art > *:first-child { margin-top: 0; }
.rk-art p { margin: 0 0 18px; }
.rk-art .rk-art-lead { margin-bottom: 28px; font-size: 19px; line-height: 1.65; color: var(--yx-ink); }
.rk-art h2 {
	margin: 44px 0 16px;
	scroll-margin-top: 110px;
	font-family: var(--yx-head);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--yx-ink);
}
.rk-art h3 { margin: 28px 0 10px; font-family: var(--yx-head); font-size: 21px; font-weight: 500; line-height: 1.3; color: var(--yx-ink); }
.rk-art b, .rk-art strong { color: var(--yx-ink); font-weight: 600; }
.rk-art a { color: var(--yx-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rk-art a:hover { color: var(--yx-blue-dark); }
.rk-art ul, .rk-art ol { margin: 0 0 20px; padding-left: 0; list-style: none; }
.rk-art ul > li, .rk-art ol > li { position: relative; margin: 0 0 10px; padding-left: 26px; }
.rk-art ul > li::before { content: ''; position: absolute; top: .72em; left: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--yx-blue); }
.rk-art ol { counter-reset: art; }
.rk-art ol > li { counter-increment: art; }
.rk-art ol > li::before { content: counter(art) '.'; position: absolute; left: 0; font-family: var(--yx-head); color: var(--yx-blue); }
.rk-art ul.rk-art-check > li::before {
	top: .38em;
	left: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--yx-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.rk-art ul.rk-art-check > li { padding-left: 30px; }

.rk-art-tip {
	margin: 24px 0;
	padding: 18px 22px;
	border-left: 4px solid var(--yx-green);
	border-radius: 0 10px 10px 0;
	background: #EEF8F2;
	font-size: 16px;
	line-height: 1.65;
	color: var(--yx-ink);
}

.rk-art-table-wrap { margin: 20px 0 26px; overflow-x: auto; border: 1px solid var(--yx-line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.rk-art-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.rk-art-table th {
	padding: 12px 16px;
	background: #0A2240;
	font-family: var(--yx-head);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .08em;
	text-align: left;
	text-transform: uppercase;
	color: #FFFFFF;
}
.rk-art-table td { padding: 12px 16px; border-top: 1px solid var(--yx-line); vertical-align: top; }
.rk-art-table tbody tr:nth-child(even) td { background: var(--yx-bg-soft); }
.rk-art-table td:first-child { color: var(--yx-ink); font-weight: 500; }

.rk-art-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 36px 0;
	padding: 26px 28px;
	border-radius: 14px;
	background: radial-gradient(100% 160% at 100% 0%, #0B4F8A 0%, rgba(11,79,138,0) 60%), #06101F;
	color: rgba(255,255,255,.78);
}
.rk-art-cta b { display: block; margin: 0 0 6px; font-family: var(--yx-head); font-size: 22px; font-weight: 500; line-height: 1.25; color: #FFFFFF; }
.rk-art-cta span { display: block; font-size: 15px; line-height: 1.55; }
.rk-art .rk-art-cta__btn {
	flex: 0 0 auto;
	padding: 14px 22px;
	border-radius: 4px;
	background: var(--yx-blue);
	font-family: var(--yx-head);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .08em;
	text-decoration: none;
	text-transform: uppercase;
	color: #FFFFFF;
	transition: background .2s ease;
}
.rk-art .rk-art-cta__btn:hover { background: var(--yx-green); color: #FFFFFF; }

/* товары и «читайте также» под статьёй */
.rk-post .pt-15 { max-width: 1100px; margin: 48px auto 0; }
.rk-post__more { max-width: 1100px; margin: 56px auto 24px; }
.rk-post__more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.rk-post__more-head h2 { margin: 0; font-family: var(--yx-head); font-size: 28px; font-weight: 600; text-transform: uppercase; color: var(--yx-ink); }
.rk-post__more-head a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--yx-head); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--yx-blue); text-decoration: none; }
.rk-post__more-head svg { width: 18px; height: 18px; }
.rk-blog-grid--more .rk-blog-card__title { font-size: 19px; margin-bottom: 0; }

/* ---------- адаптив ---------- */
@media (max-width: 1199px) {
	.rk-post__layout { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 991px) {
	.rk-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	.rk-blog-card--featured { flex-direction: column; }
	.rk-blog-card--featured .rk-blog-card__image { flex: none; min-height: 0; aspect-ratio: 40 / 21; }
	.rk-blog-card--featured .rk-blog-card__body { padding: 24px; }
	.rk-post__layout { grid-template-columns: minmax(0, 1fr); }
	.rk-post__toc { position: static; }
	.rk-art { max-width: none; }
}
@media (max-width: 599px) {
	.rk-blog-hero { padding: 30px 22px 28px; margin-bottom: 20px; }
	.rk-blog-hero::after { display: none; }
	.rk-blog-grid { grid-template-columns: minmax(0, 1fr); }
	.rk-blog-card__body { padding: 18px; }
	.rk-post__head { text-align: left; }
	.rk-post__head .rk-blog-hero__kicker, .rk-post__head .rk-blog-meta { justify-content: flex-start; }
	.rk-post__cover { margin: 0 -15px 28px; border-radius: 0; }
	.rk-art { font-size: 16px; }
	.rk-art .rk-art-lead { font-size: 17px; }
	.rk-art h2 { margin-top: 36px; font-size: 24px; }
	.rk-art-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
	.rk-post__more-head h2 { font-size: 22px; }
}
