/* ============================================================
   Calculator Beton Gorj — betonpetrosani.ro
   Design: Industrial Refined · Zero dependințe externe
   ============================================================ */

/* ── Reset & Variabile ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Culori */
  --c-bg:      #0d0f12;
  --c-bg2:     #141720;
  --c-bg3:     #1c2030;
  --c-bg4:     #242840;
  --c-accent:  #e85010;
  --c-accent2: #ff6830;
  --c-gold:    #f0a840;
  --c-green:   #28c870;
  --c-text:    #e8ecf0;
  --c-muted:   #7888a0;
  --c-dimmed:  #b0bcc8;
  --c-border:  rgba(255,255,255,0.07);
  --c-border2: rgba(232,80,16,0.25);

  /* Tipografie — font stivă sistem, fără request extern */
  --f-display: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  --f-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --f-mono:    'Courier New', Courier, monospace;

  /* Spațiere */
  --r: 6px;
  --r-lg: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg2);
  border-bottom: 2px solid var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
}

.logo {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--c-text);
}
.logo span { color: var(--c-accent); }

.header-phone {
  font-family: var(--f-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--c-accent2);
  text-decoration: none;
  letter-spacing: .5px;
  white-space: nowrap;
}
.header-phone:hover { color: #fff; }

/* ── Info bar ──────────────────────────────────────────────── */
.info-bar {
  background: rgba(232,80,16,.08);
  border-bottom: 1px solid var(--c-border2);
  padding: .4rem 1.5rem;
  font-size: .75rem;
  color: var(--c-dimmed);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  text-align: center;
}
.info-bar strong { color: var(--c-accent2); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
  background: var(--c-bg2);
}

/* Pattern geometric industrial */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(232,80,16,.03) 40px,
      rgba(232,80,16,.03) 41px
    );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
}

.hero-eyebrow {
  font-family: var(--f-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .85rem;
}

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.hero h1 em { color: var(--c-accent); font-style: normal; }

.hero-sub {
  font-size: .95rem;
  color: var(--c-dimmed);
  max-width: 520px;
  margin: 0 auto 1.6rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--c-dimmed);
  font-weight: 500;
}
.hero-badge::before {
  content: '✓';
  color: var(--c-accent);
  font-weight: 700;
}

/* ── Layout principal ──────────────────────────────────────── */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

/* ── Card pas ──────────────────────────────────────────────── */
.step-card {
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  margin-bottom: 1.1rem;
  position: relative;
}

.step-label {
  position: absolute;
  top: -11px;
  left: 1.25rem;
  background: var(--c-accent);
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 2px;
}

.step-title {
  font-family: var(--f-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.step-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

/* ── Grid clase beton ──────────────────────────────────────── */
.beton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .5rem;
}

.beton-btn {
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: .85rem .5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  color: var(--c-text);
  font-family: inherit;
  position: relative;
  user-select: none;
}
.beton-btn:hover {
  border-color: var(--c-accent);
  background: rgba(232,80,16,.08);
  transform: translateY(-1px);
}
.beton-btn.active {
  border-color: var(--c-accent);
  background: rgba(232,80,16,.16);
}

.beton-btn .bn-clasa {
  display: block;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
}
.beton-btn .bn-vechi {
  display: block;
  font-size: .62rem;
  color: var(--c-muted);
  margin-top: 2px;
}
.beton-btn .bn-pret {
  display: block;
  font-size: .7rem;
  color: var(--c-gold);
  font-weight: 600;
  margin-top: 5px;
}
.beton-btn.active .bn-pret { color: var(--c-accent2); }

.beton-btn .check-mark {
  position: absolute;
  top: 4px; right: 4px;
  width: 14px; height: 14px;
  background: var(--c-accent);
  border-radius: 50%;
  font-size: 8px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}
.beton-btn.active .check-mark { opacity: 1; }

/* ── Tip livrare ───────────────────────────────────────────── */
.tip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }

