/* ==========================================================================
   Rolstin — stil magazin
   Direcție: industrial-editorial. Grafit + hârtie caldă + portocaliu de semnalizare.
   ========================================================================== */

:root {
  --ink: #15171c;
  --ink-2: #22252d;
  --ink-3: #30343e;
  --paper: #f4f3ef;
  --card: #ffffff;
  --line: #e2e0d8;
  --line-2: #d3d0c6;
  --muted: #676b74;
  --accent: #ff4d12;
  --accent-2: #e53e05;
  --accent-soft: #fff0e9;
  --ok: #17804a;
  --ok-soft: #e7f6ee;
  --warn: #b86a00;
  --warn-soft: #fff5e0;
  --err: #c8281b;
  --err-soft: #fdecea;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(21, 23, 28, .05), 0 6px 24px -10px rgba(21, 23, 28, .18);
  --shadow-lg: 0 24px 60px -24px rgba(21, 23, 28, .35);
  --f-display: "Archivo", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15.5px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; font-stretch: 108%; }
h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 750; font-stretch: 104%; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--f-mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.ok { color: var(--ok); font-weight: 600; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }
.wrap--mid { max-width: 1100px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-weight: 650; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: 8px 13px; font-size: 14px; }
.btn--lg { padding: 15px 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn-icon {
  width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--ink); color: #fff; transition: background .15s, transform .15s;
}
.btn-icon:hover { background: var(--accent); transform: rotate(90deg); }
.link-arrow { font-weight: 650; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-back { font-weight: 600; color: var(--muted); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: #c9ccd3; font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar__right { display: flex; gap: 20px; }
.topbar a:hover { color: #fff; }
@media (max-width: 760px) { .topbar__right { display: none; } .topbar__in { justify-content: center; text-align: center; } }

.hdr { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.hdr__in { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.logo img { height: 34px; width: auto; }
.hdr__burger { display: none; background: none; border: 0; padding: 6px; margin-left: -6px; }
.search { flex: 1; position: relative; display: flex; align-items: center; max-width: 640px; }
.search input {
  width: 100%; height: 48px; border: 1.5px solid var(--line-2); border-radius: 999px;
  padding: 0 112px 0 46px; background: var(--paper); transition: border-color .15s, background .15s;
}
.search input:focus { outline: 0; border-color: var(--ink); background: #fff; }
.search__ico { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search__btn { position: absolute; right: 5px; height: 38px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 600; }
.search__btn:hover { background: var(--accent); }
.search__drop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50;
}
.sdrop__item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sdrop__item:hover, .sdrop__item.is-active { background: var(--paper); color: inherit; }
.sdrop__item img { width: 48px; height: 36px; object-fit: contain; background: var(--paper); border-radius: 6px; }
.sdrop__item span { flex: 1; font-size: 14px; line-height: 1.3; }
.sdrop__item small { display: block; color: var(--muted); font-family: var(--f-mono); font-size: 12px; }
.sdrop__item b { font-size: 14px; white-space: nowrap; }
.sdrop__all { display: block; padding: 11px 14px; font-weight: 650; font-size: 14px; background: var(--paper); }
.sdrop__empty { padding: 14px; color: var(--muted); font-size: 14px; }
.hdr__actions { display: flex; gap: 6px; margin-left: auto; }
.hdr__act { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; position: relative; }
.hdr__act:hover { background: var(--paper); color: var(--ink); }
.badge {
  position: absolute; top: 3px; left: 24px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 700;
  border: 2px solid #fff;
}
.badge.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

.catnav { border-top: 1px solid var(--line); }
.catnav__in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav__in::-webkit-scrollbar { display: none; }
.catnav a {
  padding: 11px 13px; font-size: 14px; font-weight: 550; white-space: nowrap; color: var(--ink-3);
  border-bottom: 2.5px solid transparent; display: flex; align-items: center; gap: 7px;
}
.catnav a:hover { color: var(--ink); }
.catnav a.is-on { border-color: var(--accent); color: var(--ink); }
.catnav__all { font-weight: 700 !important; color: var(--ink) !important; }
.catnav__blog { margin-left: auto; }

@media (max-width: 900px) {
  .hdr__in { flex-wrap: wrap; gap: 10px 14px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .hdr__burger { display: block; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 44px; }
  .hdr__act span:not(.badge) { display: none; }
  .catnav { display: none; }
}

/* Drawer mobil */
.drawer { position: fixed; inset: 0; background: rgba(21, 23, 28, .5); z-index: 90; }
.drawer__panel { width: min(340px, 86vw); height: 100%; background: #fff; overflow-y: auto; padding: 16px; animation: slidein .2s ease; }
@keyframes slidein { from { transform: translateX(-100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.drawer__x { background: none; border: 0; font-size: 30px; line-height: 1; padding: 4px 10px; }
.drawer__link { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--line); font-weight: 550; }
.drawer__link img { width: 28px; height: 28px; }

/* ---------- Flash & notice ---------- */
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; font-weight: 550; border: 1px solid; }
.flash--success { background: var(--ok-soft); border-color: #b5e3c8; color: #0c5a33; }
.flash--error { background: var(--err-soft); border-color: #f5c2bd; color: #8e1b11; }
.flash--info { background: #eef3fb; border-color: #c9d8f0; color: #1f4277; }
.notice { background: var(--card); border: 1px dashed var(--line-2); padding: 12px 16px; border-radius: var(--radius-sm); }
.notice a { font-weight: 650; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #f1f1ee; overflow: hidden; }
.hero__grid-bg {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 90% at 70% 40%, #000 30%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; right: -180px; top: -160px; width: 620px; height: 620px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 26%, rgba(255,77,18,.0) 26%),
    repeating-conic-gradient(from 0deg, rgba(255,77,18,.16) 0 3deg, transparent 3deg 12deg);
  mask-image: radial-gradient(circle, transparent 0 30%, #000 31% 62%, transparent 63%);
  animation: spin 90s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #c9ccd3; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 6px 13px 6px 10px; border-radius: 999px; margin-bottom: 26px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); font-stretch: 118%; font-weight: 850; line-height: .98; letter-spacing: -.035em; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 18px; color: #b9bcc4; max-width: 520px; margin-bottom: 34px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 36px; flex-wrap: wrap; }
.hero__facts li { border-left: 2px solid var(--accent); padding-left: 14px; }
.hero__facts b { display: block; font-family: var(--f-display); font-stretch: 112%; font-size: 24px; font-weight: 800; color: #fff; }
.hero__facts span { font-size: 13px; color: #9a9ea8; }
.hero__card { background: #fff; color: var(--ink); border-radius: 20px; padding: 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.hero__or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0 14px; }
.hero__or::before, .hero__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 48px; }
  .hero::after { width: 380px; height: 380px; right: -160px; top: -120px; }
  .hero__lead { font-size: 16px; }
  .hero__facts { gap: 22px; }
}

/* Selector vehicul */
.vpick { display: grid; gap: 12px; }
.vpick__title { font-family: var(--f-display); font-weight: 750; font-size: 19px; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.step-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.vpick--bar {
  grid-template-columns: 1fr 1fr auto; align-items: end; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin: 20px 0 6px; box-shadow: var(--shadow);
}
.vpick--set { grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.vpick--set.vpick--bar { background: var(--ink); color: #fff; border-color: var(--ink); }
.vpick--set.vpick--bar .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.vpick--set.vpick--bar .btn--ghost:hover { border-color: #fff; }
.vpick__car { display: flex; align-items: center; gap: 14px; }
.vpick__car svg { color: var(--accent); }
.vpick__car small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .65; }
.vpick__car strong { font-family: var(--f-display); font-size: 18px; font-stretch: 108%; margin-right: 8px; }
.vpick__car span { opacity: .7; font-size: 14px; }
.vpick__note { margin: 0; font-size: 14px; opacity: .75; }
.vpick--hero.vpick--set { grid-template-columns: 1fr; }
@media (max-width: 760px) {
  .vpick--bar { grid-template-columns: 1fr; }
  .vpick--set { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Câmpuri ---------- */
.field { display: grid; gap: 6px; font-size: 14px; }
.field > span { font-weight: 600; font-size: 13px; color: var(--ink-3); }
.field input, .field select, .field textarea, .oem-search input, .price-range input {
  width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px; background: #fff;
  transition: border-color .15s, box-shadow .15s; min-height: 46px;
}
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2315171c' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus, .oem-search input:focus, .price-range input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21,23,28,.08); }
.field select:disabled { background-color: var(--paper); color: var(--muted); }
.field input:disabled { background: var(--paper); color: var(--muted); }
.field--full { grid-column: 1 / -1; }
.has-err input, .has-err select { border-color: var(--err); }
.ferr { color: var(--err); font-size: 13px; font-weight: 550; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; padding: 5px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 2px 0 0; flex-shrink: 0; }
.check--terms { margin: 16px 0 6px; }
.check--terms a { text-decoration: underline; }
.oem-search { display: flex; gap: 8px; }
.oem-search input { font-family: var(--f-mono); }
.oem-search--wide { max-width: 640px; margin-bottom: 28px; }

/* ---------- Secțiuni ---------- */
.section { padding: 72px 0; }
.section--tight { padding-top: 28px; padding-bottom: 64px; }
.section--tint { background: #ecebe5; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.sec-head h2 { margin: 0; }
.kicker { display: inline-block; font-family: var(--f-display); font-stretch: 85%; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 8px; }
.kicker--light { color: var(--accent); }
.h-sub { margin-top: 48px; }
@media (max-width: 640px) { .section { padding: 48px 0; } .sec-head { flex-direction: column; align-items: flex-start; } }

/* Categorii */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px 18px; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.cat img { width: 72px; height: 72px; margin: 2px 0 14px; transition: transform .25s; }
.cat:hover img { transform: rotate(-8deg) scale(1.06); }
.cat strong { font-family: var(--f-display); font-size: 16px; line-height: 1.25; }
.cat__cnt { font-size: 13px; color: var(--muted); }
.cat__num { position: absolute; top: 14px; right: 16px; font-family: var(--f-mono); font-size: 12px; color: var(--line-2); }
@media (max-width: 1100px) { .cats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; } .cat { padding: 16px 14px; } .cat img { width: 52px; height: 52px; margin-bottom: 8px; } }

/* ---------- Card produs ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pgrid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .pgrid, .pgrid--3 { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .2s; }
.pcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pcard__img { position: relative; aspect-ratio: 4/3; background: linear-gradient(160deg, #f8f7f3, #eceae3); display: grid; place-items: center; overflow: hidden; }
.pcard__img img { width: 62%; height: 72%; object-fit: contain; transition: transform .3s; }
.pcard__img img[src*="/uploads/"] { width: 100%; height: 100%; object-fit: cover; }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.tag { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 750; }
.tag--sale { background: var(--accent); color: #fff; }
.tag--lg { font-size: 15px; padding: 6px 12px; top: 18px; left: 18px; }
.pcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pcard__brand { font-family: var(--f-display); font-stretch: 85%; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pcard__name { font-family: var(--f-body); font-size: 15px; font-weight: 600; line-height: 1.35; margin: 4px 0 8px; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__oem { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__oem span { background: var(--paper); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; font-size: 10.5px; color: var(--ink-3); }
.pcard__foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; gap: 8px; }
.price s { display: block; color: var(--muted); font-size: 13px; }
.price strong { font-family: var(--f-display); font-stretch: 105%; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.stock { font-size: 12.5px; font-weight: 600; margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--ok { color: var(--ok); }
.stock--low { color: var(--warn); }
.stock--out { color: var(--err); }
@media (max-width: 520px) {
  .pcard__body { padding: 12px; }
  .pcard__name { font-size: 14px; }
  .pcard__oem { display: none; }
  .price strong { font-size: 17px; }
  .btn-icon { width: 36px; height: 36px; }
}

/* Oferte */
.deals { display: grid; grid-template-columns: 320px 1fr; gap: 24px; background: var(--ink); color: #fff; border-radius: 24px; padding: 32px; }
.deals__intro { padding: 12px 8px; display: flex; flex-direction: column; align-items: flex-start; }
.deals__intro h2 { font-size: clamp(26px, 3vw, 36px); font-stretch: 112%; }
.deals__intro p { color: #b9bcc4; }
.deals__intro .btn { margin-top: auto; }
.deals__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.deals .pcard { color: var(--ink); border: 0; }
@media (max-width: 1100px) { .deals { grid-template-columns: 1fr; } .deals__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .deals { padding: 18px; border-radius: 18px; margin: 0 -4px; } .deals__list { gap: 8px; } }

/* Pași */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { padding: 28px 28px 8px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.steps li:last-child { border: 0; margin: 0; }
.steps span { font-family: var(--f-display); font-stretch: 125%; font-size: 54px; font-weight: 900; color: var(--accent); line-height: 1; display: block; margin-bottom: 14px; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li { border-right: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 22px 0; } .steps span { font-size: 40px; } }

/* Branduri */
.brands { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.brands__in { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; }
.brands__label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); white-space: nowrap; font-weight: 600; }
.brands__list { display: flex; gap: 10px 34px; flex-wrap: wrap; }
.brands__list a { font-family: var(--f-display); font-stretch: 115%; font-weight: 800; font-size: 20px; color: #a4a49c; letter-spacing: -.02em; }
.brands__list a:hover { color: var(--ink); }
@media (max-width: 760px) { .brands__in { flex-direction: column; align-items: flex-start; gap: 12px; } .brands__list a { font-size: 17px; } }

/* ---------- Blog cards ---------- */
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .bgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bgrid { grid-template-columns: 1fr; } }
.bcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.bcard__img { aspect-ratio: 16/9; display: block; overflow: hidden; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bcard:hover .bcard__img img { transform: scale(1.04); }
.bcard__img--ph {
  display: grid; place-items: center; background-color: var(--ink);
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.bcard__ph { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 88px; color: var(--accent); line-height: 1; }
.bcard__body { padding: 18px 20px 22px; }
.bcard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.bcard__meta span:first-child { color: var(--accent-2); font-weight: 650; }
.bcard h3 { font-size: 19px; line-height: 1.28; margin-bottom: 8px; }
.bcard p { color: var(--muted); font-size: 14.5px; margin: 0; }
.bfeat { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 24px; }
.bfeat__img { min-height: 320px; display: grid; place-items: center; }
.bfeat__img img { width: 100%; height: 100%; object-fit: cover; }
.bfeat__img .bcard__ph { font-size: 160px; }
.bfeat__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.bfeat h2 { font-size: clamp(24px, 2.6vw, 34px); }
.bfeat p { color: var(--muted); }
@media (max-width: 800px) { .bfeat { grid-template-columns: 1fr; } .bfeat__img { min-height: 200px; } .bfeat__body { padding: 24px; } }

/* ---------- Page head ---------- */
.pagehead { background: var(--card); border-bottom: 1px solid var(--line); padding: 22px 0 30px; }
.pagehead--slim { padding: 26px 0 22px; }
.pagehead--slim h1 { margin: 0; }
.pagehead h1 { margin-bottom: 8px; }
.pagehead__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.pagehead__lead { color: var(--muted); max-width: 720px; margin: 0; font-size: 16px; }
.pagehead__lead a { text-decoration: underline; color: var(--ink); }
.pagehead__ico { width: 96px; height: 96px; }
@media (max-width: 640px) { .pagehead__ico { display: none; } }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { color: var(--ink-3); }
.wrap > .crumbs { padding-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 14px; font-weight: 600; }
.chip span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-on span { color: #b9bcc4; }

/* ---------- Catalog ---------- */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding-top: 22px; padding-bottom: 72px; align-items: start; }
.filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; padding: 0 8px 0 10px; margin-left: -10px; scrollbar-width: thin; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.filters__head h2 { font-size: 20px; margin: 0; }
.filters__x { display: none; background: none; border: 0; font-size: 30px; line-height: 1; }
.fgroup { border-top: 1px solid var(--line); padding: 16px 0; }
.fgroup h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-stretch: 90%; color: var(--ink-3); margin-bottom: 10px; }
.fcat { display: flex; justify-content: space-between; padding: 6px 10px; margin: 0 -10px; border-radius: 7px; font-size: 14.5px; }
.fcat span { color: var(--muted); font-size: 13px; }
.fcat:hover { background: var(--card); color: var(--ink); }
.fcat.is-on { background: var(--ink); color: #fff; font-weight: 600; }
.fcat.is-on span { color: #b9bcc4; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { min-height: 40px; padding: 8px 10px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.toolbar p { margin: 0; color: var(--muted); }
.toolbar p strong { color: var(--ink); }
.toolbar__sort label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.toolbar__sort select { border: 1.5px solid var(--line-2); border-radius: 8px; padding: 7px 10px; background: #fff; color: var(--ink); font-weight: 550; }
.toolbar__filters { display: none; }
.filters-backdrop { display: none; }
@media (max-width: 960px) {
  .shop { grid-template-columns: 1fr; padding-top: 10px; }
  .filters { position: fixed; z-index: 95; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); max-height: none; background: var(--paper); padding: 18px; transform: translateX(-105%); transition: transform .25s; }
  .filters.is-open { transform: none; }
  .filters__x { display: block; }
  .filters-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(21,23,28,.5); z-index: 94; }
  .toolbar__filters { display: inline-flex; }
  .toolbar p { display: none; }
}
.empty { text-align: center; padding: 56px 20px; background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; }
.empty img, .empty svg { margin-bottom: 12px; color: var(--line-2); }
.empty p { color: var(--muted); max-width: 460px; }
.empty--big { border: 0; background: none; }
.err-code { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 120px; line-height: 1; color: var(--accent); margin: 0; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 9px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.pager span { background: none; border: 0; }
.pager a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Pagina produs ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding-bottom: 48px; align-items: start; }
.pdp__img { position: relative; aspect-ratio: 4/3; border-radius: 20px; background: linear-gradient(160deg, #fbfaf7, #e9e7df); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; position: sticky; top: 140px; }
.pdp__img img { width: 58%; height: 70%; object-fit: contain; }
.pdp__img img[src*="/uploads/"] { width: 100%; height: 100%; object-fit: cover; }
.pdp__imgnote { position: absolute; bottom: 12px; right: 14px; font-size: 12px; color: var(--muted); }
.pdp__brand { font-family: var(--f-display); font-stretch: 90%; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--accent-2); }
.pdp h1 { font-size: clamp(26px, 3vw, 38px); margin: 6px 0 16px; }
.codes { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 20px; }
.codes div { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.codes dt { color: var(--muted); }
.codes dd { margin: 0; font-family: var(--f-mono); font-weight: 500; }
.copy { background: var(--paper); border: 1px dashed var(--line-2); border-radius: 6px; padding: 2px 8px; font-family: var(--f-mono); font-size: 14px; }
.copy:hover { border-color: var(--ink); }
.copy.copied::after { content: " ✓"; color: var(--ok); }
.fit { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.fit div { display: flex; flex-direction: column; font-size: 14px; }
.fit strong { font-size: 15px; }
.fit a { text-decoration: underline; }
.fit--yes { background: var(--ok-soft); color: #0c5a33; }
.fit--yes svg { color: var(--ok); flex-shrink: 0; }
.fit--no { background: var(--warn-soft); color: #6f4100; }
.fit--no svg { color: var(--warn); flex-shrink: 0; }
.pdp__short { color: var(--muted); font-size: 16px; }
.buybox { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.buybox__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.buybox__price s { color: var(--muted); }
.buybox__price .save { background: var(--accent-soft); color: var(--accent-2); font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 6px; }
.buybox__price strong { flex-basis: 100%; font-family: var(--f-display); font-stretch: 108%; font-size: 40px; font-weight: 850; letter-spacing: -.03em; line-height: 1.05; }
.buybox__price small { color: var(--muted); }
.buybox .stock { margin: 12px 0 18px; font-size: 14px; }
.buybox__form { display: flex; gap: 10px; }
.buybox__form .btn { flex: 1; }
.buybox__perks { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--ink-3); }
.buybox__perks li { display: flex; gap: 10px; }
.buybox__perks li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.qty { display: flex; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: #fff; height: 52px; }
.qty button { width: 42px; border: 0; background: none; font-size: 20px; }
.qty button:hover { background: var(--paper); }
.qty input { width: 48px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input:focus { outline: 0; }
.qty--sm { height: 40px; }
.qty--sm button { width: 34px; }
.qty--sm input { width: 38px; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 22px; }
  .pdp__img { position: relative; top: 0; }
  .buybox__price strong { font-size: 34px; }
}
.pdp-tabs { padding-bottom: 32px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 16px; font-weight: 650; color: var(--muted); white-space: nowrap; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.tabpanel { max-width: 860px; }
.specs { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; }
.specs th, .specs td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs th { width: 40%; color: var(--muted); font-weight: 550; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs tbody tr:nth-child(even) { background: #faf9f6; }
.specs--compat thead th { background: var(--ink); color: #fff; width: auto; }
.sticky-buy { display: none; }
@media (max-width: 900px) {
  .sticky-buy { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .2s; box-shadow: 0 -10px 30px -12px rgba(0,0,0,.2); }
  .sticky-buy.is-on { transform: none; }
  .sticky-buy div { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .sticky-buy strong { font-family: var(--f-display); font-size: 20px; }
  .sticky-buy span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Proză (descrieri, articole) */
.prose { font-size: 17px; line-height: 1.75; color: #2a2d34; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .6em; scroll-margin-top: 150px; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; font-weight: 550; color: var(--ink); }
.prose img { border-radius: 12px; height: auto; margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; background: #fff; border: 1px solid var(--line); }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--ink); color: #fff; }
.prose code { font-family: var(--f-mono); background: #ecebe5; padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.prose > *:first-child { margin-top: 0; }

/* ---------- Coș & checkout ---------- */
.cartlay { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .cartlay { grid-template-columns: 1fr; } }
.cart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cline { display: grid; grid-template-columns: 96px 1fr auto 110px 36px; gap: 18px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cline__img { background: var(--paper); border-radius: 10px; aspect-ratio: 4/3; display: grid; place-items: center; }
.cline__img img { width: 70%; height: 70%; object-fit: contain; }
.cline__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cline__name { font-weight: 600; line-height: 1.35; }
.cline__info .muted { font-size: 13px; }
.cline__total { text-align: right; font-family: var(--f-display); font-size: 17px; }
.cline__rm { background: none; border: 0; color: var(--muted); padding: 8px; border-radius: 8px; }
.cline__rm:hover { background: var(--err-soft); color: var(--err); }
.cart__actions { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
@media (max-width: 640px) {
  .cline { grid-template-columns: 72px 1fr 32px; grid-template-areas: "img info rm" "img qty total"; gap: 8px 12px; padding: 14px; }
  .cline__img { grid-area: img; } .cline__info { grid-area: info; } .cline .qty { grid-area: qty; justify-self: start; }
  .cline__total { grid-area: total; } .cline__rm { grid-area: rm; align-self: start; }
}
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 140px; }
.summary h2 { font-size: 20px; }
.summary dl { margin: 0 0 16px; }
.summary dl div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary__total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px !important; }
.summary__total dt { color: var(--ink); font-weight: 700; }
.summary__total dd { font-family: var(--f-display); font-size: 26px; font-weight: 850; letter-spacing: -.02em; }
.summary__items { list-style: none; padding: 0; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.summary__items li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0 10px; }
.summary__items b { white-space: nowrap; }
.summary__note { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.freeship { background: var(--paper); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.freeship p { margin: 8px 0 0; }
.freeship__bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.freeship__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ff8a3d); border-radius: 3px; }
.progress { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); counter-reset: p; }
.progress li { display: flex; align-items: center; gap: 8px; counter-increment: p; }
.progress li::before { content: counter(p); width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 12px; }
.progress li:not(:last-child)::after { content: ""; width: 28px; height: 1.5px; background: var(--line-2); margin-left: 4px; }
.progress .done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.progress .on { color: var(--ink); }
.progress .on::before { background: var(--ink); color: #fff; border-color: var(--ink); }
.checkout { display: grid; gap: 18px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0; }
.box h2 { font-size: 20px; margin-top: 8px; }
fieldset.box { min-width: 0; }
.box legend { font-family: var(--f-display); font-weight: 750; font-size: 19px; display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin-bottom: 18px; }
.box legend + * { clear: both; }
.box legend span { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; }
.company { margin: 0 0 14px; }
.company summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent-2); margin-bottom: 12px; }
.paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .paygrid { grid-template-columns: 1fr; } }
.pay { display: flex; gap: 12px; padding: 16px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; align-items: flex-start; }
.pay input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }
.pay span { display: flex; flex-direction: column; }
.pay small { color: var(--muted); }
.pay:has(input:checked) { border-color: var(--ink); background: #faf9f6; box-shadow: inset 0 0 0 1px var(--ink); }

.done { max-width: 640px; margin: 0 auto; text-align: center; }
.done__ico { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; box-shadow: 0 0 0 10px var(--ok-soft); }
.done .lead { font-size: 17px; color: var(--muted); }
.done__items { text-align: left; margin: 24px 0; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.row--total { border: 0; font-size: 18px; }
.done__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bankbox { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px; text-align: left; margin: 24px 0; }
.bankbox h2 { font-size: 18px; }
.bankbox dl { margin: 0; display: grid; gap: 8px; }
.bankbox dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.bankbox dt { color: #9a9ea8; }
.bankbox dd { margin: 0; text-align: right; }

/* ---------- Cont ---------- */
.auth { display: grid; place-items: center; padding-top: 48px; padding-bottom: 72px; }
.auth__card { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.auth__card form { display: grid; gap: 14px; margin-top: 20px; }
.auth__card .fgrid { margin: 0; }
.auth__alt { text-align: center; margin: 20px 0 0; font-size: 14px; }
.auth__alt a { font-weight: 650; color: var(--accent-2); }
@media (max-width: 520px) { .auth__card { padding: 24px; } }
.acct { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-top: 28px; padding-bottom: 72px; align-items: start; }
.acct__nav { display: flex; flex-direction: column; gap: 2px; }
.acct__nav a { padding: 11px 14px; border-radius: 9px; font-weight: 600; font-size: 15px; }
.acct__nav a:hover { background: var(--card); color: var(--ink); }
.acct__nav a.is-on { background: var(--ink); color: #fff; }
.acct__main .box h2 { font-size: 18px; margin-top: 16px; }
.acct__main .box h3 { margin-top: 20px; }
@media (max-width: 760px) { .acct { grid-template-columns: 1fr; } .acct__nav { flex-direction: row; overflow-x: auto; } .acct__nav a { white-space: nowrap; } }
.olist { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.orow { display: grid; grid-template-columns: 1.2fr 1fr .8fr 1fr auto; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.orow:last-child { border: 0; }
.orow:hover { background: #faf9f6; color: var(--ink); }
@media (max-width: 640px) { .orow { grid-template-columns: 1fr auto; } .orow span:nth-child(2), .orow span:nth-child(3) { display: none; } }
.ohead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ohead h2 { margin: 0 !important; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pill--blue { background: #e8f0fd; color: #1d4ea8; }
.pill--violet { background: #f0ebfd; color: #5b33b0; }
.pill--amber { background: var(--warn-soft); color: #8a5000; }
.pill--green { background: var(--ok-soft); color: #0c5a33; }
.pill--red { background: var(--err-soft); color: #8e1b11; }
.pill--gray { background: #eceae4; color: var(--ink-3); }

/* ---------- Articol ---------- */
.post__head { padding: 8px 0 32px; }
.post__head .crumbs { padding-top: 20px; }
.post__head h1 { font-size: clamp(32px, 4.6vw, 54px); font-stretch: 106%; line-height: 1.06; letter-spacing: -.03em; margin: 8px 0 18px; }
.post__lead { font-size: 20px; color: var(--muted); line-height: 1.55; }
.post__meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-top: 22px; }
.post__meta strong { color: var(--ink); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 18px; }
.post__cover { width: 100%; border-radius: 20px; aspect-ratio: 2/1; object-fit: cover; margin-bottom: 36px; }
.post__lay { display: grid; grid-template-columns: 220px minmax(0, 720px) 280px; gap: 48px; justify-content: center; padding-bottom: 64px; }
.post__toc nav, .post__side { position: sticky; top: 150px; }
.post__toc h2, .side-box h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-stretch: 90%; color: var(--muted); margin-bottom: 12px; }
.post__toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); counter-reset: t; }
.post__toc li { counter-increment: t; }
.post__toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--muted); }
.post__toc a::before { content: counter(t, decimal-leading-zero) "  "; font-family: var(--f-mono); font-size: 11px; color: var(--line-2); }
.post__toc a:hover, .post__toc a.is-on { color: var(--ink); border-color: var(--accent); }
.post__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font-size: 14px; }
.post__share span { color: var(--muted); margin-right: 4px; }
.post__share a, .post__share button { text-decoration: none !important; color: var(--ink) !important; padding: 7px 13px; border-radius: 8px; border: 1.5px solid var(--line-2); background: none; font-size: 14px; font-weight: 600; }
.post__share a:hover, .post__share button:hover { border-color: var(--ink); }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.side-box--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.side-box--dark h2 { color: var(--accent); }
.side-box--dark p { color: #c9ccd3; font-size: 14.5px; }
.side-box .big { font-family: var(--f-display); font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.muted-l { color: #9a9ea8 !important; }
.mini { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.mini:last-child { border: 0; }
.mini img { width: 56px; height: 42px; object-fit: contain; background: var(--paper); border-radius: 6px; padding: 4px; flex-shrink: 0; }
.mini b { display: block; margin-top: 2px; }
@media (max-width: 1200px) { .post__lay { grid-template-columns: minmax(0, 720px) 280px; } .post__toc { display: none; } }
@media (max-width: 900px) { .post__lay { grid-template-columns: 1fr; } .post__side { position: static; } .prose { font-size: 16.5px; } .post__lead { font-size: 18px; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.contact .box .fgrid { margin-bottom: 20px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Trust & footer ---------- */
.trust { background: var(--card); border-top: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.trust__grid > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
.trust__grid svg { grid-row: span 2; width: 36px; height: 36px; color: var(--accent); }
.trust__grid b { font-size: 15px; line-height: 1.3; }
.trust__grid span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust__grid { grid-template-columns: 1fr; } }
.ftr { background: var(--ink); color: #b9bcc4; font-size: 14.5px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.ftr__brand img { height: 34px; width: auto; margin-bottom: 16px; }
.ftr h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-stretch: 90%; margin-bottom: 14px; }
.ftr__grid > div > a { display: block; padding: 4px 0; }
.ftr a:hover { color: #fff; }
.ftr__contact { line-height: 1.9; }
.ftr__contact a { color: #fff; }
.ftr__pay { display: flex; gap: 8px; margin-top: 16px; }
.ftr__pay span { border: 1px solid var(--ink-3); border-radius: 6px; padding: 4px 9px; font-size: 12px; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--ink-3); padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: #8a8e98; }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
  background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  display: flex; gap: 14px; align-items: center; font-size: 14.5px; max-width: calc(100vw - 32px); animation: toastin .25s ease;
}
.toast a { color: var(--accent); font-weight: 700; white-space: nowrap; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 12px); } }
@media (max-width: 900px) { .toast { bottom: 84px; } }

/* Copertă tipografică pentru articolele fără imagine */
.cover { position: relative; width: 100%; height: 100%; padding: 22px 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: #fff; overflow: hidden; }
.cover::before { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; border: 18px solid var(--accent); opacity: .9; }
.cover::after { content: ""; position: absolute; right: 22px; top: 22px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); }
.cover small { position: relative; font-family: var(--f-display); font-stretch: 85%; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cover b { position: relative; font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: 21px; line-height: 1.15; letter-spacing: -.02em; max-width: 88%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cover--lg { padding: 40px; }
.cover--lg b { font-size: clamp(26px, 3vw, 38px); -webkit-line-clamp: 4; }
.cover--lg::before { width: 300px; height: 300px; border-width: 30px; right: -80px; top: -80px; }
.cover--lg::after { width: 40px; height: 40px; right: 40px; top: 40px; }
.cover::before { width: 130px; height: 130px; border-width: 15px; right: -48px; top: -48px; }
.cover::after { width: 20px; height: 20px; right: 18px; top: 18px; }
.cover b { max-width: 82%; }
.cover--lg::before { width: 240px; height: 240px; border-width: 26px; right: -70px; top: -70px; }
.cover--lg::after { width: 32px; height: 32px; right: 34px; top: 34px; }
@media (max-width: 800px) { .cover--lg { padding: 24px; } .cover--lg::before { width: 150px; height: 150px; border-width: 16px; right: -50px; top: -50px; } .cover--lg::after { width: 22px; height: 22px; right: 20px; top: 20px; } }
