/* Kidee – stiluri. Layout: un singur container .wrap (max 1200px), grile care se rup singure pe mobil.
   Culori: doar prin variabile; tema închisă redefinește doar variabilele. */
:root {
  --paper: #FAFBFD; --surface: #FFFFFF; --ink: #1A2030; --muted: #566074; --faint: #7F889B;
  --line: #DFE3EC; --line-strong: #C3CAD8;
  --accent: #2853D8; --accent-ink: #FFFFFF; --accent-soft: #EAF0FE; --sun: #FFCF3A;
  --sec-desene-de-colorat: #2B9A5E; --sec-desene-usoare: #D9700F; --sec-de-decupat: #7445CC;
  --sec-fise-de-lucru: #2853D8; --sec-povesti-pentru-copii: #CF3F6C; --sec-sarbatori: #C8462C; --sec-jocuri: #0F8488;
  --ok: #23894F; --err: #C2323A;
  --font-display: "Fredoka", ui-rounded, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10131A; --surface: #171B24; --ink: #E7EAF2; --muted: #A3ABBC; --faint: #7D8699;
    --line: #2A303D; --line-strong: #3E4757;
    --accent: #86A2FF; --accent-ink: #0E1330; --accent-soft: #1C2540; --sun: #E2B82C;
    --sec-desene-de-colorat: #52C58A; --sec-desene-usoare: #F29C4C; --sec-de-decupat: #A684F2;
    --sec-fise-de-lucru: #86A2FF; --sec-povesti-pentru-copii: #F27A9F; --sec-sarbatori: #F07A5E; --sec-jocuri: #45C2C4;
    --ok: #52C58A; --err: #F2727A;
    color-scheme: dark;
  }
  .card-img img, .item-media img, .story-teaser img, .pg img, .step svg { filter: invert(1) hue-rotate(180deg); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(22px, 3vw, 28px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; }
.small { font-size: 14px; color: var(--muted); }
.eyebrow { font: 600 12px/1.3 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 8px; }

/* ---------- header + mega meniu ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font: 600 22px/1 var(--font-display); flex-shrink: 0; }
.logo img { height: 40px; width: auto; display: block; }
.logo-c { fill: var(--sun); } .logo-l { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; } .logo-d { fill: var(--ink); } .logo-p { fill: var(--accent); }
.nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.mm > summary { list-style: none; cursor: pointer; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.mm > summary::-webkit-details-marker { display: none; }
.mm > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; }
.mm > summary:hover, .mm[open] > summary { background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--ink); }
.mm[open] > summary { box-shadow: inset 0 -3px 0 var(--c); }
.mm-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px rgba(20, 30, 60, .14); padding: 18px 20px 20px; }
.mm-all { display: inline-block; font: 600 17px/1.2 var(--font-display); text-decoration: none; color: var(--ink); margin-bottom: 14px; border-bottom: 3px solid var(--c); padding-bottom: 2px; }
.mm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 28px; }
.mm-col:has(.mm-groups) { grid-column: span 2; }
.mm-h { font: 600 11.5px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.mm-list, .mm-groups { list-style: none; margin: 0; padding: 0; }
.mm-list a { display: block; padding: 4px 0; text-decoration: none; color: var(--ink); font-size: 15px; }
.mm-list a:hover, .mm-kids a:hover, .mm-g:hover { color: var(--c); }
.mm-list small { color: var(--faint); font-size: 12.5px; }
.mm-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.mm-g { font-weight: 600; text-decoration: none; color: var(--ink); font-size: 15px; }
.mm-kids { display: block; font-size: 13.5px; color: var(--muted); }
.mm-kids a { color: var(--muted); text-decoration: none; }
.mm-kids a + a::before { content: " · "; color: var(--faint); }
.cta { background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
.cta:hover { filter: brightness(1.08); }
.menu-btn { display: none; margin-left: auto; font: 600 15px var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 14px; cursor: pointer; }

@media (min-width: 1000px) {
  .nav-item { position: static; }
  .mm-panel { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% - 4px); width: min(900px, calc(100vw - 32px)); }
}
@media (max-width: 999px) {
  .js .menu-btn { display: block; }
  .js .nav { display: none; }
  .js .top.open .nav { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 10px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); max-height: calc(100dvh - 64px); overflow-y: auto; }
  .nav-list { flex-direction: column; }
  .mm > summary { padding: 12px 6px; font-size: 17px; justify-content: space-between; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mm[open] > summary { box-shadow: none; background: none; }
  .mm-panel { border: 0; box-shadow: none; padding: 10px 6px 16px; background: none; }
  .mm-col:has(.mm-groups) { grid-column: auto; }
  .mm-groups { grid-template-columns: minmax(0, 1fr); }
  .cta { text-align: center; padding: 12px; }
  .no-js .nav { position: static; }
  .no-js .top-in { flex-wrap: wrap; }
}

/* ---------- elemente comune ---------- */
.main { min-height: 60vh; }
.crumbs { font-size: 13.5px; color: var(--muted); padding-top: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.head { padding-top: 22px; padding-bottom: 8px; }
.block { padding-top: 28px; padding-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.pill:hover { border-color: var(--c, var(--accent)); color: var(--c, var(--accent)); }
.pill small { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.pill.is-empty { color: var(--faint); border-style: dashed; }
body[data-sec] { --c: var(--sec-desene-de-colorat); }
body[data-sec="desene-usoare"] { --c: var(--sec-desene-usoare); } body[data-sec="de-decupat"] { --c: var(--sec-de-decupat); }
body[data-sec="fise-de-lucru"] { --c: var(--sec-fise-de-lucru); } body[data-sec="povesti-pentru-copii"] { --c: var(--sec-povesti-pentru-copii); }
body[data-sec="sarbatori"] { --c: var(--sec-sarbatori); } body[data-sec="jocuri"] { --c: var(--sec-jocuri); }
body[data-sec] .head h1 { box-shadow: inset 0 -.22em 0 color-mix(in srgb, var(--c) 28%, transparent); display: inline; }
body[data-sec] .head .lead { margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font: 600 16px/1 var(--font-body); padding: 13px 20px; border-radius: 12px; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-2 { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.empty { padding: 22px; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); max-width: 70ch; }

/* ---------- prima pagină ---------- */
.hero { background: linear-gradient(180deg, var(--accent-soft), transparent); padding: 40px 0 24px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.hero-ages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.next-h { display: grid; gap: 4px; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 2px solid var(--sec-sarbatori); text-decoration: none; color: var(--ink); }
.next-k { font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--sec-sarbatori); }
.next-n { font: 600 30px/1.1 var(--font-display); }
.next-d { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .hero-in { grid-template-columns: minmax(0, 1fr); } }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tile { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.tile:hover { border-color: var(--c); }
.tile svg { grid-row: span 2; width: 52px; height: 52px; padding: 8px; border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, transparent); fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tile-n { font: 600 20px/1.2 var(--font-display); }
.tile-d { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.story-teaser { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: center; background: color-mix(in srgb, var(--sec-povesti-pentru-copii) 9%, var(--surface)); border-radius: 18px; padding: 26px; margin-top: 28px; }
.story-teaser img { background: #fff; border-radius: 14px; }
@media (max-width: 600px) { .story-teaser { grid-template-columns: minmax(0, 1fr); } .story-teaser img { max-width: 220px; } }
.ask { text-align: left; padding: 30px 26px; margin-block: 28px 40px; border: 2px dashed var(--line-strong); border-radius: 18px; }

/* ---------- grile de carduri ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.card a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.card-img { display: block; aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card a:hover .card-img { border-color: var(--c, var(--accent)); }
.card-t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.card-m { font-size: 13px; color: var(--muted); }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 6px 28px; }
.group h3 { margin: 8px 0 8px; } .group h3 a { color: var(--ink); text-decoration: none; } .group h3 a:hover { color: var(--c); }
.picker { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin-top: 18px; }
.picker-h { font-weight: 600; margin: 0 0 8px; }

/* ---------- pagina de planșă ---------- */
.item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding-top: 18px; align-items: start; }
.item-media { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; position: sticky; top: 84px; }
.item-media img { display: block; width: 100%; height: auto; }
.item-info h2 { font-size: 20px; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 8px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 820px) { .item { grid-template-columns: minmax(0, 1fr); } .item-media { position: static; } }
.prose { max-width: 68ch; } .prose img { border-radius: 12px; }

/* ---------- desene în pași ---------- */
.steps { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-align: center; color: #1A2030; }
.step svg { width: 100%; height: auto; display: block; }
.step g { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.step g.old { color: #C3CAD8; } .step g.new { color: #D9700F; }
.step .dot { fill: currentColor; stroke: none; }
.step p { margin: 6px 0 0; font-size: 14px; color: #566074; } .step b { color: #1A2030; }

/* ---------- calendar ---------- */
.cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cal-i a { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.cal-i a:hover { border-color: var(--sec-sarbatori); }
.cal-d { grid-row: span 2; display: grid; place-content: center; text-align: center; font-size: 12px; color: var(--sec-sarbatori); background: color-mix(in srgb, var(--sec-sarbatori) 11%, transparent); border-radius: 12px; line-height: 1.1; }
.cal-d b { font: 600 24px/1 var(--font-display); display: block; }
.cal-n { font: 600 18px/1.2 var(--font-display); }
.cal-c { font-size: 13.5px; color: var(--muted); }

/* ---------- formulare ---------- */
.form { display: grid; gap: 8px; max-width: 560px; margin-top: 10px; }
.form label { font-weight: 600; margin-top: 8px; }
.form textarea, .form select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; }
.form .btn { justify-self: start; margin-top: 10px; }
.hp { position: absolute; left: -5000px; }
.ok { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); font-weight: 600; }
.err { color: var(--err); font-weight: 600; }

/* ---------- footer ---------- */
.foot { margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.foot-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; padding-block: 34px 18px; }
.foot-brand { grid-column: span 2; color: var(--muted); max-width: 46ch; }
.foot-name { font: 600 22px/1 var(--font-display); color: var(--ink); }
.foot-h { font-weight: 600; margin-bottom: 6px; } .foot-h a { color: var(--ink); text-decoration: none; }
.foot ul { list-style: none; margin: 0; padding: 0; } .foot li { margin: 4px 0; }
.foot li a { color: var(--muted); text-decoration: none; } .foot li a:hover { color: var(--accent); }
.foot-legal { padding-block: 14px 26px; color: var(--muted); border-top: 1px solid var(--line); }
.foot-legal a { color: var(--muted); }
@media (max-width: 600px) { .foot-brand { grid-column: auto; } }

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