/* Magazin de Etichete Sociale — stiluri site public */
:root {
  --navy: #012674;
  --navy-700: #011d5a;
  --ink: #1a3a6b;
  --ink-soft: #4a5f86;
  --line: #d5dcea;
  --paper: #ffffff;
  --cream: #fbf1e3;
  --cream-line: #f0dcc0;
  --kraft: #a98a62;
  --ok: #2e9b5f;
  --ok-bg: #e9f6ee;
  --err: #c0392b;
  --sun: #f6c445;
  --sun-700: #ebb326;
  --green: #2e7d4f;
  --mint: #ebf6ef;
  --mint-line: #cfe6d7;
  --dark: #0b1736;
  --radius: 4px;
  --wrap: 1100px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-weight: 500; color: var(--ink); background: var(--paper); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }

/* Nimic din conținut nu poate lărgi pagina (ex. etichetele de carton care ies din card pe mobil).
   „clip” nu creează container de scroll, deci header-ul sticky rămâne funcțional; „hidden” = rezervă pt. browsere vechi. */
main { overflow-x: hidden; overflow-x: clip; }
body { overflow-x: clip; } /* plasă de siguranță: nimic nu poate lăți pagina pe mobil (clip, nu hidden — păstrează header-ul sticky) */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- Header / Footer bar ---------- */
.site-header, .site-footer { background: var(--navy); color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; }
.bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  min-height: 64px; padding-inline: 24px;
}
.bar-logo { justify-self: start; display: inline-grid; align-items: center; text-decoration: none; }
.bar-logo img { display: block; height: 44px; width: auto; }
/* Sus: numele ca text (ca în footer); după scroll, header-ul lipit arată logo-ul */
.bar-logo > * { grid-area: 1 / 1; transition: opacity .25s, transform .25s; }
.bar-logo-text { font-weight: 700; font-size: 19px; letter-spacing: .01em; white-space: nowrap; }
.bar-logo img { opacity: 0; transform: translateY(6px); }
.site-header.is-scrolled .bar-logo-text { opacity: 0; transform: translateY(-6px); }
.site-header.is-scrolled .bar-logo img { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .bar-logo > * { transition: none; } }
.bar-brand { font-weight: 700; font-size: 19px; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.bar-nav { display: flex; justify-content: flex-end; gap: 4px 18px; flex-wrap: wrap; font-size: 15px; }
.bar-nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.bar-nav a:hover, .bar-nav a[aria-current="page"] { border-bottom-color: #fff; }
.bar-nav .nav-cta { display: none; }
.menu-toggle { display: none; }
.site-footer { margin-top: 50px; }
.site-footer .bar { grid-template-columns: 1fr auto; min-height: 64px; }
.site-footer .bar-nav { font-size: 17px; }
.footer-note { margin: 0; padding: 0 24px 20px; font-size: 12px; opacity: .8; text-align: center; }

/* ---------- Bara cofinanțare (sus) + parteneri (jos) ---------- */
.funding-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 24px 14px 52px; background: var(--navy); border-bottom: 2px solid #fff;
}
.funding-bar img { display: block; width: auto; height: auto; max-height: 77px; }
.funding-bar img:first-child { max-height: 55px; }
.footer-partners {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  padding: 16px 24px 18px 30px; background: #fff; color: var(--navy);
}
.footer-partners img { display: block; max-width: 100%; height: auto; }
.footer-project { flex: 1 1 420px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.footer-project p { margin: 0; }
.footer-project p + p { margin-top: 8px; }
.footer-fonduri { font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: .02em; }
.footer-fonduri:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .bar { grid-template-columns: 1fr auto; padding-inline: 16px; min-height: 52px; }
  .site-header .bar { grid-template-columns: minmax(0, auto) 1fr auto; grid-template-rows: 52px; grid-auto-rows: auto; column-gap: 8px; } /* rândul cu logo-ul rămâne de 52px și cu meniul deschis */
  .bar-logo { min-width: 0; }
  .bar-logo img { height: 38px; }
  .bar-logo-text { font-size: clamp(13px, 4.3vw, 16px); } /* numele încape și pe telefoanele înguste (320–360 px) */
  .site-header .bar-brand { display: none; } /* numele e deja în logo */
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 40px; height: 40px; padding: 10px; background: none; border: 0; cursor: pointer; justify-self: end;
  }
  .menu-toggle span { display: block; height: 3px; background: #fff; border-radius: 1px; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header .bar-nav {
    grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 0;
    padding-bottom: 12px; display: none;
  }
  .site-header .bar-nav.open { display: flex; }
  .site-header .bar-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 16px; }
  .site-header .bar-nav .nav-cta { display: block; margin-top: 12px; border: 1.5px solid #fff; text-align: center; border-radius: var(--radius); border-bottom: 1.5px solid #fff; }
  .site-footer .bar { grid-template-columns: minmax(0, 1fr); text-align: center; padding-block: 24px; gap: 10px; }
  .site-footer .bar-brand { white-space: normal; font-size: clamp(16px, 5vw, 19px); }
  .site-footer .bar-spacer { display: none; }
  .site-footer .bar-nav { justify-content: center; }
  .funding-bar { padding: 10px 16px; }
  .funding-bar img { max-height: 52px; }
  .funding-bar img:first-child { max-height: 40px; }
  .footer-partners { flex-direction: column; justify-content: center; text-align: center; padding: 20px 16px; }
  .footer-project { flex: none; }
  .footer-project .br-desk { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: #1b130e; position: relative; }
.hero img { width: 100%; height: auto; max-height: calc(100vh - 64px); object-fit: cover; object-position: center 40%; }
.hero::after { /* umbră jos, pentru contrastul indicatorului de scroll */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); pointer-events: none;
}

/* Indicator „scroll în jos” peste hero */
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(14px, 3vw, 32px); z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.6); transition: opacity .4s, visibility .4s;
}
.scroll-cue svg {
  width: 44px; height: 44px; padding: 9px; border: 2px solid rgba(255,255,255,.85); border-radius: 50%;
  fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(1,38,116,.35); animation: cue-bounce 1.8s ease-in-out infinite; transition: background .2s;
}
.scroll-cue:hover svg { background: var(--navy); }
.scroll-cue.is-hidden { opacity: 0; visibility: hidden; }
@keyframes cue-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (max-width: 560px) {
  .scroll-cue span { display: none; }
  .scroll-cue svg { width: 38px; height: 38px; padding: 7px; }
}
.shelves { scroll-margin-top: 52px; }
@media (min-width: 961px) { .shelves { scroll-margin-top: 64px; } }

