/*
Theme Name: Раскрашка
Description: Тема для сайта бесплатных раскрасок: страницы с раскрасками, страницы-подборки с карточками дочерних страниц впереди, каталог, блог, поиск и 404. Сделана по дизайну из Claude Design.
Version: 1.3.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: raskrashka
Domain Path: /languages
License: GPL-2.0-or-later
*/

/* ---------- Токены ---------- */
:root {
	--rk-blue: #1f7fd8;
	--rk-blue-hover: #3b93e8;
	--rk-navy: #1c4a9c;
	--rk-text: #26406b;
	--rk-yellow: #ffc929;
	--rk-yellow-hover: #ffd54d;
	--rk-sky: #e8f3ff;
	--rk-line: #e3eefb;
	--rk-head: 'Baloo 2', 'Nunito', sans-serif;
	--rk-body: 'Nunito', sans-serif;
	--rk-shadow: 0 10px 28px rgba(31, 127, 216, .16);
	--rk-shadow-hover: 0 16px 36px rgba(31, 127, 216, .24);
	--rk-shadow-lg: 0 12px 32px rgba(31, 127, 216, .18);
	--rk-shadow-lg-hover: 0 18px 40px rgba(31, 127, 216, .26);
	--rk-pad-x: 32px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
html.rk-lb-open { overflow: hidden; }
body { margin: 0; font-family: var(--rk-body); color: var(--rk-text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--rk-blue); }
a:hover { color: var(--rk-navy); }
button { font-family: inherit; }
[hidden] { display: none !important; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.rk-skip:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 100; padding: 10px 16px; background: #fff; border-radius: 12px; font-weight: 800; }

.rk-wrap { max-width: 1240px; margin: 0 auto; }
.rk-pad { padding-left: var(--rk-pad-x); padding-right: var(--rk-pad-x); }
.rk-center { text-align: center; }
.rk-hl { color: var(--rk-yellow); }
.rk-stack { display: flex; flex-direction: column; gap: 32px; }

.rk-h2 { margin: 0 0 20px; font-family: var(--rk-head); font-weight: 700; font-size: 32px; line-height: 1.1; color: var(--rk-navy); }
.rk-h2--lg { font-size: 36px; margin-bottom: 28px; }
.rk-lead { margin: 0; font-size: 18px; line-height: 1.7; max-width: 900px; }

.rk-grid { display: grid; gap: 24px; }
.rk-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rk-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rk-grid-colorings { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.rk-grid-home { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rk-grid-search { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.rk-grid-posts { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rk-grid-posts--fill { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.rk-grid-pages-fill { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ---------- Кнопки ---------- */
.rk-icon-btn { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--rk-navy); box-shadow: 0 2px 4px rgba(0, 40, 100, .2), 0 6px 14px rgba(0, 40, 100, .2); transition: transform .15s, background .15s; }
.rk-icon-btn:focus-visible { outline: 3px solid var(--rk-yellow); outline-offset: 2px; }
.rk-icon-btn--white { background: #fff; }
.rk-icon-btn--white:hover { background: var(--rk-yellow); transform: scale(1.05); }
.rk-icon-btn--yellow { background: var(--rk-yellow); }

.rk-btn-blue { all: unset; box-sizing: border-box; cursor: pointer; height: 44px; padding: 0 20px; border-radius: 12px; background: var(--rk-blue); color: #fff; font: 800 15px var(--rk-body); display: flex; align-items: center; gap: 8px; box-shadow: 0 2px 4px rgba(28, 74, 156, .25), 0 8px 18px rgba(31, 127, 216, .4); transition: transform .15s, background .15s; }
.rk-btn-blue:hover { background: var(--rk-blue-hover); transform: translateY(-1px); }
.rk-btn-blue:focus-visible { outline: 3px solid var(--rk-yellow); outline-offset: 2px; }

.rk-btn-yellow { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 30px; border-radius: 14px; background: var(--rk-yellow); color: var(--rk-navy); font: 800 17px var(--rk-body); box-shadow: 0 2px 4px rgba(0, 40, 100, .15), 0 10px 22px rgba(31, 127, 216, .28); transition: transform .15s, background .15s; }
.rk-btn-yellow:hover { background: var(--rk-yellow-hover); color: var(--rk-navy); transform: translateY(-2px); }
.rk-btn-yellow--lg { height: 58px; padding: 0 32px; font-size: 18px; box-shadow: 0 2px 4px rgba(0, 40, 100, .2), 0 10px 22px rgba(0, 40, 100, .28); }
.rk-btn-outline { text-decoration: none; display: inline-flex; align-items: center; height: 58px; padding: 0 28px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .75); color: #fff; font: 800 16px var(--rk-body); transition: background .15s, color .15s; }
.rk-btn-outline:hover { background: #fff; color: var(--rk-navy); }

/* «Читать →» со срезанным краем */
.rk-cut { flex: none; display: inline-flex; height: 40px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 3px 0 #dbe6f3; }
.rk-cut__label { display: flex; align-items: center; padding: 0 16px 0 14px; background: var(--rk-yellow); color: var(--rk-navy); font: 800 14px var(--rk-body); clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.rk-cut__arrow { width: 34px; display: flex; align-items: center; justify-content: center; color: #e0a800; font: 800 18px var(--rk-body); }

/* ---------- Шапка ---------- */
.rk-header { background: var(--rk-blue); position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 16px rgba(20, 60, 130, .18); }
.admin-bar .rk-header { top: 32px; }
.rk-header__inner { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; position: relative; }

.rk-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.rk-logo:hover { color: #fff; }
.rk-logo__mark { width: 44px; height: 44px; border-radius: 14px; background: var(--rk-yellow); color: var(--rk-navy); display: flex; align-items: center; justify-content: center; font-size: 26px; transform: rotate(-8deg); }
.rk-logo__img { width: auto; height: 44px; }
.rk-logo__text { font-family: var(--rk-head); font-weight: 800; font-size: 26px; line-height: 1; }

.rk-nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
.rk-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.rk-nav__list a { display: block; text-decoration: none; color: #fff; font-weight: 800; font-size: 15px; padding: 8px; border-radius: 999px; white-space: nowrap; }
.rk-nav__list a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.rk-nav__list .current-menu-item > a,
.rk-nav__list .current-menu-ancestor > a,
.rk-nav__list .current-page-ancestor > a,
.rk-nav__list .current_page_parent > a { background: #fff; color: var(--rk-navy); }

.rk-header__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.rk-burger { display: none; }
.rk-burger__close { display: none; }
.rk-burger.is-open .rk-burger__open { display: none; }
.rk-burger.is-open .rk-burger__close { display: flex; }
.rk-burger span { display: flex; }

@keyframes rkDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.rk-search-drop { position: absolute; top: calc(100% + 6px); right: 24px; width: min(380px, calc(100% - 32px)); background: #fff; border-radius: 24px; box-shadow: 0 18px 40px rgba(20, 60, 130, .3); z-index: 5; padding: 14px; animation: rkDrop .22s ease-out; }
.rk-search-drop__form { display: flex; align-items: center; gap: 12px; background: #f4f8fd; border: 2px solid var(--rk-line); border-radius: 16px; padding: 4px 4px 4px 14px; color: var(--rk-blue); }
.rk-search-drop__form svg { flex: none; }
.rk-search-drop__form input { flex: 1; min-width: 0; border: 0; outline: 0; font: 700 16px var(--rk-body); color: var(--rk-navy); background: transparent; height: 44px; }

/* ---------- Синий блок с заголовком ---------- */
.rk-hero { background: var(--rk-blue); color: #fff; }
.rk-hero__inner { max-width: 1240px; margin: 0 auto; padding-top: 36px; padding-bottom: 70px; display: flex; flex-direction: column; gap: 14px; }
.rk-hero--center .rk-hero__inner { align-items: center; text-align: center; gap: 20px; padding-bottom: 80px; }
.rk-crumbs { font-size: 14px; font-weight: 700; }
.rk-crumbs a { color: #fff; opacity: .85; }
.rk-crumbs a:hover { color: #fff; opacity: 1; }
.rk-hero__title { margin: 0; font-family: var(--rk-head); font-weight: 800; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; max-width: 900px; overflow-wrap: anywhere; }
.rk-hero--article .rk-hero__title { font-size: clamp(30px, 6vw, 50px); max-width: none; }
.rk-hero__meta { margin: 0; font-size: 15px; opacity: .9; }
.rk-hero__meta--lg { font-size: 18px; opacity: 1; }
.rk-wave { display: block; width: 100%; height: 50px; margin-top: -50px; position: relative; }

/* ---------- Колонки с правым виджетом ---------- */
.rk-layout { margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.rk-layout--wide { max-width: 1290px; padding-top: 10px; padding-bottom: 70px; }
.rk-layout--article { max-width: 1240px; gap: 48px; padding-bottom: 60px; }
.rk-layout__main { min-width: 0; }
.rk-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.admin-bar .rk-aside { top: 132px; }

.rk-box { background: var(--rk-sky); border-radius: 28px; padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.rk-box__title { display: block; font-family: var(--rk-head); font-weight: 700; font-size: 24px; color: var(--rk-navy); margin-bottom: 4px; }
.rk-box ul { list-style: none; margin: 0; padding: 0; }
.rk-box li a { text-decoration: none; color: var(--rk-text); font-weight: 800; padding: 9px 0; border-bottom: 1px dashed rgba(28, 74, 156, .25); display: flex; justify-content: space-between; gap: 12px; }
.rk-box li a:hover { color: var(--rk-blue); }
.rk-box li:last-child a { border-bottom: 0; }

/* ---------- Карточка страницы (2:3) ---------- */
.rk-pcard { text-decoration: none; color: var(--rk-text); background: #fff; border-radius: 28px; box-shadow: var(--rk-shadow); padding: 12px 12px 18px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s; }
.rk-pcard:hover { transform: translateY(-4px); box-shadow: var(--rk-shadow-hover); color: var(--rk-text); }
.rk-pcard__img { display: block; aspect-ratio: 2 / 3; border-radius: 20px; overflow: hidden; }
.rk-pcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rk-pcard__title { font-family: var(--rk-head); font-weight: 800; font-size: 19px; line-height: 1.2; color: var(--rk-navy); text-align: center; padding: 0 6px; }

/* ---------- Карточка раскраски (A4) ---------- */
.rk-ccard { background: #fff; border-radius: 32px; box-shadow: var(--rk-shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 14px; position: relative; transition: transform .2s, box-shadow .2s; }
.rk-ccard:hover { transform: translateY(-4px); box-shadow: var(--rk-shadow-lg-hover); }
.rk-ccard__img { all: unset; box-sizing: border-box; cursor: zoom-in; display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: repeating-linear-gradient(135deg, #f4f8fd 0 14px, #eaf2fb 14px 28px); }
.rk-ccard__img:focus-visible { outline: 3px solid var(--rk-blue); outline-offset: 2px; }
.rk-ccard__img img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.rk-ccard__title { margin: 0; padding: 0 8px; text-align: center; font-family: var(--rk-head); font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--rk-navy); text-wrap: balance; }
.rk-ccard--big .rk-ccard__title { font-weight: 800; font-size: 22px; line-height: 1.15; }

.rk-actions { display: flex; height: 50px; border-radius: 14px; overflow: hidden; margin-top: auto; box-shadow: 0 4px 0 #dbe6f3; }
.rk-actions__print, .rk-actions__dl { all: unset; box-sizing: border-box; flex: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; }
.rk-actions__print { background: var(--rk-blue); color: #fff; border-right: 2px solid #fff; }
.rk-actions__print:hover { background: var(--rk-blue-hover); }
.rk-actions__dl { background: var(--rk-yellow); color: var(--rk-navy); }
.rk-actions__dl:hover { background: var(--rk-yellow-hover); color: var(--rk-navy); }
.rk-actions__print:focus-visible, .rk-actions__dl:focus-visible { outline: 3px solid var(--rk-navy); outline-offset: -3px; }

/* ---------- Карточка статьи ---------- */
.rk-bcard { text-decoration: none; color: var(--rk-text); background: #fff; border-radius: 32px; box-shadow: var(--rk-shadow-lg); padding: 14px; display: flex; flex-direction: column; gap: 16px; transition: transform .2s, box-shadow .2s; }
.rk-bcard:hover { transform: translateY(-4px); box-shadow: var(--rk-shadow-lg-hover); color: var(--rk-text); }
.rk-bcard__img { display: block; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; }
.rk-bcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rk-bcard__body { padding: 0 10px; display: flex; flex-direction: column; gap: 10px; }
.rk-bcard__title { font-family: var(--rk-head); font-weight: 800; font-size: 22px; line-height: 1.15; color: var(--rk-navy); }
.rk-bcard__text { font-size: 16px; line-height: 1.55; }
.rk-bcard__foot { margin: auto 10px 6px; padding-top: 14px; border-top: 2px dashed var(--rk-line); display: flex; align-items: center; gap: 12px; }
.rk-bcard__meta { flex: 1; font-size: 13px; }

/* ---------- Вопросы и ответы ---------- */
.rk-faq { display: flex; flex-direction: column; gap: 20px; }
.rk-faq .rk-h2 { margin: 0; }
.rk-faq__list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rk-faq__item { background: #fff; border: 2px solid var(--rk-line); border-radius: 22px; overflow: hidden; }
.rk-faq__item.is-open { box-shadow: 0 6px 18px rgba(28, 74, 156, .15); }
.rk-faq__q { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; border: 0; background: transparent; cursor: pointer; padding: 16px 18px; font: 800 17px var(--rk-body); color: var(--rk-navy); }
.rk-faq__num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--rk-sky); color: var(--rk-navy); display: flex; align-items: center; justify-content: center; font-family: var(--rk-head); }
.rk-faq__text { flex: 1; }
.rk-faq__sign { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--rk-sky); color: var(--rk-navy); display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }
.rk-faq__sign::before { content: '+'; }
.rk-faq__item.is-open .rk-faq__num { background: var(--rk-blue); color: #fff; }
.rk-faq__item.is-open .rk-faq__sign { background: var(--rk-yellow); }
.rk-faq__item.is-open .rk-faq__sign::before { content: '−'; }
.rk-faq__a { padding: 16px 20px 18px 66px; background: var(--rk-sky); border-top: 2px solid var(--rk-line); line-height: 1.65; font-size: 16px; }

/* ---------- Текст (SEO-блоки, статьи, страницы) ---------- */
.rk-prose { line-height: 1.7; font-size: 17px; }
.rk-prose > :first-child { margin-top: 0; }
.rk-prose > :last-child { margin-bottom: 0; }
.rk-prose p { margin: 0 0 14px; }
.rk-prose h2 { margin: 0 0 10px; font-family: var(--rk-head); font-weight: 700; font-size: 30px; line-height: 1.15; color: var(--rk-navy); }
.rk-prose h3 { margin: 18px 0 8px; font-family: var(--rk-head); font-weight: 700; font-size: 23px; line-height: 1.2; color: var(--rk-navy); }
.rk-prose * + h2 { margin-top: 28px; }
.rk-prose ul, .rk-prose ol { margin: 0 0 14px; padding-left: 24px; }
.rk-prose li + li { margin-top: 6px; }
.rk-prose img { border-radius: 22px; }
.rk-prose blockquote { margin: 6px 0 22px; padding: 24px 28px; background: #fff0b8; border-radius: 24px; font-family: var(--rk-head); font-size: 24px; line-height: 1.35; color: var(--rk-navy); }
.rk-prose blockquote p { margin: 0; }
.rk-prose table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.rk-prose th, .rk-prose td { border: 2px solid var(--rk-line); padding: 10px 12px; text-align: left; }
.rk-seo { max-width: 760px; }
.rk-seo--wide { max-width: none; }
.rk-seo-wrap { max-width: 860px; margin: 0 auto; padding-top: 10px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.rk-seo-wrap .rk-prose h2 { font-size: 32px; margin-bottom: 12px; }

/* ---------- Страница раскрасок ---------- */
.rk-hub-pages { margin-top: 4px; }
.rk-colorings--hub { padding-top: 24px; }

/* ---------- Каталог ---------- */
.rk-catalog { padding-top: 10px; padding-bottom: 60px; display: flex; flex-direction: column; gap: 24px; }

/* ---------- Главная ---------- */
.rk-home-hero { background: var(--rk-blue); }
.rk-home-hero__inner { max-width: 1240px; margin: 0 auto; padding-top: 40px; padding-bottom: 90px; display: flex; flex-direction: column; gap: 36px; color: #fff; }
.rk-home-hero__title { margin: 0; text-align: center; font-family: var(--rk-head); font-weight: 800; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; }

.rk-slider { position: relative; }
.rk-slider__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 6px 20px; scrollbar-width: none; }
.rk-slider__track::-webkit-scrollbar { display: none; }
.rk-slider__item { flex: none; width: 220px; scroll-snap-align: start; }
.rk-slider__arrow { all: unset; box-sizing: border-box; position: absolute; top: 42%; z-index: 2; cursor: pointer; width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--rk-navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(28, 74, 156, .12), 0 6px 16px rgba(31, 127, 216, .18); transition: background .15s, transform .15s; }
.rk-slider__arrow:hover { background: var(--rk-sky); transform: scale(1.06); }
.rk-slider__arrow:focus-visible { outline: 3px solid var(--rk-yellow); outline-offset: 2px; }
.rk-slider__arrow--prev { left: -8px; }
.rk-slider__arrow--next { right: -8px; }

.rk-genders { padding-top: 40px; padding-bottom: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.rk-gender { text-decoration: none; color: var(--rk-text); border-radius: 32px; padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 20px; align-items: center; min-height: 260px; transition: transform .2s; }
.rk-gender:hover { transform: translateY(-4px); color: var(--rk-text); }
.rk-gender__text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.rk-gender__title { font-family: var(--rk-head); font-weight: 800; font-size: 34px; line-height: 1.05; color: var(--rk-navy); }
.rk-gender .rk-cut { height: 44px; box-shadow: 0 3px 0 rgba(28, 74, 156, .18); }
.rk-gender .rk-cut__label { padding: 0 18px 0 16px; font-size: 15px; }
.rk-gender .rk-cut__arrow { width: 36px; }
.rk-gender__img { display: block; aspect-ratio: 3 / 4; border-radius: 24px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.rk-gender__img img { display: block; width: 100%; height: 100%; object-fit: cover; }

.rk-ages { background: var(--rk-blue); margin-top: 50px; position: relative; }
.rk-ages__wave-top { display: block; width: 100%; height: 50px; margin-top: -49px; }
.rk-ages__inner { max-width: 1240px; margin: 0 auto; padding-top: 20px; padding-bottom: 30px; display: flex; flex-direction: column; gap: 40px; color: #fff; }
.rk-ages__title { margin: 0; text-align: center; font-family: var(--rk-head); font-weight: 800; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; }
.rk-ages__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.rk-age { text-decoration: none; border: 5px solid #fff; border-radius: 36px; padding: 32px 20px; min-height: 150px; display: flex; align-items: center; justify-content: center; text-align: center; box-shadow: 0 12px 30px rgba(0, 40, 100, .28); transition: transform .2s; }
.rk-age:hover { transform: translateY(-6px) rotate(-1deg); }
.rk-age b { font-family: var(--rk-head); font-weight: 800; font-size: 32px; line-height: 1.1; color: var(--rk-navy); }
.rk-wave--flow { margin-top: 0; margin-bottom: -1px; }

.rk-home-colorings { padding-top: 30px; padding-bottom: 30px; }
.rk-home-blog { padding-top: 60px; padding-bottom: 70px; }
.rk-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.rk-section-head .rk-h2 { margin: 0; }
.rk-section-head a { font-weight: 800; text-decoration: none; }

/* ---------- Блог ---------- */
.rk-featured-wrap { padding-top: 10px; }
.rk-featured { text-decoration: none; color: var(--rk-text); background: #fff0b8; border-radius: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); overflow: hidden; }
.rk-featured:hover { color: var(--rk-text); }
.rk-featured__img { display: block; min-height: 320px; background: repeating-linear-gradient(135deg, #ffe58a 0 16px, #ffdb66 16px 32px); }
.rk-featured__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rk-featured__body { padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; line-height: 1.55; }
.rk-featured__label { font-weight: 800; color: #f2509b; }
.rk-featured__title { font-family: var(--rk-head); font-size: 36px; line-height: 1.1; color: var(--rk-navy); }
.rk-featured__more { font-weight: 800; color: var(--rk-blue); }
.rk-blog-list { padding-top: 40px; padding-bottom: 30px; }
.rk-featured-wrap + .rk-blog-list { padding-top: 28px; }

.rk-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 48px 0 40px; }
.rk-pages .page-numbers { min-width: 44px; height: 44px; padding: 0 6px; border-radius: 999px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; background: var(--rk-sky); color: var(--rk-navy); }
.rk-pages .page-numbers.current, .rk-pages a.page-numbers:hover { background: var(--rk-yellow); }
.rk-pages .page-numbers.dots { background: transparent; }

/* ---------- Статья ---------- */
.rk-article { display: flex; flex-direction: column; gap: 22px; }
.rk-article__cover { aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: repeating-linear-gradient(135deg, #dff0ff 0 16px, #cfe8ff 16px 32px); }
.rk-article__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rk-prose--article { font-size: 18px; line-height: 1.75; }
.rk-prose--article p, .rk-prose--article ul, .rk-prose--article ol { margin-bottom: 22px; }
.rk-prose--article h2 { font-size: 32px; margin: 32px 0 14px; }
.rk-prose--article > h2:first-child { margin-top: 0; }
.rk-toc { background: var(--rk-sky); border-radius: 24px; padding: 22px 26px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.4; margin: 0 0 22px; }
.rk-toc__title { font-family: var(--rk-head); font-size: 22px; color: var(--rk-navy); margin-bottom: 4px; }
.rk-toc a { text-decoration: none; color: var(--rk-text); font-weight: 700; padding: 8px 0; border-bottom: 1px dashed rgba(28, 74, 156, .25); display: flex; gap: 12px; align-items: center; }
.rk-toc a:last-child { border-bottom: 0; }
.rk-toc a:hover { color: var(--rk-blue); }
.rk-toc__num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--rk-navy); display: flex; align-items: center; justify-content: center; font: 800 13px var(--rk-body); }
.rk-article .rk-faq { margin-top: 10px; }
.rk-likes { padding-top: 10px; padding-bottom: 60px; }
.rk-related { background: var(--rk-sky); padding: 50px var(--rk-pad-x) 70px; }
.rk-related .rk-h2 { margin-bottom: 24px; }

/* ---------- Текстовая страница ---------- */
.rk-page { max-width: 1100px; margin: 0 auto; padding-top: 10px; padding-bottom: 80px; }
.rk-page--toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.rk-page__nav { position: sticky; top: 100px; background: var(--rk-sky); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.rk-page__nav b { font-family: var(--rk-head); font-size: 19px; color: var(--rk-navy); margin-bottom: 6px; }
.rk-page__nav a { text-decoration: none; font-weight: 700; padding: 6px 10px; border-radius: 12px; }
.rk-page__nav a:hover { background: #fff; }
.rk-prose--page h2 { font-size: 28px; }
.rk-prose--page .rk-faq { margin-top: 28px; }

/* ---------- Поиск ---------- */
.rk-bigsearch { display: flex; align-items: center; background: #fff; border-radius: 18px; padding: 6px 6px 6px 22px; gap: 10px; width: 100%; max-width: 640px; box-shadow: 0 10px 30px rgba(0, 40, 100, .28); color: var(--rk-navy); }
.rk-bigsearch svg { flex: none; }
.rk-bigsearch input { flex: 1; min-width: 0; border: 0; outline: 0; font: 700 18px var(--rk-body); color: var(--rk-navy); background: transparent; height: 48px; }
.rk-bigsearch button { all: unset; cursor: pointer; height: 48px; padding: 0 26px; border-radius: 13px; background: var(--rk-yellow); color: var(--rk-navy); font: 800 16px var(--rk-body); box-shadow: 0 3px 0 #d9a400; }
.rk-bigsearch button:hover { background: var(--rk-yellow-hover); }
.rk-bigsearch button:focus-visible { outline: 3px solid var(--rk-navy); outline-offset: 2px; }
.rk-search-sec { padding-top: 30px; }
.rk-search-sec + .rk-search-sec { padding-top: 56px; }
.rk-search-end { height: 80px; }

.rk-empty { max-width: 760px; margin: 0 auto; padding-top: 20px; padding-bottom: 60px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.rk-empty__icon { width: 96px; height: 96px; border-radius: 50%; background: var(--rk-sky); color: var(--rk-blue); display: flex; align-items: center; justify-content: center; }
.rk-empty__icon svg { stroke-width: 2.6; }
.rk-empty__title { margin: 0; font-family: var(--rk-head); font-weight: 800; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; color: var(--rk-navy); text-wrap: balance; overflow-wrap: anywhere; }
.rk-empty p { margin: 0; font-size: 18px; line-height: 1.6; }
.rk-empty .rk-btn-yellow { margin-top: 6px; }
.rk-recommend { padding-top: 30px; padding-bottom: 80px; }
.rk-recommend .rk-h2 { margin-bottom: 24px; }

/* ---------- 404 ---------- */
.rk-hero--404 .rk-hero__inner { padding-top: 40px; padding-bottom: 100px; align-items: center; text-align: center; gap: 20px; }
.rk-404__digits { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 24px); font-family: var(--rk-head); font-weight: 800; font-size: clamp(110px, 22vw, 240px); line-height: 1; }
.rk-404__title { margin: 0; font-family: var(--rk-head); font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; text-wrap: balance; max-width: 90%; }
.rk-404__text { margin: 0; font-size: 19px; line-height: 1.55; max-width: 520px; }
.rk-404__btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* ---------- Футер ---------- */
.rk-footer { background: var(--rk-blue); color: #fff; position: relative; }
.rk-footer__wave { display: block; width: 100%; height: 50px; background: #fff; }
.rk-footer__grid { max-width: 1240px; margin: 0 auto; padding: 24px 32px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; }
.rk-footer__about { display: flex; flex-direction: column; gap: 16px; }
.rk-footer__about p { margin: 0; line-height: 1.55; max-width: 300px; }
.rk-footer__col { display: flex; flex-direction: column; gap: 10px; }
.rk-footer__title { font-family: var(--rk-head); font-weight: 700; font-size: 19px; color: var(--rk-yellow); }
.rk-footer__col a { color: #fff; text-decoration: none; font-weight: 600; }
.rk-footer__col a:hover { color: #fff; text-decoration: underline; }
.rk-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .25); max-width: 1240px; margin: 0 auto; padding: 18px 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

.rk-to-top { position: fixed; right: 28px; bottom: 28px; width: 52px; height: 52px; border-radius: 12px; border: 0; cursor: pointer; background: var(--rk-blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(28, 74, 156, .25), 0 10px 24px rgba(31, 127, 216, .45); opacity: 0; pointer-events: none; transition: opacity .25s, transform .15s, background .15s; z-index: 60; }
.rk-to-top.is-visible { opacity: 1; pointer-events: auto; }
.rk-to-top:hover { transform: translateY(-3px); background: var(--rk-blue-hover); }
.rk-to-top:focus-visible { outline: 3px solid var(--rk-yellow); outline-offset: 2px; }

/* ---------- Окно просмотра раскраски ---------- */
.rk-lb { position: fixed; inset: 0; z-index: 200; background: rgba(14, 32, 70, .88); display: flex; align-items: center; justify-content: center; padding: 20px; gap: 24px; }
.rk-lb__close { all: unset; position: absolute; top: 16px; right: 20px; cursor: pointer; color: #fff; font: 800 34px var(--rk-body); line-height: 1; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.rk-lb__close:hover, .rk-lb__close:focus-visible { background: rgba(255, 255, 255, .15); }
.rk-lb__arrow { all: unset; flex: none; cursor: pointer; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--rk-navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.rk-lb__arrow:hover, .rk-lb__arrow:focus-visible { background: var(--rk-yellow); }
.rk-lb__body { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.rk-lb__sheet { height: calc(100vh - 170px); max-height: 820px; aspect-ratio: 3 / 4; max-width: calc(100vw - 200px); background: #fff; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rk-lb__sheet img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rk-lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rk-lb__title { display: flex; flex-direction: column; color: #fff; line-height: 1.25; }
.rk-lb__title b { font-size: 20px; }
.rk-lb__title span { font-size: 14px; opacity: .8; }
.rk-lb__btns { display: flex; height: 52px; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.rk-lb__print, .rk-lb__dl { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 0 22px; cursor: pointer; font: 800 16px var(--rk-body); }
.rk-lb__print { background: var(--rk-blue); color: #fff; border-right: 2px solid #fff; }
.rk-lb__print:hover { background: var(--rk-blue-hover); }
.rk-lb__dl { background: var(--rk-yellow); color: var(--rk-navy); }
.rk-lb__dl:hover { background: var(--rk-yellow-hover); color: var(--rk-navy); }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
	.rk-layout, .rk-page--toc { grid-template-columns: minmax(0, 1fr); }
	.rk-aside, .rk-page__nav { position: static; }
	.rk-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.rk-burger { display: flex; }
	.rk-header__tools { margin-left: auto; }
	.rk-nav { display: none; order: 10; flex-basis: 100%; padding-bottom: 8px; }
	.rk-nav.is-open { display: block; }
	.rk-nav__list { flex-direction: column; align-items: stretch; }
	.rk-nav__list a { padding: 12px 16px; font-size: 17px; }
}

@media (max-width: 782px) {
	.admin-bar .rk-header { top: 46px; }
}

@media (max-width: 720px) {
	:root { --rk-pad-x: 16px; }
	.rk-grid-4, .rk-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.rk-slider__arrow { display: none; }
	.rk-header__inner { padding-left: 16px; padding-right: 16px; }
	.rk-footer__grid, .rk-footer__bottom { padding-left: 16px; padding-right: 16px; }
	.rk-lb { gap: 8px; padding: 12px; }
	.rk-lb__sheet { max-width: calc(100vw - 130px); }
	.rk-lb__arrow { width: 36px; height: 36px; }
	.rk-featured__body { padding: 28px 24px; }
	.rk-featured__title { font-size: 28px; }
	.rk-faq__a { padding-left: 20px; }
	.rk-to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 560px) {
	.rk-gender { grid-template-columns: minmax(0, 1fr); }
	.rk-genders { grid-template-columns: minmax(0, 1fr); }
	.rk-h2--lg { font-size: 30px; }
}

@media (max-width: 480px) {
	.rk-logo__text { font-size: 22px; }
	.rk-pcard__title { font-size: 17px; }
}

@media (max-height: 520px) and (orientation: landscape) {
	.rk-header, .admin-bar .rk-header { position: static; }
	.rk-lb__sheet { height: calc(100vh - 96px); max-width: calc(100vw - 150px); }
	.rk-lb__title { display: none; }
	.rk-lb__btns { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.rk-header, .rk-footer, .rk-aside, .rk-actions, .rk-to-top, .rk-lb { display: none !important; }
}

/* Bounded branding, list pagination and a dialog that fits the viewport. */
.rk-logo { min-width: 0; max-width: 100%; flex: 0 1 auto; }
.rk-logo__mark { flex: none; }
.rk-logo__text { min-width: 0; overflow-wrap: anywhere; }
.rk-logo__img { display: block; width: auto; height: auto; max-width: 100%; max-height: 64px; object-fit: contain; background: transparent; border: 0; box-shadow: none; }
.rk-logo--image { width: 320px; }
.rk-logo--image .rk-logo__img { width: 100%; object-position: left center; }
.rk-header__inner > .rk-logo { max-width: calc(100% - 112px); }
.rk-footer__about { min-width: 0; }
.rk-burger:not(.is-open) .rk-burger__close { display: none; }
.rk-list-pages { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin: 28px 16px; }
.rk-list-pages a { padding: 10px 16px; border-radius: 12px; background: var(--rk-sky); font-weight: 800; }
.rk-prose { overflow-wrap: anywhere; }
.rk-prose iframe, .rk-prose video { max-width: 100%; }
.rk-lb { display: grid; grid-template-columns: 52px minmax(0, 680px) 52px; align-content: center; justify-content: center; padding: 56px 20px 20px; overflow: auto; }
.rk-lb__body { width: 100%; min-width: 0; max-width: 680px; }
.rk-lb__sheet { width: 100%; height: min(65vh, 650px); max-width: 100%; aspect-ratio: auto; }
.rk-lb__bar, .rk-lb__title { min-width: 0; overflow-wrap: anywhere; }
.rk-lb__btns { height: auto; min-height: 48px; max-width: 100%; }
.rk-lb__print, .rk-lb__dl { min-width: 0; padding: 10px 14px; justify-content: center; text-align: center; }
.rk-lb__btns svg { flex: none; }
@media (max-width: 720px) {
 .rk-lb { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 10px; padding: 56px 12px 12px; }
 .rk-lb__body { grid-column: 1 / -1; grid-row: 1; }
 .rk-lb [data-lb="prev"] { grid-column: 1; grid-row: 2; }
 .rk-lb [data-lb="next"] { grid-column: 3; grid-row: 2; }
 .rk-lb__sheet { height: min(60vh, 600px); max-width: 100%; }
 .rk-lb__bar { flex-direction: column; align-items: stretch; gap: 10px; }
 .rk-lb__btns { width: 100%; }
 .rk-lb__btns { overflow-wrap: normal; }
 .rk-lb__btns svg { width: 20px; height: 20px; }
 .rk-lb__print, .rk-lb__dl { flex: 1; font-size: 14px; gap: 4px; padding: 8px 6px; }
}
@media (max-height: 520px) and (orientation: landscape) {
 .rk-lb { padding-top: 46px; padding-bottom: 8px; gap: 8px; }
 .rk-lb__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .7fr); gap: 12px; align-items: center; }
 .rk-lb__sheet { height: calc(100vh - 120px); max-width: 100%; }
 .rk-lb__title { display: none; }
 .rk-lb__btns { height: auto; flex-direction: column; }
 .rk-lb__print, .rk-lb__dl { min-height: 44px; border-right: 0; }
}
@media print { .rk-lb { display: none !important; } }
