/* ==========================================================================
   css/core.css - v5 base + components (2026-11-02)

   The whole stylesheet of a migrated page, together with css/chrome.css
   (tokens, header, footer, quick-contact). A migrated page loads ONLY these
   two files - not style.css, design-system.css, site.css, site-prefs.css,
   Font Awesome or Google Fonts. That is the point: one source of truth per
   rule, no !important wars, a fraction of the bytes on old phones.

   Migrated so far: /, /servicii, /garaj, /garaj/<slug>, /calculator, /comparatie, /despre-noi, /contact, /blog, /blog/<slug>, legal trio - body.v5.
   Shared components the PHP renderers emit keep their names (.ds-project,
   .ds-spec, .blog-card, .ds-est, .notice-*, .offer-*): with the legacy
   sheets absent there is nothing for them to collide with here.

   Motion: one-shot reveals below the fold only, transform/opacity only,
   none under prefers-reduced-motion. Nothing loops.
   ========================================================================== */

/* ---- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--sh-h) + 12px); }
/* Phone type scale is ONE lever (owner picked 17px on a Galaxy S23, 2026-11-01). */
@media (max-width: 640px) { html { font-size: 17px; } }
body {
  margin: 0; min-width: 320px;
  font-family: var(--dx-font); font-size: 1rem; line-height: 1.6;
  color: var(--dx-ink); background: var(--dx-bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 0;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--dx-yellow); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--dx-yellow); color: #0d0d0f; }
.tnum { font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  padding: 10px 16px; border-radius: var(--dx-r-sm);
  background: var(--dx-yellow); color: #0d0d0f; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--dx-wrap); margin: 0 auto; padding: 0 var(--dx-gutter); }

/* ---- Type ------------------------------------------------------------------ */
.t-h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02;
  font-weight: 600; letter-spacing: -0.035em;
}
.t-h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08;
  font-weight: 600; letter-spacing: -0.03em; color: var(--dx-ink);
  text-wrap: balance;
}
.t-h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.t-lead { font-size: 1.125rem; line-height: 1.55; color: var(--dx-ink-2); max-width: 60ch; }

/* ---- Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: var(--dx-pill);
  border: 1px solid transparent;
  font-size: 1rem; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn .ic { font-size: 1.15em; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }
.btn--wa { background: var(--dx-wa); color: #fff; }
.btn--wa:hover { background: var(--dx-wa-hover); }
.btn--yellow { background: var(--dx-yellow); color: #0d0d0f; }
.btn--yellow:hover { background: #ffd633; }
.btn--ink { background: var(--dx-ink); color: var(--dx-bg); }
.btn--ink:hover { opacity: .9; }
.btn--line { border-color: var(--dx-line-2); color: var(--dx-ink); background: transparent; }
.btn--line:hover { border-color: var(--dx-ink); }
/* outline button on a dark photo (same in both themes) */
.btn--glass { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.06); }
.btn--glass:hover { border-color: #fff; background: rgba(255,255,255,.12); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--dx-ink);
}
.link-arrow .ic { font-size: .85em; transition: transform .15s ease; }
.link-arrow:hover .ic { transform: translateX(3px); }

/* ---- Sections ------------------------------------------------------------------ */
.band { padding: clamp(56px, 6.5vw, 96px) 0; }
@media (max-width: 720px) {
  .band { padding: 48px 0; }
  .sec-head { margin-bottom: 24px; }
  .sec-head .t-lead { font-size: 1.0625rem; margin-top: 10px; }
}
.band--alt { background: var(--dx-bg-2); }
/* Two consecutive bands with the SAME background share one gap. (Was
   `.band + .band:not(.band--alt)`, which also matched alt -> plain and left
   the "De ce ne aleg soferii" section with no top padding.) */
.band:not(.band--alt) + .band:not(.band--alt), .band--alt + .band--alt { padding-top: 0; }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.sec-head .t-lead { margin-top: 14px; }
.sec-head .link-arrow { flex: none; padding-bottom: 6px; }
.sec-head .btn { flex: none; }
@media (max-width: 720px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sec-head .link-arrow { padding-bottom: 0; }
}