/* ---------- Tabs & shelves ---------- */
.shelves { padding-top: 48px; }
.tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.tab {
  min-width: 152px; padding: 9px 16px; text-align: center; text-decoration: none; text-transform: uppercase;
  font-size: 13px; letter-spacing: .02em; color: var(--navy); border: 1px solid var(--navy); background: #fff;
  transition: background .15s, color .15s;
}
.tab:hover { background: #eef2fa; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
@media (max-width: 560px) {
  .tabs { flex-wrap: nowrap; gap: 4px; }
  .tab { flex: 1 1 0; min-width: 0; padding: 9px 4px; font-size: 11px; }
}
.shelves-intro { text-align: center; font-size: 14px; margin: 20px auto 40px; max-width: 640px; }

.shelf-head { margin: 8px 0 28px; }
.shelf-label { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.shelf-title { margin: 4px 0 2px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; text-transform: uppercase; color: var(--navy); line-height: 1.15; }
.shelf-desc { margin: 0; font-size: 14px; }
.empty { padding: 40px 0; text-align: center; color: var(--ink-soft); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 40px 14px; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; gap: 40px; } }
/* Cele 3 rafturi: pe tabletă rămân pe un singur rând (altfel al 3-lea rămâne singur pe rândul 2) */
@media (min-width: 561px) and (max-width: 900px) {
  .grid--cats { grid-template-columns: repeat(3, 1fr); gap: 40px 12px; }
  .grid--cats .card-shelf { font-size: clamp(15px, 2.6vw, 20px); margin-bottom: 12px; }
  .grid--cats .card-name--xl { font-size: clamp(16px, 2.8vw, 22px); }
  .grid--cats .card-caption { padding: 14px 4px 0; }
}

.panel.is-entering { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Card ---------- */
.card { display: block; text-decoration: none; color: var(--ink); }
.card-media {
  position: relative; display: block; aspect-ratio: 355 / 346; background: var(--navy);
  overflow: visible; isolation: isolate;
}
.card-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity .45s ease; z-index: 0;
}
.card-media::after { /* tentă albastră peste poster */
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,38,116,.0) 40%, rgba(1,38,116,.55)); opacity: 0; transition: opacity .45s; z-index: 1;
}
.card-play {
  position: absolute; left: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid #fff; display: grid; place-items: center; z-index: 3; opacity: 0;
  transform: scale(.8); transition: opacity .3s, transform .3s;
}
.card-play svg { width: 24px; fill: #fff; margin-left: 3px; }

.tag {
  position: absolute; z-index: 2; left: 37%; top: -3%; width: 60%;
  container-type: inline-size; transform-origin: 72% 2%;
  transition: transform .5s cubic-bezier(.3,1.6,.5,1);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
}
.tag img { width: 100%; height: auto; }
.tag-text {
  position: absolute; left: 54.8%; top: 56%;
  transform: translate(-50%, -50%) rotate(-66.8deg);
  font-size: var(--fs, 15cqw); font-weight: 500; color: #111; white-space: nowrap; line-height: 1;
  letter-spacing: .01em; text-align: center;
}
.tag-text--2 { line-height: 1.08; }

/* Imagine de fundal pe cardul de categorie (opțională, din admin) */
.card-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.card-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card--cat:hover .card-bg img, .card--cat:focus-visible .card-bg img, .card--cat.is-revealed .card-bg img { transform: scale(1.04); }
.card-bg::after { /* tentă albastră jos, ca imaginea să se lege de culorile site-ului */
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,38,116,0) 45%, rgba(1,38,116,.5));
}

/* „RAFTUL 1, 2, 3” deasupra imaginii cardului de categorie, centrat (margin-bottom lasă loc etichetei care iese peste card) */
.card-shelf {
  display: block; margin: 0 0 16px; text-align: center; font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--navy); line-height: 1.2;
}
/* Carduri de categorie (homepage, starea inițială): eticheta stă pe card și se balansează la hover */
.card--cat:hover .tag, .card--cat:focus-visible .tag, .card--cat.is-revealed .tag { transform: rotate(-9deg); }
@media (min-width: 561px) { .card--cat .tag { margin-left: 5px; } } /* fine tuning poziție desktop */
@media (max-width: 560px) { .card--cat .tag { margin-top: 10px; } } /* fine tuning poziție mobil */

/* Carduri de testimonial: poza se vede, eticheta e ascunsă deasupra (se vede doar colțul)
   și coboară în poziția ei la hover. .tag-clip se întinde --peek deasupra cardului
   ca să nu taie sfoara când eticheta e coborâtă. */
