/* NOTA PRIVÉ - stil arabesc: noapte prună, auriu, smarald și pergament */
:root {
  --night: #1c0d26;
  --night-2: #2b1238;
  --plum: #4b1f46;
  --emerald: #0f4f4a;
  --gold: #c9a45c;
  --gold-light: #ecd7a4;
  --gold-dark: #7d5d1f;
  --sand: #f4ead9;
  --ivory: #fffaf0;
  --ink: #2b1a2c;
  --muted: #6f5d6c;
  --line: rgba(125, 93, 31, .28);
  --serif: "Cormorant Garamond", "Amiri", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Cinzel", "Cormorant Garamond", Georgia, serif;
  /* rețea geometrică cu stele în opt colțuri */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23c9a45c' stroke-width='1'%3E%3Cpath d='M30 30h36v36H30z'/%3E%3Cpath d='M48 22.5L73.5 48 48 73.5 22.5 48z'/%3E%3Cpath d='M48 0v22.5M48 73.5V96M0 48h22.5M73.5 48H96M0 0l30 30M96 0L66 30M0 96l30-30M96 96L66 66'/%3E%3Ccircle cx='48' cy='48' r='7'/%3E%3C/g%3E%3C/svg%3E");
  /* arcadă ascuțită, folosită ca mască */
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M0 140V58C0 34 18 22 32 15C42 10 48 6 50 0C52 6 58 10 68 15C82 22 100 34 100 58V140Z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 16px/1.65 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; }
/* subsolul rămâne jos și pe paginile scurte */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
a { color: var(--plum); }
[id] { scroll-margin-top: 96px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--plum); }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }
h2:focus { outline: none; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.eyebrow { font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 .7em; font-weight: 500; }
.lead { font-size: 1.15rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- ornament între secțiuni ---------- */
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 26px; color: var(--gold); }
.divider::before, .divider::after { content: ""; height: 1px; width: min(120px, 22vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }
.divider svg { width: 26px; height: 26px; flex: none; }

/* ---------- antet ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(28, 13, 38, .96); border-bottom: 1px solid rgba(201, 164, 92, .55); color: var(--ivory); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: rgba(201, 164, 92, .35); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--logo); font-size: 1.28rem; letter-spacing: .16em; text-decoration: none; color: var(--gold-light); white-space: nowrap; }
.logo svg { width: 28px; height: 28px; color: var(--gold); flex: none; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--ivory); padding: 6px 0; border-bottom: 1px solid transparent; font-size: .96rem; }
.top nav a:hover, .top nav a[aria-current] { color: var(--gold-light); border-bottom-color: var(--gold); }
.cartlink { text-decoration: none; color: var(--gold-light); border: 1px solid var(--gold); border-radius: 99px; padding: 6px 18px; white-space: nowrap; }
.cartlink:hover { background: var(--gold); color: var(--night); }
.cartlink span { display: inline-block; min-width: 20px; background: var(--gold); color: var(--night); border-radius: 99px; font-size: .75rem; font-weight: 600; text-align: center; padding: 0 5px; margin-left: 6px; }
.cartlink:hover span { background: var(--night); color: var(--gold-light); }
.burger { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--gold-light); margin-left: auto; cursor: pointer; line-height: 1; padding: 6px; }

/* ---------- butoane ---------- */
.btn, .ghost { font: inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; border-radius: 4px; letter-spacing: .04em; }
.btn { min-height: 48px; padding: 10px 28px; border: 1px solid var(--gold); color: var(--night); background: linear-gradient(180deg, #ecd7a4, #c9a45c); box-shadow: inset 0 0 0 2px var(--ivory), inset 0 0 0 3px rgba(125, 93, 31, .6); font-weight: 500; }
.btn:hover { filter: brightness(1.06); }
.btn.outline { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px var(--line); }
.btn.big { width: 100%; font-size: 1.08rem; margin: 6px 0 12px; }
.ghost { min-height: 42px; padding: 8px 18px; background: transparent; color: var(--plum); border: 1px solid var(--line); }
.ghost:hover { border-color: var(--gold-dark); background: var(--ivory); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.mid { justify-content: center; }

/* ---------- secțiuni ---------- */
section.block { padding: 68px 0; position: relative; }
section.alt { background: var(--ivory); border-block: 1px solid var(--line); }
.dark { background-color: var(--night); color: var(--ivory); position: relative; isolation: isolate; }
.dark::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .11; z-index: -1; }
.dark::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 72% 40%, rgba(122, 52, 112, .55), transparent 62%); z-index: -1; }
.dark h1, .dark h2, .dark h3 { color: var(--gold-light); }
.dark .eyebrow { color: var(--gold); }
.dark .muted { color: #cdbbd0; }
.dark .btn.outline { color: var(--gold-light); box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px rgba(201, 164, 92, .5); }
.dark a:not(.btn) { color: var(--gold-light); }

.dark.band { border-bottom: 3px double var(--gold); }
.pagehead .divider { margin: 6px auto 12px; }
.icon { display: flex; justify-content: center; color: var(--gold); }
.icon svg { width: 44px; height: 44px; }
.arch .inside > svg.bottle { width: 94%; height: auto; }
.story { position: relative; justify-self: center; width: min(340px, 78%); margin-top: 40px; }

/* ---------- prima pagină ---------- */
.hero .divider { justify-content: flex-start; margin: 0 0 18px; }
.hero .divider::before { display: none; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 64px 0 72px; }
.hero h1 { margin-bottom: .35em; }
.hero p.lead { max-width: 46ch; color: #e9dcea; }
.hero-art { position: relative; justify-self: center; width: min(400px, 100%); }
.hero-art .trio { position: absolute; inset: 22% 2% 4%; display: flex; align-items: flex-end; justify-content: center; }
.hero-art .trio svg { height: auto; flex: none; }
.hero-art .trio svg:nth-child(1), .hero-art .trio svg:nth-child(3) { width: 43%; }
.hero-art .trio svg:nth-child(1) { margin-right: -14%; }
.hero-art .trio svg:nth-child(2) { position: relative; z-index: 2; width: 58%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.hero-art .trio svg:nth-child(3) { margin-left: -14%; }
.lantern { position: absolute; top: -64px; width: 46px; color: var(--gold); transform-origin: top center; animation: sway 6s ease-in-out infinite; pointer-events: none; z-index: 3; }
.lantern.left { left: -14px; }
.lantern.right { right: -14px; width: 38px; animation-delay: -3s; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* ---------- arcadă ---------- */
.arch { position: relative; aspect-ratio: 5 / 7; width: 100%; }
.arch .inside { position: absolute; inset: 0; display: grid; grid-template-columns: 100%; place-items: center; align-content: end; padding: 24% 12% 7%;
  background: var(--pattern) center top / 64px, linear-gradient(180deg, var(--c1, #6b2f66), var(--c2, #2b1238));
  -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }
.arch .inside::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 62%, rgba(255, 248, 232, .82), rgba(255, 248, 232, .55) 45%, rgba(255, 248, 232, .12) 78%); }
.arch .inside > * { position: relative; }
.arch .frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; color: var(--gold); }
.arch.night .inside { background: var(--pattern) center top / 72px, linear-gradient(180deg, #6a2d63, #2a1038); }
.arch.night .inside::before { background: radial-gradient(ellipse at 50% 68%, rgba(255, 232, 186, .62), rgba(150, 78, 130, .45) 42%, rgba(42, 16, 56, .15) 75%); }

/* ---------- carduri ---------- */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--ivory); border: 1px solid var(--line); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; position: relative; box-shadow: 0 10px 30px rgba(60, 20, 50, .06); }
.card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201, 164, 92, .45); pointer-events: none; }
section.alt .card { background: var(--sand); }
.card h3, .card p { margin: 0; }
.card .push { margin-top: auto; padding-top: 10px; position: relative; }
.card .arch { max-width: 240px; margin: 0 auto 8px; }
a.card { text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(60, 20, 50, .14); }
.step { align-self: center; width: 66px; height: 66px; display: grid; place-items: center; position: relative; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--night); }
.step svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); }
.step b { position: relative; font-weight: 600; }
.price { font-family: var(--serif); font-size: 2rem; color: var(--plum); line-height: 1.2; }
.price small { font-family: var(--sans); font-size: .82rem; color: var(--muted); }
.notes { font-size: .9rem; color: var(--muted); }
.card .eyebrow { margin: 4px 0 -4px; }
.card:target { border-color: var(--plum); box-shadow: 0 0 0 2px var(--gold); }
#list.one { grid-template-columns: minmax(0, 380px); justify-content: center; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 34px; }
.filters button[aria-pressed="true"] { background: var(--plum); color: var(--gold-light); border-color: var(--gold); }