.tip-btn {
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.1rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  transition: border-color .15s, background .15s;
  color: var(--c-text);
  font-family: inherit;
  position: relative;
  text-align: left;
  user-select: none;
}
.tip-btn:hover { border-color: var(--c-accent); background: rgba(232,80,16,.06); }
.tip-btn.active { border-color: var(--c-accent); background: rgba(232,80,16,.14); }
.tip-btn .check-mark { position: absolute; top: 5px; right: 5px; width: 14px; height: 14px; background: var(--c-accent); border-radius: 50%; font-size: 8px; color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.tip-btn.active .check-mark { opacity: 1; }

.tip-icon { font-size: 1.65rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.tip-name { font-family: var(--f-display); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.tip-desc { font-size: .73rem; color: var(--c-muted); margin-top: 3px; line-height: 1.45; }
.tip-btn.active .tip-desc { color: var(--c-dimmed); }
.tip-tag { display: inline-block; font-size: .65rem; color: var(--c-muted); border: 1px solid var(--c-border); padding: 1px 6px; border-radius: 2px; margin-top: 4px; }

/* ── Cantitate ─────────────────────────────────────────────── */
.qty-row {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.qty-control {
  display: flex;
  align-items: stretch;
  background: var(--c-bg3);
  border: 2px solid var(--c-border);
  border-radius: var(--r);
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  height: 60px;
}
.qty-control:focus-within { border-color: var(--c-accent); }

.qty-btn {
  background: var(--c-bg2);
  border: none;
  border-right: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 1.6rem;
  font-weight: 300;
  width: 60px;
  height: 100%;
  cursor: pointer;
  transition: color .12s, background .12s;
  font-family: var(--f-display);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
#qty-plus {
  border-right: none;
  border-left: 1px solid var(--c-border);
}
.qty-btn:hover,
.qty-btn:active { color: #fff; background: var(--c-accent); }

.qty-input {
  background: none;
  border: none;
  color: var(--c-text);
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  flex: 1;
  min-width: 0;
  outline: none;
  -moz-appearance: textfield;
  padding: 0;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.qty-unit {
  padding: 0 12px;
  color: var(--c-muted);
  font-size: .9rem;
  border-left: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--f-display);
  background: var(--c-bg2);
}

.qty-note {
  font-size: .78rem;
  color: var(--c-muted);
  line-height: 1.7;
}
.qty-note strong { color: var(--c-dimmed); }

/* ── Quick select ──────────────────────────────────────────── */
.qs-wrap { margin-top: .9rem; }

.qs-label {
  font-size: .7rem;
  color: var(--c-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: .55rem;
}

/* Desktop: arată grid-ul mare, ascunde cel mic */
.qs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}

.qs-btn {
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: .65rem .5rem;
  cursor: pointer;
  transition: border-color .12s, background .12s;
  color: var(--c-text);
  font-family: inherit;
  text-align: center;
}
.qs-btn:hover { border-color: var(--c-accent); background: rgba(232,80,16,.07); }
.qs-btn.active { border-color: var(--c-accent); background: rgba(232,80,16,.14); }

.qs-name {
  display: block;
  font-family: var(--f-display);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.qs-km {
  display: block;
  font-size: .62rem;
  color: var(--c-muted);
  margin-top: 3px;
}
.qs-km.gratuit { color: var(--c-green); font-weight: 600; }
.qs-btn.active .qs-km:not(.gratuit) { color: var(--c-gold); }

.loc-search-box {
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.1rem;
  margin-bottom: .85rem;
}

.search-label {
  font-size: .72rem;
  color: var(--c-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.search-badge {
  background: rgba(40,200,112,.1);
  border: 1px solid rgba(40,200,112,.25);
  color: var(--c-green);
  font-size: .63rem;
  padding: 1px 7px;
  border-radius: 3px;
  letter-spacing: .5px;
  text-transform: none;
  font-weight: 600;
}

.search-field-wrap { position: relative; }

.search-field {
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: .95rem;
  padding: .75rem 2.5rem .75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color .18s;
}
.search-field:focus { border-color: var(--c-accent); }
.search-field::placeholder { color: var(--c-muted); }

.search-clear {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--c-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: none;
  padding: 2px;
}
.search-clear.visible { display: block; }
.search-clear:hover { color: var(--c-text); }

/* Dropdown autocomplete */
.ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--c-bg2);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.ac-dropdown.open { display: block; }

.ac-item {
  padding: .6rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .65rem;
  border-bottom: 1px solid var(--c-border);
  transition: background .1s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.focused { background: rgba(232,80,16,.12); }

.ac-icon { font-size: .9rem; opacity: .5; flex-shrink: 0; }

.ac-text { flex: 1; min-width: 0; }
.ac-name { font-size: .87rem; font-weight: 600; color: var(--c-text); }
.ac-name em { color: var(--c-accent2); font-style: normal; }
.ac-uat { font-size: .68rem; color: var(--c-muted); margin-top: 1px; }

.ac-km {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--c-gold);
  flex-shrink: 0;
}

/* Chip localitate selectata */
.selected-loc {
  display: none;
  align-items: center;
  gap: .7rem;
  margin-top: .75rem;
  background: rgba(232,80,16,.08);
  border: 1px solid var(--c-border2);
  border-radius: var(--r);
  padding: .6rem .9rem;
  flex-wrap: wrap;
}
.selected-loc.visible { display: flex; }

.sel-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-accent2);
}
.sel-uat { font-size: .73rem; color: var(--c-muted); margin-top: 1px; }
.sel-right { margin-left: auto; text-align: right; }
.sel-km { font-family: var(--f-display); font-weight: 700; font-size: .9rem; color: var(--c-gold); }
.sel-transport { font-size: .7rem; color: var(--c-muted); margin-top: 1px; }


/* ── Rezultat ──────────────────────────────────────────────── */
.result-placeholder {
  color: var(--c-muted);
  font-size: .85rem;
  text-align: center;
  padding: 2rem 1rem;
  line-height: 1.7;
}

.progress-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}
.dot {
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-radius: 3px;
  font-size: .7rem;
  padding: 3px 10px;
  color: var(--c-muted);
}
.dot.done { border-color: var(--c-green); color: var(--c-green); }

/* Card rezultat */
.result-card {
  background: linear-gradient(135deg, var(--c-bg2) 0%, #181e30 100%);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  /* fix mobil: nu iese din div */
  min-width: 0;
  word-break: break-word;
}
.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold));
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  gap: .8rem;
  flex-wrap: wrap;
}

.result-title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.result-year {
  font-size: .68rem;
  color: var(--c-muted);
  letter-spacing: 1px;
}

/* Sub-card în rezultat */
.sub-card {
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1rem 1.1rem;
  margin-bottom: .85rem;
}
.sub-card-title {
  font-size: .68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 700;
  margin-bottom: .7rem;
  font-family: var(--f-display);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .42rem 0;
  border-bottom: 1px solid var(--c-border);
  font-size: .86rem;
  gap: .5rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--c-dimmed); font-weight: 400; flex: 1; min-width: 0; }
.detail-label.fw6 { font-weight: 600; color: var(--c-text); }
.pret-m3 {
  color: var(--c-accent2);
  font-size: .78em;
  font-weight: 600;
  opacity: .85;
}
.detail-value { font-family: var(--f-display); font-weight: 700; font-size: .93rem; text-align: right; flex-shrink: 0; }
.detail-value.accent { color: var(--c-accent2); }
.detail-value.gold { color: var(--c-gold); }
.detail-value.green { color: var(--c-green); }
.detail-row.divider { border-bottom: 2px solid rgba(232,80,16,.25); padding-bottom: .5rem; margin-bottom: .25rem; }

/* Formula box */
.formula-box {
  background: rgba(232,80,16,.06);
  border: 1px solid rgba(232,80,16,.18);
  border-radius: var(--r);
  padding: .85rem 1rem;
  margin-bottom: .9rem;
  font-size: .76rem;
  color: var(--c-dimmed);
  line-height: 2;
  font-family: var(--f-mono);
}
.formula-box strong { color: var(--c-accent2); font-size: .82rem; }

/* Totaluri */
.totals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .65rem;
  margin-bottom: 1.1rem;
}

