/* Poze în PDF – versiunea 2, stilul „Manualul de montaj” */

/* Archivo, găzduit local (licență SIL OFL, vezi fonts/OFL.txt). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F6F4EF;
  --card: #FFFFFF;
  --ink: #161616;
  --muted: #4F4C46;
  --soft: #E9E6DE;
  --faint: #BDB8AC;
  --red: #D5301F;
  --red-ink: #FFFFFF;
  --red-text: #C42A1A;
  --edge: #161616;
  --band: #161616;
  --band-ink: #F6F4EF;
  --band-muted: #CFCBC2;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14130F;
    --card: #1F1D18;
    --ink: #F1EEE6;
    --muted: #B5B0A5;
    --soft: #2E2B25;
    --faint: #5E5A51;
    --red-text: #FF8A7C;
    --edge: #000000;
    --band: #000000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14130F;
  --card: #1F1D18;
  --ink: #F1EEE6;
  --muted: #B5B0A5;
  --soft: #2E2B25;
  --faint: #5E5A51;
  --red-text: #FF8A7C;
  --edge: #000000;
  --band: #000000;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-tap-highlight-color: transparent;
}
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--red-text); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 900px) {
  .wrap { padding-left: 40px; padding-right: 40px; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.ic {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Antet ---------- */
.site-head { border-bottom: 3px solid var(--ink); }
.head-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em;
  color: inherit; text-decoration: none;
}
.brand:hover { color: inherit; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .m1 { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.brand .m2 { fill: var(--red); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.head-nav { display: none; gap: 32px; font-weight: 600; font-size: .95rem; }
.head-nav a { text-decoration: none; display: inline-block; padding: 12px 0; }
.head-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--red); }
@media (min-width: 720px) { .head-nav { display: flex; } }

main { padding-bottom: 56px; }

/* ---------- Butoane ---------- */
.btn {
  font: inherit; font-weight: 800;
  border: 0; border-radius: 8px;
  min-height: 48px; padding: 12px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease, background-color .15s ease;
}
.btn.primary {
  background: var(--red); color: var(--red-ink);
  box-shadow: 0 4px 0 var(--edge);
}
.btn.primary:hover:not(:disabled) { transform: translateY(1px); box-shadow: 0 3px 0 var(--edge); }
.btn.primary:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--edge); }
.btn.primary:disabled { opacity: .55; cursor: default; }
.btn.big { min-height: 64px; padding: 18px 40px; font-size: 1.25rem; }
.btn.quiet {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  border-radius: 6px;
  min-height: 44px; padding: 8px 14px; font-size: .9rem; font-weight: 700;
  white-space: nowrap;
}
.btn.quiet:hover:not(:disabled) { background: var(--card); }
.btn.quiet.armed { background: var(--red); color: var(--red-ink); box-shadow: none; white-space: normal; text-align: center; }
.btn.secondary {
  background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  min-width: 48px; padding: 12px 14px;
}
.btn.secondary:hover:not(:disabled) { background: var(--soft); }
.btn .lbl { display: none; }
@media (min-width: 520px) { .btn .lbl { display: inline; } .btn.secondary { padding: 12px 20px; } }

/* ---------- Prima pagină (fără poze) ---------- */
.hero {
  display: grid; gap: 40px;
  padding: 40px 0 48px;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; padding: 64px 0 56px; }
}
.hero-text { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.kicker {
  margin: 0;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.5rem, 9vw, 4.25rem);
  line-height: .98;
  letter-spacing: -0.035em;
}
.lede { margin: 0; font-size: clamp(1.06rem, 2.4vw, 1.25rem); line-height: 1.45; color: var(--muted); max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 6px; }
.cta-hint { font-size: .95rem; color: var(--muted); }
@media (max-width: 519px) { .cta .btn { width: 100%; } }
.promise {
  list-style: none; margin: 0; padding: 10px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-weight: 700;
}
.promise li { display: flex; align-items: center; gap: 8px; }
.promise svg.ic { stroke-width: 3.2; }

