/* Posta Mosului: noapte de iarna cu ninsoare; sectiuni ca plicuri si etichete de cadou. */
:root {
  --pm-night: #0f1d3d;
  --pm-night-2: #16295a;
  --pm-night-3: #1c3470;
  --pm-snow: #f7f4ee;
  --pm-candy: #e8463a;
  --pm-candy-dk: #b92f25;
  --pm-gold: #f5c04a;
  --pm-pine: #2f8f5b;
  --pm-pine-lt: #4fc285;
  --pm-ink: #1b2340;
  --pm-muted: #b9c4e4;
  --pm-paper: #fffaf0;
  --pm-line: rgba(255, 255, 255, 0.14);
  --pm-display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --pm-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pm-night);
  color: var(--pm-snow);
  font-family: var(--pm-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
.pm-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.pm-wrap {
  position: relative; z-index: 1; max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--pm-display); font-weight: 800; line-height: 1.05; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2.1rem, 5vw, 3rem); color: var(--pm-gold); }
p { margin: 0; }
a { color: var(--pm-gold); }
:focus-visible { outline: 3px solid var(--pm-gold); outline-offset: 3px; border-radius: 6px; }

/* bara de sus */
.pm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.pm-logo { font-family: var(--pm-display); font-weight: 800; font-size: 1.6rem; color: var(--pm-snow); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.pm-stamp { width: 40px; height: 40px; border: 2px dashed var(--pm-gold); border-radius: 8px; display: grid; place-items: center; transform: rotate(-8deg); background: var(--pm-candy); font-size: 1.1rem; }
.pm-nav { display: flex; gap: 22px; align-items: center; }
.pm-navlink { color: var(--pm-muted) !important; text-decoration: none; font-weight: 700; }
.pm-navlink:hover { color: var(--pm-snow) !important; }

/* butoane */
.pm-cta-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--pm-display); font-weight: 800; font-size: 1.2rem; border: 0; cursor: pointer; text-decoration: none;
  background: var(--pm-candy); color: #fff; padding: 13px 28px; border-radius: 999px;
  box-shadow: 0 5px 0 var(--pm-candy-dk); transition: transform .15s, box-shadow .15s;
}
.pm-cta-main:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--pm-candy-dk); }
.pm-cta-main:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pm-candy-dk); }
.pm-cta-main[disabled] { opacity: .6; cursor: wait; }
.pm-cta-ribbon {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none;
  color: var(--pm-snow); padding: 12px 22px; border-radius: 14px;
  border: 2px dashed rgba(245, 192, 74, .6); transition: background .15s, border-color .15s;
}
.pm-cta-ribbon:hover { background: rgba(245, 192, 74, .12); border-color: var(--pm-gold); }
.pm-cta-small { font-family: var(--pm-display); font-weight: 700; color: var(--pm-night); background: var(--pm-gold); border-radius: 10px; padding: 7px 16px; text-decoration: none; transform: rotate(-2deg); display: inline-block; transition: transform .15s; }
.pm-cta-small:hover { transform: rotate(0deg) scale(1.04); }

/* hero */
.pm-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; padding-block: 36px 70px; }
.pm-hero h1 { font-size: clamp(2.7rem, 7vw, 4.7rem); color: var(--pm-snow); }
.pm-name { color: var(--pm-gold); display: inline-block; transform: rotate(-3deg); text-decoration: underline wavy var(--pm-candy) 4px; text-underline-offset: 10px; }
.pm-lead { font-size: 1.2rem; color: var(--pm-muted); margin-top: 18px; max-width: 36ch; }
.pm-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }
.pm-deadline { margin-top: 22px; display: inline-flex; gap: 10px; align-items: center; background: rgba(245, 192, 74, .12); border: 1px solid rgba(245, 192, 74, .4); color: var(--pm-gold); padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: .95rem; }
.pm-hero-art { position: relative; min-width: 0; }
.pm-hero-photo { border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transform: rotate(-2deg); border: 6px solid var(--pm-paper); }
.pm-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.pm-letter {
  position: absolute; left: -28px; bottom: -40px; width: min(330px, 78%);
  background: var(--pm-paper); color: var(--pm-ink); border-radius: 14px; padding: 22px 20px 18px;
  transform: rotate(3deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); animation: pm-float 5s ease-in-out infinite;
}
.pm-letter::before { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(232, 70, 58, .35); border-radius: 10px; pointer-events: none; }
.pm-seal { position: absolute; right: -14px; top: -16px; width: 58px; height: 58px; border-radius: 50%; background: var(--pm-candy); color: #fff; display: grid; place-items: center; font-family: var(--pm-display); font-weight: 800; font-size: .72rem; text-align: center; line-height: 1.05; box-shadow: 0 0 0 5px var(--pm-candy-dk) inset; transform: rotate(12deg); }
.pm-to { font-family: var(--pm-display); font-weight: 800; font-size: 1.45rem; color: var(--pm-candy); }
.pm-letter p { font-size: .95rem; margin-top: 6px; }
.pm-hl { background: linear-gradient(transparent 55%, rgba(245, 192, 74, .55) 55%); font-weight: 800; }
.pm-letter .pm-sign { font-family: var(--pm-display); font-weight: 700; margin-top: 10px; font-size: 1.1rem; }
@keyframes pm-float { 50% { transform: rotate(1.5deg) translateY(-8px); } }

.pm-section { padding-block: 64px; }
.pm-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 34px; }
.pm-head p { color: var(--pm-muted); max-width: 58ch; }
.pm-eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--pm-candy); }

