/* =========================================================
   WHITE CITY — variabile. Schimbi paleta doar de aici.
   ========================================================= */
:root {
  --bg: #e6e2d8;
  --bg-2: #f4f1ea;
  --ink: #1a1c1f;
  --muted: #3e444c;
  --line: #c9c3b6;
  --accent: #e2b100;
  --accent-ink: #1a1c1f;
  --header: #f4f1ea;
  --inverse: #1a1c1f;
  --inverse-ink: #f4f1ea;
  --inverse-muted: #d4d0c6;
  --danger: #8d1d1d;
  --font-d: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-b: "IBM Plex Sans", "Segoe UI", sans-serif;
  --header-h: 4.25rem;
  --wrap: 1120px;
  --shadow: 3px 3px 0 var(--ink);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #121416;
  --bg-2: #1c1f23;
  --ink: #f3f1ea;
  --muted: #c8ccd1;
  --line: #3a3f45;
  --accent: #f0c41a;
  --accent-ink: #1a1c1f;
  --header: #1c1f23;
  --inverse: #0c0e10;
  --inverse-ink: #f4f1ea;
  --inverse-muted: #c8ccd1;
  --danger: #ffb4b0;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.logo-word,
dt,
.svc-idx,
.product-code,
.slip-total,
.facts dd {
  font-family: var(--font-d);
}

p,
.lede,
.legal p,
.svc-panel p,
.why p,
.faq p {
  max-width: 65ch;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 0.9rem;
  z-index: 80;
  font-weight: 600;
}

.skip:focus {
  top: calc(0.5rem + env(safe-area-inset-top));
}

.wrap {
  width: min(var(--wrap), calc(100% - 1.5rem));
  margin-inline: auto;
}

/* ===== Butoane ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-d);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-ghost {
  background: var(--bg-2);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-short {
  display: inline;
}
.btn-long {
  display: none;
}

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: var(--header);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(var(--wrap), calc(100% - 1rem));
  margin-inline: auto;
}

.logo {
  color: var(--ink);
  display: flex;
  flex: 0 0 auto;
}

.logo svg {
  height: 24px;
  width: auto;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-phone {
  display: none;
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-btn,
.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 2px solid var(--ink);
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
  content: "";
}

.nav-toggle-bars::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-bars::after {
  position: absolute;
  top: 6px;
}

.nav {
  display: none;
}

.nav.is-open {
  display: flex;
  position: fixed;
  z-index: 39;
  inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0 0;
  background: var(--bg);
  flex-direction: column;
  padding: 0.75rem 1rem 2rem;
  gap: 0.25rem;
  overflow: auto;
}

.nav a {
  text-decoration: none;
  font-family: var(--font-d);
  font-size: 1.8rem;
  font-weight: 700;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

main {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
}

/* ===== Hero ===== */
.hero {
  padding: 1.5rem 0 1rem;
  display: grid;
  gap: 1.25rem;
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.35rem, 7vw, 4.6rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.lede {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.skyline-wrap {
  background: var(--bg-2);
  border: 1px solid var(--line);
  min-height: 220px;
}

.skyline {
  width: 100%;
  height: auto;
}

.skyline .grid line {
  stroke: var(--line);
  stroke-width: 1;
}

.skyline .ground,
.skyline .crane-mast,
.skyline .crane-jib rect,
.skyline .crane-jib line {
  stroke: var(--accent);
  stroke-width: 3;
  fill: var(--accent);
}

.skyline .crane-jib line {
  fill: none;
}

.skyline .bldg {
  fill: var(--ink);
  transform-box: fill-box;
  transform-origin: bottom;
  animation: rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.skyline .win {
  fill: var(--bg);
  opacity: 0;
  animation: wink 0.4s ease 0.85s forwards;
}

.crane-jib {
  transform-box: view-box;
  transform-origin: 381px 45px;
  animation: jib 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both;
}

@keyframes rise {
  from {
    transform: scaleY(0.04);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes wink {
  to {
    opacity: 1;
  }
}

@keyframes jib {
  from {
    transform: rotate(-7deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* ===== Banda de date ===== */
.facts {
  display: grid;
  margin: 0.5rem auto 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts > div {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.facts > div:first-child {
  border-top: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.facts dd {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
}

/* ===== Secțiuni ===== */
.section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 0.92;
  font-weight: 700;
  margin-bottom: 1.25rem;
  max-width: 16ch;
}

.note {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ===== Servicii ===== */
.svc {
  display: grid;
  gap: 1rem;
}

.svc-tab {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-left: 3px solid var(--line);
  min-height: 48px;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-d);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}

.svc-tab[aria-selected="true"] {
  border-left-color: var(--accent);
  background: var(--bg-2);
}

.svc-idx {
  color: var(--muted);
  font-size: 1rem;
}

.svc-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1.1rem;
}

.svc-panel h3 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 0.95;
  margin-bottom: 0.7rem;
}

.bullets {
  margin: 0.9rem 0 1.1rem;
  padding: 0;
  list-style: none;
}

.bullets li {
  padding: 0.35rem 0 0.35rem 1rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.bullets li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.75rem;
}

/* ===== Catalog ===== */
.catalog-bar {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.search label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.search input,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
  padding: 0.55rem 0.7rem;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.product-code {
  color: var(--muted);
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}

.product-name {
  font-weight: 600;
}

.product .btn {
  margin-top: 0.45rem;
}

.count {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.4rem 0;
}

/* ===== Utilaje ===== */
.rent {
  display: grid;
  gap: 1rem;
}

.machine {
  width: 100%;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  min-height: 64px;
}

.machine svg {
  width: 72px;
  height: 40px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
}

.machine small {
  display: block;
  color: var(--muted);
}

.machine strong.rate {
  font-family: var(--font-d);
  font-size: 1.25rem;
}

.machine.is-selected {
  background: var(--bg-2);
  box-shadow: inset 3px 0 0 var(--accent);
  padding-left: 0.6rem;
}

.slip {
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.slip h3 {
  font-size: 2rem;
  line-height: 0.95;
}

.slip p,
.slip label {
  color: var(--accent-ink);
  max-width: none;
}

.slip input {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--ink);
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
  padding: 0.4rem 0.6rem;
  margin: 0.35rem 0 0.8rem;
}

.slip-total {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 0.9;
  margin: 0.2rem 0 0.6rem;
}

.slip .fine {
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.slip .btn {
  background: #f4f1ea;
  color: #1a1c1f;
  border-color: #1a1c1f;
  box-shadow: 3px 3px 0 #1a1c1f;
}

.transport .error {
  color: #ffd0cc;
}

@media (max-width: 560px) {
  .machine {
    grid-template-columns: 56px 1fr;
  }
  .machine .rate {
    grid-column: 2;
  }
}

/* ===== Transport ===== */
.transport {
  background: var(--inverse);
  color: var(--inverse-ink);
  border-bottom: 0;
}

.transport h2,
.transport .note,
.transport .types dt {
  color: var(--inverse-ink);
}

.transport .note,
.transport .types dd {
  color: var(--inverse-muted);
}

.transport-grid {
  display: grid;
  gap: 1.5rem;
}

.types {
  margin: 0;
  padding: 0;
}

.types div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(244, 241, 234, 0.25);
}

.types dt {
  font-family: var(--font-d);
  font-size: 1.35rem;
  font-weight: 700;
}

.types dd {
  margin: 0;
}

.transport .field input,
.transport .field textarea,
.transport .field select {
  background: var(--bg-2);
  color: #1a1c1f;
  border-color: #1a1c1f;
}

.transport .field label {
  display: block;
  margin-bottom: 0.25rem;
}

.form {
  display: grid;
  gap: 0.8rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.req {
  color: var(--danger);
}

.error {
  color: var(--danger);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
}

.check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.alert {
  border: 2px solid var(--danger);
  padding: 0.6rem 0.75rem;
  color: var(--danger);
}

/* ===== Proiecte ===== */
.projects {
  display: grid;
  gap: 0.75rem;
}

.project {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.project button.frame {
  all: unset;
  cursor: pointer;
  display: block;
  padding: 0.6rem;
}

.project button.frame:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -4px;
}

.art {
  width: 100%;
  height: auto;
  background: transparent;
}

.art-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.art-win {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.art-accent {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
}

.art-dim {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.art-label {
  fill: var(--muted);
  font-size: 14px;
  font-family: var(--font-d);
}

.project figcaption {
  padding: 0 0.8rem 0.8rem;
}

.project h3 {
  font-size: 1.6rem;
  line-height: 1;
}

.project p {
  color: var(--muted);
  font-size: 0.95rem;
}

dialog.lightbox {
  width: min(920px, calc(100% - 1.25rem));
  max-height: min(92dvh, 900px);
  border: 2px solid var(--ink);
  background: var(--bg-2);
  color: var(--ink);
  padding: 0.8rem;
  margin: auto;
}

dialog.lightbox::backdrop {
  background: rgba(12, 14, 16, 0.72);
}

.lb-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.lightbox .art {
  max-height: 58dvh;
}

.lb-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

/* ===== De ce noi ===== */
.why {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.why article {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.why h3 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.why article:first-child h3 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-d);
  font-size: 1.45rem;
  font-weight: 700;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  padding: 0.4rem 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  flex: 0 0 auto;
  margin-bottom: 4px;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-bottom: -4px;
}

.faq-item p {
  padding: 0 0 1rem;
  color: var(--muted);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

.stamp {
  border: 2px solid var(--ink);
  padding: 1rem;
  background: var(--bg-2);
}

.stamp h3 {
  font-size: 2rem;
  line-height: 0.95;
  margin-bottom: 0.6rem;
}

.stamp dl {
  margin: 0;
}

.stamp div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
}

.stamp dt {
  color: var(--muted);
}

.stamp dd {
  margin: 0;
}

.stamp a {
  text-underline-offset: 3px;
}

.map-frame,
.map-placeholder {
  margin-top: 0.8rem;
  min-height: 220px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.map-frame {
  width: 100%;
  height: 260px;
  border: 0;
}

.map-placeholder {
  display: flex;
  align-items: center;
  padding: 1rem;
  color: var(--muted);
}

/* ===== Cookie, WhatsApp, sus ===== */
.cookie {
  position: fixed;
  z-index: 55;
  left: max(0.75rem, env(safe-area-inset-left));
  bottom: calc(4.6rem + env(safe-area-inset-bottom));
  width: min(26rem, calc(100% - 5.5rem));
  background: var(--bg-2);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 0.85rem;
}

.cookie p {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.cookie .form-actions {
  gap: 0.4rem;
}

.wa,
.totop {
  position: fixed;
  z-index: 45;
  right: max(0.75rem, env(safe-area-inset-right));
  min-width: 48px;
  min-height: 48px;
}

.wa {
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  width: 48px;
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.wa svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.totop {
  bottom: calc(4.4rem + env(safe-area-inset-bottom));
  border: 2px solid var(--ink);
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 700;
  padding: 0 0.7rem;
}

/* ===== Footer, cartuș de planșă ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.cartouche {
  border: 2px solid var(--ink);
  padding: 0.8rem;
}

.cartouche strong {
  font-family: var(--font-d);
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.cartouche p,
.footer li {
  color: var(--muted);
  font-size: 0.95rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-links a {
  font-family: var(--font-d);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-links button,
.legal-links a {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  text-align: left;
  min-height: 44px;
}

/* ===== Pagini legale ===== */
.legal {
  padding: 2rem 0 3rem;
}

.legal h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 0.92;
  margin-bottom: 0.75rem;
  max-width: 16ch;
}

.legal h2 {
  font-size: 1.8rem;
  margin: 1.5rem 0 0.4rem;
  max-width: none;
}

.legal p,
.legal li {
  margin-bottom: 0.7rem;
}

.legal ul {
  margin: 0 0 0.7rem;
  padding-left: 1.1rem;
}

.warn {
  border-left: 4px solid var(--accent);
  padding: 0.2rem 0 0.2rem 0.8rem;
  margin-bottom: 1rem;
}

/* ===== Desktop ===== */
@media (min-width: 420px) {
  .btn-short {
    display: none;
  }
  .btn-long {
    display: inline;
  }
  .logo svg {
    height: 30px;
  }
}

@media (min-width: 760px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .facts > div {
    border-top: 0;
    padding: 1.15rem 1rem;
  }
  .facts > div + div {
    border-left: 1px solid var(--line);
  }
  .product {
    grid-template-columns: 7.2rem minmax(0, 1.6fr) 0.7fr 0.8fr auto;
  }
  .product .btn {
    margin-top: 0;
  }
  .why {
    grid-template-columns: 1.15fr 1fr;
  }
  .why article:first-child {
    grid-row: span 3;
    padding-right: 1.5rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .projects {
    grid-template-columns: 1.3fr 1fr;
  }
  .projects .project:first-child {
    grid-row: span 2;
  }
  .contact-grid,
  .transport-grid,
  .rent {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
  .slip {
    position: sticky;
    top: calc(var(--header-h) + env(safe-area-inset-top) + 0.75rem);
  }
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 0.8fr;
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }
  .nav,
  .nav.is-open {
    display: flex;
    position: static;
    inset: auto;
    flex-direction: row;
    background: transparent;
    padding: 0;
    gap: 0.15rem 0.9rem;
    overflow: visible;
    align-items: center;
  }
  .nav a {
    font-size: 1.15rem;
    border: 0;
    padding: 0.2rem 0;
  }
  .nav a.nav-direct {
    display: none;
  }
  .header-phone {
    display: inline;
  }
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 1.5rem;
    padding-top: 2.2rem;
  }
  .svc {
    grid-template-columns: minmax(240px, 0.85fr) 1.3fr;
    align-items: start;
  }
  .catalog-bar {
    grid-template-columns: 1fr minmax(220px, 280px);
    align-items: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .skyline .bldg,
  .skyline .win,
  .crane-jib,
  .btn-primary {
    animation: none !important;
    transition: none !important;
  }
  .skyline .bldg {
    transform: none;
  }
  .skyline .win {
    opacity: 1;
  }
}

/* Logo din fișiere, pentru hosting static */
.logo img { height: 24px; width: auto; }
.logo .for-dark { display: none; }
[data-theme="dark"] .logo .for-light { display: none; }
[data-theme="dark"] .logo .for-dark { display: block; }
[hidden] { display: none !important; }
@media (min-width: 420px) {
  .logo img { height: 30px; }
}

.stamp dd{overflow-wrap:anywhere;min-width:0}
.map-frame{width:100%;display:block}
.stamp #map-slot{display:block;width:100%}