/* ---- Reveal (driven by js/script.js: [data-aos] -> .aos-animate) ------------- */
.sfx [data-aos] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--dx-ease), transform .6s var(--dx-ease); }
.sfx [data-aos].aos-animate { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sfx [data-aos] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ==========================================================================
   HOME - HERO
   A full-bleed workshop photo under a NEUTRAL scrim (black, not warm - the
   warm scrim is what read brown on the light theme). Dark in both themes on
   purpose: every element stays legible either way (owner, 2026-09-02).
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--sh-h) + 40px) 0 40px;
  color: #fff; background: #0b0b0d;
}
.hero > .wrap { width: 100%; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,10,.88) 0%, rgba(8,8,10,.66) 42%, rgba(8,8,10,.30) 100%),
    linear-gradient(0deg, rgba(8,8,10,.85) 0%, rgba(8,8,10,0) 38%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-areas: "copy est" "facts facts";
  align-items: center; column-gap: clamp(32px, 5vw, 72px);
}
.hero__copy  { grid-area: copy; }
.hero__grid > .est { grid-area: est; }
.hero__facts { grid-area: facts; }
.hero__title { color: #fff; }
.hero__title em { font-style: normal; color: var(--dx-yellow); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---- Wall sign (replaces the kicker pill, owner 2026-11-02) --------------
   Reads as a plate screwed to the workshop wall in the photo: the striped
   edge is the black/yellow slat panelling behind the car, the four screw
   heads are radial gradients. Static - it is a sign, signs do not move. */
.hero__plate {
  display: inline-flex; align-items: stretch; margin-bottom: 26px;
  border-radius: 6px; overflow: hidden;
  background: linear-gradient(180deg, #1b1b1f 0%, #121215 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 10px 24px -10px rgba(0,0,0,.8);
}
.hero__plate-edge {
  width: 18px; flex: none;
  background: repeating-linear-gradient(90deg, var(--dx-yellow) 0 3px, #0d0d0f 3px 6px);
  box-shadow: -1px 0 0 rgba(0,0,0,.4) inset;
}
.hero__plate-text {
  position: relative; display: grid; gap: 2px;
  padding: 10px 26px 10px 16px;
  background-image:
    radial-gradient(circle at 7px 7px, #5a5a62 1.6px, transparent 2.2px),
    radial-gradient(circle at calc(100% - 7px) 7px, #5a5a62 1.6px, transparent 2.2px),
    radial-gradient(circle at 7px calc(100% - 7px), #5a5a62 1.6px, transparent 2.2px),
    radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), #5a5a62 1.6px, transparent 2.2px);
}
.hero__plate-text small { font-size: .75rem; font-weight: 500; letter-spacing: .04em; color: rgba(255,255,255,.62); }
.hero__plate-text b { font-size: .975rem; font-weight: 600; color: #fff; letter-spacing: -0.005em; }
.hero__plate-sep { display: none; }

/* ---- Readings on hazard tape -------------------------------------------
   Each reading stands on a strip of the same yellow/black floor tape that
   frames the car in the photo. On load the tape is "laid" column by column
   and each number rises in after its strip. One-shot CSS, no JS, nothing
   loops; the final values are in the markup, so no flash and no count-up. */
.hero__facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(16px, 2.4vw, 32px); margin-top: clamp(40px, 7vh, 80px);
}
.hero__fact { min-width: 0; }
.hero__fact:nth-child(2) { --i: 1; } .hero__fact:nth-child(3) { --i: 2; } .hero__fact:nth-child(4) { --i: 3; }
.hero__fact::before {
  content: ""; display: block; height: 6px; margin-bottom: 18px; border-radius: 1px;
  background: repeating-linear-gradient(-45deg, var(--dx-yellow) 0 9px, #0d0d0f 9px 18px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
}
.hero__fact b { display: block; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #fff; }
.hero__fact span { display: block; margin-top: 8px; font-size: .9375rem; line-height: 1.3; color: rgba(255,255,255,.72); }

/* clip, not scaleX: scaling squashed the stripes while it ran; tape being
   unrolled shows its real pattern from the first centimetre. */
@keyframes heroTape { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__fact::before { animation: heroTape .55s cubic-bezier(.6, 0, .2, 1) both; animation-delay: calc(.25s + var(--i, 0) * .14s); }
  .hero__fact b, .hero__fact span { animation: heroRise .55s var(--dx-ease) both; animation-delay: calc(.55s + var(--i, 0) * .14s); }
  .hero__fact span { animation-delay: calc(.62s + var(--i, 0) * .14s); }
}

@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: calc(var(--sh-h) + 28px); }
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "copy" "facts" "est"; }
  .hero__facts { margin: 32px 0 36px; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(8,8,10,.70) 0%, rgba(8,8,10,.82) 45%, rgba(8,8,10,.94) 100%);
  }
}

/* Phone: built for 360 wide and ~640 visible tall (Brave: URL bar + tab bar
   on a 360x780 screen). Sign, H1, both buttons and the four readings all sit
   in that first screen; the estimator follows right under them. */
.hero__lead, .hero__tel-short { display: none; }

/* Phone (owner 2026-11-02, round 3: "too much, I barely understand"): one idea
   per line, nothing decorative competing with the words. Location = plain
   text, one sentence of what we do, two equal buttons, readings 2x2 with
   one-line labels under ONE strip of tape. Built for 360 wide x ~640 visible. */
@media (max-width: 560px) {
  .hero { padding-top: calc(var(--sh-h) + 24px); padding-bottom: 28px; }
  .hero__plate { margin-bottom: 14px; background: none; border: 0; box-shadow: none; border-radius: 0; }
  .hero__plate-edge { display: none; }
  .hero__plate-text { display: block; padding: 0; background-image: none; font-size: .875rem; }
  .hero__plate-text small { display: none; }
  .hero__plate-text b { font-size: .9375rem; font-weight: 500; color: rgba(255,255,255,.8); }
  .hero__plate-text b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--dx-yellow); vertical-align: .08em; }
  .hero .t-h1 { font-size: clamp(2.1rem, 10.5vw, 2.6rem); line-height: 1.05; }
  .hero__lead { display: block; margin-top: 14px; font-size: 1.0625rem; line-height: 1.5; color: rgba(255,255,255,.82); }
  .hero__cta { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; margin-top: 22px; }
  .hero__cta .btn { height: 52px; padding: 0 14px; font-size: 1rem; }
  .hero__wa-long, .hero__tel-num { display: none; }
  .hero__tel-short { display: inline; }

  .hero__facts {
    position: relative; grid-template-columns: 1fr 1fr; gap: 16px 20px;
    margin: 28px 0 30px; padding-top: 18px;
  }
  .hero__facts::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
    background: repeating-linear-gradient(-45deg, var(--dx-yellow) 0 8px, #0d0d0f 8px 16px);
  }
  .hero__fact::before { display: none; }
  .hero__fact { text-align: center; }
  .hero__fact b { font-size: 1.75rem; }
  .hero__fact span { margin-top: 4px; font-size: .875rem; white-space: nowrap; }
}
@media (max-width: 560px) and (prefers-reduced-motion: no-preference) {
  .hero__facts::before { animation: heroTape .7s cubic-bezier(.6, 0, .2, 1) .2s both; }
}
@media (max-width: 340px) {
  .hero__cta { grid-template-columns: 1fr; }
}

/* ---- Estimator card (js/estimator.js contract: est-* ids, [hidden],
        .is-loading on selects, .ds-est__arrow inside the result) -------- */
.est {
  position: relative; color: var(--dx-ink);
  background: var(--dx-surface); border: 1px solid var(--dx-line);
  border-radius: var(--dx-r-lg); box-shadow: var(--dx-shadow-lg);
  padding: clamp(22px, 2.4vw, 30px);
}
.est__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--dx-line); }
.est__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.est__unit { font-size: .8125rem; color: var(--dx-mute); }
.est__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.est__field { display: grid; gap: 6px; min-width: 0; }
.est__label { font-size: .8125rem; font-weight: 500; color: var(--dx-mute); }
.est select {
  width: 100%; min-width: 0; height: 46px; padding: 0 38px 0 14px;
  border-radius: 10px; border: 1px solid var(--dx-line);
  background-color: var(--dx-field); color: var(--dx-ink);
  font-size: 1rem; /* >=16px: no iOS zoom on focus */
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2367676f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  transition: border-color .15s ease, background-color .15s ease;
}
.est select:hover:not(:disabled) { border-color: var(--dx-line-2); }
.est select:focus-visible { outline: none; border-color: var(--dx-ink); box-shadow: 0 0 0 3px rgba(255,204,0,.45); }
.est select:disabled { color: var(--dx-mute); cursor: not-allowed; opacity: .7; }
.est select.is-loading { color: var(--dx-mute); }
.est__out { margin-top: 18px; }
.est__hint { font-size: .9375rem; color: var(--dx-ink-2); }
.est__result { display: grid; gap: 0; border: 1px solid var(--dx-line); border-radius: 12px; overflow: hidden; }
.est__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.est__row + .est__row { border-top: 1px solid var(--dx-line); }
.est__row dt { font-size: .9375rem; color: var(--dx-mute); }
.est__row dd { font-size: 1.125rem; font-variant-numeric: tabular-nums; color: var(--dx-mute); white-space: nowrap; }
.est__row dd strong { color: var(--dx-ink); font-weight: 600; }
.est__row .ds-est__arrow { margin: 0 8px; color: var(--dx-mute); }
.est__actions { margin-top: 14px; }
.est__links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--dx-line); }
.est__links .link-arrow { font-size: .9375rem; }
.est__foot { font-size: .8125rem; color: var(--dx-mute); }
@media (max-width: 480px) { .est__unit { display: none; } }
@media (max-width: 400px) { .est__fields { grid-template-columns: 1fr; } }

/* ==========================================================================
   PROJECT CARD (lib/partials.php render_project_card)
   ========================================================================== */
.ds-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ds-project {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
@media (hover: hover) { .ds-project:hover { border-color: var(--dx-line-2); box-shadow: var(--dx-shadow); transform: translateY(-2px); } }
.ds-project__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--dx-bg-2); }
.ds-project__media img { width: 100%; height: 100%; object-fit: cover; }
.ds-project__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.ds-project__title { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.ds-project__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ds-project__link:focus-visible { outline: none; }
.ds-project__link:focus-visible::after { outline: 2px solid var(--dx-yellow); outline-offset: -2px; border-radius: var(--dx-r); }
.ds-project__meta { margin-top: 4px; font-size: .875rem; color: var(--dx-mute); }
.ds-spec { margin: 16px 0 0; border-top: 1px solid var(--dx-line); }
.ds-spec__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--dx-line); }
.ds-spec dt { font-size: .875rem; color: var(--dx-mute); }
.ds-spec dd { font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--dx-mute); white-space: nowrap; }
.ds-spec__to { color: var(--dx-ink); font-weight: 600; }
.ds-spec__arrow { margin: 0 6px; }
.ds-project__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-size: .9375rem; font-weight: 600; color: var(--dx-ink); }
.ds-project__more .ic { font-size: .8em; }
@media (max-width: 960px) { .ds-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ds-projects > :nth-child(3) { display: none; } }
@media (max-width: 600px) {
  .ds-projects { grid-template-columns: 1fr; }
  .ds-projects > :nth-child(3) { display: flex; }
}

/* ==========================================================================
   HOME - SERVICES (index rows: read top-to-bottom in one pass)
   ========================================================================== */
.svc { border-top: 1px solid var(--dx-line); padding-top: 4px; }
.svc__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 44px;
  align-items: center; gap: 24px;
  padding: 26px 12px; margin: 0 -12px; border-radius: 12px;
  transition: background-color .15s ease;
}
/* separators live on the li: on the rounded row they curved at the ends */
.svc li { border-bottom: 1px solid var(--dx-line); padding: 4px 0; }
.svc li:last-child { border-bottom: 0; }
.svc__name { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; transition: transform .2s var(--dx-ease); }
.svc__desc { color: var(--dx-ink-2); }
.svc__go {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--dx-line-2); color: var(--dx-ink); font-size: 15px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
/* Hover only where a real pointer hovers: on touch screens :hover sticks
   after the tap and left the row highlighted. */
@media (hover: hover) {
  .svc__row:hover { background: var(--dx-bg); }
  .band:not(.band--alt) .svc__row:hover { background: var(--dx-bg-2); }
  .svc__row:hover .svc__name { transform: translateX(4px); }
  .svc__row:hover .svc__go { background: var(--dx-yellow); border-color: var(--dx-yellow); color: #0d0d0f; }
}
.svc__row:active { background: var(--dx-bg); }
.band:not(.band--alt) .svc__row:active { background: var(--dx-bg-2); }
.sec-foot { display: none; }

/* Phone: the arrow rides next to the name so the description gets the full
   width (it was wrapping to 3 lines beside a 40px arrow column); the "all
   services" link moves under the list, where the reader actually needs it. */
@media (max-width: 720px) {
  .svc li { padding: 2px 0; }
  .svc__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 10px; margin: 0 -10px; }
  .svc__name { grid-column: 1; grid-row: 1; font-size: 1.3rem; }
  .svc__go { grid-column: 2; grid-row: 1; width: 32px; height: 32px; font-size: 12px; }
  .svc__desc { grid-column: 1 / -1; grid-row: 2; font-size: .9375rem; line-height: 1.5; }
  .sec-head--foot-on-phone .sec-head__action { display: none; }
  .sec-foot { display: block; margin-top: 20px; }
}

