:root {
  --brand: #0B4B5A; --brand-2: #0f6175; --soft: #e6f1f3; --accent: #F2A541; --red: #D7282F; --gold: #F7B500;
  --bg: #fbf8f3; --card: #ffffff; --text: #17282d; --muted: #5b6c71; --border: #e4ddd2;
  --font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --head: 'Montserrat', 'Open Sans', sans-serif; --hand: 'Caveat', cursive;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .center { text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--brand); background: #fff; color: var(--brand); font: 700 15px var(--head); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(215, 40, 47, .25); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.big { min-height: 54px; padding: 0 30px; font-size: 17px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, 4vw); background: rgba(251, 248, 243, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--text); min-width: 0; }
.brand img { width: 46px; height: 46px; }
.brand b { font: 800 18px var(--head); color: var(--brand); display: block; }
.brand small { color: var(--muted); font-size: 12.5px; display: block; line-height: 1.2; }

.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 520px at 50% -12%, #157a92 0%, var(--brand) 50%, #06303a 100%); color: #fff; text-align: center; padding: 56px 16px clamp(190px, 26vw, 330px); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 120px 80px, #fff 50%, transparent 51%), radial-gradient(2.5px 2.5px at 200px 20px, rgba(255,255,255,.8) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 260px 140px, #fff 50%, transparent 51%); background-size: 300px 180px; opacity: .35; }
.hero-in { position: relative; z-index: 3; max-width: 780px; margin: 0 auto; }
.hero h1, .hero .sub, .hero .intro { text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
/* Banerul animat: zăpadă, lună, sanie, sat, copii, scrisori care zboară, brad cu luminițe și cadouri */
.snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.moon { position: absolute; top: 34px; right: max(24px, 9vw); width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fffbe8, #f6e7b0 60%, #e9d48a); box-shadow: 0 0 40px 12px rgba(247, 214, 120, .35), 0 0 120px 40px rgba(247, 214, 120, .15); z-index: 1; }
.moon::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: rgba(200, 170, 90, .35); top: 22px; left: 40px; box-shadow: -18px 22px 0 -3px rgba(200, 170, 90, .3); }
.sleigh { position: absolute; top: 46px; left: 0; width: clamp(150px, 18vw, 240px); z-index: 1; opacity: .95; animation: fly 22s linear infinite; }
@keyframes fly { 0% { transform: translate(-30vw, 40px) rotate(-6deg); } 55% { transform: translate(115vw, -10px) rotate(-3deg); } 100% { transform: translate(115vw, -10px); } }
.scene { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(190px, 27vw, 340px); z-index: 1; }
.scene .lights circle { animation: twinkle 1.6s ease-in-out infinite; }
.scene .lights .d2 { animation-delay: .5s; } .scene .lights .d3 { animation-delay: 1s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.scene .star { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-in-out infinite; }
.scene .starglow { animation: glow 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15) rotate(8deg); } }
@keyframes glow { 50% { opacity: .55; } }
.scene .win { animation: warm 3.5s ease-in-out infinite; } .scene .win.d2 { animation-delay: 1.2s; } .scene .win.d3 { animation-delay: 2.1s; }
@keyframes warm { 0%, 100% { opacity: 1; } 45% { opacity: .65; } }
.scene .env { transform-box: fill-box; animation: rise 7s ease-in infinite; opacity: 0; }
.scene .env.e2 { animation-delay: 2.3s; } .scene .env.e3 { animation-delay: 4.6s; }
@keyframes rise { 0% { opacity: 0; translate: 0 0; rotate: 0deg; } 10% { opacity: 1; } 50% { translate: 60px -120px; rotate: 12deg; } 85% { opacity: 1; } 100% { opacity: 0; translate: 180px -230px; rotate: -8deg; } }
.scene .kids { animation: bob 3s ease-in-out infinite; transform-box: fill-box; }
@keyframes bob { 50% { translate: 0 -3px; } }
.countdown { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); font: 600 14px var(--font); color: #fff; backdrop-filter: blur(4px); }
.countdown b { color: var(--gold); font-family: var(--head); }
@media (max-width: 700px) { .moon { width: 40px; height: 40px; top: 12px; right: 12px; } .countdown { margin-top: 18px; } .scene { height: 150px; } .hero { padding-bottom: 165px; } }
@media (prefers-reduced-motion: reduce) { .sleigh, .scene *, .snow { animation: none !important; } .sleigh { display: none; } .scene .env { opacity: 1; } }
.hand { font: 700 clamp(34px, 6vw, 56px)/1 var(--hand); color: var(--gold); margin: 0 0 10px; }
.hero h1 { font-size: clamp(32px, 5.5vw, 54px); font-weight: 800; letter-spacing: -.01em; }
.hero .sub { font-size: clamp(17px, 2.4vw, 21px); color: #cfe7ec; margin: 10px 0 0; }
.hero .intro { max-width: 640px; margin: 18px auto 0; color: #e6f2f4; }
.hero-cta { margin-top: 26px; }
.stats { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.stats div { font: 600 14px var(--font); color: #cfe7ec; }
.stats b { display: block; font: 800 30px var(--head); color: #fff; }

.how { max-width: 1100px; margin: 0 auto; padding: 56px 16px 20px; text-align: center; }
.how h2, .letters h2, .faq h2 { font-size: clamp(24px, 3.4vw, 32px); color: var(--brand); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.steps li { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.steps span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #2b1a00; font: 800 18px var(--head); }
.steps b { display: block; font: 700 18px var(--head); margin: 12px 0 4px; }
.steps p { margin: 0; color: var(--muted); }

.letters { max-width: 1200px; margin: 0 auto; padding: 40px 16px 30px; scroll-margin-top: 70px; }
.letters-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 8px 16px; font: 600 14px var(--font); cursor: pointer; color: var(--text); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 2px 10px rgba(11, 75, 90, .06); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(11, 75, 90, .12); }
.card .ph { aspect-ratio: 4 / 3; background: #f1ebe0 center top / cover no-repeat; border-bottom: 4px solid var(--accent); }
.card .ph.none { display: grid; place-items: center; font: 700 44px var(--hand); color: var(--brand); }
.card .in { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 20px; color: var(--brand); }
.card h3 small { font: 600 14px var(--font); color: var(--muted); }
.card .wish { margin: 0; flex: 1; }
.card .wish::before { content: '🎁 '; }
.card .btn { margin-top: 8px; }
.card.taken .ph { filter: grayscale(.6) opacity(.7); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font: 700 12px var(--head); padding: 5px 10px; border-radius: 999px; letter-spacing: .03em; }
.badge.ok { background: #1d7f56; }

.faq { max-width: 820px; margin: 0 auto; padding: 30px 16px 50px; }
.faq h2 { margin-bottom: 16px; }
details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { font: 700 16px var(--head); cursor: pointer; color: var(--brand); }
details p { margin: 10px 0 0; color: var(--muted); }

.foot { background: var(--brand); color: #d4e8ec; padding: 34px 16px; text-align: center; font-size: 14px; }
.foot b { color: #fff; }
.foot a { color: #fff; }
.foot .bars { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.foot .bars i { height: 5px; border-radius: 2px; transform: skewX(-25deg); display: block; }

.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(5, 30, 36, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 22px; width: min(980px, 100%); max-height: calc(100dvh - 32px); overflow: auto; display: grid; grid-template-columns: 1.05fr 1fr; }
.modal .pic { background: #f1ebe0; padding: 16px; display: flex; align-items: flex-start; justify-content: center; }
.modal .pic img { border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.15); max-height: 78dvh; object-fit: contain; }
.modal .side { padding: 24px; position: relative; }
.modal .x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f2f2f2; font-size: 20px; cursor: pointer; }
.modal h2 { color: var(--brand); font-size: 26px; padding-right: 40px; }
.modal .code { color: var(--muted); font-size: 13px; }
.modal .wish { font-size: 17px; margin: 12px 0; }
.opts { display: grid; gap: 10px; margin: 16px 0; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--border); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.opt input { margin-top: 4px; accent-color: var(--red); width: 18px; height: 18px; }
.opt b { display: block; font-family: var(--head); }
.opt small { color: var(--muted); }
.opt:has(input:checked) { border-color: var(--red); background: #fff6f4; }
.field { display: grid; gap: 4px; margin-bottom: 10px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid #cfc6b8; min-height: 44px; }
.field textarea { min-height: 80px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0 14px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); }
.hp { position: absolute; left: -5000px; }
.err { background: #fde8e8; color: var(--red); border-radius: 10px; padding: 10px 12px; font-weight: 600; margin-bottom: 10px; }
.thanks { text-align: center; padding: 10px 6px; }
.thanks .hand { font-size: 40px; color: var(--red); }
.box { text-align: left; background: var(--soft); border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.box b { color: var(--brand); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #10272d; color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 60; }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .modal { grid-template-columns: 1fr; }
  .modal .pic img { max-height: 50dvh; }
  .overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 22px 22px 0 0; max-height: 94dvh; }
  .brand small { display: none; }
}
