/* ==========================================================================
   Малюйка — основні стилі. Світлий теплий дизайн, кольори з ТЗ.
   Розмальовки чорно-білі, тож колір живе в інтерфейсі: категорії, кнопки, бейджі.
   ========================================================================== */

/* Шрифти локально: Nunito (текст), Comfortaa (заголовки), кирилиця + латиниця. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/nunito-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/nunito-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/nunito-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/nunito-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/nunito-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/nunito-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/comfortaa-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/comfortaa-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
	--bg: #FFF9F0;
	--surface: #FFFFFF;
	--coral: #FF6B6B;
	--sun: #FFD43B;
	--mint: #38D9A9;
	--sky: #4DABF7;
	--lilac: #B197FC;
	--orange: #FFA94D;
	--ink: #2B2D42;
	--ink-soft: #5C5F77;
	--line: #F0E6D6;
	--radius: 20px;
	--radius-sm: 12px;
	--radius-lg: 24px;
	--shadow: 0 6px 20px rgba(43, 45, 66, .08);
	--shadow-hover: 0 14px 30px rgba(43, 45, 66, .14);
	--font-head: "Comfortaa", "Nunito", system-ui, sans-serif;
	--font-text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	--gutter: 16px;
	--ctx: var(--coral);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-text); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: rgba(43, 45, 66, .35); text-underline-offset: 3px; }
a:hover { color: #C92A2A; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); }
h2 { font-size: clamp(22px, 2.8vw, 30px); }
h3 { font-size: 18px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.hp { position: absolute; left: -9999px; }

/* --- Кнопки -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 2px solid transparent; border-radius: 999px; font: 800 16px/1.2 var(--font-text); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
/* Кораловий з темним текстом — контраст 4.6:1 (WCAG AA). */
.btn--primary { background: var(--coral); color: var(--ink); }
.btn--primary:hover { background: #FF5A5A; color: var(--ink); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--small { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.btn--big { min-height: 56px; font-size: 17px; width: 100%; }
.btn--support { background: var(--surface); border-color: var(--line); color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }

/* --- Чіпси і бейджі ------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0; padding: 0; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 2px solid var(--line); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--cat, var(--coral)); color: var(--ink); }
.chip--active { background: var(--sun); border-color: var(--sun); font: inherit; font-weight: 700; font-size: 14px; }
.chips--landings .chip { background: color-mix(in srgb, var(--cat, var(--sun)) 18%, #fff); border-color: transparent; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; line-height: 1.4; }
.badge--age { background: var(--sun); color: var(--ink); }
.badge--level { background: #EDF2FF; color: var(--ink); }
.badge--prostyi { background: #D3F9E8; }
.badge--serednii { background: #FFE8CC; }
.badge--skladnyi { background: #F3D9FA; }

/* --- Шапка --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 249, 240, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--ink); }
.logo__text { font: 700 24px/1 var(--font-head); }
.mascot { flex: none; }
.nav-toggle, .search-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: 12px; margin-left: 12px; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu > li > a, .dropdown > summary { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--ink); cursor: pointer; list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.menu > li > a:hover, .dropdown > summary:hover, .dropdown[open] > summary { background: var(--surface); }
.dropdown { position: relative; }
.dropdown[open] .icon--chevron { transform: rotate(180deg); }
.dropdown__panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 12px; z-index: 40; }
.dropdown__panel ul { list-style: none; margin: 0; padding: 0; }
.dropdown__panel a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.dropdown__panel a:hover { background: var(--bg); }
.dropdown__panel--cats { width: min(560px, 90vw); }
.cat-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.cat-menu a { display: flex; align-items: center; gap: 10px; }
.cat-menu__icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--cat); color: var(--ink); }
.dropdown__all { margin-top: 6px; font-weight: 800 !important; color: #C92A2A; }
.site-header__search { margin-left: auto; width: 280px; }

/* --- Пошук --------------------------------------------------------------- */
.searchbox { position: relative; display: flex; align-items: center; }
.searchbox input { width: 100%; min-height: 48px; padding: 8px 46px 8px 18px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; color: var(--ink); }
.searchbox input:focus { border-color: var(--sky); outline: none; }
.searchbox button { position: absolute; right: 3px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--sun); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.searchbox--big input { min-height: 58px; font-size: 18px; padding-left: 24px; box-shadow: var(--shadow); border-color: transparent; }
.searchbox--big button { width: 50px; height: 50px; right: 4px; background: var(--coral); }
.searchbox__suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; list-style: none; margin: 0; padding: 6px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); z-index: 50; max-height: 70vh; overflow: auto; }
.searchbox__suggest a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; text-decoration: none; }
.searchbox__suggest a:hover, .searchbox__suggest [aria-selected="true"] a { background: var(--bg); }
.searchbox__suggest img { width: 40px; height: 52px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--line); }
.searchbox__suggest small { color: var(--ink-soft); margin-left: auto; }