/* pasi */
.pm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.pm-step { background: var(--pm-night-2); border-radius: 22px; padding: 26px; min-width: 0; }
.pm-step::before { counter-increment: s; content: counter(s); font-family: var(--pm-display); font-weight: 800; font-size: 2.2rem; color: var(--pm-night); background: var(--pm-gold); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; }
.pm-step h3 { font-size: 1.45rem; margin-bottom: 6px; }
.pm-step p { color: var(--pm-muted); }

/* povesti: carti postale */
.pm-stories { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.pm-story { grid-column: span 2; background: var(--pm-paper); color: var(--pm-ink); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .2s; }
.pm-story:nth-child(4), .pm-story:nth-child(5) { grid-column: span 3; }
.pm-story:hover { transform: translateY(-4px) rotate(-.5deg); }
.pm-story img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.pm-story-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.pm-story h3 { font-size: 1.35rem; color: var(--pm-candy-dk); }
.pm-story p { font-size: .97rem; }
.pm-tag { align-self: flex-start; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--pm-gold); color: var(--pm-ink); padding: 3px 10px; border-radius: 999px; }

/* personaje: polaroiduri pe sfoara */
.pm-cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-top: 18px; position: relative; }
.pm-cast::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: repeating-linear-gradient(90deg, var(--pm-gold) 0 10px, transparent 10px 16px); }
.pm-polaroid { margin: 0; background: var(--pm-paper); color: var(--pm-ink); padding: 10px 10px 14px; border-radius: 6px; box-shadow: 0 16px 30px rgba(0, 0, 0, .35); text-align: center; min-width: 0; }
.pm-polaroid:nth-child(odd) { transform: rotate(-2.5deg); }
.pm-polaroid:nth-child(even) { transform: rotate(2deg); }
.pm-polaroid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; display: block; border-radius: 3px; background: #dfe3ea; }
.pm-polaroid strong { display: block; font-family: var(--pm-display); font-weight: 800; font-size: 1.15rem; margin-top: 8px; }
.pm-polaroid span { font-size: .85rem; color: #4a5376; }

/* pachete */
.pm-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.pm-plan { background: var(--pm-night-2); border: 2px solid var(--pm-line); border-radius: 22px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; min-width: 0; }
.pm-plan.pm-hot { border-color: var(--pm-gold); background: linear-gradient(180deg, var(--pm-night-3), var(--pm-night-2)); }
.pm-badge { position: absolute; top: -14px; left: 24px; background: var(--pm-candy); color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.pm-plan h3 { font-size: 1.55rem; }
.pm-price { font-family: var(--pm-display); font-weight: 800; font-size: 2.7rem; color: var(--pm-gold); font-variant-numeric: tabular-nums; line-height: 1; }
.pm-price small { font-family: var(--pm-body); font-size: 1rem; color: var(--pm-muted); font-weight: 600; }
.pm-plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pm-plan li { padding-left: 28px; position: relative; }
.pm-plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--pm-pine); box-shadow: inset 0 0 0 4px var(--pm-pine-lt); }
.pm-pick { margin-top: 6px; align-self: flex-start; font-weight: 800; color: var(--pm-gold); background: none; border: 0; padding: 0; cursor: pointer; font-size: 1rem; font-family: var(--pm-body); text-decoration: underline wavy rgba(245, 192, 74, .5); text-underline-offset: 6px; }
.pm-pick:hover { text-decoration-color: var(--pm-gold); }

