/* Nevdoma — v2.0 «Пастельний світанок». Опис токенів і правила — DESIGN.md. Графіка краєвидів — tools/scene.mjs. */

/* ============ 1. Токени ============ */
:root {
  /* текст і основні */
  --ink: #1D3A40; --stone: #53646A; --teal: #1F4E57; --teal-hover: #163C44;
  --night: #173E46; --night-2: #245760; --on-night-2: #BFD3D4;
  --ember: #A14B22; --sunbeam: #F7DE9C;
  /* поверхні */
  --cream: #F8F2E7; --card: #FFFBF5; --sand: #F1E7D6; --line: #E6DACA;
  --archive: #FBEBD3; --archive-ink: #7A5320;
  /* пастель краєвиду — лише декор, не текст */
  --lavender: #C8BFE1; --coral: #EBB1A6; --peach: #F3CBA8; --sage: #BDD3B3; --sky: #9CC3C8; --orange: #E8924A; --gold: #D2A45B;
  --sky-grad: linear-gradient(172deg, #F5C6A6 0%, #F8D9BC 30%, #FAE8D2 58%, var(--cream) 100%);
  /* форма */
  --r-card: 22px; --r-ctl: 14px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgb(31 78 87 / .06), 0 8px 24px rgb(120 84 52 / .09);
  --sh-2: 0 2px 4px rgb(31 78 87 / .06), 0 22px 48px rgb(120 84 52 / .18);
  --f-head: "Lora", Georgia, "Times New Roman", serif;
  --f-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px; --gutter: 24px; --sec: 96px;
}

/* ============ 2. База ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font: 400 17px/1.55 var(--f-body); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; color: inherit; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 28px; height: 28px; stroke-width: 1.8; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }

/* ============ 3. Кнопки, бейджі ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: var(--r-ctl); font-weight: 700; font-size: 16px; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn-cta { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgb(31 78 87 / .25); }
.btn-cta:hover { background: var(--teal-hover); }
.btn-sun { background: var(--sunbeam); color: var(--ink); box-shadow: 0 6px 16px rgb(186 140 60 / .25); }
.btn-sun:hover { background: #F2D07E; }
.btn-line { border-color: var(--teal); color: var(--teal); background: rgb(255 251 245 / .6); }
.btn-line:hover { background: var(--teal); color: #fff; }
.btn-ghost-inv { border-color: rgb(255 255 255 / .75); color: #fff; }
.btn-ghost-inv:hover { background: #fff; color: var(--night); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; line-height: 1; padding: 6px 11px; border-radius: var(--r-pill); background: var(--sand); color: var(--teal); }
.badge--k { background: var(--teal); color: #fff; }
.badge--theme { background: transparent; color: var(--stone); box-shadow: inset 0 0 0 1px var(--line); }
.badge--archive { background: var(--archive); color: var(--archive-ink); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--stone); }
.meta > span { display: inline-flex; align-items: center; gap: 6px; }
/* кікер — курсив із золотою рискою, як «— Learn · Practice · Grow —» */
.kicker { display: inline-flex; align-items: center; gap: 10px; font: italic 500 17px/1.2 var(--f-head); color: var(--ember); }
.kicker::before { content: ""; width: 28px; height: 1.5px; background: var(--gold); flex: none; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--teal); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* заголовок з іконкою */
.h-ico { display: flex; align-items: center; gap: 14px; }
.h-ico .ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--card); color: var(--teal); box-shadow: var(--sh-1); flex: none; }
.h-ico .ico .i { width: 24px; height: 24px; }
/* паперові іконки (content/site/icons) — без білої підкладки, більші */
.pi { display: block; flex: none; object-fit: contain; }
.h-ico .ico--paper { width: 60px; height: 60px; background: none; box-shadow: none; border-radius: 0; }
.h-ico .ico--paper .pi { width: 60px; height: 60px; }
.stat > .pi { width: 66px; height: 66px; margin: -10px 0 0 -10px; } /* у файлах ≈ 15 % поля навколо фігури */
.theme > .pi { width: 72px; height: 72px; margin: -12px 0 2px -12px; }