.total-box {
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: .9rem .75rem;
  text-align: center;
}
.total-box.main {
  border-color: var(--c-accent);
  background: rgba(232,80,16,.1);
}

.total-label {
  font-size: .61rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: .4rem;
  font-weight: 700;
  font-family: var(--f-display);
}
.total-box.main .total-label { color: var(--c-accent); }

.total-amount {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1;
}
.total-box.main .total-amount { color: var(--c-accent2); }

.total-currency {
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-muted);
}
.total-sub {
  font-size: .64rem;
  color: var(--c-muted);
  margin-top: 4px;
}
.total-box.main .total-sub { color: rgba(255,104,48,.7); }

/* CTA buttons */
.cta-row {
  display: flex;
  gap: .7rem;
  margin-top: 1.15rem;
  flex-wrap: wrap;
}

.btn-cta {
  flex: 1;
  min-width: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--f-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--r);
  padding: .85rem 1rem;
  cursor: pointer;
  transition: background .15s, transform .12s;
}
.btn-cta:hover { background: var(--c-accent2); transform: translateY(-2px); }
.btn-cta.wa { background: #25d366; }
.btn-cta.wa:hover { background: #1ebe5d; }

.result-disclaimer {
  font-size: .67rem;
  color: var(--c-muted);
  line-height: 1.55;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--c-border);
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-section {
  margin-top: 3rem;
}

.faq-title {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}
.faq-title span { color: var(--c-accent); }

.faq-item {
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  margin-bottom: .5rem;
  overflow: hidden;
}

.faq-question {
  padding: .9rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .89rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  transition: background .12s;
  user-select: none;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: rgba(232,80,16,.05); }

details[open] .faq-question { color: var(--c-accent2); }

.faq-arrow {
  color: var(--c-accent);
  font-size: .75rem;
  transition: transform .2s;
  flex-shrink: 0;
}
details[open] .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  padding: 0 1.1rem .95rem;
  font-size: .84rem;
  color: var(--c-dimmed);
  line-height: 1.7;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-bg2);
  border-top: 2px solid var(--c-accent);
  padding: 1.75rem 1.5rem 2rem;
  text-align: center;
  color: var(--c-muted);
  font-size: .8rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.footer-phone {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-accent2);
  text-decoration: none;
  letter-spacing: .5px;
}
.footer-phone:hover { color: #fff; }

.footer-wa {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: #25d366;
  color: #fff;
  font-family: var(--f-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: .45rem 1rem;
  border-radius: 3px;
  transition: background .15s;
}
.footer-wa:hover { background: #1ebe5d; }

.footer-address {
  color: var(--c-dimmed);
  font-size: .8rem;
  margin-bottom: .6rem;
  line-height: 1.6;
}

.footer-copy {
  font-size: .72rem;
  color: var(--c-muted);
}
.footer-copy a { color: var(--c-accent); text-decoration: none; }
.footer-copy a:hover { color: var(--c-accent2); }

/* ── Loading state ─────────────────────────────────────────── */
.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
  color: var(--c-muted);
  font-size: .85rem;
}

.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--c-border);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive — Mobile First ──────────────────────────────── */

/* ── 480px și sub (telefoane mici) ──────────────────────────── */
@media (max-width: 480px) {

  /* Header compact */
  .site-header { padding: 0 1rem; height: 52px; }
  .logo { font-size: 1.1rem; }
  .header-phone { font-size: .82rem; }

  /* Hero compact */
  .hero { padding: 1.6rem 1rem 1.4rem; }
  .hero-eyebrow { font-size: .68rem; letter-spacing: 2px; margin-bottom: .5rem; }
  .hero h1 { font-size: 1.9rem; margin-bottom: .6rem; }
  .hero-sub { font-size: .85rem; margin-bottom: 1.1rem; }
  .hero-badges { gap: .6rem; }
  .hero-badge { font-size: .74rem; }

  /* Main */
  .main { padding: 1.2rem .85rem 3.5rem; }

  /* Card-uri */
  .step-card { padding: 1.1rem 1rem; margin-bottom: .85rem; }
  .step-label { left: 1rem; font-size: .62rem; }
  .step-title { font-size: .85rem; margin-bottom: .85rem; }

  /* Beton grid — 2 coloane */
  .beton-grid { grid-template-columns: repeat(2, 1fr); gap: .45rem; }
  .beton-btn { padding: .7rem .4rem; }
  .beton-btn .bn-clasa { font-size: .9rem; }

  /* Tip livrare — stivuit */
  .tip-grid { grid-template-columns: 1fr; gap: .6rem; }
  .tip-btn { padding: .85rem; }
  .tip-icon { font-size: 1.4rem; }
  .tip-name { font-size: .9rem; }
  .tip-desc { font-size: .7rem; }

  /* Cantitate — box-ul e deja full-width, doar font mic */
  .qty-control { max-width: 100%; }
  .qty-btn { width: 56px; font-size: 1.5rem; }
  .qty-input { font-size: 1.3rem; }
  .qty-note { font-size: .73rem; }

  /* Search */
  .loc-search-box { padding: .9rem; }
  .search-label { font-size: .68rem; }
  .search-field { font-size: .88rem; padding: .65rem 2.2rem .65rem .85rem; }

  /* QS — 4 butoane compacte */
  .qs-grid { gap: .3rem; }
  .qs-btn { padding: .5rem .2rem; }
  .qs-name { font-size: .68rem; letter-spacing: 0; }
  .qs-km { font-size: .56rem; }

  /* Chip localitate */
  .selected-loc { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .sel-right { margin-left: 0; text-align: left; }

  /* Rezultat — nu iese din container */
  .result-card { padding: 1rem .9rem; }
  .result-title { font-size: .88rem; }
  .sub-card { padding: .8rem .85rem; }
  .detail-row { font-size: .78rem; flex-wrap: wrap; gap: .2rem; }
  .detail-label { font-size: .76rem; }
  .detail-value { font-size: .82rem; }

  /* Totaluri */
  .totals-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .total-box.main { grid-column: 1 / -1; }
  .total-box { padding: .75rem .6rem; }
  .total-label { font-size: .58rem; letter-spacing: 1.2px; }
  .total-amount { font-size: 1.15rem; }
  .total-sub { font-size: .6rem; }

  /* CTA */
  .cta-row { gap: .5rem; }
  .btn-cta {
  font-size: .82rem;
  padding: .75rem .6rem;
  min-width: 0;
  letter-spacing: .3px;
  text-transform: none;}

  /* FAQ */
  .faq-title { font-size: 1.25rem; }
  .faq-question { font-size: .82rem; padding: .8rem .9rem; }
  .faq-answer { font-size: .79rem; padding: 0 .9rem .85rem; }

  /* Footer */
  .site-footer { padding: 1.25rem 1rem 1.5rem; }
  .footer-phone { font-size: 1.05rem; }
}


/* ── 360px și sub (telefoane foarte mici) ───────────────────── */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.65rem; }
  .beton-grid { grid-template-columns: repeat(2, 1fr); }
  .totals-grid { grid-template-columns: 1fr; }
  .total-box.main { grid-column: auto; }
  .qs-name { font-size: .62rem; }
}

/* ── 481–767px (tablete mici, landscape telefon) ────────────── */
@media (min-width: 481px) and (max-width: 767px) {
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero h1 { font-size: 2.6rem; }
  .main { padding: 1.6rem 1.1rem 4rem; }
  .beton-grid { grid-template-columns: repeat(3, 1fr); }
  .tip-grid { grid-template-columns: 1fr 1fr; }
  .totals-grid { grid-template-columns: 1fr 1fr; }
  .total-box.main { grid-column: 1 / -1; }
}

/* ── Accesibilitate: reducere animatii ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