/* formular */
.pm-order { display: grid; grid-template-columns: .9fr 1.3fr; gap: 40px; align-items: start; }
.pm-order aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pm-order aside p { color: var(--pm-muted); }
.pm-note { background: rgba(47, 143, 91, .15); border: 1px solid rgba(79, 194, 133, .4); border-radius: 14px; padding: 14px 16px; font-size: .95rem; }
.pm-form { background: var(--pm-paper); color: var(--pm-ink); border-radius: 24px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.pm-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pm-full { grid-column: 1 / -1; }
.pm-form label, .pm-lbl { font-weight: 800; font-size: .92rem; }
.pm-hint { font-size: .82rem; color: #5b6486; font-weight: 600; }
.pm-form input, .pm-form select, .pm-form textarea, .pm-login input { font: inherit; font-size: 1rem; color: var(--pm-ink); background: #fff; border: 2px solid #dcd6c8; border-radius: 12px; padding: 11px 13px; width: 100%; color-scheme: light; }
.pm-form input:focus, .pm-form select:focus, .pm-form textarea:focus, .pm-login input:focus { border-color: var(--pm-candy); outline: none; box-shadow: 0 0 0 4px rgba(232, 70, 58, .18); }
.pm-form textarea { min-height: 110px; resize: vertical; }
.pm-form .pm-bad { border-color: var(--pm-candy); }
.pm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pm-chips label { font-weight: 700; font-size: .92rem; border: 2px solid #dcd6c8; border-radius: 999px; padding: 7px 14px; cursor: pointer; background: #fff; user-select: none; }
.pm-chips input:checked + label { background: var(--pm-candy); border-color: var(--pm-candy); color: #fff; }
.pm-chips input:focus-visible + label { outline: 3px solid var(--pm-gold); outline-offset: 2px; }
.pm-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 600 !important; }
.pm-check input { width: 20px !important; height: 20px; flex: none; margin-top: 3px; accent-color: var(--pm-candy); }
.pm-check.pm-bad { color: var(--pm-candy-dk); }
.pm-err { color: var(--pm-candy-dk); font-weight: 800; font-size: .92rem; }
.pm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pm-form .pm-cta-main { grid-column: 1 / -1; justify-self: start; }
.pm-done { background: var(--pm-paper); color: var(--pm-ink); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.pm-done h3 { font-size: 2rem; color: var(--pm-pine); }
.pm-again { align-self: flex-start; font-weight: 800; color: var(--pm-candy-dk); background: none; border: 0; padding: 0; cursor: pointer; font-size: 1rem; text-decoration: underline; font-family: var(--pm-body); }

/* intrebari */
.pm-faq { display: flex; flex-direction: column; gap: 12px; max-width: 780px; }
.pm-faq details { background: var(--pm-night-2); border-radius: 16px; padding: 16px 20px; }
.pm-faq summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pm-faq summary::-webkit-details-marker { display: none; }
.pm-faq summary::after { content: "+"; font-family: var(--pm-display); color: var(--pm-gold); font-size: 1.5rem; line-height: 1; }
.pm-faq details[open] summary::after { content: "×"; }
.pm-faq details p { color: var(--pm-muted); margin-top: 10px; }

.pm-hills { position: relative; z-index: 1; display: block; width: 100%; height: 80px; margin-bottom: -2px; }
.pm-foot-band { background: var(--pm-snow); color: var(--pm-ink); position: relative; z-index: 1; }
.pm-foot { padding-block: 28px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: #4a5376; font-size: .95rem; }

/* pagina de comenzi */
.pm-admin { padding-block: 10px 80px; }
.pm-login { max-width: 420px; background: var(--pm-paper); color: var(--pm-ink); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.pm-login label { font-weight: 800; }
.pm-admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 22px 0; }
.pm-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-filter { background: var(--pm-night-2); color: var(--pm-snow); border: 2px solid var(--pm-line); border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; font-family: var(--pm-body); font-size: .9rem; }
.pm-filter[aria-pressed="true"] { border-color: var(--pm-gold); color: var(--pm-gold); }
.pm-orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.pm-ocard { background: var(--pm-paper); color: var(--pm-ink); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; border-top: 6px solid var(--pm-gold); }
.pm-ocard[data-status="nou"] { border-top-color: var(--pm-candy); }
.pm-ocard[data-status="plătit"], .pm-ocard[data-status="livrat"] { border-top-color: var(--pm-pine); }
.pm-ocard[data-status="anulat"] { border-top-color: #9aa3bd; opacity: .7; }
.pm-ocard h3 { font-size: 1.4rem; }
.pm-ometa { font-size: .85rem; color: #5b6486; font-weight: 600; font-variant-numeric: tabular-nums; }
.pm-ophone { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pm-ophone a { font-weight: 800; font-size: 1.15rem; color: var(--pm-candy-dk); text-decoration: none; font-variant-numeric: tabular-nums; }
.pm-copy { font: inherit; font-size: .8rem; font-weight: 800; border: 2px solid #dcd6c8; background: #fff; border-radius: 8px; padding: 3px 9px; cursor: pointer; color: var(--pm-ink); }
.pm-odesc { white-space: pre-wrap; font-size: .95rem; background: #f1ece0; border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.pm-ocard select { font: inherit; font-weight: 700; border: 2px solid #dcd6c8; border-radius: 10px; padding: 6px 10px; color-scheme: light; color: var(--pm-ink); background: #fff; }
.pm-empty { color: var(--pm-muted); padding: 30px 0; }

@media (max-width: 860px) {
  .pm-hero, .pm-order { grid-template-columns: 1fr; }
  .pm-steps, .pm-plans { grid-template-columns: 1fr; }
  .pm-stories { grid-template-columns: 1fr; }
  .pm-story, .pm-story:nth-child(4), .pm-story:nth-child(5) { grid-column: auto; }
  .pm-cast { grid-template-columns: repeat(2, 1fr); }
  .pm-letter { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 12px 0; }
  .pm-form { grid-template-columns: 1fr; padding: 22px; }
  .pm-navlink { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, .pm-letter { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
