/* NormalDeTicul — trucos y consejos prácticos. Тема «майстерня»: бірюза + бурштин, сітка-креслення. */

/* ───────────── токени ───────────── */
:root {
  --bg: #f6f7f3;
  --bg-2: #eef1ec;
  --surface: #ffffff;
  --surface-2: #f3f5f1;
  --ink: #0f1d22;
  --text: #2b3a40;
  --muted: #66767c;
  --line: #e1e6e1;
  --line-2: #d3dad4;
  --brand: #0e8a7b;
  --brand-2: #14a08f;
  --brand-deep: #0b5f57;
  --brand-ink: #087064;
  --brand-soft: #dcf2ec;
  --accent: #ffb423;
  --accent-2: #ff8a1f;
  --accent-ink: #8a4f00;
  --accent-soft: #fff2d3;
  --night: #0c1b20;
  --night-2: #12272d;
  --grid-line: rgba(14, 138, 123, .07);
  --shadow-sm: 0 1px 2px rgba(15, 29, 34, .06), 0 1px 1px rgba(15, 29, 34, .04);
  --shadow: 0 10px 30px -12px rgba(15, 29, 34, .18), 0 2px 6px rgba(15, 29, 34, .05);
  --shadow-lg: 0 30px 60px -20px rgba(15, 29, 34, .28), 0 8px 20px -8px rgba(15, 29, 34, .12);
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;
  --r-xs: 8px;
  --head: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1200px;
  --gut: 20px;
  --header-h: 68px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0a1417;
  --bg-2: #0e1a1e;
  --surface: #111f24;
  --surface-2: #16272d;
  --ink: #eaf2f0;
  --text: #c3d0cf;
  --muted: #8b9c9d;
  --line: #1f3238;
  --line-2: #2a3f45;
  --brand: #2cc6b2;
  --brand-2: #3ad9c4;
  --brand-deep: #0e8a7b;
  --brand-ink: #5fe0cd;
  --brand-soft: #0f302c;
  --accent: #ffc04d;
  --accent-2: #ff9a3d;
  --accent-ink: #ffd27a;
  --accent-soft: #33270f;
  --night: #071013;
  --night-2: #0d1d22;
  --grid-line: rgba(44, 198, 178, .06);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* палітри тем: --c1/--c2 градієнт обкладинки, --ps м'який фон, --pt текст на м'якому фоні */
.pal-0 { --c1: #ffc23d; --c2: #ff7e1f; --ps: #fff1d4; --pt: #8a4a00; }
.pal-1 { --c1: #4cc3ff; --c2: #2563eb; --ps: #e0f1fe; --pt: #0b4f86; }
.pal-2 { --c1: #ff8a66; --c2: #e2405c; --ps: #ffe5dd; --pt: #9c2b1c; }
.pal-3 { --c1: #5be08f; --c2: #109b55; --ps: #dcf8e7; --pt: #13643b; }
.pal-4 { --c1: #8f98fb; --c2: #4c45dd; --ps: #e3e6ff; --pt: #3a32a3; }
.pal-5 { --c1: #ffa25a; --c2: #df3b2a; --ps: #ffe9d8; --pt: #983218; }
.pal-6 { --c1: #67e3f5; --c2: #0a8db0; --ps: #d6f7fc; --pt: #0d5c72; }
.pal-7 { --c1: #c78bff; --c2: #7a3be8; --ps: #f1e6ff; --pt: #62249f; }
.pal-8 { --c1: #33d6c0; --c2: #0b7d70; --ps: #d5f6f0; --pt: #0b5f57; }
.pal-9 { --c1: #9fb0c3; --c2: #3b4b5f; --ps: #e5eaf0; --pt: #2a3646; }
.pal-10 { --c1: #ff8fc4; --c2: #d6337f; --ps: #ffe3f0; --pt: #92245a; }
.pal-11 { --c1: #b5e655; --c2: #4f8a12; --ps: #edf8d6; --pt: #3e6b0e; }
.pal-12 { --c1: #e2b37a; --c2: #9a5524; --ps: #f8ead9; --pt: #6f3d17; }
[data-theme="dark"] [class*="pal-"] { --ps: color-mix(in srgb, var(--c2) 22%, #0f1d22); --pt: color-mix(in srgb, var(--c1) 80%, #fff); }

/* ───────────── база ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lock { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: #1a1200; }
svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ico-sm { width: 16px; height: 16px; }
.ico-xs { width: 14px; height: 14px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: 72px 0 0; }
.section-tight { padding: 28px var(--gut) 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: var(--bg); }
.muted { color: var(--muted); }
kbd { font: 600 11px/1 var(--body); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); }
.statcounter { position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* ───────────── дрібні елементи ───────────── */
.kicker {
  display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1 var(--body); letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-ink); margin-bottom: 10px;
}
.kicker::before { content: ''; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); }
.kicker:has(.ico)::before { display: none; }
.kicker .ico { color: var(--accent-2); }
.kicker-light .ico { color: var(--accent); }
.kicker-light { color: var(--accent); }
.kicker-light::before { background: var(--brand-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font: 600 13.5px/1 var(--body); color: var(--ink);
}
.eyebrow-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #2a1a00; }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 12px; font: 600 15px/1 var(--body); white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(14, 138, 123, .6); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
[data-theme="dark"] .btn-primary { color: #04201c; }
[data-theme="dark"] .btn-primary:hover { background: var(--brand-2); color: #04201c; }
.btn-accent { background: var(--accent); color: #2a1a00; box-shadow: 0 10px 24px -10px rgba(255, 160, 35, .7); }
.btn-accent:hover { background: #ffc54d; color: #2a1a00; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-outline-light { color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .06); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips.center { justify-content: center; }
.chips-label { font-size: 14px; color: var(--muted); margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: 600 13.5px/1 var(--body);
  transition: border-color .15s, color .15s, background .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip .ico { color: var(--brand); }
.chip small { font-weight: 600; color: var(--muted); }
.chip-soft { background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(6px); }
.chip-topic { background: var(--ps); border-color: transparent; color: var(--pt); }
.chip-topic .ico { color: var(--pt); }
.chip-topic:hover { color: var(--pt); border-color: var(--pt); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.active .ico { color: var(--accent); }

.tile-ico {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; box-shadow: 0 6px 14px -6px var(--c2);
}
.tile-ico .ico { width: 22px; height: 22px; stroke-width: 2; }
.tile-ico.sm { width: 36px; height: 36px; border-radius: 11px; }
.tile-ico.sm .ico { width: 18px; height: 18px; }
.tile-ico.xs { width: 26px; height: 26px; border-radius: 8px; box-shadow: none; }
.tile-ico.xs .ico { width: 14px; height: 14px; }

.link-more { display: inline-flex; align-items: center; gap: 6px; font: 600 15px/1 var(--body); color: var(--brand-ink); white-space: nowrap; }
.link-more .ico { transition: transform .15s; }
.link-more:hover .ico { transform: translateX(3px); }

/* ───────────── шапка ───────────── */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .35); }
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-deep)); box-shadow: 0 6px 14px -6px rgba(11, 95, 87, .7);
}
.logo-mark .ico { width: 22px; height: 22px; stroke-width: 2.1; }
.logo-text { font: 700 21px/1 var(--head); letter-spacing: -.03em; }
.logo-text em { font-style: normal; color: var(--brand); position: relative; }
.logo-text em::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; border-radius: 3px; background: var(--accent); }
.logo-light { color: #fff; }
.logo-light:hover { color: #fff; }
.logo-light .logo-text em { color: var(--brand-2); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 13px; border-radius: 10px;
  font: 600 15px/1 var(--body); color: var(--text); transition: background .15s, color .15s;
}
.nav-link:hover, .nav-link[aria-current="page"], .has-mega.open .mega-btn { color: var(--ink); background: var(--surface-2); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.mega-btn .ico { transition: transform .2s; }
.has-mega { position: relative; }
.has-mega.open .mega-btn .ico { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-42%) translateY(6px); width: min(860px, 92vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 20px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.has-mega.open .mega { opacity: 1; visibility: visible; transform: translateX(-42%) translateY(0); }
.mega-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.mega-head b { font: 700 17px/1.2 var(--head); color: var(--ink); }
.mega-head span { font-size: 13.5px; color: var(--muted); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega-link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-align: left; transition: background .15s; }
.mega-link:hover { background: var(--surface-2); }
.mega-text { display: grid; line-height: 1.25; }
.mega-text b { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.mega-text small { font-size: 12.5px; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.search-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 14px; min-width: 210px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted);
  font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.search-btn span { margin-right: auto; }
.search-btn:hover { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--ink);
  border: 1px solid var(--line-2); background: var(--surface); transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: inline; }
[data-theme="dark"] .i-moon { display: none; }
.menu-btn { display: none; }

/* ───────────── hero (головна) ───────────── */
.hero {
  position: relative; padding: 56px 0 0; overflow: hidden;
  background:
    radial-gradient(700px 420px at 88% 8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(800px 500px at 0% 100%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 18px; }
.hl { position: relative; white-space: nowrap; color: var(--brand-ink); }
.hl::after {
  content: ''; position: absolute; left: -2px; right: -4px; bottom: .04em; height: .26em; z-index: -1; border-radius: 6px;
  background: var(--accent); opacity: .55; transform: skewX(-12deg);
}
.hero-copy .lead { max-width: 560px; }
.hero-search {
  margin-top: 28px; width: 100%; max-width: 560px; height: 62px; display: flex; align-items: center; gap: 14px;
  padding: 0 12px 0 20px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line-2);
  box-shadow: var(--shadow); color: var(--muted); font-size: 16.5px; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.hero-search .ico { color: var(--brand); width: 22px; height: 22px; }
.hero-search span { margin-right: auto; }
.hero-search:hover { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft), var(--shadow); }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.hero-chips-label { font-size: 14px; color: var(--muted); margin-right: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions.center { justify-content: center; }

.hero-art { position: relative; min-height: 430px; display: grid; place-items: center; }
.hero-art::before {
  content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: conic-gradient(from 140deg, var(--brand-2), var(--accent), var(--brand-deep), var(--brand-2)); opacity: .16; filter: blur(2px);
}
.fix-card {
  position: relative; width: min(390px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 22px; transform: rotate(-2deg);
}
.fix-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line-2); }
.fix-title { display: grid; line-height: 1.3; margin-right: auto; }
.fix-title b { font: 700 16.5px/1.25 var(--head); color: var(--ink); }
.fix-title small { font-size: 13px; color: var(--muted); }
.fix-badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font: 700 12px/1 var(--body); }
.fix-steps { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.fix-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14.5px; font-weight: 500; color: var(--ink); }
.fix-check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--brand); color: #fff; }
.fix-check .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.fix-steps .doing { background: var(--accent-soft); outline: 1.5px dashed color-mix(in srgb, var(--accent-2) 60%, transparent); }
.fix-steps .doing .fix-check { background: var(--accent); color: #2a1a00; animation: wiggle 2.4s ease-in-out infinite; }
.fix-progress { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.fix-progress span { display: block; width: 80%; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent)); }
.fix-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--muted); }
.fix-foot b { color: var(--ink); }
.float-chip, .float-note {
  position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font: 600 14px/1 var(--body); color: var(--ink);
  animation: float 6s ease-in-out infinite;
}
.fc-1 { top: 34px; left: 0; }
.fc-2 { bottom: 54px; left: -10px; animation-delay: -2s; }
.fc-3 { top: 70px; right: -6px; animation-delay: -4s; }
.float-note { bottom: 22px; right: 10px; padding: 9px 14px; color: var(--muted); animation-delay: -3s; }
.float-note .ico { color: var(--brand); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(0); } }

.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 48px 0 0; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden;
}
.hero-stats div { padding: 18px 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-stats div:first-child { border-left: 0; }
.hero-stats dt { font-size: 13.5px; color: var(--muted); }
.hero-stats dd { margin: 0; font: 700 1.5rem/1.15 var(--head); color: var(--ink); letter-spacing: -.02em; }
.hero-stats-sm { grid-template-columns: repeat(3, 1fr); max-width: 560px; margin-top: 28px; }

/* ───────────── заголовки секцій ───────────── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.25rem); }

/* ───────────── теми ───────────── */
.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.topic-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.topic-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.topic-card:hover { border-color: color-mix(in srgb, var(--c2) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.tc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tc-name { font-size: 1.12rem; }
.tc-count { font-size: 13.5px; color: var(--muted); }
.tc-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; flex: 1; }
.tc-list li { position: relative; padding-left: 16px; }
.tc-list li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: var(--c2); transform: rotate(45deg); }
.tc-list a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 5px 0; font-size: 14.5px; line-height: 1.4; color: var(--text); }
.tc-list a:hover { color: var(--brand-ink); }
.tc-more {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 8px 12px; margin-left: -4px; border-radius: 10px;
  background: var(--ps); color: var(--pt); font: 600 14px/1 var(--body); transition: gap .15s;
}
.tc-more:hover { gap: 10px; }
.topics-more { margin-top: 20px; }

/* ───────────── картки ───────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.cover {
  position: relative; aspect-ratio: 16 / 8.2; overflow: hidden; color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .28), transparent 55%),
    linear-gradient(135deg, var(--c1), var(--c2));
}
.cover::after { content: ''; position: absolute; right: 18%; bottom: -40%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); }
.cover-ico { position: absolute; right: 9%; top: 50%; width: 34%; height: auto; aspect-ratio: 1; max-width: 110px; transform: translateY(-50%) rotate(-8deg); stroke-width: 1.5; opacity: .95; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .18)); transition: transform .3s; }
.card:hover .cover-ico { transform: translateY(-50%) rotate(0deg) scale(1.06); }
.cover-label {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px;
  background: rgba(0, 0, 0, .2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: 600 12.5px/1 var(--body); color: #fff;
}
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card-title { font-size: 1.1rem; line-height: 1.3; letter-spacing: -.015em; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { color: var(--brand-ink); }
.card-excerpt { font-size: 14.5px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: auto; font-size: 13px; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-featured { flex-direction: row; margin-bottom: 22px; }
.card-featured .cover { flex: 0 0 48%; aspect-ratio: auto; min-height: 290px; }
.card-featured .cover-ico { max-width: 170px; }
.card-featured .card-body { padding: 32px 34px; justify-content: center; gap: 14px; }
.card-featured .card-title { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); line-height: 1.2; }
.card-featured .card-excerpt { font-size: 16px; -webkit-line-clamp: 4; }
.card-featured .card-meta { margin-top: 6px; }
.card-featured .card-body::after {
  content: 'Leer guía →'; align-self: flex-start; margin-top: 4px; padding: 10px 16px; border-radius: 12px; background: var(--brand-soft);
  color: var(--brand-ink); font: 600 14.5px/1 var(--body);
}

/* міні-список */
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mini { display: flex; align-items: flex-start; gap: 12px; padding: 9px 6px; border-radius: 12px; }
.mini:hover { background: var(--surface-2); }
.mini-n { flex: none; width: 30px; font: 700 18px/1.3 var(--head); color: var(--accent-2); }
.mini-body { display: grid; gap: 3px; min-width: 0; }
.mini-title { font-weight: 600; font-size: 14.5px; line-height: 1.38; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-title:hover { color: var(--brand-ink); }
.mini-meta { font-size: 12.5px; color: var(--muted); }

/* ───────────── пагінація ───────────── */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.page-num, .page-btn {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font: 600 15px/1 var(--body); color: var(--ink);
}
.page-num:hover, .page-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.page-num.current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.page-num.dots { background: none; border: 0; min-width: 24px; padding: 0; color: var(--muted); }
.page-btn { padding: 0 16px; }
.page-of { text-align: center; margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* ───────────── «як це працює» ───────────── */
.how-band {
  position: relative; margin-top: 80px; padding: 72px 0; background: var(--night); color: #c9d7d6; overflow: hidden;
}
.how-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(58, 217, 196, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(58, 217, 196, .07) 1px, transparent 1px);
  background-size: 36px 36px;
}
.how-band::after { content: ''; position: absolute; width: 600px; height: 600px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 180, 35, .18), transparent); }
.how-band .wrap { position: relative; z-index: 1; }
.how-head { max-width: 640px; margin-bottom: 36px; }
.how-head h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); margin-bottom: 12px; }
.how-head p { color: #a9bcbb; font-size: 1.05rem; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.how-steps li { position: relative; padding: 26px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.how-n { position: absolute; right: 22px; top: 18px; font: 700 44px/1 var(--head); color: rgba(255, 255, 255, .08); }
.how-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--accent); color: #2a1a00; margin-bottom: 18px; }
.how-ico .ico { width: 24px; height: 24px; stroke-width: 2.2; }
.how-steps h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.how-steps p { font-size: 15px; color: #a9bcbb; }

/* ───────────── «чому ми» ───────────── */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding-bottom: 8px; }
.why-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.25rem); margin-bottom: 14px; }
.why-head p { color: var(--muted); margin-bottom: 22px; font-size: 1.05rem; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.why-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--ps); color: var(--pt); margin-bottom: 14px; flex: none; }
.why-ico .ico { width: 23px; height: 23px; }
.why-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.why-item p { font-size: 14.5px; color: var(--muted); }

/* ───────────── футер ───────────── */
.site-footer { margin-top: 96px; background: var(--night); color: #a9bcbb; padding-bottom: 28px; }
.footer-cta {
  position: relative; top: -56px; margin-bottom: -16px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 40px 44px; border-radius: var(--r-lg); overflow: hidden; color: #d8e6e4;
  background: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(120deg, var(--brand-deep), #0f8a7b 55%, #13a08f);
  box-shadow: var(--shadow-lg);
}
.footer-cta-text { position: relative; z-index: 1; max-width: 620px; }
.footer-cta h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin-bottom: 8px; }
.footer-cta p { color: #d0e7e3; }
.footer-cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta-art { position: absolute; right: -30px; bottom: -60px; width: 260px; height: 260px; color: rgba(255, 255, 255, .08); stroke-width: 1.4; transform: rotate(-20deg); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding: 24px 0 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand p { margin: 16px 0; max-width: 360px; font-size: 14.5px; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 14.5px; }
.footer-mail:hover { color: var(--accent); }
.footer-col h3 { color: #fff; font: 700 15px/1.3 var(--head); margin-bottom: 14px; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a, .footer-col button { color: #a9bcbb; font-size: 14.5px; text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-top: 22px; font-size: 13px; color: #7f9594; }

/* ───────────── оверлеї: бокове меню, пошук ───────────── */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(5, 14, 16, .55); opacity: 0; transition: opacity .3s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 90vw); background: var(--bg); padding: 18px 18px 28px;
  overflow-y: auto; transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg);
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.drawer-search {
  width: 100%; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); font-size: 15px; margin-bottom: 14px;
}
.drawer-search .ico { color: var(--brand); }
.drawer-links { display: grid; gap: 2px; }
.drawer-links a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; font-weight: 600; color: var(--ink); }
.drawer-links a:hover { background: var(--surface-2); }
.drawer-links a small { margin-left: auto; color: var(--muted); font-weight: 500; }
.drawer-links .ico { color: var(--brand); }
.drawer-links-sm a { justify-content: space-between; font-weight: 500; font-size: 15px; color: var(--text); padding: 10px 12px; }
.drawer-label { margin: 18px 12px 8px; font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drawer-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.drawer-topics button { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: left; line-height: 1.25; background: var(--surface); border: 1px solid var(--line); }
.drawer-topics button:hover { border-color: var(--brand); }
.drawer-theme { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 18px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 600; color: var(--ink); }

.search-modal { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: center; align-items: flex-start; padding: 8vh 16px 16px; }
.search-modal[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(5, 14, 16, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s; }
.search-box {
  position: relative; width: 100%; max-width: 680px; max-height: 84vh; display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.search-form { display: flex; align-items: center; gap: 12px; padding: 0 16px 0 20px; height: 66px; border-bottom: 1px solid var(--line); }
.search-form > .ico { color: var(--brand); width: 22px; height: 22px; }
.search-form input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 17px; color: var(--ink); }
.search-form input::placeholder { color: var(--muted); }
.search-form input::-webkit-search-cancel-button { display: none; }
.esc { font: 600 12px/1 var(--body); padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); }
.search-topics { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.search-topics::-webkit-scrollbar { display: none; }
.search-topics .chip { height: 32px; font-size: 13px; flex: none; }
.search-body { overflow-y: auto; padding: 10px 10px 16px; flex: 1; overscroll-behavior: contain; }
.search-label { display: flex; justify-content: space-between; gap: 10px; margin: 12px 10px 8px; font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.search-label span { letter-spacing: 0; text-transform: none; font-weight: 500; }
.search-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--ink); font-size: 15px; line-height: 1.35; }
.sr-item:hover, .sr-item.active { background: var(--surface-2); color: var(--ink); }
.sr-item.active { box-shadow: inset 3px 0 0 var(--brand); }
.sr-item mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-tag { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.sr-count { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.search-empty { padding: 26px 14px; text-align: center; color: var(--muted); }
.search-more { display: block; margin: 10px auto 0; }
.search-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.search-foot kbd { margin-right: 3px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ───────────── архіви ───────────── */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); margin-bottom: 10px; }
.h1-sub { color: var(--muted); font-weight: 600; }
.page-head p { color: var(--muted); }
.cat-hero {
  position: relative; margin-top: 28px; padding: 40px 44px; border-radius: var(--r-lg); overflow: hidden; color: #d8ece8;
  background: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(500px 300px at 90% 10%, rgba(255, 180, 35, .3), transparent 70%),
    linear-gradient(125deg, var(--night-2), var(--brand-deep));
}
.cat-hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); margin: 6px 0 10px; }
.cat-hero p { max-width: 640px; font-size: 1.05rem; color: #c2dbd7; }
.cat-hero-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--accent); color: #2a1a00; margin-top: 16px; }
.cat-hero-ico .ico { width: 26px; height: 26px; }
.cat-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cat-hero-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 600; color: #fff; }
.cat-hero-art { position: absolute; right: 30px; bottom: -40px; width: 240px; height: 240px; color: rgba(255, 255, 255, .08); stroke-width: 1.3; transform: rotate(-18deg); }
.related-topics { display: flex; align-items: flex-start; gap: 16px; margin-top: 22px; }
.rt-label { flex: none; padding-top: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.chip-more { color: var(--brand-ink); }
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty > .ico { width: 44px; height: 44px; color: var(--brand); }
.empty p { margin: 10px 0 18px; color: var(--muted); }

/* хлібні крихти */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.crumbs li + li::before { content: '»'; margin: 0 4px; opacity: .6; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.crumbs-light, .crumbs-light a { color: #a9c7c2; }
.crumbs-light a:hover { color: #fff; }
.crumbs-light [aria-current] { color: #fff; }

/* ───────────── стаття ───────────── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--accent)); }
.post-hero {
  position: relative; margin-top: 24px; padding: 30px 36px 30px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(color-mix(in srgb, var(--c2) 9%, transparent) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, color-mix(in srgb, var(--c2) 9%, transparent) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(135deg, var(--ps), var(--surface) 75%);
  border: 1px solid var(--line);
}
.post-hero .chips { margin: 18px 0 14px; position: relative; z-index: 1; }
.post-hero .crumbs { position: relative; z-index: 1; }
.post-title { position: relative; z-index: 1; font-size: clamp(1.85rem, 1.25rem + 2.3vw, 3rem); line-height: 1.1; letter-spacing: -.03em; max-width: 880px; }
.post-hero-art { position: absolute; right: -10px; top: 50%; transform: translateY(-50%) rotate(-10deg); color: var(--c2); opacity: .14; pointer-events: none; }
.post-hero-art .ico { width: 260px; height: 260px; stroke-width: 1.2; }
.byline { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; }
.avatar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand-deep)); }
.avatar .ico { width: 22px; height: 22px; stroke-width: 2.1; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-lg .ico { width: 30px; height: 30px; }
.byline-text { display: grid; gap: 2px; font-size: 14.5px; color: var(--ink); font-weight: 600; flex: 1 1 200px; min-width: 0; }
.byline-text a { color: var(--ink); }
.byline-text a:hover { color: var(--brand-ink); }
.byline-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.byline-meta span { display: inline-flex; align-items: center; gap: 5px; }
.share { display: flex; gap: 6px; }
.share-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: color .15s, border-color .15s; }
.share-btn:hover { color: var(--brand-ink); border-color: var(--brand); }
.share-btn .ico { width: 18px; height: 18px; }
.copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 5px 8px; border-radius: 7px; background: var(--ink); color: var(--bg); font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.share-btn.done .copied { opacity: 1; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 36px; align-items: start; }
.post-main { min-width: 0; max-width: 760px; }
.side-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.side-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 700 15px/1.2 var(--head); color: var(--ink); }
.side-title .ico { color: var(--brand); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.toc a { display: block; padding: 7px 10px; border-radius: 9px; font-size: 14px; line-height: 1.38; color: var(--text); border-left: 2px solid transparent; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.toc a.active { color: var(--brand-ink); background: var(--brand-soft); border-left-color: var(--brand); font-weight: 600; }
.toc .lvl-3 a { padding-left: 18px; }
.toc-side ol { max-height: 46vh; overflow-y: auto; scrollbar-width: thin; }
.toc-inline { display: none; margin-bottom: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.toc-inline summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary .ico { color: var(--brand); }
.toc-count { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--muted); }
.toc-chev { transition: transform .2s; color: var(--muted) !important; }
.toc-inline[open] .toc-chev { transform: rotate(180deg); }
.toc-inline ol { padding: 0 10px 12px; }

/* типографіка тексту статті */
.prose { font-size: 1.07rem; line-height: 1.78; color: var(--text); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2 { font-size: 1.7rem; margin-top: 2.1em; }
.prose h3 { font-size: 1.38rem; margin-top: 2em; padding-left: 14px; border-left: 4px solid var(--accent); }
.prose h4 { font-size: 1.2rem; margin-top: 1.7em; color: var(--ink); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose strong, .prose b { color: var(--ink); font-weight: 650; }
.prose a { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.prose a:hover { text-decoration-color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 0; }
.prose li { margin: .45em 0; padding-left: .2em; }
.prose li > p { margin: .25em 0; }
.prose ul li::marker { color: var(--brand); }
.prose ol li::marker { color: var(--brand-ink); font-weight: 700; font-family: var(--head); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose img { border-radius: var(--r-sm); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.5; min-width: 520px; }
.prose th { text-align: left; background: var(--surface-2); color: var(--ink); font-weight: 700; font-family: var(--head); padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.prose td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.quick-answer {
  position: relative; padding: 22px 24px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 80%);
}
.quick-answer > * + * { margin-top: .6em; }
.prose .quick-answer h2, .prose .quick-answer h3, .prose .quick-answer h4 { margin-top: .5em; padding: 0; border: 0; font-size: 1.25rem; }
.qa-label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--accent); color: #2a1a00; font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.qa-label .ico { width: 14px; height: 14px; }
.read-also { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.ra-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.ra-body { display: grid; gap: 2px; line-height: 1.4; }
.ra-label { font: 700 11.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prose .read-also a { color: var(--ink); font-weight: 600; text-decoration: none; }
.prose .read-also a:hover { color: var(--brand-ink); }

.note-box { display: flex; gap: 14px; margin-top: 36px; padding: 18px 20px; border-radius: var(--r); background: var(--brand-soft); color: var(--text); font-size: 14.5px; line-height: 1.6; }
.note-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: #fff; }
[data-theme="dark"] .note-ico { color: #04201c; }
.note-box b { color: var(--ink); }
.post-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-tags, .post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.foot-label { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.author-box { display: flex; gap: 20px; margin-top: 28px; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.author-name { font-size: 1.3rem; margin-bottom: 6px; }
.author-box .kicker { margin-bottom: 6px; }
.author-box p { font-size: 15px; color: var(--muted); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.post-nav-link { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s; }
.post-nav-link:hover { border-color: var(--brand); color: var(--ink); }
.post-nav-link b { font: 600 15.5px/1.35 var(--head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.post-nav-link.next { text-align: right; justify-items: end; }
.more-in { margin-top: 36px; }
.more-in-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.more-in-head h2 { font-size: 1.35rem; }

/* ───────────── інформаційні сторінки ───────────── */
.page-hero { position: relative; margin-top: 24px; padding: 40px 44px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%), var(--surface); }
.page-hero .crumbs { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); margin-bottom: 14px; max-width: 860px; }
.page-hero .lead { max-width: 760px; color: var(--text); }
.page-updated { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 36px; align-items: start; }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.45rem; margin-top: 1.8em; }
.page-nav { display: grid; gap: 2px; }
.page-nav a { padding: 8px 10px; border-radius: 9px; font-size: 14.5px; color: var(--text); }
.page-nav a:hover { background: var(--surface-2); color: var(--ink); }
.page-nav a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.side-contact p:not(.side-title) { font-size: 14.5px; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; padding-top: 8px; }
.about-grid .prose h2 { font-size: 1.5rem; }
.about-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.about-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.about-topics button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 12px; text-align: left; }
.about-topics button:hover { background: var(--surface-2); }
.about-topics span { display: grid; line-height: 1.3; }
.about-topics b { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.about-topics small { font-size: 12.5px; color: var(--muted); }
.values { display: grid; gap: 12px; }
.value { display: flex; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.value b { color: var(--ink); font-family: var(--head); }
.value p { font-size: 14px; color: var(--muted); }
.value .why-ico { margin: 0; width: 42px; height: 42px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-top: 8px; }
.contact-form { display: grid; gap: 16px; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--ink); font-weight: 400; font-size: 15.5px;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-sent { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); font-size: 14px; }
.form-sent[hidden] { display: none; }
.contact-side { display: grid; gap: 18px; }
.contact-card .why-ico { margin-bottom: 12px; }
.contact-card a { font-weight: 600; word-break: break-all; }
.faq { border-top: 1px solid var(--line); }
.faq summary { padding: 12px 2px; cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; color: var(--brand); font-weight: 700; }
.faq[open] summary::after { content: '–'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding: 0 2px 12px; font-size: 14px; color: var(--muted); }

/* ───────────── 404 ───────────── */
.notfound { text-align: center; padding-top: 70px; max-width: 760px; }
.nf-art { display: flex; justify-content: center; align-items: center; gap: 6px; font: 700 clamp(6rem, 4rem + 8vw, 10rem)/1 var(--head); letter-spacing: -.05em; color: var(--ink); }
.nf-gear { width: .8em; height: .8em; display: grid; place-items: center; border-radius: 30%; background: var(--accent); color: #2a1a00; transform: rotate(-12deg); }
.nf-gear .ico { width: 55%; height: 55%; stroke-width: 2.2; }
.notfound h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); margin: 18px 0 12px; }
.notfound .lead { color: var(--muted); }
.notfound .chips { margin-top: 30px; }

/* ───────────── адаптив ───────────── */
@media (max-width: 1100px) {
  .search-btn { min-width: 0; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 42px; padding: 0; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr 380px; gap: 24px; }
  .post-layout, .page-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; }
  .why { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(3) { border-left: 0; }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .topics-grid, .grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; }
  .post-layout, .page-layout, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .post-side { display: none; }
  .toc-inline { display: block; }
  .page-side .side-sticky, .about-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  :root { --gut: 16px; }
  body { font-size: 15.5px; }
  .section { padding-top: 52px; }
  .hero { padding-top: 32px; }
  .hero-copy h1 { margin: 18px 0 14px; }
  .hero-search { height: 56px; font-size: 15.5px; }
  .hero-search kbd { display: none; }
  .hero-stats { margin-top: 32px; }
  .hero-stats div { padding: 14px 16px; }
  .hero-stats dd { font-size: 1.2rem; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 20px; }
  .topics-grid, .grid, .why-grid { grid-template-columns: 1fr; }
  .grid { gap: 16px; }
  .card-featured { flex-direction: column; }
  .card-featured .cover { min-height: 0; aspect-ratio: 16 / 8.2; flex: none; }
  .card-featured .card-body { padding: 20px; }
  .card-featured .card-body::after { display: none; }
  .how-band { padding: 52px 0; margin-top: 60px; }
  .post-hero, .page-hero, .cat-hero { padding: 24px 20px; border-radius: var(--r); }
  .post-hero-art .ico { width: 180px; height: 180px; }
  .share-top { width: 100%; }
  .post-nav { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; gap: 12px; padding: 20px; }
  .prose { font-size: 1.02rem; line-height: 1.74; }
  .prose h2 { font-size: 1.45rem; }
  .prose h3 { font-size: 1.22rem; }
  .quick-answer { padding: 18px; }
  .related-topics { flex-direction: column; gap: 8px; }
  .rt-label { padding: 0; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
  .footer-cta { padding: 28px 22px; top: -40px; }
  .footer-cta-actions, .footer-cta-actions .btn { width: 100%; }
  .footer-grid { gap: 28px 20px; }
  .search-modal { padding: 0; }
  .search-box { max-width: none; max-height: 100%; height: 100%; border-radius: 0; }
  .search-foot { display: none; }
  .pagination .page-btn span { display: none; }
  .page-num, .page-btn { min-width: 40px; height: 40px; padding: 0 10px; }
  .crumbs [aria-current] { max-width: 30ch; }
}
@media (max-width: 380px) {
  .logo-text { font-size: 18px; }
  .logo-mark { width: 34px; height: 34px; }
  .header-actions { gap: 6px; }
  .drawer-topics { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .post-side, .share, .to-top, .progress, .post-nav, .more-in, .author-box, .search-modal, .drawer { display: none !important; }
  body { background: #fff; color: #000; }
}