/* ==========================================================================
   HOME - WHY US
   ========================================================================== */
/* 2x2 grid under a normal section head (owner 2026-11-02: the old sticky
   two-column layout left a tall empty column on the left). */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 4vw, 64px); }
.why__item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; align-content: start;
  padding: 28px 0; border-top: 1px solid var(--dx-line);
}
.why__icon {
  grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--dx-bg-2); border: 1px solid var(--dx-line); color: var(--dx-ink); font-size: 18px;
}
.band--alt .why__icon { background: var(--dx-surface); }
.why__item h3 { align-self: start; padding-top: 10px; } /* first line centred on the 44px icon */
.why__item p { margin-top: 6px; color: var(--dx-ink-2); }
@media (max-width: 760px) {
  .why { grid-template-columns: 1fr; }
  .why__item { padding: 20px 0; column-gap: 14px; grid-template-columns: 40px minmax(0, 1fr); }
  .why__icon { width: 40px; height: 40px; font-size: 16px; }
  .why__item h3 { font-size: 1.0625rem; padding-top: 9px; }
  .why__item p { grid-column: 2; margin-top: 4px; font-size: .9375rem; line-height: 1.55; }
}

/* ==========================================================================
   BLOG CARD (partials/blog.php render_blog_card)
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
@media (hover: hover) { .blog-card:hover { border-color: var(--dx-line-2); box-shadow: var(--dx-shadow); transform: translateY(-2px); } }
.blog-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dx-bg-2); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__cat {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: var(--dx-pill);
  background: rgba(13,13,15,.78); color: #fff; font-size: .75rem; font-weight: 500;
}
.blog-card__cat .ic { display: none; }
.blog-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.blog-card__meta { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--dx-mute); }
.blog-card__meta time, .blog-card__read { display: inline-flex; align-items: center; gap: 6px; }
.blog-card__meta .ic { font-size: .9em; }
.blog-card__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.blog-card__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.blog-card__excerpt { color: var(--dx-ink-2); font-size: .9375rem; }
.blog-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: .9375rem; font-weight: 600; }
.blog-card__more .ic { font-size: .8em; }
.blog-card__link { position: absolute; inset: 0; z-index: 2; overflow: hidden; text-indent: -9999px; white-space: nowrap; border-radius: var(--dx-r); }
.blog-card__link:focus-visible { outline-offset: -2px; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .blog-grid > :nth-child(3) { display: none; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } .blog-grid > :nth-child(3) { display: flex; } }

/* ==========================================================================
   CLOSING CTA
   ========================================================================== */
.cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(36px, 5vw, 64px);
  background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r-lg);
  box-shadow: var(--dx-shadow);
}
/* the floor tape from the hero, closing the page the way it opened */
.cta::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: repeating-linear-gradient(-45deg, var(--dx-yellow) 0 9px, #0d0d0f 9px 18px);
}
.cta .t-lead { margin-top: 16px; }
.cta__actions { display: grid; gap: 12px; }
.cta__info { display: grid; gap: 10px; margin-top: 20px; font-size: .9375rem; color: var(--dx-ink-2); }
.cta__info li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.cta__info .ic { margin-top: 4px; color: var(--dx-mute); }
.cta__info a { color: var(--dx-ink); text-decoration: underline; text-decoration-color: var(--dx-line-2); text-underline-offset: 3px; }
@media (hover: hover) { .cta__info a:hover { text-decoration-color: currentColor; } }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .cta { padding: 28px 20px 24px; border-radius: var(--dx-r); gap: 24px; }
  .cta .t-h2 { font-size: 1.6rem; line-height: 1.12; }
  .cta .t-lead { font-size: 1.0625rem; }
}

/* ==========================================================================
   PAGE HERO (.phero) - inner pages. Dark photo band in both themes like the
   homepage hero, but short: the page's content is below, not in the hero.
   Copy centred: the banners have their subject at the edges, dark middle.
   ========================================================================== */
.phero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--sh-h) + clamp(56px, 8vw, 104px)) 0 clamp(56px, 7vw, 88px);
  color: #fff; background: #0b0b0d; text-align: center;
}
.phero__media { position: absolute; inset: 0; z-index: -1; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 75% at 50% 55%, rgba(8,8,10,.78) 0%, rgba(8,8,10,.35) 100%),
              linear-gradient(180deg, rgba(8,8,10,.55) 0%, rgba(8,8,10,0) 30%, rgba(8,8,10,.6) 100%);
}
.phero__in { max-width: 860px; }
.phero__kicker { font-size: .9375rem; font-weight: 500; color: rgba(255,255,255,.72); }
.phero__kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--dx-yellow); vertical-align: .08em; }
.phero__title { margin-top: 14px; color: #fff; font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
.phero__title em { font-style: normal; color: var(--dx-yellow); }
.phero__lead { max-width: 56ch; margin: 18px auto 0; font-size: 1.125rem; line-height: 1.55; color: rgba(255,255,255,.8); }
.phero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.phero__chips a {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: var(--dx-pill);
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06);
  color: #fff; font-size: .9375rem; font-weight: 500; transition: background-color .15s ease, border-color .15s ease;
}
@media (hover: hover) { .phero__chips a:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); } }
.phero__chips a:active { background: rgba(255,255,255,.14); }
@media (max-width: 560px) {
  .phero { padding: calc(var(--sh-h) + 40px) 0 44px; }
  .phero__title { font-size: clamp(2.1rem, 10vw, 2.6rem); }
  .phero__lead { font-size: 1.0625rem; }
  .phero__chips { gap: 8px; margin-top: 24px; }
  .phero__chips a { height: 40px; padding: 0 14px; font-size: .875rem; }
}

/* ---- Check list (one quiet tick per line, ink not yellow) ------------------ */
.checks { display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--dx-ink-2); }
.checks .ic { margin-top: 5px; width: 14px; height: 14px; color: var(--dx-ink); }

/* ==========================================================================
   SERVICE DETAIL (.svd) - photo + text, alternating sides
   ========================================================================== */
.svd { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.svd--rev .svd__media { order: 2; }
.svd__media { border-radius: var(--dx-r-lg); overflow: hidden; background: #0b0b0d; box-shadow: var(--dx-shadow); aspect-ratio: 8 / 9; }
.svd__media img { width: 100%; height: 100%; object-fit: cover; }
.svd__label { font-size: .9375rem; font-weight: 500; color: var(--dx-mute); margin-bottom: 10px; }
.svd__lead { margin: 16px 0 24px; }
.svd__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 860px) {
  .svd { grid-template-columns: 1fr; gap: 28px; }
  .svd--rev .svd__media { order: 0; }
  .svd__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .svd__actions .btn { flex: 1 1 100%; }
  .svd__lead { margin: 12px 0 20px; font-size: 1.0625rem; }
}

/* ---- Other services cards (.xgrid / .xcard) ----------------------------- */
.xgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.xcard {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.band:not(.band--alt) .xcard { background: var(--dx-bg-2); border-color: transparent; }
.xcard__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: var(--dx-bg); border: 1px solid var(--dx-line); color: var(--dx-ink); font-size: 18px; }
.xcard p { color: var(--dx-ink-2); font-size: .9375rem; flex: 1; }
.xcard__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .9375rem; font-weight: 600; color: var(--dx-ink); }
.xcard__go .ic { color: var(--dx-wa); font-size: 1.1em; }
@media (hover: hover) { .xcard:hover { border-color: var(--dx-line-2); box-shadow: var(--dx-shadow); transform: translateY(-2px); } }
.xcard:active { transform: scale(.99); }
@media (max-width: 1000px) { .xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .xgrid { grid-template-columns: 1fr; gap: 12px; } .xcard { padding: 20px; } }

