:root {
  --red: #c8102e;
  --red-d: #9e0b23;
  --aqua: #5cc6cb;
  --aqua-l: #e6f6f7;
  --ink: #1f2a30;
  --muted: #5d6b72;
  --line: #dde5e8;
  --bg: #ffffff;
  --bg-alt: #f6fafb;
  --card: #ffffff;
  --gold: #e9b949;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 50, 60, .08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.brand-mark { background: var(--red); color: #fff; font-weight: 800; font-style: italic; padding: 4px 12px; border-radius: 999px; font-size: 1.1rem; letter-spacing: .5px; }
.brand-sub { color: var(--red); font-weight: 700; font-size: .7rem; letter-spacing: 3px; margin-top: 2px; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--red); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: none; padding: 6px 10px; font-weight: 600; cursor: pointer; color: var(--muted); }
.lang button.is-on { background: var(--red); color: #fff; }

/* hero */
.hero { background: linear-gradient(160deg, var(--aqua-l), #fff 60%); padding: 48px 0 40px; }
.hero-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
.eyebrow { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .85rem; margin: 0 0 8px; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
.lead { font-size: 1.1rem; color: var(--muted); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.hero-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-img { margin: 0; }
.facts { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; padding: 0; margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.facts strong { display: block; color: var(--ink); font-size: 1.15rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-d); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: #fff; color: var(--red); border-color: var(--red); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }

/* sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.tabs { display: flex; gap: 8px; margin: 16px 0 20px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; }
.tab.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-img { aspect-ratio: 1 / 1; background: var(--aqua); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-b { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.05rem; margin: 0; }
.card .sub { color: var(--muted); font-size: .85rem; }
.price { font-size: 1.35rem; font-weight: 800; color: var(--red); }
.price small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.tiers { font-size: .8rem; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--red); text-decoration: underline; cursor: pointer; font-size: .85rem; align-self: flex-start; }
.qty { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 72px; height: 36px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.qty .line-total { margin-left: auto; font-weight: 700; font-size: .9rem; }
.badge { display: inline-block; background: var(--gold); color: #3a2a00; border-radius: 6px; padding: 1px 6px; font-size: .75rem; font-weight: 700; }

/* price table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.prices { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.prices th, .prices td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.prices th:nth-child(-n+2), .prices td:nth-child(-n+2) { text-align: left; }
.prices td:nth-child(2) { white-space: normal; }
.prices thead th { background: var(--ink); color: #fff; font-weight: 600; position: sticky; top: 0; }
.prices .grp td { background: var(--aqua-l); font-weight: 700; text-align: left; }
.prices .base { font-weight: 800; }
.actions-row { margin-top: 16px; }

/* order */
.order { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.cart { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.cart table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cart td { padding: 6px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.cart td:last-child, .cart td:nth-child(3) { text-align: right; white-space: nowrap; }
.cart .tot td { border: 0; font-weight: 800; font-size: 1.05rem; padding-top: 10px; }
.cart-empty { color: var(--muted); margin: 0; }
.cart td.save { text-align: right; border: 0; }
.form { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.form input, .form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--aqua); border-color: var(--aqua); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-msg.ok { color: #1c7c3a; }
.form-msg.err { color: var(--red); }

/* about + contacts */
.about, .contacts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.req { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.req dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
.req dt { color: var(--muted); }
.req dd { margin: 0; font-weight: 600; word-break: break-all; }
.map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.contacts a { font-weight: 600; text-decoration: none; }

.foot { background: var(--ink); color: #c9d3d7; padding: 20px 0; font-size: .9rem; }

/* sticky cart bar */
.cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 30; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.cartbar[hidden] { display: none; }

/* dialog */
.dlg { border: 0; border-radius: var(--radius); padding: 20px 22px; max-width: 520px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dlg::backdrop { background: rgba(20,30,35,.5); }
.dlg-x { position: absolute; right: 10px; top: 6px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.comp { width: 100%; border-collapse: collapse; font-size: .92rem; }
.comp td { padding: 4px 2px; border-bottom: 1px dashed var(--line); }
.comp td:last-child { text-align: right; width: 3em; }
.comp tfoot td { font-weight: 700; border: 0; }

@media (max-width: 860px) {
  .hero-in, .order, .about, .contacts { grid-template-columns: 1fr; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 28px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-b { padding: 10px; }
  .card h3 { font-size: .95rem; }
  .price { font-size: 1.15rem; }
  .tiers, .card .sub { font-size: .75rem; }
  .qty { flex-wrap: wrap; gap: 4px; }
  .qty button { width: 32px; height: 32px; }
  .qty input { width: 54px; height: 32px; }
  .qty .line-total { width: 100%; text-align: right; margin: 0; }
  .cartbar { white-space: nowrap; font-size: .9rem; gap: 8px; padding-left: 14px; }
  .section { padding: 40px 0; }
}

@media print {
  .top, .hero, #cadouri, #comanda, #despre, .map, .cartbar, .actions-row, .foot { display: none !important; }
  #preturi { padding: 0; background: #fff; }
  .prices thead th { background: #eee; color: #000; }
  .table-wrap { border: 0; overflow: visible; }
  .prices { min-width: 0; font-size: 10pt; }
  #contacte { padding: 8px 0 0; }
}