.drop {
  display: none;
  font: inherit; color: inherit;
  border: 3px dashed var(--ink); border-radius: 4px;
  background: var(--card);
  min-height: 420px; padding: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.drop:hover { background: var(--soft); }
@media (min-width: 900px) { .drop { display: flex; } }
.drop-art {
  width: 240px; height: 180px;
  fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.drop-art .paper { fill: var(--card); }
.drop-art .soft { fill: var(--soft); }
.drop-art .acc { stroke: var(--red); stroke-width: 4; }
.drop-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.drop-hint { font-size: .95rem; color: var(--muted); }
html.dragging main { outline: 3px dashed var(--red); outline-offset: 6px; }

/* ---------- Instrucțiuni ---------- */
.manual { padding-bottom: 16px; }
body.has-bar .manual { display: none; }
.rule-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;
  border-top: 3px solid var(--ink);
  padding-top: 14px;
}
.rule-head h2 {
  margin: 0;
  font-size: .95rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.rule-head span { font-size: .95rem; color: var(--muted); }
.panels {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
@media (min-width: 900px) { .panels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.panel {
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 900px) { .panel { padding: 20px; min-height: 250px; } }
.panel p { margin: 0; font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.num {
  flex: none;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 3px solid currentColor; border-radius: 50%;
  font-weight: 900; font-size: 1.35rem; line-height: 1;
}
.num svg.ic { width: 22px; height: 22px; stroke-width: 3.5; }
.art {
  width: 100%; height: auto; aspect-ratio: 200 / 120;
  fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.art .fill { fill: var(--ink); }
.art .paper { fill: var(--card); }
.art .acc { stroke: var(--red); stroke-width: 3.5; }
.art .acc-fill { fill: var(--red); stroke: var(--red); }
.panel.dark { background: var(--band); color: var(--band-ink); }
.panel.dark .art { stroke: var(--band-ink); }
.panel.dark .art .acc { stroke: var(--red); stroke-width: 5; }

/* ---------- Mesaje ---------- */
.notices {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card);
  border: 2px solid var(--red);
  border-left-width: 8px;
  padding: 12px 12px 12px 16px;
  margin-top: 24px;
}
.notices ul { margin: 0; padding: 4px 0 0 18px; flex: 1; font-size: .95rem; }
.notices li + li { margin-top: 6px; }
.noscript {
  background: var(--card); border: 2px solid var(--red);
  padding: 14px 16px; margin: 24px 0 0;
}

/* ---------- Pași 2 și 3 (cu poze) ---------- */
.work { padding-top: 32px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
h2 { font-weight: 800; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.step { display: flex; align-items: center; gap: 12px; }
.step .num { width: 40px; height: 40px; font-size: 1.15rem; }
@media (max-width: 519px) {
  .step { font-size: 1.3rem; gap: 10px; }
  .step .num { width: 36px; height: 36px; font-size: 1.05rem; }
}
.hint { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }

.grid {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 28px 18px;
  align-items: end;
}
@media (max-width: 519px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }
.tile { display: grid; gap: 10px; min-width: 0; }
.sheet {
  position: relative;
  display: block; width: 100%;
  margin: 0; padding: 0;
  font: inherit; color: inherit;
  background: #FFFFFF;
  aspect-ratio: 595.28 / 841.89;
  border: 2px solid var(--ink);
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.sheet:disabled { cursor: default; }
.edit-mark {
  position: absolute; right: 6px; bottom: 6px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #161616; color: #F6F4EF;
  transition: background-color .15s ease;
}
.edit-mark svg.ic { width: 16px; height: 16px; stroke-width: 2.4; }
.sheet:hover:not(:disabled) .edit-mark, .sheet:focus-visible .edit-mark { background: #D5301F; color: #FFFFFF; }
.photo { position: absolute; display: block; pointer-events: none; }
@media (pointer: fine) { .grid .sheet { cursor: grab; } }

/* Pagina trasă cu mouse-ul sau cu degetul */
.tile.lifted { position: relative; z-index: 6; }
.tile.lifted .sheet {
  transform: translate(-4px, -4px) rotate(-2deg);
  border-color: var(--red);
  box-shadow: 8px 8px 0 var(--ink);
}
.tile.lifted .tools { visibility: hidden; }
html.reordering, html.reordering * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }

.only-mouse, .only-touch { display: none; }
@media (pointer: fine) { .only-mouse { display: inline; } }
@media (pointer: coarse) { .only-touch { display: inline; } }
.wait {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #4F4C46; font-size: .88rem;
}
.badge {
  position: absolute; top: -12px; left: -12px;
  min-width: 30px; height: 30px; padding: 0 8px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: .9rem;
}
.tools {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
}
.tool {
  appearance: none; border: 0; margin: 0; padding: 0;
  background: transparent; color: var(--ink);
  min-height: 44px;
  display: grid; place-items: center;
  cursor: pointer;
}
.tool + .tool { border-left: 2px solid var(--ink); }
.tool:hover:not(:disabled) { background: var(--soft); }
.tool:disabled { color: var(--faint); cursor: default; }
.tool.del:hover:not(:disabled) { background: var(--red); color: var(--red-ink); }
.tool:focus-visible { outline-offset: -4px; }

.add-tile { margin-bottom: 56px; }
.add-tile button {
  width: 100%; aspect-ratio: 595.28 / 841.89;
  border: 2px dashed var(--ink); border-radius: 4px;
  background: transparent; color: var(--ink);
  font: inherit; font-weight: 700;
  display: grid; place-content: center; justify-items: center; gap: 6px;
  cursor: pointer;
}
.add-tile button:hover:not(:disabled) { background: var(--card); }
.add-tile button:disabled { color: var(--faint); border-color: var(--faint); cursor: default; }
.add-tile svg.ic { width: 28px; height: 28px; }

.settings { padding-bottom: 8px; }
.settings-grid { display: grid; gap: 22px; margin-top: 20px; }
@media (min-width: 720px) { .settings-grid { grid-template-columns: 1fr 1fr; gap: 24px 40px; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field-label { display: block; font-weight: 700; margin: 0 0 8px; padding: 0; }
.seg {
  display: flex;
  border: 2px solid var(--ink); border-radius: 6px;
  background: var(--card);
  overflow: hidden;
}
.seg label { flex: 1; position: relative; }
.seg label + label { border-left: 2px solid var(--ink); }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center;
  min-height: 46px; padding: 8px 10px;
  font-weight: 700; text-align: center;
  transition: background-color .15s ease, color .15s ease;
}
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: -5px; }
.seg input:disabled + span { opacity: .6; }

.name-field {
  display: flex; align-items: center;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.name-field:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.name-field input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; color: inherit;
  font: inherit; font-size: 16px;
  padding: 11px 14px;
}
.name-field input:focus-visible { outline: none; }
.name-field span { padding-right: 14px; color: var(--muted); }

/* ---------- Confidențialitate și întrebări ---------- */
.privacy { margin-top: 48px; max-width: 60ch; }
.privacy h2, .faq h2 { font-size: 1.4rem; }
.privacy p { color: var(--muted); margin: 10px 0 0; }
.faq { margin-top: 48px; max-width: 66ch; }
.faq h2 { margin-bottom: 10px; }
.faq details { border-bottom: 2px solid var(--ink); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--red);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.faq details p a, .privacy a { color: var(--red-text); font-weight: 600; }

/* ---------- Subsol ---------- */
.foot { background: var(--band); color: var(--band-ink); }
.foot-inner {
  display: grid; gap: 2px;
  padding-top: 28px; padding-bottom: 28px;
}
.foot .next { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; font-size: .9rem; color: var(--band-muted); }
.foot a { color: var(--band-muted); display: inline-block; padding: 10px 0; }
.foot a:hover { color: var(--band-ink); }
body.has-bar .foot { padding-bottom: 150px; }

/* ---------- Bara de jos ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--card);
  border-top: 3px solid var(--ink);
  padding-top: 12px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
.bar-inner {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
}
@media (min-width: 900px) { .bar-inner { padding-left: 40px; padding-right: 40px; } }
.bar-text { flex: 1 1 200px; min-width: 0; display: grid; line-height: 1.3; }
.bar-text strong { font-size: 1rem; font-weight: 800; }
#bar-status, .bar-promise { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bar-status:empty { display: none; }
#bar-status:not(:empty) + .bar-promise { display: none; }
.bar .btn { flex: none; }
.bar #make { padding-left: 32px; padding-right: 32px; font-size: 1.1rem; min-height: 54px; }
@media (max-width: 599px) {
  .bar-text { flex-basis: 100%; }
  .bar #make { flex: 1; }
}

/* ---------- Editorul: decupare ---------- */
html.editing { overflow: hidden; }
.editor {
  padding: 0; border: 0; margin: 0;
  width: 100%; height: 100%; height: 100dvh;
  max-width: none; max-height: none;
  background: var(--paper); color: var(--ink);
}
.editor[open] { display: flex; flex-direction: column; }
@media (min-width: 720px) {
  .editor {
    margin: auto;
    width: min(960px, 94vw); height: min(92vh, 900px);
    border: 3px solid var(--ink);
  }
}
.editor::backdrop { background: rgba(22, 22, 22, .75); }
.ed-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px;
  border-bottom: 3px solid var(--ink);
}
.ed-head h2 { font-size: 1.25rem; }
.ed-head h2:focus { outline: none; }
.ed-hint { margin: 0; padding: 10px 20px; color: var(--muted); font-size: .92rem; }
@media (max-height: 560px) { .ed-hint { display: none; } .ed-head { padding-top: 8px; padding-bottom: 8px; } }
.ed-stage {
  flex: 1; min-height: 0;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--band);
}
.ed-wait { margin: 0; color: var(--band-ink); font-weight: 700; }
.ed-clip { overflow: hidden; padding: 24px; }
.ed-img { position: relative; line-height: 0; }
.ed-img canvas { display: block; }
.ed-crop {
  position: absolute;
  border: 2px solid #FFFFFF;
  outline: 1px solid rgba(0, 0, 0, .5);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .6);
  touch-action: none;
}
.ed-move {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  cursor: move; touch-action: none;
}
.ed-move:focus-visible { outline-offset: -6px; }
.ed-handle {
  position: absolute;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px; padding: 0; border: 0;
  background: transparent;
  touch-action: none;
}
.ed-handle::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 18px;
  transform: translate(-50%, -50%);
  background: #FFFFFF;
  border: 2px solid #161616;
}
.ed-handle[data-h="n"]::before, .ed-handle[data-h="s"]::before { width: 30px; height: 10px; }
.ed-handle[data-h="e"]::before, .ed-handle[data-h="w"]::before { width: 10px; height: 30px; }
.ed-handle:focus-visible { outline: none; }
.ed-handle:focus-visible::before { background: #D5301F; outline: 3px solid #FFFFFF; }
.ed-handle[data-h="nw"] { left: 0; top: 0; cursor: nwse-resize; }
.ed-handle[data-h="n"] { left: 50%; top: 0; cursor: ns-resize; }
.ed-handle[data-h="ne"] { left: 100%; top: 0; cursor: nesw-resize; }
.ed-handle[data-h="e"] { left: 100%; top: 50%; cursor: ew-resize; }
.ed-handle[data-h="se"] { left: 100%; top: 100%; cursor: nwse-resize; }
.ed-handle[data-h="s"] { left: 50%; top: 100%; cursor: ns-resize; }
.ed-handle[data-h="sw"] { left: 0; top: 100%; cursor: nesw-resize; }
.ed-handle[data-h="w"] { left: 0; top: 50%; cursor: ew-resize; }
.ed-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 3px solid var(--ink);
  background: var(--card);
}
.ed-bar .btn.secondary { padding: 12px 16px; }
.ed-bar #ed-done { margin-left: auto; min-width: 120px; font-size: 1.05rem; }
@media (max-width: 519px) {
  .ed-bar .btn.secondary { flex: 1; }
  .ed-bar #ed-done { flex-basis: 100%; margin-left: 0; min-height: 54px; font-size: 1.1rem; }
}

/* ---------- Ghiduri ---------- */
.guide { padding-top: 36px; }
.guide-head { display: grid; gap: 14px; max-width: 46rem; }
.guide-head .kicker { margin: 0; }
.guide-head h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: 1.02; }
.guide-head .lede { max-width: none; }

.tool-card {
  margin-top: 28px;
  border: 3px dashed var(--ink); border-radius: 4px;
  background: var(--card);
  padding: 24px;
  display: grid; gap: 16px;
}
@media (min-width: 900px) {
  .tool-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 28px 32px; column-gap: 32px; }
  .tool-card .promise { grid-column: 1 / -1; padding-top: 0; }
}
.tool-card h2 { font-size: 1.5rem; }
.tool-card p { margin: 6px 0 0; color: var(--muted); }
.tool-card .cta { padding-top: 0; }

.guide-body { max-width: 46rem; padding-top: 44px; }
.guide-body h2 { font-size: 1.45rem; margin: 36px 0 12px; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body p, .guide-body li { font-size: 1.05rem; line-height: 1.65; }
.guide-body p { margin: 0 0 14px; }
.guide-body ul, .guide-body ol { margin: 0 0 14px; padding-left: 24px; }
.guide-body li + li { margin-top: 8px; }
.guide-body ol > li::marker { font-weight: 900; }
.guide-body a { color: var(--red-text); font-weight: 600; }

.guides { margin-top: 48px; }
.guide-list {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: grid; gap: 12px;
}
@media (min-width: 720px) { .guide-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.guide-card {
  height: 100%;
  display: flex; flex-direction: column; gap: 8px;
  border: 2px solid var(--ink); background: var(--card);
  padding: 18px 20px;
  color: inherit; text-decoration: none;
  transition: transform .1s ease, box-shadow .1s ease;
}
.guide-card:hover { color: inherit; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.guide-card strong { font-size: 1.12rem; font-weight: 800; line-height: 1.25; }
.guide-card span { color: var(--muted); line-height: 1.45; }
.guide-card .guide-more { margin-top: auto; padding-top: 6px; color: var(--red-text); font-weight: 700; }

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

/* ---------- Pagini de text (confidențialitate, termeni, 404) ---------- */
.doc main { padding-top: 40px; }
.doc main > * { max-width: 68ch; }
.doc h1 { font-size: clamp(2rem, 7vw, 2.9rem); max-width: none; margin-bottom: 12px; }
.doc h2 { font-size: 1.25rem; margin-top: 32px; }
.doc p, .doc li { line-height: 1.65; }
.doc ul { padding-left: 20px; }
.doc .updated { color: var(--muted); margin-top: 0; }
.doc main a { color: var(--red-text); font-weight: 600; }