/* ---- Process steps on the floor tape (.steps) --------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.step { position: relative; padding-top: 30px; }
.step::before {
  content: ""; position: absolute; left: 0; right: -24px; top: 0; height: 5px;
  background: repeating-linear-gradient(-45deg, var(--dx-yellow) 0 9px, #0d0d0f 9px 18px);
}
.step:last-child::before { right: 0; }
.step__n { display: block; font-size: 2.25rem; font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--dx-ink); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.step p { margin-top: 6px; color: var(--dx-ink-2); font-size: .9375rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; padding: 0 0 22px 0; }
  .step::before { left: 18px; right: auto; top: 0; bottom: 0; width: 5px; height: auto;
    background: repeating-linear-gradient(-45deg, var(--dx-yellow) 0 6px, #0d0d0f 6px 12px); }
  .step:last-child::before { bottom: auto; height: 40px; }
  .step__n { grid-row: 1 / span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 41px; height: 41px; margin: 0;
    border-radius: 50%; background: var(--dx-surface); border: 1px solid var(--dx-line-2); font-size: 1.125rem; }
  .step h3 { padding-top: 8px; }
}

/* ---- FAQ (native details) ------------------------------------------------ */
.faq-wrap { max-width: 900px; }
.faq { border-top: 1px solid var(--dx-line); }
.faq__item { border-bottom: 1px solid var(--dx-line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 600; color: var(--dx-ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--dx-line-2); font-size: 12px; transition: transform .2s var(--dx-ease), background-color .15s ease; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--dx-yellow); border-color: var(--dx-yellow); color: #0d0d0f; }
.faq__a { padding: 0 48px 22px 2px; color: var(--dx-ink-2); }
.faq__more { margin-top: 24px; color: var(--dx-ink-2); }
.faq__more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--dx-ink); }
.faq__more .ic { color: var(--dx-wa); }
@media (max-width: 560px) { .faq__q { padding: 18px 0; font-size: 1rem; } .faq__a { padding-right: 0; } }

/* ==========================================================================
   GARAJ - listing + project page (v5, 2026-11-02)
   ========================================================================== */
/* Hero variant: subject on the right of the banner, copy on its dark left */
.phero--left { text-align: left; }
.phero--left .phero__in { max-width: var(--dx-wrap); }
.phero--left .phero__lead { margin-left: 0; }
.phero--left .phero__chips { justify-content: flex-start; }
.phero--left .phero__media img { object-position: 75% 50%; }
.phero--left .phero__media::after {
  background: linear-gradient(90deg, rgba(8,8,10,.9) 0%, rgba(8,8,10,.6) 45%, rgba(8,8,10,.15) 100%),
              linear-gradient(180deg, rgba(8,8,10,.5) 0%, rgba(8,8,10,0) 30%, rgba(8,8,10,.5) 100%);
}
@media (max-width: 760px) { .phero--left .phero__media::after { background: linear-gradient(180deg, rgba(8,8,10,.75), rgba(8,8,10,.85)); } }
.phero__chips a.is-active { background: var(--dx-yellow); border-color: var(--dx-yellow); color: #0d0d0f; }
.phero__chip-n { margin-left: 6px; font-size: .8125rem; opacity: .7; font-variant-numeric: tabular-nums; }

/* compact section head: title + a count on one line */
.sec-head--compact { align-items: baseline; margin-bottom: 24px; }
.sec-head--compact { flex-direction: row; }
.sec-head__meta { font-size: .9375rem; color: var(--dx-mute); font-variant-numeric: tabular-nums; }
.ds-projects--full > :nth-child(3) { display: flex; }

/* empty / pending states */
.empty { display: grid; justify-items: center; gap: 10px; padding: 48px 20px; text-align: center; color: var(--dx-ink-2); }
.empty__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--dx-bg-2); border: 1px solid var(--dx-line); color: var(--dx-ink); font-size: 20px; }
.empty .btn { margin-top: 8px; }

/* pagination (partials/pagination.php, styles off on v5 pages) */
.dbx-pagination { margin-top: 40px; }
.dbx-pagination__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.dbx-page {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: var(--dx-pill); border: 1px solid var(--dx-line-2); color: var(--dx-ink); font-weight: 600; font-variant-numeric: tabular-nums;
}
.dbx-page--current { background: var(--dx-ink); border-color: var(--dx-ink); color: var(--dx-bg); }
.dbx-page--gap { border-color: transparent; color: var(--dx-mute); }
@media (hover: hover) { a.dbx-page:hover { border-color: var(--dx-ink); } }

/* ---- Project page ---------------------------------------------------------- */
.pd { padding: calc(var(--sh-h) + 28px) 0 clamp(48px, 6vw, 80px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; font-size: .9375rem; color: var(--dx-mute); }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--dx-ink); }
.crumbs a .ic { font-size: .8em; }
.crumbs [aria-current] { color: var(--dx-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.pd__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.pd__media { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--dx-r-lg); overflow: hidden; background: var(--dx-bg-2); border: 1px solid var(--dx-line); }
.pd__media img { width: 100%; height: 100%; object-fit: cover; }
.pd__info { position: sticky; top: calc(var(--sh-h) + 20px); }
.pd__service { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 500; color: var(--dx-mute); }
.pd__service::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dx-yellow); }
.pd__title { margin-top: 8px; }
.pd__meta { margin-top: 6px; color: var(--dx-ink-2); }
.pd__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 0; }
.pd__stat { position: relative; overflow: hidden; padding: 18px 18px 16px; border: 1px solid var(--dx-line); border-radius: var(--dx-r); background: var(--dx-surface); }
.pd__stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(-45deg, var(--dx-yellow) 0 7px, #0d0d0f 7px 14px); }
.pd__stat dt { font-size: .875rem; color: var(--dx-mute); }
.pd__stat dd { margin-top: 6px; font-size: 1.125rem; color: var(--dx-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd__stat dd strong { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; color: var(--dx-ink); }
.pd__from { color: var(--dx-mute); }
.pd__arrow { margin: 0 8px; color: var(--dx-mute); }
.pd__stat .pd__delta { margin-top: 4px; font-size: .9375rem; font-weight: 600; color: var(--dx-ink); }
.pd__actions { display: grid; gap: 10px; margin-top: 24px; }
.pd__actions .btn { width: 100%; }
.pd__social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 20px; font-size: .9375rem; color: var(--dx-mute); }
.pd__social a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--dx-ink); }
@media (hover: hover) { .pd__social a:hover { text-decoration: underline; text-underline-offset: 3px; } }
@media (max-width: 900px) {
  .pd__grid { grid-template-columns: 1fr; }
  .pd__info { position: static; }
}
@media (max-width: 400px) {
  .pd__stat { padding: 16px 12px 14px; }
  .pd__stat dd { font-size: 1rem; }
  .pd__stat dd strong { font-size: 1.4rem; }
  .pd__arrow { margin: 0 4px; }
}

.pd__readwrap > * { max-width: 780px; } /* same left edge as crumbs + photo; width capped only for reading */
.pd__text { margin-top: 14px; color: var(--dx-ink-2); font-size: 1.0625rem; line-height: 1.7; overflow-wrap: anywhere; }
.pd__chart { margin: 28px 0 0; border-radius: var(--dx-r); overflow: hidden; border: 1px solid var(--dx-line); }

/* ---- Review card (partials/reviews.php) ------------------------------------ */
.ds-reviews-grid { display: grid; gap: 16px; margin-top: 18px; }
.ds-review { position: relative; padding: 22px 24px; background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r); }
.band:not(.band--alt) .ds-review { background: var(--dx-bg-2); border-color: transparent; }
.ds-review__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ds-review__stars { color: #e5a800; letter-spacing: 2px; font-size: 1rem; }
[data-theme="dark"] .ds-review__stars { color: var(--dx-yellow); }
.ds-review__project { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--dx-mute); }
.ds-review__body { margin-top: 12px; color: var(--dx-ink-2); line-height: 1.65; }
.ds-review__foot { display: flex; gap: 8px; align-items: baseline; margin-top: 14px; }
.ds-review__author { font-weight: 600; color: var(--dx-ink); }
.ds-review__loc { font-size: .875rem; color: var(--dx-mute); }
.ds-review__link { position: absolute; inset: 0; border-radius: var(--dx-r); }

/* ---- Review form ----------------------------------------------------------- */
.rform__lead { margin-top: 10px; color: var(--dx-ink-2); }
.rform form { margin-top: 22px; display: grid; gap: 18px; }
.rform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rform__flash { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: .9375rem; }
.rform__flash .ic { margin-top: 3px; }
.rform__flash--ok { background: rgba(18,140,74,.1); color: var(--dx-ink); border: 1px solid rgba(18,140,74,.35); }
.rform__flash--ok .ic { color: var(--dx-wa); }
.rform__flash--err { background: rgba(200,40,40,.08); color: var(--dx-ink); border: 1px solid rgba(200,40,40,.35); }
.rform__flash--err .ic { color: #c62828; }
.rform__rating { border: 0; margin: 0; padding: 0; }
.rform__rating legend { margin-bottom: 6px; font-size: .875rem; font-weight: 500; color: var(--dx-ink-2); }
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { display: grid; place-items: center; width: 40px; height: 40px; font-size: 22px; color: var(--dx-line-2); cursor: pointer; transition: color .1s ease; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: #e5a800; }
[data-theme="dark"] .stars-input input:checked ~ label { color: var(--dx-yellow); }
.stars-input input:focus-visible + label { outline: 2px solid var(--dx-yellow); outline-offset: 2px; border-radius: 6px; }
.rform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 500; color: var(--dx-ink-2); }
.field label span { color: var(--dx-mute); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--dx-line);
  background: var(--dx-field); color: var(--dx-ink); font-size: 1rem; line-height: 1.5;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--dx-ink); box-shadow: 0 0 0 3px rgba(255,204,0,.45); }