.card--t { --peek: 56px; }
.card--t .card-poster { opacity: 1; }
.tag-clip {
  position: absolute; left: 0; right: 0; bottom: 0; top: calc(-1 * var(--peek)); z-index: 2;
  overflow: hidden; pointer-events: none;
  /*clip-path: inset(var(--peek) 0 0 0);*/
  transition: clip-path 0s linear .45s; /* la ieșire: taie abia după ce eticheta a urcat */
}
.tag-clip .tag {
  top: calc(var(--peek) - 3% + 25px);
  transform-origin: 46% -9%;
  transform: translate(-1%, 5%) rotate(-30.5deg);
  transition: transform .45s cubic-bezier(.5, 0, .75, 0); /* urcă repede */
}
.card--t:hover .tag-clip, .card--t:focus-visible .tag-clip, .card--t.is-revealed .tag-clip {
  clip-path: inset(0 0 0 0); transition-delay: 0s;
}
.card--t:hover .tag-clip .tag, .card--t:focus-visible .tag-clip .tag, .card--t.is-revealed .tag-clip .tag {
  transform: rotate(-21.9deg);
  transition: transform .7s cubic-bezier(.25, 1.45, .5, 1); /* coboară cu un mic balans */
}
.card:hover .card-media::after, .card:focus-visible .card-media::after, .card.is-revealed .card-media::after { opacity: 1; }
.card:hover .card-play, .card:focus-visible .card-play, .card.is-revealed .card-play { opacity: 1; transform: none; }

.card-caption { display: block; padding: 18px 16px 0; }
.card-name { display: block; font-size: clamp(18px, 1.9vw, 23px); font-weight: 700; text-transform: uppercase; line-height: 1.2; color: var(--ink); }
.card-role { display: block; font-size: clamp(16px, 1.7vw, 21px); text-transform: uppercase; line-height: 1.3; }
.card-caption--center { text-align: center; }
.card-name--xl { font-size: clamp(22px, 2.6vw, 32px); }
.card-count { display: block; font-size: 13px; color: var(--ink-soft); text-transform: none; margin-top: 2px; }

.card--big { grid-column: 1 / -1; }
.card--big .card-media { aspect-ratio: 1096 / 640; }
.card--big .tag { left: 62%; width: 34%;     top: calc(var(--peek) - 3% + 43px);}
.card--big .card-name { font-size: clamp(22px, 2.6vw, 32px); }
.card--big .card-role { font-size: clamp(18px, 2.2vw, 28px); }