/* ---------- formulare ---------- */
select, input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], textarea {
  font: inherit; width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fffdf7; color: var(--ink); min-height: 46px; }
select:focus, input:focus, textarea:focus { border-color: var(--gold-dark); }
textarea { min-height: 110px; resize: vertical; }
label.field { display: block; font-size: .9rem; color: var(--muted); position: relative; }
label.field > * { margin-top: 4px; }
.form { display: grid; gap: 14px; position: relative; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* ---------- chestionar ---------- */
.pagehead { padding: 40px 0 34px; text-align: center; }
.pagehead h1 { margin-bottom: .2em; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.pagehead p { margin: 0 auto; max-width: 60ch; color: #e0d1e2; }
.quizwrap { max-width: 920px; margin: 36px auto 68px; }
.track { height: 8px; background: var(--ivory); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 30px; }
.track div { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--plum)); transition: width .35s; }
#quiz h2 { text-align: center; }
.count { text-align: center; font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 .6em; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0; }
.option { font: inherit; text-align: left; position: relative; background: var(--ivory); border: 1px solid var(--line); padding: 18px 20px 18px 52px; cursor: pointer; color: var(--ink); min-height: 66px; transition: border-color .2s, transform .2s; }
.option::before { content: ""; position: absolute; left: 20px; top: 50%; width: 13px; height: 13px; margin-top: -7px; border: 1px solid var(--gold-dark); transform: rotate(45deg); }
.option:hover { border-color: var(--gold-dark); transform: translateY(-2px); }
.option.picked { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); }
.option.picked::before { background: var(--plum); border-color: var(--plum); }
.option strong, .option span { display: block; }
.option strong { font-family: var(--serif); font-size: 1.35rem; color: var(--plum); }
.option span { color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 28px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 8px 18px; border: 1px solid var(--line); border-radius: 99px; background: var(--ivory); cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--plum); color: var(--gold-light); border-color: var(--gold); text-decoration: line-through; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.nameform { display: flex; gap: 14px; margin: 24px auto 8px; max-width: 640px; flex-wrap: wrap; }
.nameform input { flex: 1; min-width: 220px; }
.quiznav { display: flex; justify-content: center; margin-top: 18px; }