/* --- Секції і декор ------------------------------------------------------- */
.section { padding-top: 40px; padding-bottom: 40px; }
.section--compact { padding-top: 20px; padding-bottom: 20px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section__more { display: inline-block; padding: 10px 0; font-weight: 800; }
.section__title--small { font-size: 20px; }
.section--tinted { background: #FFF2DE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120'%3E%3Cpath d='M30 30l3 7 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z' fill='%23FFD43B' opacity='.5'/%3E%3Ccircle cx='120' cy='80' r='5' fill='%23B197FC' opacity='.35'/%3E%3Cpath d='M100 20c0 6-5 10-5 10s-5-4-5-10a5 5 0 0 1 10 0z' fill='%234DABF7' opacity='.3'/%3E%3C/svg%3E"); border-radius: var(--radius-lg); margin: 0 var(--gutter); }
.section--season { background: linear-gradient(135deg, #E7F5FF, #FFF0F6); border-radius: var(--radius-lg); margin: 0 var(--gutter); }
.section--text { max-width: 900px; }
.wave { height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20c100-20 200 20 300 0s200-20 300 0 200 20 300 0 200-20 300 0v20H0z' fill='%232B2D42'/%3E%3C/svg%3E") center/100% 100% no-repeat; }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: 36px 0 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300'%3E%3Cpath d='M60 60c0-14 22-14 26-4 10-6 24 2 20 14 10 4 6 18-6 18H62c-12 0-14-20-2-28z' fill='%23fff' opacity='.9'/%3E%3Cpath d='M330 40l4 9 10 1-7 7 2 10-9-5-9 5 2-10-7-7 10-1z' fill='%23FFD43B'/%3E%3Ccircle cx='300' cy='230' r='7' fill='%23FF6B6B' opacity='.35'/%3E%3C/svg%3E") right top/400px no-repeat; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.hero__lead { font-size: 19px; color: var(--ink-soft); max-width: 560px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.benefits { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; font-weight: 600; }
.benefits li { display: flex; align-items: center; gap: 8px; }
.benefits__icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); }
.hero__collage { position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: center; width: 100%; }
.hero__sheet { position: absolute; width: 52%; height: auto; aspect-ratio: 210 / 297; object-fit: contain; background: #fff; border-radius: 14px; box-shadow: var(--shadow-hover); padding: 6px; }
.hero__sheet--1 { left: 4%; top: 4%; transform: rotate(-6deg); z-index: 2; }
.hero__sheet--2 { right: 2%; top: 0; transform: rotate(5deg); }
.hero__sheet--3 { left: 14%; bottom: 0; transform: rotate(3deg); }
.hero__sheet--4 { right: 8%; bottom: 4%; transform: rotate(-4deg); z-index: 3; }

/* --- Плитки категорій і віку ---------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 20px 0; }
.cat-grid--small { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--cat); color: var(--cat-ink, var(--ink)); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; min-height: 140px; }
.cat-tile:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow-hover); color: var(--cat-ink, var(--ink)); }
.cat-tile__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .55); margin-bottom: auto; }
.cat-tile__icon svg { width: 28px; height: 28px; }
.cat-tile__name { font: 700 19px/1.2 var(--font-head); }
.cat-tile__count { font-size: 14px; font-weight: 600; opacity: .85; }
.cat-grid--small .cat-tile { min-height: 110px; padding: 14px; }
.age-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.age-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 140px; border-radius: var(--radius); background: var(--surface); text-decoration: none; box-shadow: var(--shadow); border: 3px solid transparent; transition: transform .2s ease; }
.age-tile:hover { transform: translateY(-4px) rotate(1deg); color: var(--ink); }
.age-tile__num { font: 700 40px/1 var(--font-head); }
.age-tile__label { font-weight: 800; color: var(--ink-soft); }
.age-tile--1 { border-color: var(--mint); } .age-tile--2 { border-color: var(--sky); } .age-tile--3 { border-color: var(--orange); } .age-tile--4 { border-color: var(--lilac); }

/* --- Сітка карток --------------------------------------------------------- */
.grid--cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 20px 0; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); border-top: 5px solid var(--cat, var(--sun)); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow-hover); }
.card__img { display: block; aspect-ratio: 210 / 297; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__img { position: relative; }
.card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; }
.card__badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 4px; min-height: 24px; }
.card__title { font: 800 16px/1.3 var(--font-text); margin: 0 0 10px; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card__actions { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }

/* Перелінковка: категорія в картці лежить над «розтягнутим» посиланням картки. */
.card__cat { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--ink-soft); text-decoration: none; }
.card__cat::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cat, var(--sun)); flex: none; }
.card__cat:hover { color: var(--ink); text-decoration: underline; }
.topics { border-top: 1px solid var(--line); margin-top: 24px; }
.topics__group { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; align-items: start; padding: 6px 0; }
.topics__label { padding-top: 8px; font-weight: 800; color: var(--ink-soft); font-size: 15px; }
.topics .chips { margin: 0; }
.chip--cat { border-color: color-mix(in srgb, var(--cat) 55%, #fff); background: color-mix(in srgb, var(--cat) 14%, #fff); }
.article__lead { font-size: 19px; color: var(--ink-soft); margin-bottom: 20px; }

/* --- Шапка сторінки каталогу ---------------------------------------------- */
.page-head { padding: 20px 0 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--cat, var(--sun)) 22%, var(--bg)) 0%, var(--bg) 100%); }
.page-head__title { display: flex; align-items: center; gap: 14px; }
.page-head__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--cat); color: var(--cat-ink, var(--ink)); flex: none; }
.page-head__icon svg { width: 32px; height: 32px; }
.page-head__lead { max-width: 820px; color: var(--ink-soft); font-size: 18px; }
.page-head__lead p { margin: 0 0 .5em; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; font-weight: 600; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--ctx); font-weight: 800; }
.breadcrumbs a { text-decoration: none; color: var(--ink-soft); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* --- Каталог і фільтри ---------------------------------------------------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; margin-top: 16px; }
.catalog:not(:has(.filters)) { grid-template-columns: 1fr; }
.filters { position: sticky; top: 84px; background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); max-height: calc(100vh - 100px); overflow: auto; }
.filters__head { display: flex; align-items: center; justify-content: space-between; }
.filters__close { display: none; }
.filters__group { border: 0; padding: 0; margin: 14px 0 0; }
.filters__group legend { font-weight: 800; margin-bottom: 6px; }
.filters__values { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--line); font-size: 14px; font-weight: 600; background: var(--surface); }
.chip-check small { color: var(--ink-soft); font-size: 12px; }
.chip-check input:checked + span { background: var(--sun); border-color: var(--sun); }
.chip-check input:focus-visible + span { outline: 3px solid var(--sky); }
.chip-check.is-disabled span { opacity: .4; }
.filters__apply { display: none; }
.catalog__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.catalog__filters-btn { display: none; }
.catalog__count { font-weight: 800; }
.catalog__sort { margin-left: auto; font-weight: 600; }
.catalog__sort select { min-height: 40px; border-radius: 999px; border: 2px solid var(--line); padding: 4px 12px; font: inherit; background: var(--surface); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.catalog.is-loading [data-grid] { opacity: .5; transition: opacity .2s; }
.catalog__more { text-align: center; margin: 8px 0; }
.empty { padding: 24px; background: var(--surface); border-radius: var(--radius); text-align: center; }
.pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 16px 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; background: var(--surface); font-weight: 800; text-decoration: none; border: 2px solid var(--line); }
.pagination [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-links { display: flex; justify-content: center; gap: 6px; margin: 20px 0; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 12px; background: var(--surface); text-decoration: none; font-weight: 800; }
.nav-links .current { background: var(--ink); color: #fff; }

/* --- SEO-текст і FAQ ------------------------------------------------------ */
.seo-text { margin: 32px 0; padding: 24px; background: var(--surface); border-radius: var(--radius); }
.seo-text.is-collapsed .seo-text__body > :not(:first-child) { display: none; }
.faq { margin: 32px 0; }
.faq__item { background: var(--surface); border-radius: var(--radius-sm); margin-bottom: 10px; box-shadow: var(--shadow); }
.faq__item summary { padding: 16px 48px 16px 20px; font-weight: 800; cursor: pointer; list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--coral); }
.faq__item[open] summary::after { content: "–"; }
.faq__answer { padding: 0 20px 16px; }

/* --- Як це працює і підтримка --------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; counter-reset: step; }
.steps__item { position: relative; background: var(--surface); border-radius: var(--radius); padding: 56px 20px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.steps__item::before { counter-increment: step; content: counter(step); position: absolute; top: 14px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font: 700 18px/1 var(--font-head); }
.steps__item span { color: var(--ink-soft); }
.support-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px 28px; border-radius: var(--radius-lg); background: linear-gradient(120deg, #FFE3E3, #FFF3BF); margin: 32px 0; }
.support-banner h2 { margin: 0 0 4px; }
.support-banner p { margin: 0; color: var(--ink-soft); }
.support-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.support-mini { margin: 12px 0; padding: 16px; border-radius: var(--radius); background: linear-gradient(120deg, #FFE3E3, #FFF3BF); animation: pop .25s ease; }
.support-mini p { margin: 0 0 8px; font-weight: 800; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* --- Сторінка розмальовки ------------------------------------------------- */
.coloring { padding: 20px 0; }
.coloring__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.coloring__preview { margin: 0; position: sticky; top: 84px; }
.coloring__zoom { position: relative; display: block; width: 100%; padding: 14px; border: 0; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); cursor: zoom-in; border-top: 6px solid var(--cat); }
.coloring__zoom img { width: 100%; height: auto; display: block; }
.coloring__zoom-icon { position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); }
.coloring__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 210 / 297; padding: 20px; text-align: center; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); border-top: 6px solid var(--cat); color: var(--ink-soft); font-weight: 700; }
.coloring__editor-note { max-width: 360px; margin: 8px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: #FFF0F0; color: #8a1c1c; font-size: 14px; font-weight: 600; }
.coloring__editor-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 0; }
.coloring__badges { display: flex; gap: 6px; margin-bottom: 18px; }
.coloring__actions { display: grid; gap: 10px; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 22px 0; padding: 16px; background: var(--surface); border-radius: var(--radius); }
.specs div { display: flex; flex-direction: column; }
.specs dt { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.specs dd { margin: 0; font-weight: 800; }
.coloring__desc { font-size: 17px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.share__label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.share__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font: 700 14px var(--font-text); text-decoration: none; color: var(--ink); cursor: pointer; }
.share__btn--viber:hover { border-color: #7360F2; } .share__btn--telegram:hover { border-color: #229ED9; } .share__btn--facebook:hover { border-color: #1877F2; } .share__btn--pinterest:hover { border-color: #E60023; }

/* --- Лайтбокс ------------------------------------------------------------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(43, 45, 66, .8); }
.lightbox img { display: block; max-width: 96vw; max-height: 92vh; background: #fff; border-radius: 12px; }
.lightbox__close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sun); cursor: pointer; display: grid; place-items: center; }

/* --- Блог і сторінки ------------------------------------------------------ */
.grid--posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.post-card:hover { transform: translateY(-4px); }
.post-card__img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card__body { padding: 16px 18px 20px; }
.post-card__title { font-size: 20px; }
.post-card__title a { text-decoration: none; }
.post-card time { font-size: 14px; color: var(--ink-soft); }
.article { max-width: 820px; padding-top: 20px; padding-bottom: 20px; }
.article__meta { color: var(--ink-soft); }
.article__cover { margin: 0 0 24px; }
.article__cover img { border-radius: var(--radius); }
.entry { font-size: 18px; }
.entry img { border-radius: var(--radius-sm); }
.entry .collection { margin: 32px 0; }
.collection__title { font-size: 22px; }
.collection__more { text-align: center; }

/* --- Форма запиту, 404 ---------------------------------------------------- */
.card-box { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 28px 0; }
.request-form { display: grid; gap: 12px; max-width: 640px; }
.request-form label { display: grid; gap: 4px; font-weight: 700; }
.request-form input[type=text], .request-form input[type=email] { min-height: 46px; padding: 8px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.request-form__msg { font-weight: 800; color: #2B8A3E; margin: 0; }
.not-found { text-align: center; }
.not-found .searchbox { max-width: 560px; margin: 20px auto; }
.not-found__mascot { animation: wobble 3s ease-in-out infinite; display: inline-block; }
@keyframes wobble { 50% { transform: rotate(6deg); } }

/* --- Реклама (резерв місця без CLS) --------------------------------------- */
.ad-slot { margin: 24px 0; border-radius: var(--radius-sm); }
.ad-slot[aria-hidden="true"] { background: transparent; }

/* --- Підвал --------------------------------------------------------------- */
.site-footer { margin-top: 40px; background: var(--ink); color: #E9E9F2; }
.site-footer .wave { margin-top: -39px; background-color: var(--bg); }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 24px; padding-bottom: 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer__title { font-size: 18px; color: var(--sun); }
.site-footer .logo__text { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; padding-bottom: 24px; font-size: 14px; opacity: .8; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1100px) {
	.grid--cards { grid-template-columns: repeat(3, 1fr); }
	.cat-grid { grid-template-columns: repeat(4, 1fr); }
	.site-header__search { width: 220px; }
}

@media (max-width: 900px) {
	/* Шапка: логотип + лупа + меню; рядок пошуку згортається при прокрутці.
	   backdrop-filter прибрано: він робить шапку контейнером для position:fixed і обрізає меню. */
	.site-header { backdrop-filter: none; background: var(--bg); }
	.site-header__inner { flex-wrap: wrap; gap: 4px 8px; min-height: 60px; }
	.logo .mascot { width: 34px; height: 34px; }
	.search-toggle, .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
	.search-toggle { margin-left: auto; }
	.nav-toggle[aria-expanded="true"], .search-toggle[aria-expanded="true"] { background: var(--surface); }
	.site-header__search { order: 3; width: 100%; margin: 0 0 10px; }
	.site-header.is-compact:not(.is-search-open) .site-header__search { display: none; }
	/* Де на сторінці вже є великий пошук — рядок у шапці зайвий, поки його не відкрили лупою. */
	.home .site-header:not(.is-search-open) .site-header__search,
	.search .site-header:not(.is-search-open) .site-header__search,
	.error404 .site-header:not(.is-search-open) .site-header__search { display: none; }
	.site-nav { display: none; position: fixed; top: var(--hdr, 60px); left: 0; right: 0; bottom: 0; z-index: 35; margin: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 12px var(--gutter) 32px; overflow: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
	.site-nav.is-open { display: flex; }
	.menu { flex-direction: column; align-items: stretch; gap: 0; }
	.menu > li { border-bottom: 1px solid var(--line); }
	.menu > li > a, .dropdown > summary { display: flex; justify-content: space-between; min-height: 52px; padding: 12px 4px; font-size: 18px; border-radius: 0; }
	.menu > li > a:hover, .dropdown > summary:hover, .dropdown[open] > summary { background: transparent; }
	.dropdown__panel { position: static; box-shadow: none; width: 100% !important; padding: 0 0 12px; background: transparent; }
	.cat-menu { grid-template-columns: 1fr 1fr; gap: 6px; }
	.cat-menu a, .dropdown__panel a { min-height: 48px; display: flex; align-items: center; background: var(--surface); border-radius: var(--radius-sm); }
	.dropdown__panel ul:not(.cat-menu) { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
	.site-nav__support { align-self: stretch; margin-top: 20px; min-height: 52px; font-size: 17px; }

	/* Головна: спершу текст і пошук, колаж — компактно після них. */
	.hero { padding: 20px 0 8px; background-size: 260px; }
	.hero__inner { grid-template-columns: 1fr; gap: 16px; }
	.hero__lead { font-size: 17px; }
	.hero__collage { order: 2; max-width: 340px; aspect-ratio: 5 / 3; }
	.hero__sheet { width: 40%; }
	.hero__sheet--1 { left: 6%; top: 4%; }
	.hero__sheet--2 { right: 30%; top: 0; }
	.hero__sheet--3 { display: none; }
	.hero__sheet--4 { right: 4%; bottom: auto; top: 6%; }
	.hero__buttons .btn { flex: 1 1 140px; }
	.benefits { flex-direction: column; gap: 8px; }

	/* Чіпси підкатегорій і підбірок — одним рядком з горизонтальною прокруткою. */
	.page-head .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.page-head .chips::-webkit-scrollbar { display: none; }
	.page-head .chip { white-space: nowrap; min-height: 44px; }
	.page-head__icon { width: 48px; height: 48px; }

	.coloring__layout { grid-template-columns: 1fr; gap: 20px; }
	.coloring__preview { position: static; }
	.coloring__zoom { padding: 10px; }

	/* Каталог: фільтри — панель знизу екрана з кнопкою «Показати N». */
	.catalog { grid-template-columns: 1fr; margin-top: 8px; }
	.catalog__bar { gap: 8px; }
	.catalog__filters-btn { display: inline-flex; min-height: 44px; }
	.catalog__sort { margin-left: auto; }
	.catalog__sort-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.catalog__sort select { min-height: 44px; }
	.catalog__count { order: 3; flex-basis: 100%; font-size: 15px; }
	.filters { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; max-height: 85vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: translateY(105%); transition: transform .25s ease, visibility .25s; padding: 8px 16px 0; visibility: hidden; }
	.filters::before { content: ""; display: block; width: 44px; height: 5px; margin: 0 auto 8px; border-radius: 3px; background: var(--line); }
	.filters.is-open { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgba(43, 45, 66, .45); }
	.filters__close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; }
	.chip-check { display: inline-flex; min-height: 44px; }
	.chip-check span { min-height: 44px; padding: 6px 14px; font-size: 15px; }
	.filters__apply { display: block; position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); margin-top: 12px; }
	.filters__apply .btn { width: 100%; }
	.active-filters .chip { min-height: 40px; }

	.steps, .grid--posts { grid-template-columns: 1fr; }
	.steps__item { padding: 18px 18px 18px 64px; }
	.steps__item::before { top: 18px; left: 18px; }
	.support-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 20px; }
	.support-banner .btn { width: 100%; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
	.site-footer li a { display: inline-block; padding: 6px 0; }
	.section--tinted, .section--season { margin: 0; border-radius: 0; }
}

@media (max-width: 600px) {
	.topics__group { grid-template-columns: 1fr; gap: 6px; }
	.topics__label { padding-top: 0; }
	.card__cat { font-size: 12px; min-height: 32px; }
	:root { --gutter: 14px; --radius: 18px; }
	body { font-size: 16px; }
	h1 { font-size: 27px; }
	.grid--cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.card { padding: 8px; border-top-width: 4px; }
	.card:hover { transform: none; }
	.card__badges { gap: 3px; margin-top: 8px; }
	.card__badges .badge { font-size: 11px; padding: 2px 7px; }
	.card__title { font-size: 15px; margin-bottom: 8px; }
	.card__actions { gap: 6px; }
	.card__actions .btn { flex: 1; min-height: 44px; padding: 6px 8px; font-size: 14px; }
	.card__actions .icon-btn { flex: none; }
	.cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.cat-tile { min-height: 112px; padding: 14px; }
	.cat-tile__icon { width: 42px; height: 42px; }
	.cat-tile__name { font-size: 17px; }
	.age-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.age-tile { min-height: 110px; }
	.age-tile__num { font-size: 34px; }
	.specs { grid-template-columns: 1fr 1fr; padding: 14px; }
	.section { padding-top: 28px; padding-bottom: 28px; }
	.section__head { align-items: center; }
	.logo__text { font-size: 21px; }
	.seo-text { padding: 18px; }
	.faq__item summary { padding: 14px 44px 14px 16px; }
	.share__label { flex-basis: 100%; }
	.share__btn { flex: 1 1 auto; justify-content: center; }
	.searchbox--big input { min-height: 54px; font-size: 16px; padding-left: 18px; }
	.searchbox--big button { width: 46px; height: 46px; }
	.site-footer__inner { gap: 20px; }
	.grid--posts { gap: 16px; }
}

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

@media print {
	.site-header, .site-footer, .filters, .coloring__actions, .share, .ad-slot, .support-mini { display: none !important; }
}