@media (max-width: 560px) {
  .tag { left: 42%; width: 66%; top: -4%; }
  .tag-clip .tag { top: calc(var(--peek) - 6% + 36px); transform: rotate(-24.5deg); transform-origin: 51% -1%; }
  .card--t:hover .tag-clip .tag, .card--t:focus-visible .tag-clip .tag, .card--t.is-revealed .tag-clip .tag { transform: rotate(-17.5deg); }
  .card--big .card-media { aspect-ratio: 355 / 346; }
  .card--big .tag { left: 42%; width: 66%; }
}
@media (hover: none) {
  .card-play { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tag, .tag-clip, .tag-clip .tag, .panel, .card-poster { transition: none !important; animation: none; }
  .scroll-cue svg { animation: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font: 700 16px/1.2 var(--font); text-decoration: none;
  border: 2px solid var(--navy); cursor: pointer; transition: background .15s, transform .15s;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--navy); }
.btn--ghost:hover { background: #eef2fa; }
.btn--block { width: 100%; border-radius: var(--radius); }

/* ---------- Story page ---------- */
.player-band { background: #0d0f14; }
.player { max-width: 1200px; margin: 0 auto; aspect-ratio: 16 / 9; max-height: calc(100vh - 64px); position: relative; }
.player video, .player iframe { width: 100%; height: 100%; display: block; border: 0; background: #000; }
.player-facade {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  background: #111 radial-gradient(circle at 50% 50%, #26334f, #0d0f14); color: #fff;
}
.player-facade img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) brightness(.8); }
.play-btn {
  position: absolute; left: 50%; top: 50%; width: clamp(64px, 9vw, 96px); aspect-ratio: 1; transform: translate(-50%,-50%);
  border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; background: rgba(0,0,0,.25);
  transition: transform .2s, background .2s;
}
.play-btn svg { width: 42%; fill: #fff; margin-left: 6%; }
.player-facade:hover .play-btn { transform: translate(-50%,-50%) scale(1.08); background: rgba(1,38,116,.6); }
.player-dur { position: absolute; right: 16px; bottom: 14px; font-size: 13px; background: rgba(0,0,0,.6); padding: 3px 8px; border-radius: 3px; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: #c9d2e6; background: var(--navy); text-align: center; overflow: hidden; }
.player-empty > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.player-empty-tag { position: relative; width: clamp(140px, 22vw, 240px); aspect-ratio: 560/675; }
.player-empty-tag .tag { left: 0; top: 0; width: 100%; }
.player-empty p { position: relative; margin: 0; font-size: 14px; }

.story { padding-top: 36px; }
.crumb { font-size: 13px; text-decoration: none; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; }
.crumb:hover { color: var(--navy); }
.story-title { margin: 10px 0 6px; font-size: clamp(28px, 4vw, 40px); color: var(--navy); line-height: 1.15; font-weight: 700; }
.story-meta { margin: 0 0 22px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.story-meta strong { color: var(--ink); }
.story-label { font-size: 13px; background: #f3ece2; color: #6b5536; padding: 2px 10px; border-radius: 999px; }
.lead { font-size: 18px; line-height: 1.6; }

.prose { font-size: 16px; line-height: 1.75; }
.prose h2 { font-size: 24px; color: var(--navy); margin: 1.6em 0 .5em; line-height: 1.25; }
.prose h3 { font-size: 19px; color: var(--navy); margin: 1.4em 0 .4em; }
.prose a { color: var(--navy); text-underline-offset: 3px; }
.prose img { height: auto; border-radius: var(--radius); margin: 1em 0; }
.prose blockquote { margin: 1.4em 0; padding: 6px 0 6px 20px; border-left: 4px solid var(--kraft); font-style: italic; }
.prose iframe { max-width: 100%; }

/* ---------- CTA ---------- */
.cta {
  margin: 48px 0 0; padding: 26px 30px; background: var(--cream); border: 1px solid var(--cream-line); border-radius: 10px;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center;
}
.cta-icon { width: 58px; height: 58px; color: var(--ink); grid-row: span 2; }
.cta-title { margin: 0; font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.cta-text { margin: 2px 0 0; font-size: 15px; }
.cta .btn { grid-column: 2; justify-self: start; margin-top: 12px; }
@media (max-width: 560px) {
  .cta { grid-template-columns: 1fr; padding: 22px; }
  .cta-icon { grid-row: auto; width: 46px; height: 46px; }
  .cta .btn { grid-column: 1; width: 100%; }
}

.more { margin-top: 80px; }
.more-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 30px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 80px); padding-top: 56px; align-items: start; }
.contact-intro h1 { margin: 0 0 12px; font-size: clamp(30px, 4.2vw, 46px); color: var(--navy); line-height: 1.1; font-weight: 700; }
.contact-intro > p { font-size: 17px; margin: 0 0 28px; max-width: 440px; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.steps span { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.contact-tag { position: relative; width: 170px; aspect-ratio: 560/675; margin-top: 30px; }
.contact-tag .tag { left: 0; top: 0; width: 100%; transform: rotate(8deg); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3.5vw, 36px); box-shadow: 0 10px 30px rgba(1,38,116,.07); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: 500 16px/1.4 var(--font); color: var(--ink); padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(1,38,116,.15); }
.has-error input, .has-error textarea { border-color: var(--err); }
.field-error { display: block; color: var(--err); font-size: 13px; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 6px 0 4px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.check.has-error span { color: var(--err); }
.contact-card form .btn { margin-top: 18px; }
.hp { position: absolute; left: -9999px; }
.form-alert { background: #fdecea; color: var(--err); padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.form-context { font-size: 13px; background: #eef2fa; padding: 10px 14px; border-radius: 8px; margin: 0 0 18px; }
.success { display: flex; gap: 16px; align-items: center; background: var(--ok-bg); padding: 22px; border-radius: 10px; }
.success svg { width: 44px; height: 44px; flex: none; }
.success circle { fill: var(--ok); }
.success path { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.success strong { display: block; font-size: 17px; }
.success p { margin: 2px 0 0; font-size: 14px; }
.after-success { margin: 22px 0 0; }
@media (max-width: 800px) {
  .contact { grid-template-columns: 1fr; padding-top: 32px; }
  .contact-tag { display: none; }
}

/* ---------- CMS page ---------- */
.page-head { background: var(--navy); color: #fff; padding: clamp(24px, 4vw, 44px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { margin: 0; font-size: clamp(30px, 5vw, 52px); line-height: 1.1; text-transform: uppercase; font-weight: 700; }
.page-head p { margin: 10px 0 0; font-size: 17px; max-width: 640px; opacity: .92; }
.page-body { padding-top: 40px; }
.page-body .prose > :first-child { margin-top: 0; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: 60px 20px; }
.notfound-tag { position: relative; width: 160px; aspect-ratio: 560/675; margin: 0 auto 20px; }
.notfound-tag .tag { left: 0; top: 0; width: 100%; }
.notfound h1 { color: var(--navy); }

/* ---------- Landing „Pentru angajatori” (șablon cu secțiuni) ---------- */
.page-landing .site-footer { margin-top: 0; }
.page-landing .wrap { max-width: 1280px; }
.page-landing section[id] { scroll-margin-top: 52px; }
@media (min-width: 961px) { .page-landing section[id] { scroll-margin-top: 64px; } }
.ico-ui { width: 20px; height: 20px; flex: none; }
.ico-arrow { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ico-arrow { transform: translateX(3px); }
.btn--sun { background: var(--sun); border-color: var(--sun); color: var(--navy); box-shadow: 0 6px 18px rgba(246,196,69,.25); }
.btn--sun:hover { background: var(--sun-700); border-color: var(--sun-700); transform: translateY(-1px); }
.btn--glass { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.8); color: #fff; }
.btn--glass:hover { background: rgba(255,255,255,.16); }

/* Hero */
.lp-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: #fff; }
.lp-hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: min(58%, 900px); z-index: -1; }
.lp-hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%); mask-image: linear-gradient(90deg, transparent 0, #000 42%);
}
.lp-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,23,54,.5), transparent 30%); }
.lp-hero-in { min-height: clamp(460px, 42vw, 580px); display: flex; align-items: center; padding-block: 56px 64px; }
.lp-hero-copy { max-width: 640px; }
.lp-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lp-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--sun); }
.lp-hero-title { margin: 0; font-size: clamp(19px, 2.1vw, 26px); line-height: 1.2; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.lp-hl { display: block; margin-top: .2em; color: var(--sun); }
.lp-hero-text { margin: 22px 0 0; max-width: 520px; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.6; color: rgba(255,255,255,.88); }
.lp-btns .btn, .lp-final .btn { border-radius: 0; }
.lp-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 760px) {
  .lp-hero-media { position: relative; width: 100%; height: clamp(240px, 62vw, 380px); }
  .lp-hero-media img { -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent); mask-image: linear-gradient(180deg, #000 50%, transparent); }
  .lp-hero-media::after { display: none; }
  .lp-hero-in { min-height: 0; margin-top: -64px; padding-block: 0 44px; position: relative; }
  .lp-btns .btn { flex: 1 1 100%; }
}

/* De ce merită */
.lp-why { background: var(--cream); border-block: 1px solid var(--cream-line); }
.lp-why-in { display: grid; grid-template-columns: minmax(230px, 290px) 1fr; gap: 28px 48px; align-items: center; padding-block: clamp(32px, 4vw, 48px); }
.lp-why-title { margin: 0; padding-right: 36px; border-right: 1px solid var(--cream-line); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.25; font-weight: 800; letter-spacing: .02em; color: var(--navy); text-wrap: balance; }
.lp-why-q { display: block; margin-top: 10px; font-size: clamp(15px, 1.35vw, 17px); line-height: 1.35; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); }
.lp-why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 28px; }
.lp-why-item { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; align-content: start; }
.lp-why-item > * { grid-column: 2; }
.lp-why-item > .ico { grid-column: 1; grid-row: 1 / span 2; }
.lp-why-item .ico { width: 32px; height: 32px; color: var(--navy); margin: 0; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.lp-why-item:hover .ico { transform: translateY(-3px) rotate(-6deg); }
.lp-why-item h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.25; font-weight: 700; color: var(--navy); }
.lp-why-item p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 860px) {
  .lp-why-in { grid-template-columns: 1fr; }
  .lp-why-title { padding: 0; border: 0; }
  .lp-why-title br { display: none; }
}
@media (max-width: 560px) { .lp-why-list { grid-template-columns: 1fr; gap: 22px; } }

/* N lucruri */
.lp-facts { padding-top: clamp(48px, 6vw, 80px); }
.lp-facts-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 32px; }
.lp-h2 { margin: 0; max-width: 880px; font-size: clamp(24px, 2.9vw, 36px); line-height: 1.2; font-weight: 800; color: var(--navy); text-wrap: balance; }
.lp-mark {
  color: inherit; padding: 0 .2em; margin-left: -.1em;
  background: linear-gradient(100deg, transparent 1%, var(--sun) 3%, var(--sun) 97%, transparent 99%) no-repeat 0 65% / 100% 72%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lp-guide {
  display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px; border: 1.5px solid var(--navy);
  background: #fff; color: var(--navy); text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s;
}
.lp-guide:hover { background: #eef2fa; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(1,38,116,.1); }
.lp-guide-ico { width: 26px; height: 26px; }
.lp-guide strong { display: block; font-size: 14px; line-height: 1.3; }
.lp-guide small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.lp-facts-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.lp-fact {
  padding: 18px 18px 20px; background: #f8f6f2; border: 1px solid #efe9df;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.lp-fact:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 10px 24px rgba(1,38,116,.08); }
.lp-num { display: inline-block; margin-bottom: 12px; padding: 2px 8px; background: #dcefe2; color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.lp-fact h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.lp-fact p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 1100px) { .lp-facts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .lp-facts-grid { grid-template-columns: repeat(2, 1fr); } .lp-guide { width: 100%; } .lp-h2 br { display: none; } }
@media (max-width: 560px) { .lp-facts-grid { grid-template-columns: 1fr; gap: 10px; } }

/* Cifre */
.lp-stats-sec { padding-top: 28px; }
.lp-stats {
  list-style: none; margin: 0; padding: 26px clamp(18px, 3vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px 0; background: var(--mint); border: 1px solid var(--mint-line);
}
.lp-stat { display: grid; grid-template-columns: auto auto minmax(170px, 1fr); align-items: center; gap: 8px 18px; padding: 4px clamp(12px, 2.5vw, 36px); }
.lp-stat:first-child { padding-left: 0; }
.lp-stat + .lp-stat { border-left: 1px solid var(--mint-line); }
.lp-stat .ico { width: 40px; height: 40px; color: var(--green); }
.lp-stat-v { display: flex; flex-direction: column; align-items: flex-start; }
.lp-stat-pre { margin-bottom: 2px; font-size: 14px; font-weight: 600; line-height: 1.1; color: var(--green); }
.lp-stat-val { font-size: clamp(32px, 3.8vw, 46px); font-weight: 800; line-height: 1; color: var(--green); white-space: nowrap; letter-spacing: -.02em; }
.lp-stat h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.lp-stat p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
@media (max-width: 760px) {
  .lp-stats { grid-template-columns: 1fr; gap: 0; padding-block: 8px; }
  .lp-stat { grid-template-columns: auto 1fr; padding: 18px 0; }
  .lp-stat > div { grid-column: 1 / -1; }
  .lp-stat + .lp-stat { border-left: 0; border-top: 1px solid var(--mint-line); }
}

/* Primul pas (resurse) */
.lp-res { padding-block: clamp(48px, 6vw, 48px); }
.lp-res + .lp-orgs { padding-top: 0; } /* fără spațiu dublu între resurse și organizații */
.lp-res-box {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 3.5vw, 44px); background: #eef2fa; border: 1px solid var(--line); border-left: 4px solid var(--navy);
}
.lp-res-ico { width: 34px; height: 34px; margin-bottom: 14px; color: var(--navy); }
.lp-res-copy .lp-h2 { font-size: clamp(22px, 2.4vw, 30px); }
.lp-res-copy p { margin: 12px 0 0; max-width: 620px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.lp-res-link {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; background: #fff; border: 1.5px solid var(--navy);
  color: var(--navy); text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.lp-res-link:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(1,38,116,.12); }
.lp-res-link small { font-size: 13px; color: var(--ink-soft); }
.lp-res-link strong { font-size: 16px; line-height: 1.35; }
.lp-res-url { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lp-res-url .ico-ui { width: 16px; height: 16px; transition: transform .2s; }
.lp-res-link:hover .lp-res-url .ico-ui { transform: translate(2px, -2px); }
@media (max-width: 860px) { .lp-res-box { grid-template-columns: 1fr; } }

/* Organizații */
.lp-orgs { padding-block: clamp(48px, 6vw, 80px); }
.lp-sub { margin: 8px 0 28px; max-width: 720px; font-size: 15px; color: var(--ink-soft); }
.lp-orgs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.lp-org {
  position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px; background: #fff;
  border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.lp-org:hover { border-color: var(--navy); box-shadow: 0 12px 28px rgba(1,38,116,.1); transform: translateY(-3px); }
.lp-org:focus-within { outline: 3px solid #f5b400; outline-offset: 2px; }
.lp-org-logo { display: flex; align-items: center; height: 56px; margin-bottom: 16px; }
.lp-org-logo img { width: auto; max-width: 85%; max-height: 52px; object-fit: contain; }
.lp-org-name { font-size: 18px; font-weight: 800; line-height: 1.15; color: var(--navy); }
.lp-org p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; }
.lp-org-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; }
.lp-org-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* tot cardul e clickabil */
.lp-org-link:focus-visible { outline: none; }
.lp-org-link .ico-ui { width: 16px; height: 16px; transition: transform .2s; }
.lp-org:hover .lp-org-link .ico-ui { transform: translate(2px, -2px); }

/* Îndemn final */
.lp-final { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: #fff; }
.lp-final-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.lp-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,23,54,.95) 0%, rgba(11,23,54,.84) 48%, rgba(11,23,54,.5) 100%); }
.lp-final-in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px 56px; padding-block: clamp(52px, 6vw, 80px); }
.lp-final h2 { margin: 0; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; font-weight: 800; }
.lp-final-copy p { margin: 14px 0 28px; max-width: 600px; font-size: 16px; color: rgba(255,255,255,.88); }
.lp-note {
  position: relative; display: grid; place-items: center; width: clamp(190px, 20vw, 240px); aspect-ratio: 1; margin: 0 24px 0 0; padding: 22px 18px;
  font: 600 clamp(26px, 2.5vw, 32px)/1.05 "Caveat", "Segoe Print", "Comic Sans MS", cursive; color: #2b2b2b; text-align: center;
  background: linear-gradient(165deg, #fbe39a, #f3cb62 65%, #ecbd4d); border-radius: 2px 2px 20px 2px;
  box-shadow: 0 20px 34px rgba(0,0,0,.38), inset 0 -14px 20px rgba(0,0,0,.05);
  transform: rotate(4deg); transition: transform .45s cubic-bezier(.3,1.5,.5,1);
}
.lp-note::before { /* bandă adezivă */
  content: ""; position: absolute; top: -11px; left: 50%; width: 86px; height: 24px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(255,255,255,.5); box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.lp-note:hover { transform: rotate(1deg) scale(1.03); }
@media (max-width: 760px) {
  .lp-final-in { grid-template-columns: 1fr; }
  .lp-final::before { background: rgba(11,23,54,.86); }
  .lp-final .btn { width: 100%; }
  .lp-note { justify-self: center; margin: 8px 0 0; transform: rotate(-3deg); }
}

/* „Arată încă…” — listele lungi se scurtează doar pe mobil (JS adaugă .is-collapsed + butonul) */
.more-btn { display: none; }
@media (max-width: 700px) {
  [data-collapse].is-collapsed > .is-extra { display: none; }
  [data-collapse] > .is-extra.is-shown { animation: fade .35s ease both; }
  .more-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 13px 18px;
    font: 700 14px/1.2 var(--font); color: var(--navy); background: #fff; border: 1.5px solid var(--navy); cursor: pointer;
  }
  .more-btn:hover { background: #eef2fa; }
  .more-btn svg { width: 18px; height: 18px; transition: transform .25s; }
  .more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  .lp-why .more-btn { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-note, .lp-fact, .lp-org, .lp-res-link, .lp-why-item .ico, [data-collapse] > .is-extra { transition: none !important; animation: none !important; }
}

/* Neon flicker pe firma din hero (straturi poziționate de JS peste fiecare literă).
   mix-blend-mode: darken coboară doar pixelii mai luminoși decât --off (tuburile aprinse);
   panoul întunecat din jur rămâne neatins, deci nu se vede niciun dreptunghi. */
.neon { position: absolute; inset: 0; pointer-events: none; overflow: hidden; } /* fără z-index/transform: blend-ul trebuie să vadă imaginea */
.page-home .hero { container-type: inline-size; } /* cqw pentru .neon-stage; hero e deja contextul care conține imaginea */
/* „scena” = imaginea întreagă, cropată exact ca img-ul din hero: object-fit: cover, object-position: 50% (--posn × 100%),
   înălțime vizibilă = min(lățime / raport, 100vh − 64px), aceeași formulă ca max-height-ul imaginii */
.neon-stage {
  --H: min(100cqw / var(--ar), 100vh - 64px);
  --W: max(100cqw, var(--H) * var(--ar));
  position: absolute; width: var(--W); height: calc(var(--W) / var(--ar));
  left: calc((100cqw - var(--W)) / 2);
  top: calc((var(--H) - var(--W) / var(--ar)) * var(--posn, 0.4));
}
.neon-l {
  position: absolute; opacity: 0; will-change: opacity; mix-blend-mode: darken; background: var(--off, rgb(190, 150, 110));
  -webkit-mask-image: radial-gradient(ellipse 70% 70%, #000 80%, transparent); mask-image: radial-gradient(ellipse 70% 70%, #000 80%, transparent);
}
.neon-on { position: absolute; opacity: 0; mix-blend-mode: screen; will-change: opacity; } /* literele stinse, aprinse de JS */

/* ---------- Banda „Și tu poți face diferența!” (distribuire + LinkedIn) ---------- */
.imp-band { margin-top: 50px; background: var(--cream); border-top: 1px solid var(--cream-line); }
.imp-band + .site-footer, .page-landing .imp-band { margin-top: 0; }
.page-landing .imp-band { border-top: 0; }
.imp-in { display: grid; justify-items: center; text-align: center; padding-block: clamp(40px, 6vw, 64px); }
.imp-icon { width: 56px; height: 56px; color: var(--navy); margin-bottom: 10px; }
.imp-title { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--navy); line-height: 1.2; }
.imp-text { margin: 10px 0 0; max-width: 560px; font-size: 16px; }
.imp-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: 26px; }
.ico-ui { width: 20px; height: 20px; flex: none; }
.btn--li { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.btn--li:hover { background: #004182; border-color: #004182; transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
@media (max-width: 560px) { .imp-acts { width: 100%; } .imp-acts .btn { width: 100%; } }

/* Dialoguri */
.sdlg { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 12px; color: var(--ink); box-shadow: 0 24px 60px rgba(1,20,60,.35); }
.sdlg--wide { width: min(760px, calc(100vw - 24px)); }
.sdlg::backdrop { background: rgba(11,23,54,.6); }
.sdlg[open] { animation: sdlg-in .2s ease-out; }
@keyframes sdlg-in { from { opacity: 0; transform: translateY(12px); } }
.sdlg-in { padding: 22px clamp(18px, 4vw, 30px) 26px; }
.sdlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sdlg-head h2 { margin: 2px 0 0; font-size: 22px; line-height: 1.25; color: var(--navy); font-weight: 800; }
.sdlg-x { flex: none; width: 38px; height: 38px; margin: -4px -8px 0 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.sdlg-x:hover { background: #eef2fa; }
.sdlg-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sdlg-lead { margin: 8px 0 0; font-size: 15px; }

.imp-preview { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.imp-preview img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; }
.imp-preview figcaption { display: grid; gap: 2px; padding: 10px 14px 12px; background: #f6f8fc; font-size: 13px; }
.imp-preview small { text-transform: uppercase; color: var(--ink-soft); letter-spacing: .03em; font-size: 11px; }
.imp-preview strong { font-size: 15px; color: var(--navy); line-height: 1.3; }
.imp-preview span { color: var(--ink-soft); }
.imp-nets { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.imp-net { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 8px 4px; border: 0; border-radius: 8px; background: none; font: 600 13px/1.2 var(--font); color: var(--ink); text-decoration: none; cursor: pointer; }
.imp-net:hover { background: #f1f4fa; }
.imp-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--navy); }
.imp-ico svg { width: 24px; height: 24px; }
.imp-net--fb .imp-ico { background: #1877f2; }
.imp-net--in .imp-ico { background: #0a66c2; }
.imp-net--wa .imp-ico { background: #25d366; }
.imp-net--xx .imp-ico { background: #000; }
.imp-net--xx .imp-ico svg { width: 20px; height: 20px; }
.imp-net--nat .imp-ico { background: #e6ebf4; color: var(--navy); }
.imp-copy { display: flex; gap: 8px; margin-top: 18px; }
.imp-copy input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: 500 14px var(--font); color: var(--ink); background: #f6f8fc; }
.imp-copy .btn, .li-post-btns .btn, .li-step > .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 420px) { .imp-copy { flex-direction: column; } }

.li-step { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.li-step h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; color: var(--navy); }
.li-step h3 span { width: 26px; height: 26px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--sun); color: var(--navy); font-size: 14px; }
.li-frame { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 22px; align-items: center; }
.li-canvas-wrap { position: relative; width: 100%; max-width: 280px; aspect-ratio: 1; justify-self: center; }
.li-canvas-wrap canvas { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 6px 22px rgba(1,38,116,.18); }
/* tragerea cu degetul încadrează fotografia doar după ce e încărcată; până atunci, degetul derulează pagina */
.li-canvas-wrap canvas.has-photo { cursor: grab; touch-action: none; }
.li-canvas-wrap canvas.dragging { cursor: grabbing; }
.li-controls { display: grid; gap: 12px; justify-items: start; }
.li-controls .btn { padding: 12px 20px; font-size: 15px; }
.li-pick { cursor: pointer; }
.li-pick:focus-within { outline: 3px solid #f5b400; outline-offset: 2px; }
.li-zoom { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 14px; }
.li-zoom input { flex: 1; accent-color: var(--navy); }
.li-hint, .li-privacy { margin: 0; font-size: 13px; color: var(--ink-soft); }
.li-err { margin: 0; font-size: 14px; color: var(--err); }
.li-how { margin: 18px 0 8px; padding-left: 20px; font-size: 14px; display: grid; gap: 4px; }
.li-open { font-size: 14px; font-weight: 700; color: #0a66c2; }
.li-cover { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.li-step > .btn { margin-top: 10px; }
#li-post { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 6px; font: 500 14px/1.5 var(--font); color: var(--ink); background: #f6f8fc; resize: vertical; }
.li-post-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 8px; }
@media (max-width: 600px) {
  .li-frame { grid-template-columns: 1fr; }
  .li-canvas-wrap { max-width: 240px; }
  .li-controls { justify-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .sdlg[open] { animation: none; } }

/* ---------- Buton „înapoi sus” (apare când utilizatorul ajunge jos de tot) ---------- */
.to-top {
  position: fixed; z-index: 60; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  border: 2px solid #fff; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer;
  box-shadow: 0 6px 18px rgba(1,38,116,.3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility 0s linear .25s, background .15s;
}
.to-top.is-visible { opacity: .6; visibility: visible; transform: none; transition: opacity .25s, transform .25s, visibility 0s, background .15s; }
.to-top.is-visible:hover, .to-top.is-visible:focus-visible { opacity: 1; background: var(--navy-700); transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .to-top { right: 14px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top.is-visible { transition: none; } }

/* ---------- Cookie-uri: banda de acord, linkuri legale în subsol, tabelul din „Termeni și condiții” ---------- */
.cookie-banner {
  position: fixed; z-index: 90; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 18px 18px 16px; border-radius: 12px; border-top: 4px solid var(--sun);
  background: var(--navy); color: #fff; box-shadow: 0 12px 36px rgba(1,20,60,.35);
  animation: cookie-in .3s ease-out;
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(14px); } }
.cookie-inner { display: grid; gap: 14px; }
.cookie-inner > * { min-width: 0; }
.cookie-copy h2 { margin: 0 0 6px; font-size: 15px; line-height: 1.3; }
.cookie-copy p { margin: 0; font-size: 13px; line-height: 1.5; opacity: .92; }
.cookie-copy a { color: var(--sun); font-weight: 700; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { flex: 1 1 auto; padding: 9px 14px; font-size: 13px; border-width: 2px; }
.cookie-actions [data-cookie="accept"], .cookie-actions [data-cookie="save"] { flex-basis: 100%; }
.cookie-prefs { display: grid; gap: 8px; }
.cookie-opt {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); cursor: pointer;
}
.cookie-opt input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--sun); }
.cookie-opt b { display: block; font-size: 13px; }
.cookie-opt small { display: block; font-size: 12px; line-height: 1.4; opacity: .85; margin-top: 2px; }
.cookie-opt:has(input:disabled) { cursor: default; }
/* Eticheta „Mod mentenanță” (tot stânga jos) urcă deasupra cardului */
body.has-cookie-banner .maint-pill { bottom: auto; top: 12px; }
@media (max-width: 480px) { .cookie-banner { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 24px); } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }

/* Linkurile legale: mici, sub meniul din subsol, aliniate la dreapta */
.site-footer .bar:has(.footer-legal) { row-gap: 0; padding-block: 10px; }
.site-footer .bar:has(.footer-legal) .bar-brand { grid-row: span 2; }
.footer-legal { grid-column: 2; display: flex; justify-content: flex-end; gap: 2px 16px; flex-wrap: wrap; font-size: 11.5px; line-height: 1.3; }
.footer-legal a, .footer-legal .linklike { color: #fff; opacity: .7; text-underline-offset: 2px; white-space: nowrap; }
.footer-legal a:hover, .footer-legal .linklike:hover { opacity: 1; }
@media (max-width: 960px) {
  .site-footer .bar:has(.footer-legal) { row-gap: 10px; padding-block: 24px; }
  .site-footer .bar:has(.footer-legal) .bar-brand { grid-row: auto; }
  .footer-legal { grid-column: 1; justify-content: center; }
}
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

.cookie-table h3 { margin-top: 1.6em; }
.cookie-table .tbl-scroll { overflow-x: auto; margin: .6em 0 1.2em; border: 1px solid var(--line); border-radius: 6px; }
.cookie-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.cookie-table th { text-align: left; background: #f3f6fb; color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.cookie-table th, .cookie-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-table tr:last-child td { border-bottom: 0; }
.cookie-table code { font-size: 13px; white-space: nowrap; }
.cookie-table .small { font-size: 13px; color: var(--ink-soft); }

/* ---------- Medalia cu portret ---------- */
.btn--coin { background: linear-gradient(180deg, #f07a1e, #c94f05); border-color: #d85f0c; color: #fff; }
.btn--coin:hover { background: linear-gradient(180deg, #e06c12, #b54504); border-color: #b54504; transform: translateY(-1px); }
.coin-grid { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 26px; align-items: start; margin-top: 16px; }
.coin-stage { position: sticky; top: 0; padding: 14px 10px 6px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #fff6ec, #fbf1e3 70%); }
.coin-step + .coin-step { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.coin-step h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 17px; color: var(--navy); }
.coin-step h3 span { width: 26px; height: 26px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--sun); color: var(--navy); font-size: 14px; }
.coin-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 8px; }
.coin-btns .btn { padding: 11px 18px; font-size: 15px; }
.coin-edit { margin: 4px 0 8px; font-size: 14px; color: var(--ink-soft); }
.coin-edit .linklike { color: var(--navy); font-weight: 600; }
.coin-net-label { margin-top: 14px; }
.imp-nets--row { margin-top: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-text { width: 100%; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; font: 500 14px/1.5 var(--font); color: var(--ink); background: #f6f8fc; resize: vertical; }
@media (max-width: 640px) {
  .coin-grid { grid-template-columns: 1fr; gap: 18px; }
  .coin-stage { position: static; max-width: 300px; width: 100%; justify-self: center; }
  .coin-btns .btn { flex: 1 1 100%; }
}