.field__hint { font-size: .8125rem; color: var(--dx-mute); }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .9375rem; color: var(--dx-ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--dx-ink); }
.consent a { color: var(--dx-ink); text-decoration: underline; text-underline-offset: 3px; }
.rform .btn { justify-self: start; }
@media (max-width: 560px) {
  .rform__grid { grid-template-columns: 1fr; }
  .rform .btn { justify-self: stretch; }
}

/* ---- Not found (garaj-detail 404 branch) ------------------------------------ */
.nf { padding: calc(var(--sh-h) + 80px) 0 96px; text-align: center; }
.nf__in { display: grid; justify-items: center; gap: 14px; max-width: 640px; }
.nf__code { font-size: 4.5rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--dx-ink); }
.nf .btn { margin-top: 10px; }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 18px; font-weight: 500; }
.nf__links a { color: var(--dx-ink-2); text-decoration: underline; text-decoration-color: var(--dx-line-2); text-underline-offset: 3px; }
.nf__code { position: relative; padding-bottom: 14px; }
.nf__code::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 120px; height: 5px; transform: translateX(-50%); background: repeating-linear-gradient(-45deg, var(--dx-yellow) 0 7px, #0d0d0f 7px 14px); }

/* ==========================================================================
   CALCULATOR (/calculator) - v5 2026-11-02. JS contract in calculator.php.
   ========================================================================== */
.phero--short { padding-bottom: clamp(48px, 6vw, 72px); }
.calc {
  position: relative; overflow: hidden;
  background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r-lg);
  box-shadow: var(--dx-shadow);
}
.calc::before { content: ""; display: block; height: 5px; background: repeating-linear-gradient(-45deg, var(--dx-yellow) 0 9px, #0d0d0f 9px 18px); }
.calc__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 24px clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--dx-line); }
.calc__tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--dx-pill); background: var(--dx-bg-2); border: 1px solid var(--dx-line); }
.calc__tabs .tab-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border: 0; border-radius: var(--dx-pill); background: transparent; color: var(--dx-ink-2);
  font-size: .9375rem; font-weight: 600; transition: background-color .15s ease, color .15s ease;
}
.calc__tabs .tab-btn.active { background: var(--dx-surface); color: var(--dx-ink); box-shadow: var(--dx-shadow-sm); }
[data-theme="dark"] .calc__tabs .tab-btn.active { background: var(--dx-line-2); }
.calc__body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.calc__form { display: grid; gap: 18px; align-content: start; padding: clamp(20px, 3vw, 32px); border-right: 1px solid var(--dx-line); }
.calc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.calc__field { display: grid; gap: 6px; min-width: 0; }
.calc__field > span { font-size: .8125rem; font-weight: 500; color: var(--dx-mute); }
.calc select {
  width: 100%; min-width: 0; height: 48px; padding: 0 38px 0 14px;
  border-radius: 10px; border: 1px solid var(--dx-line);
  background-color: var(--dx-field); color: var(--dx-ink); font-size: 1rem;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2367676f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.calc select:focus-visible { outline: none; border-color: var(--dx-ink); box-shadow: 0 0 0 3px rgba(255,204,0,.45); }
.calc select:disabled { color: var(--dx-mute); opacity: .7; cursor: not-allowed; }
.calc #calculate-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.calc__results { display: grid; align-items: center; min-height: 340px; padding: clamp(20px, 3vw, 32px); background: var(--dx-bg-2); }
.band--alt .calc__results { background: var(--dx-bg); }
.no-results-message { display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--dx-ink-2); }
.chart-container { position: relative; height: 300px; }
.calc-summary { padding: clamp(20px, 3vw, 32px); border-top: 1px solid var(--dx-line); }
.calc-summary.is-revealed { animation: calcIn .45s var(--dx-ease) both; }
@keyframes calcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.calc-summary__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calc-tile { padding: 18px; border: 1px solid var(--dx-line); border-radius: var(--dx-r); background: var(--dx-bg); }
.calc-tile__label { display: block; font-size: .8125rem; font-weight: 500; color: var(--dx-mute); }
.calc-tile__rows { display: grid; gap: 4px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.calc-tile__rows > div { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; color: var(--dx-mute); }
.calc-tile__rows strong { font-size: 1.125rem; font-weight: 600; color: var(--dx-ink); white-space: nowrap; }
.calc-tile__arrow { color: var(--dx-mute); }
.calc-summary__note { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: .875rem; color: var(--dx-mute); }
.calc-summary__note .ic { margin-top: 3px; flex: none; }
.calc-summary__actions { margin-top: 18px; }
@media (max-width: 900px) {
  .calc__body { grid-template-columns: 1fr; }
  .calc__form { border-right: 0; border-bottom: 1px solid var(--dx-line); }
  .calc__results { min-height: 0; }
  .calc-summary__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .calc__top { padding: 18px 16px; }
  .calc__tabs { width: 100%; }
  .calc__tabs .tab-btn { flex: 1; justify-content: center; }
  .calc__form, .calc__results, .calc-summary { padding: 18px 16px; }
  .calc__fields { grid-template-columns: 1fr; }
  .chart-container { height: 260px; }
  .calc-summary__actions .btn { width: 100%; }
}

/* ==========================================================================
   COMPARATIE (/comparatie) - v5 2026-11-02. The two demos ARE the page's
   content (memory/feedback_visual_calm.md: motion the visitor started stays).
   JS contract in comparatie.php. Scenes stay dark in both themes, like the
   heroes: they are "photos" of a track and a road.
   ========================================================================== */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.vs__card { position: relative; overflow: hidden; padding: 22px 24px; background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r); }
.vs__card--tuned::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(-45deg, var(--dx-yellow) 0 7px, #0d0d0f 7px 14px); }
.vs__tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--dx-mute); }
.vs__tag--tuned { color: var(--dx-ink); }
.vs__tag--tuned .ic { color: #e5a800; }
[data-theme="dark"] .vs__tag--tuned .ic { color: var(--dx-yellow); }
.vs__card h3 { margin-top: 4px; }
.vs__rows { margin-top: 12px; border-top: 1px solid var(--dx-line); }
.vs__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--dx-line); }
.vs__rows dt { color: var(--dx-mute); font-size: .9375rem; }
.vs__rows dd { font-weight: 600; font-variant-numeric: tabular-nums; }