/* ============ 4. Підписні прийоми: краєвид, край, гірки ============ */
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.scene > rect { fill: none; } /* небо малює фон секції (--sky-grad) */
.scene .sun { fill: #FBE4A6; }
.scene .cloud { fill: #FFFDF8; opacity: .8; }
.ly-lav path { fill: var(--lavender); } .ly-coral path { fill: var(--coral); } .ly-peach path { fill: var(--peach); }
.ly-sage path { fill: var(--sage); } .ly-teal path { fill: #93BDB7; } .ly-front path { fill: var(--cream); } .ly-night path { fill: var(--night); }
.ly path.lit, .mini .lit { fill: #fff; opacity: .2; }
.pine-1 { fill: #6E9C8F; } .pine-2 { fill: #3C6E6A; }
/* висота росте з шириною: на екранах ширших за 1440 px вершини не зрізаються */
.edge { display: block; aspect-ratio: 1440 / 120; min-height: 72px; background: var(--edge-bg, var(--cream)); }
.edge svg { width: 100%; height: 100%; }
/* растрова смуга футера (content/site/footer.png): небо прозоре, низ ≈ --night */
.edge--art { aspect-ratio: auto; min-height: 0; }
.edge--art img { width: 100%; height: auto; min-height: 84px; object-fit: cover; object-position: 50% 100%; }
.mini { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; pointer-events: none; z-index: 0; }
.stat > :not(.mini), .promo > :not(.mini), .about-stats div > :not(.mini), .facts > :not(.mini), .theme > :not(.mini) { position: relative; z-index: 1; }
.mini-art { display: none; background: center bottom / cover no-repeat; } /* вмикається для тонів із файлом (правило дописує build.mjs) */
.mini .m1 { fill: var(--m1); } .mini .m2 { fill: var(--m2); } .mini .m3 { fill: var(--m3); }
.tone-lav { --m1: #DDD6EE; --m2: #C6BCE2; --m3: #AB9FD2; --tone: #8F80C2; }
.tone-peach { --m1: #F8DFC9; --m2: #F2C4A0; --m3: #E9A97B; --tone: #E0915A; }
.tone-sage { --m1: #DAE7D3; --m2: #BCD3B2; --m3: #95B88D; --tone: #6E9C6A; }
.tone-sky { --m1: #D3E6E7; --m2: #ABCFD2; --m3: #80B3B8; --tone: #4F9198; }
.tone-coral { --m1: #F5D4CD; --m2: #ECB3A9; --m3: #DE9286; --tone: #CF7466; }
.tone-sun { --m1: #FAEDCA; --m2: #F6DB9A; --m3: #EEC66F; --tone: #D9A43C; }
/* декоративна топографія на темному (залишок v1, приглушена) */
.topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.topo path { fill: none; stroke: var(--sunbeam); stroke-width: 1; opacity: .07; }
.alt { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1 var(--f-body); color: var(--ink); padding: 8px 13px; border-radius: var(--r-pill); background: rgb(255 251 245 / .88); box-shadow: var(--sh-1); backdrop-filter: blur(6px); }
.alt b { font-family: var(--f-head); font-size: 17px; }

/* ============ 5. Шапка ============ */
.hdr { position: sticky; top: 0; z-index: 40; background: rgb(248 242 231 / .9); backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 36px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 25px/1 var(--f-head); letter-spacing: -.01em; color: var(--teal); }
.logo svg { width: 53px; height: 26px; } /* знак 82 × 40 (варіант А) */
.logo--inv { color: #fff; }
.nav { display: flex; align-items: center; gap: 6px; margin-right: auto; }
.nav > a, .nav > button { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: var(--r-ctl); font-weight: 600; font-size: 16px; color: var(--ink); transition: background-color .15s, box-shadow .15s; }
.nav > a > .i:first-child, .nav > button > .i:first-child { color: var(--teal); }
.nav > a:hover, .nav > button:hover { background: var(--card); box-shadow: var(--sh-1); }
.nav [aria-current="page"], .nav .is-current { background: var(--sunbeam); box-shadow: 0 6px 14px rgb(186 140 60 / .22); }
.nav [aria-expanded="true"] { background: var(--card); box-shadow: var(--sh-1); }
.nav [aria-expanded="true"] .i:last-child { transform: rotate(180deg); }
.hdr-act { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.hdr-search { display: inline-flex; align-items: center; gap: 10px; height: 46px; min-width: 240px; padding: 0 16px; border-radius: var(--r-ctl); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--stone); font-size: 15px; }
.hdr-search:hover { box-shadow: inset 0 0 0 1px var(--teal); }
.hdr-search .i { color: var(--teal); }
.ibtn { width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: var(--r-ctl); color: var(--teal); }
.ibtn:hover { background: var(--card); box-shadow: var(--sh-1); }
.hdr-act > .ibtn[data-search-open] { display: none; }
.burger { display: none; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); padding: 32px 0 40px; }
.mega[hidden] { display: none; }
.mega-in { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; }
.mega h2 { font-size: 30px; color: var(--teal); }
.mega p { color: var(--stone); margin-top: 8px; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 24px; }
.mega li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--r-ctl); font-weight: 600; }
.mega li a:hover { background: var(--sand); color: var(--teal); }
.mega li b { color: var(--stone); font-weight: 600; }

/* бічна панель (мобільний) — як темна бічна колонка зі скріна */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgb(23 62 70 / .45); }
.drawer[hidden] { display: none; }
.drawer-in { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--night); color: #fff; padding: 16px 20px 32px; overflow-y: auto; display: grid; align-content: start; gap: 6px; border-radius: 28px 0 0 28px; }
.drawer .logo { color: #fff; }
.drawer .ibtn { color: #fff; }
.drawer .ibtn:hover { background: var(--night-2); box-shadow: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer a.d-link, .drawer summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; font: 600 18px var(--f-body); border-radius: var(--r-ctl); cursor: pointer; list-style: none; }
.drawer a.d-link > .i:last-child, .drawer summary > .i:last-child { margin-left: auto; opacity: .7; }
.drawer a.d-link:hover, .drawer summary:hover { background: var(--night-2); }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details[open] summary { background: var(--sunbeam); color: var(--ink); }
.drawer details[open] summary .i:last-child { transform: rotate(180deg); }
.drawer details ul { list-style: none; margin: 0; padding: 6px 0 6px 14px; display: grid; }
.drawer details li a { display: flex; justify-content: space-between; padding: 10px 14px; color: var(--on-night-2); border-radius: 10px; }
.drawer details li a:hover { color: #fff; background: var(--night-2); }
.drawer-slogan { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgb(210 164 91 / .5); font: italic 500 20px/1.35 var(--f-head); color: var(--on-night-2); text-align: center; }

/* пошук */
.search { position: fixed; inset: 0; z-index: 70; background: rgb(23 62 70 / .5); backdrop-filter: blur(3px); display: grid; justify-items: center; align-items: start; padding: 10vh 16px 16px; }
.search[hidden] { display: none; }
.search-box { width: min(680px, 100%); background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-2); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--teal); }
.search-field input { flex: 1; height: 66px; border: 0; background: none; font: 500 19px var(--f-body); color: var(--ink); outline: none; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search-list { list-style: none; margin: 0; padding: 8px; max-height: 60vh; overflow-y: auto; }
.search-list a { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-ctl); }
.search-list a:hover, .search-list a:focus-visible { background: var(--sand); }
.search-list b { font-weight: 700; }
.search-list span { font-size: 13px; color: var(--stone); }
.search-list mark { background: var(--sunbeam); color: inherit; border-radius: 3px; }
.search-empty { padding: 20px; color: var(--stone); }

/* ============ 6. Hero головної ============ */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sky-grad); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgb(250 236 216 / .78) 0%, rgb(250 236 216 / .45) 38%, transparent 60%); }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding: 64px 0 40px; }
.hero-txt { display: grid; gap: 20px; justify-items: start; }
.hero h1 { font-size: 72px; line-height: 1.02; letter-spacing: -.02em; font-weight: 700; color: var(--teal); }
.tagline { display: flex; align-items: center; gap: 14px; font: 500 19px/1.2 var(--f-body); color: var(--ink); }
.tagline::before, .tagline::after { content: ""; width: 44px; height: 1.5px; background: var(--gold); }
.tagline i { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 20px; line-height: 1.55; color: var(--ink); max-width: 36ch; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-search { display: flex; align-items: center; gap: 12px; width: min(440px, 100%); height: 56px; padding: 0 20px; border-radius: 18px; background: rgb(255 251 245 / .92); box-shadow: var(--sh-1), inset 0 0 0 1px rgb(255 255 255 / .8); color: var(--stone); font-size: 16px; text-align: left; }
.hero-search .i { color: var(--teal); }
.hero-search:hover { box-shadow: var(--sh-2), inset 0 0 0 1px var(--teal); }
.hero-photo { position: relative; margin: 0; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 3.2; border: 8px solid var(--card); box-shadow: var(--sh-2); }
.hero-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-photo .alt { position: absolute; left: 14px; top: 14px; }
.credit { position: absolute; right: 14px; bottom: 12px; font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .55); }
/* hero з ілюстрацією власника (content/site/hero-ilyustratsiya-synevyr.png): небо ліворуч вільне під текст */
.hero--art { display: flex; align-items: center; min-height: clamp(640px, 56vw, 860px); background: #F7C3A6; }
.hero--art::before { background: linear-gradient(90deg, rgb(251 226 206 / .35) 0%, rgb(251 226 206 / .12) 40%, transparent 55%); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.hero--art .hero-in { grid-template-columns: minmax(0, 600px); padding: 72px 0 150px; }
.hero--art .alt { background: rgb(255 251 245 / .75); }
.hero--art + .stats-row { position: relative; z-index: 1; margin-top: -104px; padding-bottom: 0; }
/* лічильники-картки з гірками */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 72px; }
.stat .mini { height: 58px; }
.stat { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 4px; align-content: start; padding: 22px 22px 72px; border-radius: var(--r-card); background: rgb(255 251 245 / .94); box-shadow: var(--sh-1); }
.stat .i { width: 30px; height: 30px; stroke-width: 1.8; color: var(--teal); margin-bottom: 10px; }
.stat span { font-size: 16px; color: var(--ink); }
.stat b { font: 700 44px/1 var(--f-head); color: var(--ink); }
.stat small { font-size: 14px; color: var(--stone); }
a.stat { transition: transform .2s, box-shadow .2s; }
a.stat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }

/* ============ 7. Секції ============ */
.sec { position: relative; padding: var(--sec) 0; }
.sec--mist { background: var(--sand); }
main:has(> .sec--mist:last-child) + .ftr { --edge-bg: var(--sand); margin-top: 0; }
main:has(> .e404:last-child) + .ftr { margin-top: 0; }
main:has(> .e404:last-child) + .ftr .edge { display: none; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-h h2 { font-size: 42px; margin-top: 10px; color: var(--teal); }
.sec-h p { color: var(--stone); margin-top: 12px; max-width: 54ch; font-size: 18px; }

/* картки */
.grid { display: grid; gap: 24px; }
.g4 { grid-template-columns: repeat(4, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-1); overflow: hidden; padding: 10px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); border-radius: 16px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 10px 10px; flex: 1; }
.card h3 { font: 700 19px/1.3 var(--f-body); letter-spacing: 0; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 { color: var(--teal); }
.card .meta { margin-top: auto; font-size: 13px; }
.card--dark { background: var(--night-2); color: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.card--dark:hover h3 { color: var(--sunbeam); }
.card--dark .meta { color: var(--on-night-2); }
.card--dark .badge { background: rgb(255 255 255 / .14); color: #fff; }
.card--dark .badge--archive { background: transparent; color: var(--sunbeam); box-shadow: inset 0 0 0 1px rgb(247 222 156 / .5); }

/* Карпати (темна секція) */
.karpaty { background: var(--night); color: #fff; isolation: isolate; padding-top: 0; }
.karpaty > .edge { margin-bottom: 56px; }
.karpaty .kicker { color: var(--sunbeam); }
.karpaty .sec-h h2 { color: #fff; }
.karpaty .sec-h p { color: var(--on-night-2); }
.karpaty .btn-cta { background: var(--sunbeam); color: var(--ink); }
.karpaty .btn-cta:hover { background: #F2D07E; }

/* регіони — рядки з «прогресом», як «Top Skills» */
.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.region { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; padding: 18px 20px; border-radius: 18px; background: var(--card); box-shadow: var(--sh-1); transition: transform .15s, box-shadow .15s; }
.region:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.region:hover b { color: var(--teal); }
.region b { font: 600 19px/1.2 var(--f-head); }
.region small { display: block; font-size: 14px; color: var(--stone); margin-top: 3px; }
.region .i { color: var(--teal); opacity: .7; }
.region .bar { grid-column: 1 / -1; height: 7px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.region .bar i { display: block; height: 100%; border-radius: inherit; background: var(--tone, var(--teal)); }
.sec--mist .region { background: var(--card); }

/* теми — картки з іконкою й гірками, як картки-лічильники */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.theme { position: relative; isolation: isolate; min-height: 220px; border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 24px 26px; background: var(--card); color: var(--ink); box-shadow: var(--sh-1); transition: transform .2s, box-shadow .2s; }
.theme:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.theme > .i { width: 34px; height: 34px; stroke-width: 1.8; color: var(--teal); margin-bottom: 12px; }
.theme h3 { font-size: 26px; position: relative; z-index: 1; }
.theme span { font-size: 15px; color: var(--stone); position: relative; z-index: 1; }
.theme .new { position: absolute; top: 18px; right: 18px; background: var(--sunbeam); color: var(--ink); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--r-pill); z-index: 1; }
.theme .mini { height: 46%; transition: transform .4s; transform-origin: bottom; }
.theme:hover .mini { transform: scaleY(1.08); }
.theme img:not(.pi) { display: none; } /* v2: плитки тем без фото; паперова іконка .pi лишається */

/* 11 ідей — список з мініатюрами, як «Upcoming Trainings» */
.ideas { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.ideas .btn { margin-top: 28px; }
.ideas-list { list-style: none; margin: 0; padding: 8px 20px; counter-reset: idea; background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-1); }
.ideas-list li { position: relative; counter-increment: idea; display: grid; grid-template-columns: 40px 96px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ideas-list li::before { content: counter(idea); font: 600 26px/1 var(--f-head); color: var(--ember); text-align: center; }
.ideas-list .th { width: 96px; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--sand); }
.ideas-list .th img { width: 100%; height: 100%; object-fit: cover; }
.ideas-list a { font-weight: 700; font-size: 17px; line-height: 1.3; }
.ideas-list a::after { content: ""; position: absolute; inset: 0; }
.ideas-list li:hover a { color: var(--teal); }
.ideas-list small { display: block; color: var(--stone); font-size: 14px; margin-top: 3px; }
.ideas-list li > .i { color: var(--stone); }
.ideas-list .more { display: block; padding: 16px 0 10px; border: 0; }
.ideas-list .more::before { content: none; }
.ideas-list .more a::after { content: none; }

/* плашка актуальності */
.archive-note { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: var(--r-card); background: var(--archive); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(210 164 91 / .35); }
.archive-note .i { color: var(--archive-ink); margin-top: 2px; }
.archive-note b { display: block; margin-bottom: 2px; }

/* ============ 8. Футер ============ */
.ftr { position: relative; color: #fff; margin-top: 24px; }
.ftr-body { background: var(--night); }
.ftr-in { display: grid; grid-template-columns: 1.4fr 1.6fr 1fr 1fr; gap: 40px; padding: 40px 0 40px; }
.ftr p { color: var(--on-night-2); font-size: 15px; margin-top: 16px; max-width: 34ch; }
.ftr .slogan { font: italic 500 22px/1.35 var(--f-head); color: #fff; margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.ftr .slogan .i { color: var(--sunbeam); width: 28px; height: 28px; stroke-width: 1.6; }
.ftr h2 { font: italic 500 18px/1 var(--f-head); color: var(--sunbeam); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.ftr h2::before { content: ""; width: 20px; height: 1.5px; background: var(--gold); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.ftr ul.cols { display: block; columns: 2; column-gap: 24px; }
.ftr ul.cols li { margin-bottom: 10px; }
.ftr a { color: #E4EEEE; }
.ftr a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ftr .logo { color: #fff; }
.ftr-bot { border-top: 1px solid rgb(255 255 255 / .12); padding: 20px 0 28px; font-size: 14px; color: var(--on-night-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============ 9. Стаття ============ */
.art-head { position: relative; isolation: isolate; padding: 32px 0 40px; background: linear-gradient(180deg, #FAE6D0 0%, var(--cream) 100%); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; color: var(--stone); margin-bottom: 24px; }
.crumbs a { color: var(--teal); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .i { width: 14px; height: 14px; opacity: .6; }
.art-head h1 { font-size: 54px; line-height: 1.08; font-weight: 700; max-width: 20ch; margin: 16px 0 24px; color: var(--teal); }
.cover { position: relative; margin: 0; border-radius: 30px; overflow: hidden; aspect-ratio: 21 / 9; border: 8px solid var(--card); box-shadow: var(--sh-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .alt { position: absolute; left: 18px; bottom: 18px; }
.cover figcaption { position: absolute; right: 18px; bottom: 18px; font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
/* Шапка статті на обкладинці (рішення власника 30.11.2026): H1 і мета — білим на градієнті --night знизу; висота й кредит — угорі */
.art-head:has(.cover-hero) { padding-bottom: 0; }
.art-head .badges { margin-bottom: 16px; }
.cover-hero { position: relative; display: flex; align-items: flex-end; aspect-ratio: 21 / 9; border-radius: 30px; overflow: hidden; border: 8px solid var(--card); box-shadow: var(--sh-2); background: var(--night); }
.cover-hero .cover { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.cover-hero .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(23 62 70 / 0) 20%, rgb(23 62 70 / .55) 50%, rgb(23 62 70 / .92) 100%); }
.cover-hero .cover .alt, .cover-hero .cover figcaption { top: 18px; bottom: auto; z-index: 1; }
.cover-text { position: relative; z-index: 1; padding: 64px 40px 32px; color: #fff; }
.art-head .cover-text h1 { color: #fff; margin: 0 0 16px; text-shadow: 0 2px 14px rgb(0 0 0 / .3); }
.cover-text .meta { color: rgb(255 255 255 / .92); text-shadow: 0 1px 3px rgb(0 0 0 / .35); }
@media (max-width: 1023px) {
  .cover-hero { aspect-ratio: 16 / 10; }
  .art-head .cover-text h1 { font-size: 44px; }
}

.art-grid { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 64px; justify-content: center; padding: 56px 0 var(--sec); }
.toc { position: sticky; top: 100px; align-self: start; padding: 20px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--sh-1); }
.toc-t { display: flex; align-items: center; gap: 8px; font: italic 500 18px/1 var(--f-head); color: var(--teal); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--stone); line-height: 1.4; }
.toc a:hover { color: var(--ink); background: var(--sand); }
.toc a.on { color: var(--ink); font-weight: 700; background: var(--sunbeam); }
.toc-m { display: none; }
.toc:empty { display: none; }

.prose { min-width: 0; }
.prose > * + * { margin-top: 24px; }
.prose p { font-size: 19px; line-height: 1.7; max-width: 680px; }
.prose .lead { font-size: 22px; line-height: 1.6; color: var(--ink); }
.prose h2 { font-size: 34px; line-height: 1.2; margin-top: 64px; padding-top: 8px; color: var(--teal); }
.prose figure { margin: 40px 0; }
.prose figure img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 20px; box-shadow: var(--sh-1); }
.prose figcaption { display: flex; gap: 8px; font-size: 15px; color: var(--stone); margin-top: 10px; line-height: 1.45; }
.prose figcaption .i { margin-top: 2px; color: var(--teal); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; width: 100%; height: auto; }
.price-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); background: var(--archive); color: var(--archive-ink); white-space: nowrap; }
.callout { position: relative; border-radius: var(--r-card); background: var(--archive); padding: 22px 26px; box-shadow: inset 4px 0 0 var(--gold); }
.callout > b { display: flex; align-items: center; gap: 8px; color: var(--archive-ink); font: italic 600 18px/1.2 var(--f-head); margin-bottom: 8px; }
.callout p + p { margin-top: 12px; }
.facts { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-card); background: var(--card); box-shadow: var(--sh-1); padding: 28px 32px 112px; }
.facts .mini { height: 72px; }
.facts h2 { font-size: 26px; margin: 0 0 4px; padding: 0; display: flex; align-items: center; gap: 10px; }
.facts > p.meta { font-size: 14px; margin-bottom: 16px; }
.facts dl { margin: 0; display: grid; position: relative; z-index: 1; }
.facts dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; color: var(--teal); }
.facts dt .i { width: 20px; height: 20px; }
.facts dd { margin: 0; font-size: 17px; line-height: 1.55; }
.inline-card { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: 18px; background: var(--card); box-shadow: var(--sh-1); position: relative; }
.inline-card:hover { box-shadow: var(--sh-2); }
.inline-card img { width: 112px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; flex: none; } /* height: auto — інакше висоту бере атрибут height="…" і мініатюра витягується */
.inline-card small { display: block; font: italic 500 14px/1.2 var(--f-head); color: var(--ember); margin-bottom: 4px; }
.inline-card b { font-weight: 700; line-height: 1.35; }
.inline-card a::after { content: ""; position: absolute; inset: 0; }
.art-source { font-size: 15px; color: var(--stone); border-top: 1px solid var(--line); padding-top: 24px; margin-top: 56px; }

/* ============ 10. Адаптив ============ */
@media (max-width: 1180px) {
  .hdr-in { gap: 20px; }
  .nav > a, .nav > button { padding: 0 12px; }
  .hdr-search { min-width: 0; width: 46px; padding: 0; justify-content: center; }
  .hdr-search span { display: none; }
}
@media (max-width: 1023px) {
  :root { --sec: 72px; }
  .nav { display: none; }
  .burger { display: inline-grid; }
  .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
  .regions { grid-template-columns: repeat(3, 1fr); }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .ideas { grid-template-columns: 1fr; gap: 32px; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .hero h1 { font-size: 60px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  /* планшет і мобільний: текст на градієнті неба, ілюстрація — смугою під ним (на вузькому екрані фон «з'їдає» острів) */
  .hub-hero.hub-hero--art { display: flex; flex-direction: column; align-items: stretch; min-height: 0; background: linear-gradient(180deg, #F4A08F 0%, #F6B69C 38%, #F8C8AC 72%, #F9D2B5 100%); }
  .hub-hero--art::before { content: none; }
  .hub-hero--art .hub-hero-in, .hub-hero--art .pad { position: relative; z-index: 1; padding: 32px 0 8px; }
  .hub-hero--art .hero-art { object-position: 78% 50%; margin-top: -88px; } /* верх ілюстрації — небо: заходить під текст, прозорий завдяки масці */
  .hero.hero--art { flex-direction: column; align-items: stretch; min-height: 0; background: linear-gradient(180deg, #F2928A 0%, #F5AA93 38%, #F8C3A6 72%, #F9CDB0 100%); }
  .hero--art::before { content: none; }
  .hero--art .hero-in { padding: 48px 0 8px; }
  .hero-art { position: relative; inset: auto; order: 2; height: auto; aspect-ratio: 16 / 10; object-position: 72% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%); mask-image: linear-gradient(180deg, transparent 0, #000 20%); }
  .hero--art + .stats-row { margin-top: -64px; }
  .art-grid { grid-template-columns: minmax(0, 720px); gap: 0; padding-top: 32px; }
  .toc { position: static; margin-bottom: 32px; padding: 0; background: none; box-shadow: none; }
  .toc-d { display: none; }
  .toc-m { display: block; border-radius: var(--r-card); background: var(--card); box-shadow: var(--sh-1); padding: 0 20px; }
  .toc-m summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-weight: 700; cursor: pointer; list-style: none; }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m[open] summary .i { transform: rotate(180deg); }
  .toc-m ol { margin-bottom: 16px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --sec: 56px; --r-card: 20px; }
  body { font-size: 16px; }
  .hdr-in { height: 62px; }
  .logo { font-size: 22px; } .logo svg { width: 45px; height: 22px; }
  .hdr-search { display: none; }
  .hdr-act > .ibtn[data-search-open] { display: inline-grid; }
  .hero { background: linear-gradient(180deg, #F5C6A6 0%, #F9DEC3 34%, #FAEAD6 60%, var(--cream) 100%); }
  .hero::before { background: none; }
  .hero .scene { top: auto; height: 760px; }
  .hero-in { padding: 36px 0 28px; gap: 28px; }
  .hero-txt { gap: 16px; }
  .hero h1 { font-size: 44px; }
  .tagline { font-size: 16px; gap: 10px; }
  .tagline::before, .tagline::after { width: 24px; }
  .hero .lead { font-size: 18px; }
  .hero .btns { width: 100%; }
  .hero .btns .btn { flex: 1 1 100%; }
  .hero-photo { border-width: 6px; border-radius: 24px; aspect-ratio: 4 / 3; }
  .hero-photo > img { object-position: 70% 50%; }
  .stats-row { gap: 12px; padding-bottom: 48px; }
  .hero--art .hero-in { padding: 32px 0 0; }
  .hero-art { aspect-ratio: 4 / 3; object-position: 74% 50%; }
  .hero--art + .stats-row { margin-top: -48px; padding-bottom: 0; }
  .stat { padding: 16px 16px 52px; }
  .stat .mini { height: 42px; }
  .stat .i { width: 26px; height: 26px; margin-bottom: 6px; }
  .stat span { font-size: 14px; }
  .stat b { font-size: 34px; }
  .stat small { font-size: 13px; }
  .karpaty > .edge { margin-bottom: 36px; }
  .sec-h { margin-bottom: 28px; }
  .sec-h h2 { font-size: 30px; }
  .sec-h p { font-size: 16px; }
  .h-ico { gap: 12px; }
  .h-ico .ico { width: 40px; height: 40px; border-radius: 12px; }
  .h-ico .ico .i { width: 20px; height: 20px; }
  .h-ico .ico--paper, .h-ico .ico--paper .pi { width: 46px; height: 46px; }
  .stat > .pi { width: 52px; height: 52px; margin: -8px 0 0 -8px; }
  .theme > .pi { width: 54px; height: 54px; margin: -8px 0 0 -8px; }
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 20px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > .card { flex: 0 0 82%; scroll-snap-align: start; }
  .g3 { grid-template-columns: 1fr; }
  .regions { grid-template-columns: 1fr 1fr; gap: 10px; }
  .region { padding: 14px; gap: 8px; }
  .region b { font-size: 16px; }
  .region small { font-size: 13px; }
  .region > .i { display: none; }
  .themes { gap: 12px; }
  .theme { min-height: 0; padding: 16px 16px 58px; }
  .theme .mini { height: 50px; }
  .theme > .i { width: 28px; height: 28px; margin-bottom: 6px; }
  .theme h3 { font-size: 19px; }
  .theme span { font-size: 13px; }
  .theme .new { top: 12px; right: 12px; font-size: 11px; }
  .ideas-list { padding: 4px 14px; }
  .ideas-list li { grid-template-columns: 26px 72px 1fr; gap: 12px; }
  .ideas-list li > .i { display: none; }
  .ideas-list li::before { font-size: 22px; }
  .ideas-list .th { width: 72px; }
  .ideas-list a { font-size: 16px; }
  .ftr-in { grid-template-columns: 1fr; gap: 32px; }
  .art-head h1 { font-size: 36px; }
  .cover { aspect-ratio: 4 / 3; border-width: 6px; border-radius: 24px; }
  .cover-hero { aspect-ratio: 4 / 5; border-width: 6px; border-radius: 24px; }
  .art-head .cover-text h1 { font-size: 30px; margin-bottom: 12px; }
  .cover-text { padding: 72px 18px 20px; }
  .cover-text .meta { font-size: 13px; gap: 4px 12px; }
  .cover-hero .cover .alt { left: 12px; top: 12px; }
  .cover-hero .cover figcaption { right: 12px; top: 14px; font-size: 12px; }
  .prose p { font-size: 17px; }
  .prose .lead { font-size: 19px; }
  .prose h2 { font-size: 27px; margin-top: 48px; }
  .prose figure img { border-radius: 16px; }
  .facts { padding: 20px 20px 76px; }
  .facts dl > div { grid-template-columns: 1fr; gap: 4px; }
  .inline-card img { width: 88px; }
}

/* ============ 11. Хаби, колекції, каталог, службові ============ */
/* шапка хабу: небо + смуга краєвиду знизу */
.hub-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sky-grad); padding: 32px 0 0; }
.hub-hero .scene, .col-hero .scene { top: auto; height: auto; aspect-ratio: 1440 / 300; min-height: 300px; }
.hub-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgb(250 236 216 / .7) 0%, rgb(250 236 216 / .3) 45%, transparent 65%); }
.hub-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-bottom: 120px; }
.hub-hero .pad { padding-bottom: 150px; }
.hub-hero h1 { font-size: 60px; font-weight: 700; line-height: 1.04; margin: 12px 0 18px; color: var(--teal); }
.hub-hero .lead { font-size: 20px; line-height: 1.55; max-width: 40ch; }
.hub-hero .stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.stat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill); background: rgb(255 251 245 / .92); box-shadow: var(--sh-1); font-weight: 700; font-size: 15px; color: var(--teal); }
a.stat-chip:hover { background: var(--sunbeam); color: var(--ink); }
/* шапка хабу з ілюстрацією на всю ширину (content/site/hubs/<slug>-wide.png) */
.hub-hero--art { display: flex; align-items: center; min-height: clamp(520px, 42vw, 700px); padding: 0; background: #F7C3A6; }
.hub-hero--art::before { background: linear-gradient(90deg, rgb(250 236 216 / .6) 0%, rgb(250 236 216 / .3) 38%, transparent 58%); }
.hub-hero--art .hero-art { object-position: 80% 50%; }
.hub-hero--art .hub-hero-in { grid-template-columns: minmax(0, 600px); padding: 40px 0 120px; }
.hub-hero--art .pad { padding: 40px 0 120px; }
.hub-hero--art .pad > * { max-width: 600px; }
.hub-hero--art .kicker { color: var(--ink); } /* ember на рожевому небі < 4,5:1 */
.hub-hero--art .crumbs a { color: var(--ink); }
.hub-img { position: relative; margin: 0; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 3; border: 8px solid var(--card); box-shadow: var(--sh-2); }
.hub-img img { width: 100%; height: 100%; object-fit: cover; }
.hub-img figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 12px; color: var(--ink); background: rgb(255 251 245 / .88); padding: 4px 10px; border-radius: var(--r-pill); }

/* фільтр-чипи */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 32px; }
.filters-label { font: italic 500 17px var(--f-head); color: var(--ember); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: var(--r-pill); background: var(--card); box-shadow: var(--sh-1); font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; transition: background-color .15s, color .15s, box-shadow .15s; }
.chip .i { color: var(--teal); }
.chip:hover, .chip.is-hover { box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--teal); color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--sunbeam); color: var(--ink); }
.chip .num { opacity: .65; font-weight: 600; }
.result-count { margin-left: auto; font-size: 15px; color: var(--stone); }
.card[hidden], .row[hidden] { display: none; }

/* промо «Карпати» */
/* нижнє поле = висота смуги гір (пропорція 2172 / 305 ≈ 14 % ширини) + 24 px */
.promo { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 44px 48px calc(14.1% + 24px); border-radius: 28px; background: var(--night); color: #fff; }
.promo .mini { height: 70px; }
.promo h2 { font-size: 34px; margin-top: 8px; }
.promo p { color: var(--on-night-2); margin-top: 8px; max-width: 52ch; }
.promo .kicker { color: var(--sunbeam); }
.promo .btn-cta { background: var(--sunbeam); color: var(--ink); }
.promo .btn-cta:hover { background: #F2D07E; }

/* горизонтальна велика картка */
.card--h { flex-direction: row; min-height: 300px; gap: 8px; }
.card--h .card-img { aspect-ratio: auto; width: 48%; flex: none; }
.card--h .card-body { padding: 24px 28px; justify-content: center; gap: 14px; }
.card--h h3 { font: 600 27px/1.2 var(--f-head); }
.card--h .teaser { color: var(--stone); font-size: 17px; line-height: 1.55; }
.card--h .meta { margin-top: 4px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.stack { display: grid; gap: 24px; }

/* hero колекції «Карпати» — сутінковий краєвид */
.col-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--ink); background: var(--sky-grad); }
.col-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 32px 0 140px; }
.col-hero-txt { display: grid; gap: 18px; justify-items: start; }
.col-hero h1 { font-size: 92px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--teal); }
.col-hero .lead { font-size: 20px; line-height: 1.55; }
.col-hero .crumbs { margin: 0; }
.col-hero .stats { display: flex; flex-wrap: wrap; gap: 8px; }

/* добірка «11 ідей» */
.idea { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.idea:nth-child(even) .idea-img { order: 2; }
.idea-img { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 3 / 2; border: 6px solid var(--card); box-shadow: var(--sh-1); }
.idea-img img { width: 100%; height: 100%; object-fit: cover; }
.idea-n { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--sunbeam); font: 700 30px/1 var(--f-head); color: var(--ink); }
.idea h2 { font-size: 31px; line-height: 1.2; margin: 16px 0 12px; color: var(--teal); }
.idea p { font-size: 18px; line-height: 1.65; color: var(--ink); }
.idea .meta { margin: 0 0 16px; }
.idea .link { margin-top: 20px; }

/* каталог */
.toolbar { display: grid; grid-template-columns: 1fr 280px; gap: 12px; margin-bottom: 16px; }
.field { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; border-radius: 18px; background: var(--card); box-shadow: var(--sh-1); color: var(--teal); }
.field:focus-within, .field.is-focus { box-shadow: inset 0 0 0 2px var(--teal), 0 0 0 4px rgb(232 146 74 / .3); }
.field input, .field select { flex: 1; min-width: 0; height: 54px; border: 0; background: none; font: 500 17px var(--f-body); color: var(--ink); outline: none; appearance: none; }
.field input::placeholder { color: var(--stone); }
.field input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.field .i:last-child { pointer-events: none; }
.rows { list-style: none; margin: 0; padding: 6px 18px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-1); }
.row { position: relative; display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row img { width: 120px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.row h3 { font: 700 18px/1.3 var(--f-body); }
.row h3 a::after { content: ""; position: absolute; inset: 0; }
.row:hover h3 { color: var(--teal); }
.row .meta { margin-top: 6px; }
.row .min { font-size: 14px; color: var(--stone); white-space: nowrap; }
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 56px 24px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--sh-1); }
.empty[hidden] { display: none; }
.empty svg.big { width: 120px; height: 48px; color: var(--teal); }
.empty h3 { font-size: 24px; color: var(--teal); }
.empty p { color: var(--stone); max-width: 44ch; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }

/* регіони з обкладинками */
.reg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reg-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-1); overflow: hidden; padding: 10px; transition: transform .2s, box-shadow .2s; }
.reg-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.reg-card .card-img { aspect-ratio: 16 / 9; }
.reg-card-body { padding: 16px 10px 12px; display: grid; gap: 10px; align-content: start; }
.reg-card h3 { font-size: 25px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; color: var(--teal); }
.reg-card h3 a::after { content: ""; position: absolute; inset: 0; }
.reg-card h3 small { font: 700 14px var(--f-body); color: var(--stone); white-space: nowrap; }
.reg-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--stone); }
.reg-card li { display: flex; gap: 8px; }
.reg-card li::before { content: ""; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--orange); flex: none; }

/* про проєкт */
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0; }
.about-stats div { position: relative; isolation: isolate; overflow: hidden; padding: 20px 20px 56px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--sh-1); }
.about-stats .mini { height: 44px; }
.about-stats b { display: block; font: 700 42px/1 var(--f-head); color: var(--ink); }
.about-stats span { font-size: 15px; color: var(--stone); }
.needs { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-ctl); border: 1.5px dashed var(--ember); color: var(--ember); background: var(--card); font-size: 15px; font-weight: 700; }

/* 404 — сутінки: темне небо, сонце над хребтом */
.e404 { position: relative; isolation: isolate; min-height: 72vh; display: grid; align-items: center; background: radial-gradient(circle at 78% 40%, rgb(247 222 156 / .35) 0, rgb(247 222 156 / 0) 26%), var(--night); color: #fff; overflow: hidden; }
.e404-in { position: relative; display: grid; gap: 20px; justify-items: start; padding: 96px 0 max(176px, 14vw); }
.e404-in > * { max-width: 620px; }
.e404 .code { font: 700 168px/0.9 var(--f-head); color: var(--sunbeam); letter-spacing: -.03em; }
.e404 h1 { font-size: 46px; font-weight: 700; }
.e404 p { color: var(--on-night-2); font-size: 19px; }
.e404 .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.e404 .btn-cta { background: var(--sunbeam); color: var(--ink); }
.e404 .links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 16px; }
.e404 .links a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.e404 > .edge { position: absolute; left: 0; right: 0; bottom: 0; --edge-bg: transparent; opacity: .95; } /* передній ліс кольору --night зливається з футером */

/* UI-kit: стани для демонстрації (прототип) */
.btn.is-hover.btn-cta { background: var(--teal-hover); }
.btn.is-hover.btn-line { background: var(--teal); color: #fff; }
.btn.is-focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.card.is-hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.skel { background: linear-gradient(90deg, var(--sand) 0%, #FBF5EA 50%, var(--sand) 100%); background-size: 200% 100%; animation: skel 1.4s infinite linear; border-radius: 6px; }
@keyframes skel { to { background-position: -200% 0; } }
.kit { display: grid; gap: 72px; padding: 56px 0 96px; }
.kit section > h2 { font-size: 32px; margin-bottom: 8px; }
.kit section > p { color: var(--stone); margin-bottom: 24px; max-width: 70ch; }
.kit-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.kit-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sw { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-1); background: var(--card); }
.sw i { display: block; height: 72px; }
.sw div { padding: 10px 12px; font-size: 13px; line-height: 1.4; }
.sw b { display: block; font-size: 14px; }
.type-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.type-row small { color: var(--stone); font-size: 13px; }
.dark-pad { padding: 28px; border-radius: var(--r-card); background: var(--night); }

@media (max-width: 1023px) {
  .hub-hero-in, .col-hero-in { grid-template-columns: 1fr; gap: 28px; }
  .hub-hero h1 { font-size: 46px; }
  .card--h { min-height: 0; }
  .idea { grid-template-columns: 1fr; gap: 24px; }
  .idea:nth-child(even) .idea-img { order: 0; }
  .reg-cards { grid-template-columns: repeat(2, 1fr); }
  .col-hero h1 { font-size: 68px; }
  .promo { grid-template-columns: 1fr; padding: 32px 32px calc(14.1% + 24px); }
}
@media (max-width: 640px) {
  .hub-hero .scene, .col-hero .scene { min-height: 180px; }
  .hub-hero::before { background: none; }
  .hub-hero-in { padding-bottom: 72px; }
  .hub-hero .pad { padding-bottom: 96px; }
  .hub-hero h1 { font-size: 38px; }
  .hub-hero .lead { font-size: 18px; }
  .hub-img { aspect-ratio: 16 / 10; border-width: 6px; border-radius: 24px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .result-count { display: none; }
  .g2 { grid-template-columns: 1fr; }
  .card--h { flex-direction: column; }
  .card--h .card-img { width: 100%; aspect-ratio: 3 / 2; }
  .card--h .card-body { padding: 14px 10px 10px; }
  .card--h h3 { font-size: 22px; }
  .col-hero-in { padding-bottom: 88px; }
  .col-hero h1 { font-size: 54px; }
  .col-hero .lead { font-size: 18px; }
  .idea { padding: 32px 0; }
  .idea-n { width: 52px; height: 52px; font-size: 24px; border-radius: 16px; }
  .idea h2 { font-size: 25px; }
  .toolbar { grid-template-columns: 1fr; }
  .rows { padding: 4px 12px; }
  .row { grid-template-columns: 88px 1fr; gap: 14px; padding: 12px 0; }
  .row img { width: 88px; }
  .row .min { display: none; }
  .row h3 { font-size: 16px; }
  .reg-cards { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .about-stats div { padding: 14px 12px 44px; }
  .about-stats .mini { height: 34px; }
  .about-stats b { font-size: 30px; }
  .e404 { min-height: 0; }
  .e404-in { padding: 64px 0 120px; }
  .e404 .code { font-size: 112px; }
  .e404 h1 { font-size: 32px; }
  .e404 .btns .btn { flex: 1 1 100%; }
  .promo { padding: 24px 24px max(64px, calc(14.1% + 24px)); }
  .promo h2 { font-size: 27px; }
  .type-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ============ 12. Стаття з повним контентом ============ */
.prose figure img { height: auto; }
.prose h3 { font-size: 23px; line-height: 1.3; margin-top: 40px; color: var(--teal); }
.prose ul { margin: 0; padding-left: 22px; max-width: 680px; display: grid; gap: 8px; font-size: 19px; line-height: 1.6; }
.prose ul li::marker { color: var(--orange); }
.prose a:not(.btn):not(.link) { color: var(--teal); text-decoration: underline; text-decoration-color: rgb(31 78 87 / .35); text-underline-offset: 3px; }
.prose a:not(.btn):not(.link):hover { text-decoration-color: currentColor; }
.prose .inline-card a, .prose .inline-card a:hover { text-decoration: none; color: inherit; }
.gallery figure { margin: 0; }
.gallery figure img { aspect-ratio: 4 / 3; height: auto; max-height: none; }
.gallery figcaption { font-size: 14px; }
.gallery--3 { grid-template-columns: repeat(2, 1fr); }
.gallery--3 > figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.gallery--3 > figure:first-child:nth-last-child(odd) img { aspect-ratio: 16 / 9; }
.video-card { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--r-card); background: var(--night); color: #fff; box-shadow: var(--sh-1); }
.video-card .i { width: 42px; height: 42px; color: var(--sunbeam); }
.video-card b { display: block; font-size: 18px; }
.video-card small { color: var(--on-night-2); }
.video-card:hover { background: var(--night-2); }
@media (max-width: 640px) {
  .prose ul { font-size: 17px; }
  .gallery { gap: 8px; }
  .gallery figure img { border-radius: 14px; }
}

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

/* згенеровано tools/build.mjs: растрові гірки карток (content/site/cards/*.png) */
.tone-lav > svg.mini { display: none; }
.tone-lav > .mini-art { display: block; position: absolute; z-index: 0; height: auto; aspect-ratio: 2172 / 305; min-height: 40px; background-image: url(../img/cards/lav.webp); }
.promo.tone-lav > .mini-art { background-image: url(../img/cards/lav-full.webp); }
.tone-peach > svg.mini { display: none; }
.tone-peach > .mini-art { display: block; position: absolute; z-index: 0; height: auto; aspect-ratio: 2172 / 305; min-height: 40px; background-image: url(../img/cards/peach.webp); }
.promo.tone-peach > .mini-art { background-image: url(../img/cards/peach-full.webp); }
.tone-sage > svg.mini { display: none; }
.tone-sage > .mini-art { display: block; position: absolute; z-index: 0; height: auto; aspect-ratio: 2172 / 305; min-height: 40px; background-image: url(../img/cards/sage.webp); }
.promo.tone-sage > .mini-art { background-image: url(../img/cards/sage-full.webp); }
.tone-sky > svg.mini { display: none; }
.tone-sky > .mini-art { display: block; position: absolute; z-index: 0; height: auto; aspect-ratio: 2172 / 305; min-height: 40px; background-image: url(../img/cards/sky.webp); }
.promo.tone-sky > .mini-art { background-image: url(../img/cards/sky-full.webp); }
.tone-coral > svg.mini { display: none; }
.tone-coral > .mini-art { display: block; position: absolute; z-index: 0; height: auto; aspect-ratio: 2172 / 305; min-height: 40px; background-image: url(../img/cards/coral.webp); }
.promo.tone-coral > .mini-art { background-image: url(../img/cards/coral-full.webp); }
.tone-sun > svg.mini { display: none; }
.tone-sun > .mini-art { display: block; position: absolute; z-index: 0; height: auto; aspect-ratio: 2172 / 305; min-height: 40px; background-image: url(../img/cards/sun.webp); }
.promo.tone-sun > .mini-art { background-image: url(../img/cards/sun-full.webp); }