.result { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.result .art { position: sticky; top: 100px; }
.result .art .arch { max-width: 360px; margin: 0 auto; }
.result h2 { text-align: left !important; margin-bottom: .2em; }
.result h2 small { display: block; font-family: var(--sans); font-weight: 400; font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark); margin-top: 6px; }
.result .count { text-align: left; }
.pyramid { margin: 18px 0; border-top: 1px solid var(--line); }
.pyramid div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pyramid dt { color: var(--gold-dark); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; align-self: center; }
.pyramid dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.code { display: inline-block; border: 1px dashed var(--gold-dark); padding: 8px 16px; background: var(--ivory); margin: 0 0 6px; }
.code strong { letter-spacing: .1em; }
.sizes { border: 0; padding: 0; margin: 12px 0 14px; display: grid; gap: 10px; }
.sizes legend { font-size: .86rem; color: var(--muted); margin-bottom: 8px; padding: 0; }
.sizes label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); padding: 12px 16px; background: var(--ivory); cursor: pointer; }
.sizes label:has(input:checked) { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); }
.sizes input { accent-color: var(--plum); margin-top: 6px; }
.sizes small { color: var(--muted); }
.note { background: #fbf0d3; border: 1px solid var(--gold); padding: 12px 18px; margin-top: 24px; }
.profile { margin-top: 42px; background: var(--ivory); border: 1px solid var(--line); padding: 26px; }
.profile h3 { text-align: center; }
.meter { display: grid; grid-template-columns: 140px 1fr 48px; gap: 12px; align-items: center; margin: 8px 0; font-size: .92rem; }
.meter i { height: 10px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.meter b { display: block; height: 100%; border-radius: 99px; }
.meter em { font-style: normal; color: var(--muted); text-align: right; }

/* ---------- coș ---------- */
.line { display: grid; grid-template-columns: 64px 1fr auto 96px; gap: 16px; align-items: center; padding: 14px 16px; background: var(--ivory); border: 1px solid var(--line); margin-bottom: 12px; }
.line svg.bottle { width: 58px; height: auto; }
.line .thumb { display: grid; place-items: center; }
.line .thumb svg { width: 44px; height: 44px; color: var(--gold); }
.line .linetotal { text-align: right; white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fffdf7; cursor: pointer; font-size: 1.1rem; color: var(--plum); line-height: 1; }
.qty button:hover { border-color: var(--plum); }
.totals { background: var(--ivory); border: 1px solid var(--gold); padding: 18px 22px; }
.totals p { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; }
.totals p.sum { font-family: var(--serif); font-size: 1.8rem; color: var(--plum); border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- întrebări frecvente ---------- */
.faq details { background: var(--sand); border: 1px solid var(--line); margin-bottom: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.35rem; color: var(--plum); padding: 12px 0; }
.faq details p { margin: 0 0 14px; }
.faq { max-width: 780px; margin: 0 auto; }

/* ---------- subsol ---------- */
footer { padding: 54px 0 22px; border-top: 3px double var(--gold); }
footer.dark::after { background: none; }
footer a { display: block; text-decoration: none; padding: 1px 0; }
footer a:hover { text-decoration: underline; }
footer a.logo { display: inline-flex; margin-bottom: 8px; }
footer a.logo:hover { text-decoration: none; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 28px; }
footer .h { color: var(--gold); margin: 0 0 8px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; }
footer .cols p { margin: 0 0 4px; }
footer .motto { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--gold-light); }
.fine { font-size: .8rem; opacity: .75; border-top: 1px solid rgba(201, 164, 92, .3); padding-top: 16px; margin-top: 30px; text-align: center; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--night); color: var(--ivory); border: 1px solid var(--gold); padding: 12px 22px; opacity: 0; pointer-events: none; transition: .25s; z-index: 30; width: max-content; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- ecrane mai mici ---------- */
@media (max-width: 960px) {
  .grid, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .hero, .two-col, .result { grid-template-columns: 1fr; }
  .hero { text-align: center; padding-top: 48px; }
  .hero p.lead { margin-inline: auto; }
  .hero .row { justify-content: center; }
  .hero .divider { justify-content: center; margin-inline: auto; }
  .hero .divider::before { display: block; }
  .hero-art { width: min(340px, 84%); margin-top: 38px; }
  .result .art { position: static; }
  .result h2, .result .count { text-align: center !important; }
  .result .info > .lead { text-align: center; }
}
@media (max-width: 760px) {
  .burger { display: block; order: 2; }
  .cartlink { order: 3; padding: 5px 12px; }
  .top nav { display: none; order: 4; width: 100%; flex-direction: column; gap: 0; margin: 0; padding-bottom: 12px; }
  .top nav a { padding: 10px 0; }
  .top.open nav { display: flex; }
  .bar { flex-wrap: wrap; gap: 10px; }
  .logo { font-size: 1.02rem; letter-spacing: .12em; }
  .logo svg { width: 22px; height: 22px; }
  footer .cols { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 600px) {
  .grid, .grid.four, .options { grid-template-columns: 1fr; }
  section.block { padding: 48px 0; }
  .line { grid-template-columns: 52px 1fr; }
  .line .qty { grid-column: 2; }
  .line .linetotal { grid-column: 2; text-align: left; }
  .line svg.bottle { width: 46px; }
  .meter { grid-template-columns: 112px 1fr 42px; font-size: .84rem; }
  .pyramid div { grid-template-columns: 1fr; gap: 0; }
  .btn.big { padding-inline: 14px; }
  .result .art .arch { max-width: 230px; }
  .result { gap: 22px; }
  .card .arch { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