.demo { padding: clamp(14px, 2vw, 20px); background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r-lg); box-shadow: var(--dx-shadow); }
.demo__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.demo__chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--dx-pill); border: 1px solid var(--dx-line-2); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--dx-ink); }
.demo .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.demo__results { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--dx-line); text-align: center; } /* JS sets display:block */
.demo__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; text-align: left; }
.demo__tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.demo__tile { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--dx-line); border-radius: var(--dx-r); background: var(--dx-bg); }
.demo__tile .ic { font-size: 18px; color: var(--dx-ink); margin-bottom: 4px; }
.demo__tile span { font-size: .8125rem; color: var(--dx-mute); }
.demo__tile strong { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.demo__tile small { font-size: .8125rem; color: var(--dx-mute); }
.demo__tile--tuned { border-color: var(--dx-ink); }

/* ---- Race track ---------------------------------------------------------- */
.race-track { position: relative; overflow: hidden; padding: 6px 0 30px; border-radius: var(--dx-r); background: #141417; color: #fff; }
.rc-lane { position: relative; height: 84px; border-bottom: 2px dashed rgba(255,255,255,.12); }
.rc-lane:last-of-type { border-bottom: 0; }
.rc-lane__name { position: absolute; left: 14px; top: 8px; font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.55); letter-spacing: .02em; }
.car { position: absolute; z-index: 2; left: 80px; top: 30px; width: 54px; height: 40px; font-size: 54px; line-height: 1; } /* left is driven by JS */
.car > .ic { width: 54px; height: 40px; display: block; }
.stock-car { color: #9a9aa3; }
.tuned-car { color: var(--dx-yellow); }
.speed-indicator {
  position: absolute; left: 0; bottom: calc(100% + 2px); /* left-aligned: stays inside the track at the finish */
  padding: 2px 8px; border-radius: var(--dx-pill); background: rgba(255,255,255,.12);
  font-size: .75rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: #fff;
  opacity: 0; transition: opacity .2s ease;
}
.car.racing .speed-indicator { opacity: 1; }
.tuned-car .speed-indicator { background: var(--dx-yellow); color: #0d0d0f; }
.finish-line {
  position: absolute; top: 0; bottom: 0; right: 76px; width: 10px; /* car + its speed chip must fit past the line */
  background: repeating-conic-gradient(#fff 0 25%, #141417 0 50%) 0 0 / 10px 10px;
}
.rc-marks { position: absolute; left: 0; right: 0; bottom: 8px; height: 16px; font-size: .75rem; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; }
.rc-marks span { position: absolute; }
.rc-marks span:nth-child(1) { left: 80px; }
.rc-marks span:nth-child(2) { left: 50%; transform: translateX(-50%); }
.rc-marks span:nth-child(3) { right: 92px; }
.traffic-light { display: inline-flex; gap: 6px; padding: 8px 10px; border-radius: var(--dx-pill); background: #141417; }
.light { width: 14px; height: 14px; border-radius: 50%; background: #34343a; transition: background-color .15s ease; }
.light.red.active { background: #ff4d4d; }
.light.yellow.active { background: var(--dx-yellow); }
.light.green.active { background: #34c759; }

/* ---- Fuel scene ---------------------------------------------------------- */
.highway-scene { position: relative; height: 200px; overflow: hidden; border-radius: var(--dx-r); background: linear-gradient(180deg, #1c1c22 0%, #141417 60%); }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: #0e0e10; border-top: 1px solid rgba(255,255,255,.08); }
.lane-marking { position: absolute; left: 0; right: 0; top: 30px; height: 4px; background: repeating-linear-gradient(90deg, rgba(255,204,0,.85) 0 40px, transparent 40px 80px); }
.car-container { position: absolute; top: 34px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; }
.stock-container { left: 30%; }
.tuned-container { left: 60%; }
.stock-highway-car, .tuned-highway-car { display: block; font-size: 48px; line-height: 1; }
.stock-highway-car .ic, .tuned-highway-car .ic { width: 48px; height: 36px; display: block; }
.stock-highway-car { color: #9a9aa3; }
.tuned-highway-car { color: var(--dx-yellow); }
.fuel-tank { width: 76px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.fuel-level { width: 100%; height: 100%; border-radius: 4px; background: #d6d6db; }
.tuned-fuel { background: var(--dx-yellow); }
.car-label { padding: 2px 10px; border-radius: var(--dx-pill); background: rgba(255,255,255,.12); color: #fff; font-size: .75rem; font-weight: 600; }
.car-label--tuned { background: var(--dx-yellow); color: #0d0d0f; }
.fuel-live { margin-top: 16px; text-align: center; }
.fuel-live__note { font-size: .8125rem; color: var(--dx-mute); }
.fuel-live__rates { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.fuel-live__rate { display: flex; justify-content: space-between; gap: 18px; padding: 10px 14px; border: 1px solid var(--dx-line); border-radius: 12px; font-size: .9375rem; }
.fuel-live__rate span { color: var(--dx-mute); }
.fuel-live__rate strong { font-variant-numeric: tabular-nums; }
.fuel-live__rate--tuned { border-color: var(--dx-ink); }

/* ---- Note card ------------------------------------------------------------- */
.note { margin-top: 20px; padding: 22px 24px; background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r); }
.band:not(.band--alt) .note { background: var(--dx-bg-2); border-color: transparent; }
.note h3 { display: flex; align-items: center; gap: 10px; }
.note h3 .ic { color: var(--dx-mute); }
.note > p { margin: 8px 0 14px; color: var(--dx-ink-2); }

@media (max-width: 860px) {
  .demo__tiles--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* JS starts the cars at 10px below 769px */
  .rc-marks span:nth-child(1) { left: 10px; }
}
@media (max-width: 560px) {
  .vs { grid-template-columns: 1fr; }
  .rc-lane { height: 76px; }
  .car { top: 28px; width: 44px; height: 32px; }
  .car > .ic { width: 44px; height: 32px; }
  .finish-line { right: 64px; }
  .rc-marks span:nth-child(3) { right: 78px; }
  .rc-lane__name { left: 10px; top: 6px; }
  .demo__tiles { grid-template-columns: 1fr; }
  .demo__controls .btn { flex: 1 1 100%; }
  .fuel-live__rates { display: grid; grid-template-columns: 1fr; width: 100%; }
}

/* ==========================================================================
   DESPRE NOI + shared bits (v5 2026-11-02)
   ========================================================================== */
.svd__media--tall { aspect-ratio: 3 / 4; }
.story > p:not(.svd__label) { margin-top: 14px; color: var(--dx-ink-2); line-height: 1.7; }
.story > h2 + p { margin-top: 18px; }
.brandmark { font-weight: 700; color: var(--dx-ink); }
[data-theme="dark"] .brandmark { color: var(--dx-yellow); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo__card { display: grid; align-content: start; gap: 12px; padding: clamp(22px, 3vw, 32px); background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r); }
.band:not(.band--alt) .duo__card { background: var(--dx-bg-2); border-color: transparent; }
.band:not(.band--alt) .duo__card .why__icon { background: var(--dx-surface); }
.duo__card > p { color: var(--dx-ink-2); line-height: 1.65; }
.duo__card .checks strong { color: var(--dx-ink); font-weight: 600; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

.ds-reviews-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 960px) { .ds-reviews-grid--3 { grid-template-columns: 1fr; } }
.ds-review--clickable { transition: border-color .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .ds-review--clickable:hover { border-color: var(--dx-line-2); box-shadow: var(--dx-shadow); } }
.ds-review__project .ic { font-size: .9em; }

/* Google Business Profile badge (partials/reviews.php render_google_reviews,
   called with $withStyles = false on v5 pages). Renders only once the
   profile URL is set in /admin. */
.greviews-slot:not(:empty) { margin-top: 24px; }
.g-reviews { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 16px 28px; padding: 22px 24px; background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r); }
.g-reviews__brand { display: flex; align-items: center; gap: 12px; }
.g-reviews__logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--dx-line); }
.g-reviews__logo svg { width: 22px; height: 22px; }
.g-reviews__brandtxt { display: grid; }
.g-reviews__brandtxt strong { font-weight: 600; color: var(--dx-ink); }
.g-reviews__brandtxt span { font-size: .8125rem; color: var(--dx-mute); }
.g-reviews__score { display: flex; align-items: center; gap: 10px; }
.g-reviews__num { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; color: var(--dx-ink); }
.g-stars { position: relative; display: inline-block; font-size: 1.1rem; letter-spacing: 2px; line-height: 1; }
.g-stars__base { color: var(--dx-line-2); }
.g-stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #e5a800; }
.g-reviews__count { font-size: .875rem; color: var(--dx-mute); }
.g-reviews__lead { color: var(--dx-ink-2); font-size: .9375rem; }
.g-reviews__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.g-reviews__btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--dx-pill); border: 1px solid var(--dx-line-2); color: var(--dx-ink); font-weight: 600; font-size: .9375rem; }
.g-reviews__btn--primary { background: var(--dx-ink); border-color: var(--dx-ink); color: var(--dx-bg); }
@media (max-width: 960px) { .g-reviews { grid-template-columns: 1fr; } }

/* ==========================================================================
   CONTACT (/contact) - v5 2026-11-02
   ========================================================================== */
.band--tight { padding: clamp(28px, 4vw, 44px) 0; }
.band--tight + .band { padding-top: clamp(56px, 6.5vw, 96px); }
.qgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qcard {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; min-width: 0;
  background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.qcard > span:last-child { display: grid; min-width: 0; }
.qcard__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--dx-bg-2); color: var(--dx-ink); font-size: 18px; }
.qcard--wa .qcard__icon { background: var(--dx-wa); color: #fff; }
.qcard__label { font-size: .8125rem; color: var(--dx-mute); }
.qcard__value { font-weight: 600; color: var(--dx-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .qcard:hover { border-color: var(--dx-line-2); box-shadow: var(--dx-shadow); } }
.qcard:active { transform: scale(.99); }
@media (max-width: 760px) { .qgrid { grid-template-columns: 1fr; } }

.cgrid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 20px; align-items: start; }
.cform { padding: clamp(20px, 3vw, 32px); background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r-lg); box-shadow: var(--dx-shadow); display: grid; gap: 18px; }
.cform__title { display: flex; align-items: center; gap: 10px; }
.cform__title .ic { color: var(--dx-wa); }
.cform__intro { margin-top: -10px; color: var(--dx-ink-2); }
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field select {
  height: 48px; padding: 0 38px 0 14px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2367676f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input { height: 48px; }
.field__err { font-size: .8125rem; font-weight: 500; color: #c62828; }
[data-theme="dark"] .field__err { color: #ff8a80; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: #c62828; }
.cform__consent-err { margin-top: -10px; }
.cinfo { padding: clamp(20px, 3vw, 28px); background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r-lg); }
.cinfo__intro { margin-top: 6px; color: var(--dx-ink-2); font-size: .9375rem; }
.cinfo__list { display: grid; gap: 16px; margin-top: 18px; }
.cinfo__list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; }
.cinfo__list .ic { margin-top: 4px; color: var(--dx-mute); }
.cinfo__list span { display: block; font-size: .8125rem; color: var(--dx-mute); }
.cinfo__list a, .cinfo__list p { font-weight: 600; color: var(--dx-ink); word-break: break-word; }
.cinfo__list p { font-weight: 500; line-height: 1.6; }
.cinfo__social { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--dx-line); }
.cinfo__social > span { font-size: .8125rem; color: var(--dx-mute); }
.cinfo__social .sf__social { margin-top: 10px; }
@media (max-width: 960px) { .cgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cform__grid { grid-template-columns: minmax(0, 1fr); } }

.mapbox { overflow: hidden; border-radius: var(--dx-r-lg); border: 1px solid var(--dx-line); background: var(--dx-bg-2); }
.mapbox iframe { display: block; width: 100%; height: 440px; border: 0; }
.mapbox__consent { display: grid; justify-items: center; gap: 14px; padding: clamp(32px, 5vw, 56px) 20px; text-align: center; color: var(--dx-ink-2); }
.mapbox__consent p { max-width: 60ch; font-size: .9375rem; }
.mapbox__consent p a { color: var(--dx-ink); text-decoration: underline; text-underline-offset: 3px; }
.mapbox__consent .link-arrow { font-size: .9375rem; }
#info .why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { #info .why { grid-template-columns: 1fr; } }

/* ==========================================================================
   BLOG (/blog, /blog/<slug>) - v5 2026-11-02
   ========================================================================== */
.blog-grid--full > :nth-child(3) { display: flex; }
.blog-card--featured { grid-column: 1 / -1; }
@media (min-width: 861px) {
  .blog-card--featured { flex-direction: row; }
  .blog-card--featured .blog-card__media { aspect-ratio: auto; width: 55%; min-height: 360px; }
  .blog-card--featured .blog-card__body { width: 45%; justify-content: center; padding: 36px 40px; gap: 14px; }
  .blog-card--featured .blog-card__title { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; }
  .blog-card--featured .blog-card__excerpt { font-size: 1rem; }
}

/* ---- Article ------------------------------------------------------------- */
.art { padding: calc(var(--sh-h) + 28px) 0 clamp(56px, 7vw, 96px); }
.art__head { max-width: 820px; margin: 8px auto 0; text-align: center; }
.art__cat { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--dx-pill); background: var(--dx-bg-2); border: 1px solid var(--dx-line); font-size: .875rem; font-weight: 600; color: var(--dx-ink); }
.art__cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dx-yellow); }
.art__title { margin-top: 18px; font-size: clamp(2rem, 4.4vw, 3.25rem); text-wrap: balance; }
.art__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 16px; font-size: .9375rem; color: var(--dx-mute); }
.art__meta span + span::before { content: "\00b7"; margin-right: 18px; }
.art__cover { max-width: 1040px; margin: 32px auto 0; border-radius: var(--dx-r-lg); overflow: hidden; border: 1px solid var(--dx-line); background: var(--dx-bg-2); }
.art__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.art__layout { display: grid; grid-template-columns: 48px minmax(0, 720px); gap: 32px; justify-content: center; margin-top: 44px; }
.art__share { position: sticky; top: calc(var(--sh-h) + 24px); align-self: start; display: grid; gap: 10px; }
.art__sbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--dx-line-2); background: transparent; color: var(--dx-ink-2); font-size: 16px; cursor: pointer; transition: color .15s ease, border-color .15s ease; }
@media (hover: hover) { .art__sbtn:hover { color: var(--dx-ink); border-color: var(--dx-ink); } }
.art__i-ok { display: none; }
.art__sbtn.is-copied { color: var(--dx-wa); border-color: var(--dx-wa); }
.art__sbtn.is-copied .art__i-link { display: none; }
.art__sbtn.is-copied .art__i-ok { display: block; }
.art__body { min-width: 0; }
.art__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; margin-top: 44px; padding: 24px 26px; border: 1px solid var(--dx-line); border-radius: var(--dx-r); background: var(--dx-bg-2); position: relative; overflow: hidden; }
.art__cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(-45deg, var(--dx-yellow) 0 7px, #0d0d0f 7px 14px); }
.art__cta p { margin-top: 6px; max-width: 46ch; color: var(--dx-ink-2); font-size: .9375rem; }
.art__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.art__share-m { display: none; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--dx-line); text-align: center; color: var(--dx-mute); font-size: .875rem; }
.art__share-m > div { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
@media (max-width: 900px) {
  .art__layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .art__share { display: none; }
  .art__share-m { display: block; }
}
@media (max-width: 560px) {
  .art__head { text-align: left; }
  .art__meta { justify-content: flex-start; }
  .art__cover { margin-top: 24px; border-radius: var(--dx-r); }
  .art__cta { padding: 22px 18px; }
  .art__cta-actions, .art__cta-actions .btn { width: 100%; }
}

/* Markdown body (md-* from lib/markdown.php) */
.blog-prose { color: var(--dx-ink-2); font-size: 1.0625rem; line-height: 1.8; overflow-wrap: anywhere; }
.blog-prose > *:first-child { margin-top: 0; }
.blog-prose .md-h2 { margin: 2em 0 .6em; font-size: clamp(1.45rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--dx-ink); }
.blog-prose .md-h3 { margin: 1.7em 0 .5em; font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: var(--dx-ink); }
.blog-prose .md-h4 { margin: 1.6em 0 .5em; font-size: 1.0625rem; font-weight: 600; color: var(--dx-ink); }
.blog-prose .md-p { margin: 0 0 1.15em; }
.blog-prose strong { color: var(--dx-ink); font-weight: 600; }
.blog-prose .md-a { color: var(--dx-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--dx-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (hover: hover) { .blog-prose .md-a:hover { text-decoration-color: currentColor; } }
.blog-prose .md-ul, .blog-prose .md-ol { margin: 0 0 1.3em; padding: 0; list-style: none; }
.blog-prose .md-ul li, .blog-prose .md-ol li { position: relative; padding-left: 1.7em; margin-bottom: .55em; }
.blog-prose .md-ul li::before { content: ""; position: absolute; left: .35em; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--dx-ink); }
.blog-prose .md-ol { counter-reset: md-ol; }
.blog-prose .md-ol li { counter-increment: md-ol; }
.blog-prose .md-ol li::before { content: counter(md-ol) "."; position: absolute; left: 0; font-weight: 600; color: var(--dx-ink); font-variant-numeric: tabular-nums; }
/* the quote is the one-line takeaway (house style) - the column's single accent */
.blog-prose .md-quote { margin: 1.8em 0; padding: 18px 22px; border-left: 4px solid var(--dx-yellow); border-radius: 0 12px 12px 0; background: var(--dx-bg-2); color: var(--dx-ink); font-size: 1.125rem; font-weight: 500; line-height: 1.6; }
.blog-prose .md-quote p { margin: 0; }
.blog-prose .md-code { padding: .12em .4em; border-radius: 5px; background: var(--dx-bg-2); font-size: .9em; }
.blog-prose .md-pre { margin: 1.4em 0; padding: 16px 18px; overflow: auto; border-radius: 12px; background: var(--dx-bg-2); border: 1px solid var(--dx-line); }
.blog-prose .md-img { max-width: 100%; height: auto; margin: 1.4em 0; border-radius: var(--dx-r); border: 1px solid var(--dx-line); }
.blog-prose .md-hr { border: 0; height: 1px; margin: 2.2em 0; background: var(--dx-line); }

/* ==========================================================================
   LEGAL (/termeni-conditii, /policy, /cookie-policy) - v5 2026-11-02.
   Light page head, no photo: these pages are read, not browsed.
   ========================================================================== */
.lhead { padding: calc(var(--sh-h) + clamp(40px, 6vw, 72px)) 0 clamp(32px, 4vw, 48px); background: var(--dx-bg-2); border-bottom: 1px solid var(--dx-line); position: relative; }
.lhead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: repeating-linear-gradient(-45deg, var(--dx-yellow) 0 7px, #0d0d0f 7px 14px); }
.lhead .wrap > * { max-width: 760px; }
.lhead__kicker { font-size: .9375rem; font-weight: 500; color: var(--dx-mute); }
.lhead__kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--dx-yellow); vertical-align: .08em; }
.lhead__title { margin-top: 12px; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.lhead .t-lead { margin-top: 14px; }
.legal-band { padding-top: clamp(40px, 5vw, 64px); }

.legal-prose { max-width: 760px; color: var(--dx-ink-2); font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.legal-prose h2 { margin: 2.2em 0 .6em; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: var(--dx-ink); }
.legal-prose > h2:first-child { margin-top: 0; }
.legal-prose h3 { margin: 1.4em 0 .4em; font-size: 1.0625rem; font-weight: 600; color: var(--dx-ink); }
.legal-prose p { margin: 0 0 1em; }
.legal-prose strong { color: var(--dx-ink); font-weight: 600; }
.legal-prose a { color: var(--dx-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dx-line-2); }
@media (hover: hover) { .legal-prose a:hover { text-decoration-color: currentColor; } }
.legal-prose ul, .legal-prose ol { margin: 0 0 1.2em; padding: 0; list-style: none; }
.legal-prose li { position: relative; padding-left: 1.4em; margin-bottom: .5em; }
.legal-prose ul > li::before { content: ""; position: absolute; left: .2em; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--dx-mute); }
.legal-li-ic { margin-right: 6px; color: var(--dx-mute); }
.legal-prose li:has(.legal-li-ic) { padding-left: 0; }
.legal-prose li:has(.legal-li-ic)::before { content: none; }

.legal-callout { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; margin: 1.2em 0; padding: 18px 20px; border: 1px solid var(--dx-line); border-radius: var(--dx-r); background: var(--dx-bg-2); }
.legal-callout__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--dx-surface); border: 1px solid var(--dx-line); color: var(--dx-ink); }
.legal-callout__body h3 { margin-top: 0; }
.legal-callout__body p { margin: 0 0 .35em; font-size: .9375rem; }
.legal-card { margin: 1em 0; padding: 18px 20px; border: 1px solid var(--dx-line); border-radius: var(--dx-r); background: var(--dx-bg-2); }
.legal-card h3 { margin-top: 10px; }
.legal-card p { margin: 0; font-size: .9375rem; }
.legal-card__badge { display: inline-flex; padding: 4px 10px; border-radius: var(--dx-pill); font-size: .75rem; font-weight: 600; }
.legal-card__badge--required { background: var(--dx-ink); color: var(--dx-bg); }
.legal-card__badge--optional { background: var(--dx-surface); color: var(--dx-ink); border: 1px solid var(--dx-line-2); }
.legal-table-wrap { margin: 1em 0 1.4em; overflow-x: auto; border: 1px solid var(--dx-line); border-radius: var(--dx-r); }
.legal-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .875rem; }
.legal-table td:nth-child(1), .legal-table td:nth-child(2), .legal-table td:nth-child(4), .legal-table td:nth-child(5) { white-space: nowrap; }
.legal-table th, .legal-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--dx-line); }
.legal-table th { background: var(--dx-bg-2); font-weight: 600; color: var(--dx-ink); white-space: nowrap; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table code { padding: .1em .35em; border-radius: 4px; background: var(--dx-bg-2); font-size: .9em; color: var(--dx-ink); }
.legal-prefs-cta { margin: 1.4em 0; padding: 22px 24px; border: 1px solid var(--dx-line); border-radius: var(--dx-r); background: var(--dx-bg-2); }
.legal-prefs-cta h3 { margin-top: 0; }
.legal-prefs-cta .btn { margin-top: 6px; }
.legal-updated { margin-top: 2.4em !important; padding-top: 1.2em; border-top: 1px solid var(--dx-line); font-size: .875rem; color: var(--dx-mute); }
@media (max-width: 560px) { .legal-callout { grid-template-columns: minmax(0, 1fr); } }

/* Cookie consent styles live in css/chrome.css (every page). */

/* ==========================================================================
   OFFER POPUP (homepage; content from /admin via /api/active-offer.php)
   js/script.js: .offer-popup.active, .offer-step.active,
   .social-follow-item.followed, .button-disabled, [hidden]; it also fills
   .offer-pct (discount %) and .offer-ends (end date) from the API.
   The % is always printed with "reducere" beside it - a bare "10%" next to
   Stage 1 reads as a power claim (memory/business_services.md).
   ========================================================================== */
.offer-popup { position: fixed; inset: 0; z-index: 1150; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility 0s linear .25s; }
.offer-popup.active { visibility: visible; opacity: 1; transition: opacity .25s ease, visibility 0s; }
.offer-overlay { position: absolute; inset: 0; background: rgba(8,8,10,.62); }
.offer-container { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: var(--dx-r-lg); }
.offer-content {
  position: relative; padding: 30px 26px 24px; text-align: center; overflow: hidden;
  background: var(--dx-surface); color: var(--dx-ink);
  border: 1px solid var(--dx-line); border-radius: var(--dx-r-lg); box-shadow: var(--dx-shadow-lg);
  transform: translateY(10px); transition: transform .3s var(--dx-ease);
}
.offer-popup.active .offer-content { transform: none; }
.offer-content::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--dx-yellow) 0 9px, #0d0d0f 9px 18px);
}
.close-offer { position: absolute; right: 10px; top: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--dx-ink-2); font-size: 1.5rem; line-height: 1; }
@media (hover: hover) { .close-offer:hover { background: var(--dx-bg-2); } }

.offer-badge { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.offer-pct { font-size: 3.5rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--dx-ink); font-variant-numeric: tabular-nums; }
.offer-badge__word { padding: 4px 10px; border-radius: 6px; background: var(--dx-yellow); color: #0d0d0f; font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transform: translateY(-6px); }
.offer-ends { margin-top: 8px; font-size: .875rem; font-weight: 500; color: var(--dx-mute); }
.offer-text { margin-top: 14px; }
.offer-text h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.offer-text p { margin-top: 8px; color: var(--dx-ink-2); font-size: .9375rem; }
.offer-steps { margin-top: 20px; }
.offer-step { display: none; }
.offer-step.active { display: block; }
.offer-stepno { margin-bottom: 6px; font-size: .8125rem; font-weight: 600; color: var(--dx-mute); letter-spacing: .02em; }
.offer-howto { margin-top: 10px; font-size: .8125rem; color: var(--dx-mute); }
.offer-content .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px; padding: 0 22px; border: 0; border-radius: var(--dx-pill);
  background: var(--dx-yellow); color: #0d0d0f; font-size: 1rem; font-weight: 600;
}
#sendWhatsappButton { background: var(--dx-wa); color: #fff; }
@media (hover: hover) { .offer-content .btn-primary:hover { opacity: .9; } }
.offer-content .btn-primary:disabled, .offer-content .btn-primary.button-disabled { opacity: .4; cursor: not-allowed; }
.offer-content h4 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.social-follow-list { display: grid; gap: 8px; margin-bottom: 16px; text-align: left; }
.social-follow-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--dx-line); border-radius: 12px; transition: border-color .15s ease, background-color .15s ease; }
.social-follow-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.social-follow-link .ic { font-size: 1.1em; }
.follow-status { font-size: .8125rem; font-weight: 500; color: var(--dx-mute); }
.social-follow-item.followed { border-color: var(--dx-wa); background: rgba(18,140,74,.06); }
.social-follow-item.followed .follow-status { color: var(--dx-wa); font-weight: 600; }
.car-form .form-group { text-align: left; }
.car-form .form-group + .form-group { margin-top: 14px; }
.car-form label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 500; color: var(--dx-ink-2); }
.car-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--dx-line); border-radius: 10px; background: var(--dx-field); color: var(--dx-ink); font-size: 1rem; }
.car-form input:focus-visible { outline: none; border-color: var(--dx-ink); box-shadow: 0 0 0 3px rgba(255,204,0,.45); }
.offer-consent-note { margin-top: 8px; font-size: .75rem; line-height: 1.5; color: var(--dx-mute); }
.offer-consent-note a { text-decoration: underline; }
.code-reveal__code { margin: 10px 0 12px; padding: 16px; border: 2px dashed var(--dx-line-2); border-radius: 12px; font-size: 1.6rem; font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; user-select: all; }
.code-reveal__note { margin-bottom: 16px; font-size: .875rem; color: var(--dx-ink-2); }

/* Phone: a bottom sheet, thumb-reachable, not a box floating mid-screen. */
@media (max-width: 560px) {
  .offer-popup { place-items: end center; padding: 0; }
  .offer-container { max-width: none; max-height: 92vh; border-radius: var(--dx-r-lg) var(--dx-r-lg) 0 0; }
  .offer-content { border-radius: var(--dx-r-lg) var(--dx-r-lg) 0 0; border-bottom: 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateY(40px); }
  .offer-pct { font-size: 3rem; }
}
@media (prefers-reduced-motion: reduce) { .offer-content { transition: none; transform: none; } }
