/* ============================================================
   AMAS CONCRET — stil global
   ============================================================ */
:root {
  --bg: #101215;
  --bg-2: #16191d;
  --bg-3: #1d2126;
  --line: #2a2f36;
  --text: #e8eaed;
  --muted: #9aa3ad;
  --accent: #f08c2e;
  --accent-2: #ffb066;
  --radius: 14px;
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(16, 18, 21, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; display: block; border-radius: 8px; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #c96a15);
  font-family: var(--font-head); font-weight: 800; font-size: 15px; color: #14100a;
}
.brand-name { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.06em; font-size: 15px; }
.brand-name b { color: var(--accent); }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--muted); transition: 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--bg-3); }
.site-nav .nav-highlight { color: var(--accent-2); }
.site-nav .nav-cta {
  background: var(--accent); color: #14100a; font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--accent-2); color: #14100a; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 20px; border-radius: 8px; padding: 4px 12px; cursor: pointer; }

/* ---------- butoane ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  cursor: pointer; border: none; transition: 0.2s; text-align: center;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #d9731a); color: #14100a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(240, 140, 46, 0.35); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/p1.jpg') center/cover no-repeat;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
}
.hero-video.is-active { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(16,18,21,0.96) 24%, rgba(16,18,21,0.72) 54%, rgba(16,18,21,0.28) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 90px 28px; width: 100%; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; font-weight: 600;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow.light { color: var(--accent-2); }
.hero h1 { font-size: clamp(34px, 5.5vw, 62px); font-weight: 800; }
.hero h1 span { color: var(--accent); }
.lead { max-width: 560px; margin: 20px 0 30px; color: #c6ccd3; font-size: 17px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 30px; color: var(--accent-2); }
.hero-stats span { font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .hero-media { display: none; }
}

/* ---------- secțiuni ---------- */
.section { max-width: 1160px; margin: 0 auto; padding: 90px 28px; }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
.section-sub { color: var(--muted); margin-top: 10px; max-width: 600px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-icon { font-size: 30px; margin-bottom: 14px; }
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); }

/* ---------- promo configurator ---------- */
.promo {
  background: linear-gradient(135deg, #1a1408 0%, #221a0e 50%, #16191d 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.promo-inner {
  max-width: 1160px; margin: 0 auto; padding: 80px 28px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center;
}
.promo-text h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 22px; }
.promo-list { list-style: none; margin-bottom: 28px; }
.promo-list li { padding: 5px 0; color: #cfc6b8; font-size: 15px; }
.promo-visual { position: relative; display: grid; place-items: center; min-height: 260px; }

/* casă stilizată CSS */
.promo-house { width: 240px; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.5)); animation: float 5s ease-in-out infinite; }
.ph-roof {
  width: 0; height: 0; margin: 0 auto;
  border-left: 130px solid transparent; border-right: 130px solid transparent;
  border-bottom: 80px solid #a14a35;
}
.ph-body {
  width: 220px; height: 120px; margin: 0 auto;
  background: linear-gradient(180deg, #e2d3b3, #cdbb96);
  border-radius: 0 0 8px 8px;
  display: flex; align-items: center; justify-content: space-evenly;
}
.ph-win { width: 44px; height: 48px; background: linear-gradient(135deg, #a8cadd, #6f96ad); border: 4px solid #3a3f45; border-radius: 3px; }
.ph-door { width: 40px; height: 74px; align-self: flex-end; background: #6e4a2f; border: 4px solid #3a3f45; border-bottom: none; border-radius: 4px 4px 0 0; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.promo-chips { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute; padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; font-family: var(--font-head);
  border: 1px solid var(--line); background: var(--bg-3); color: var(--text);
  animation: float 6s ease-in-out infinite;
}
.chip-1 { top: 6%; left: 4%; background: #e2d3b3; color: #4a3d24; animation-delay: 0.4s; }
.chip-2 { top: 18%; right: 2%; background: #a97c50; color: #2c1d0e; animation-delay: 1.1s; }
.chip-3 { bottom: 16%; left: 0%; background: #b08d5e; color: #2c1d0e; animation-delay: 1.8s; }
.chip-4 { bottom: 4%; right: 8%; background: #e9e7e2; color: #3c3c3c; animation-delay: 2.5s; }

/* demo video care preia casa animată */
.promo-visual { min-height: 400px; }
.promo-house, .promo-chips {
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
.promo-video {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; visibility: hidden; transform: scale(0.97);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
  pointer-events: none;
}
.promo-visual.video-on .promo-video { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.promo-visual.video-on .promo-house,
.promo-visual.video-on .promo-chips { opacity: 0; visibility: hidden; transform: scale(0.94); animation-play-state: paused; }
.promo-video-frame {
  position: relative; width: 100%; max-width: 480px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  background: #000;
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);
}
.promo-video video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.promo-video-toggle {
  position: absolute; right: 10px; bottom: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(10,12,14,0.72); color: #fff;
  font-size: 13px; cursor: pointer; backdrop-filter: blur(6px);
}
.promo-video-toggle:hover { background: var(--accent); color: #14100a; border-color: var(--accent); }
.promo-video-link { font-size: 12px; color: var(--accent-2); text-decoration: underline; }
.promo-video-link:hover { color: #fff; }

/* ---------- proiecte ---------- */
.projects-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
}
.project-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.project-filters button {
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--muted);
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; transition: 0.2s;
}
.project-filters button:hover { color: var(--text); border-color: var(--accent); }
.project-filters button.active { background: var(--accent); border-color: var(--accent); color: #14100a; }
.project-count { font-size: 12px; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.project {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
}
.project img { width: 100%; height: 230px; object-fit: cover; transition: 0.4s; }
.project img.project-img-fallback { object-fit: contain; padding: 40px; background: #fff; }
.project:hover img { transform: scale(1.05); }
.project figcaption {
  padding: 14px 16px; display: flex; flex-direction: column; gap: 3px;
  background: var(--bg-2); position: relative;
}
.project figcaption b { font-family: var(--font-head); font-size: 14px; }
.project figcaption span { font-size: 12px; color: var(--muted); }
.project-cat { color: var(--accent) !important; font-size: 10.5px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.projects-empty { grid-column: 1/-1; color: var(--muted); font-size: 13px; padding: 30px 0; }
.projects-actions { margin-top: 22px; }
.project { cursor: zoom-in; }
.project:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.project-shots {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(16,18,21,0.82); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
}

/* ---------- lightbox galerie ---------- */
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(6,7,9,0.86); backdrop-filter: blur(6px); }
.lb-panel {
  position: relative; z-index: 1; width: min(1040px, 100%); max-height: calc(100vh - 48px);
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.lb-close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(16,18,21,0.8); color: var(--muted); font-size: 15px; cursor: pointer;
}
.lb-close:hover { color: #fff; border-color: var(--accent); }
.lb-head { display: flex; align-items: baseline; gap: 10px; padding-right: 44px; }
.lb-head b { font-family: var(--font-head); font-size: 17px; color: var(--text); }
.lb-cat { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lb-stage { position: relative; display: flex; align-items: center; gap: 8px; min-height: 0; }
.lb-figure { margin: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.lb-img { max-width: 100%; max-height: calc(100vh - 300px); object-fit: contain; border-radius: 10px; background: #0d1013; display: block; }
.lb-label { font-size: 12px; color: var(--muted); }
.lb-nav {
  flex: none; width: 38px; height: 62px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(16,18,21,0.75); color: var(--muted); font-size: 26px; line-height: 1;
}
.lb-nav:hover { color: #fff; border-color: var(--accent); }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; }
.lb-thumb { flex: none; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; opacity: 0.6; }
.lb-thumb img { width: 74px; height: 52px; object-fit: cover; border-radius: 6px; display: block; }
.lb-thumb:hover { opacity: 1; }
.lb-thumb.active { border-color: var(--accent); opacity: 1; }
.lb-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .lb-img { max-height: calc(100vh - 260px); }
  .lb-nav { width: 30px; height: 46px; font-size: 20px; }
  .lb-thumb img { width: 58px; height: 42px; }
}

/* ---------- galerie în admin ---------- */
.gallery-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.gallery-row { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 8px; background: var(--bg-3); }
.gallery-row img { width: 78px; height: 58px; object-fit: cover; border-radius: 6px; flex: none; }
.g-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-label {
  flex: 1; min-width: 120px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 8px; color: var(--text); font-size: 12px; font-family: var(--font-body);
}
.g-label:focus { outline: none; border-color: var(--accent); }
.g-cover { background: rgba(240,140,46,0.16); color: var(--accent); border-radius: 999px; padding: 3px 9px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.g-actions { display: flex; gap: 4px; }
.g-actions button {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  color: var(--muted); cursor: pointer; padding: 5px 8px; font-size: 11px;
}
.g-actions button:hover { color: var(--text); border-color: var(--accent); }
.g-actions .del:hover { color: #e06c75; border-color: #e06c75; }
.admin-photos { font-size: 11px; color: var(--muted); margin-left: 8px; }

/* ---------- administrare proiecte ---------- */
.admin-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.admin-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.admin-card h3 { font-family: var(--font-head); font-size: 16px; margin-bottom: 16px; }
.admin-form label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.admin-form input, .admin-form select, .admin-form textarea {
  display: block; width: 100%; margin-top: 4px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 7px;
  padding: 8px 10px; color: var(--text); font-size: 13px; font-family: var(--font-body);
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: none; border-color: var(--accent); }
.admin-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.admin-actions .btn { padding: 8px 14px; font-size: 12.5px; }
.admin-note { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 12px; }
.admin-img-preview { margin-top: 8px; max-width: 100%; max-height: 150px; border-radius: 8px; display: none; border: 1px solid var(--line); }
.admin-list { display: flex; flex-direction: column; gap: 8px; max-height: 620px; overflow: auto; }
.admin-row { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 8px; background: var(--bg-3); }
.admin-row img { width: 70px; height: 52px; object-fit: cover; border-radius: 6px; flex: none; }
.admin-row .info { flex: 1; min-width: 0; }
.admin-row .info b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row .info span { font-size: 11px; color: var(--muted); }
.admin-row .row-actions { display: flex; gap: 4px; }
.admin-row .row-actions button {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  color: var(--muted); cursor: pointer; padding: 5px 8px; font-size: 12px;
}
.admin-row .row-actions button:hover { color: var(--text); border-color: var(--accent); }
.admin-row .row-actions .del:hover { color: #e06c75; border-color: #e06c75; }
.admin-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(240,140,46,0.14); color: var(--accent); font-size: 10.5px; font-weight: 700; margin-top: 3px; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; }
.contact-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.contact-card h3 { margin-bottom: 18px; font-size: 18px; }
.contact-line { margin: 8px 0; color: var(--muted); }
.contact-line a { color: var(--accent-2); font-weight: 600; }
.contact-actions { display: flex; gap: 12px; margin: 22px 0 12px; flex-wrap: wrap; }
.contact-card label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.contact-card input, .contact-card select, .contact-card textarea {
  display: block; width: 100%; margin-top: 6px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; color: var(--text); font-family: var(--font-body); font-size: 14px;
}
.contact-card input:focus, .contact-card select:focus, .contact-card textarea:focus {
  outline: none; border-color: var(--accent);
}
.hint { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 40px 28px;
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.footer-inner p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.footer-inner p a { color: var(--accent-2); }
.footer-inner nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer-inner nav a { color: var(--muted); font-size: 14px; }
.footer-inner nav a:hover { color: var(--accent-2); }
.copyright { text-align: center; padding: 16px; font-size: 12px; color: #5c646d; border-top: 1px solid var(--line); }

/* ---------- animații reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   CONFIGURATOR 3D
   ============================================================ */
.config-page { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.config-layout { flex: 1; display: grid; grid-template-columns: 360px 1fr; min-height: 0; }

.config-panel {
  overflow-y: auto; background: var(--bg-2); border-right: 1px solid var(--line);
  padding: 20px 18px 40px;
}
.config-panel::-webkit-scrollbar { width: 8px; }
.config-panel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.panel-head h1 { font-size: 21px; }
.panel-head p { font-size: 13px; color: var(--muted); margin: 6px 0 4px; }
.panel-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.panel-sec h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 12px;
}

.seg { display: flex; gap: 6px; }
.seg button {
  flex: 1; padding: 9px 8px; border-radius: 8px; cursor: pointer;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--muted);
  font-family: var(--font-head); font-weight: 600; font-size: 13px; transition: 0.2s;
}
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--accent); border-color: var(--accent); color: #14100a; }
.seg-3 button { font-size: 12px; padding: 8px 4px; }
.seg-4 button { font-size: 11.5px; padding: 8px 3px; }
.cams { margin: 12px 0; }
.levels { margin-top: 4px; }
.range-label { display: block; font-size: 13px; color: var(--muted); margin: 4px 0 6px; }

.roof-sides {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px;
  margin: 12px 0 4px; padding: 10px 12px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 9px;
}
.roof-sides-label {
  grid-column: 1 / -1; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 4px;
}
.roof-sides .check { padding: 3px 0; font-size: 12.5px; }

.roof-levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 10px; margin: 8px 0 4px; }
.roof-levels .check { padding: 3px 0; font-size: 12.5px; }
.roof-levels .check.locked { opacity: 0.75; }

.eaves-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 4px; }
.eaves-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.eaves-grid input {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: 7px;
  padding: 6px 7px; color: var(--text); font-size: 12.5px; font-family: var(--font-body);
}
.eaves-grid input:focus { outline: none; border-color: var(--accent); }

.range-row { margin-bottom: 12px; }
.range-row label {
  display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 4px;
}
.range-row output { color: var(--accent-2); font-weight: 600; font-family: var(--font-head); }
.range-row input[type="range"] {
  width: 100%; accent-color: var(--accent); height: 22px; cursor: pointer;
}

.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; padding: 5px 0; cursor: pointer; color: #c6ccd3; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }

.mat-group { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 10px 0 6px; }
.mat-list .mat-group:first-child { margin-top: 0; }
.swatch-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.swatch {
  position: relative; height: 58px; border-radius: 9px; cursor: pointer;
  background-size: cover; background-position: center;
  border: 2px solid var(--line); transition: 0.15s; overflow: hidden; padding: 0;
}
.swatch span {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 9.5px; font-weight: 600; line-height: 1.2; padding: 3px 4px;
  background: rgba(10, 12, 14, 0.72); color: #e8eaed;
  font-family: var(--font-body);
}
.swatch:hover { transform: scale(1.05); }
.swatch.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(240,140,46,0.4); }

.panel-summary { border-bottom: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.stats div {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 8px; text-align: center;
}
.stats span { display: block; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--accent-2); }
.stats small { font-size: 10px; color: var(--muted); }
.panel-summary .btn { width: 100%; }
#btn-shot { width: 100%; }
.export-grid { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 6px 0 8px; }
.export-grid .btn { width: 100%; justify-content: center; }

/* material separat pe fiecare fațadă */
.wall-side-block {
  margin-top: 12px; padding: 12px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 9px;
}
.wall-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wall-side-head span { font-size: 12px; color: var(--muted); }
.wall-side-head button {
  border: 1px solid var(--line); background: transparent; color: var(--accent-2);
  border-radius: 6px; padding: 4px 8px; font-size: 11px; cursor: pointer;
}
.wall-side-head button:hover { border-color: var(--accent); }
.wall-side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.wall-side-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.wall-side-grid select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px;
  padding: 6px 7px; color: var(--text); font-size: 12px; font-family: var(--font-body);
}
.wall-side-grid select:focus { outline: none; border-color: var(--accent); }

/* promovare IFC Viewer în configurator */
.app-promo {
  margin: 18px 0 6px; padding: 16px;
  border: 1px solid rgba(240, 140, 46, 0.38); border-radius: 12px;
  background: linear-gradient(155deg, rgba(240, 140, 46, 0.14), rgba(240, 140, 46, 0.035) 55%, var(--bg-3));
}
.app-promo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.app-promo-head img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.app-promo-head h2 { font-size: 15px; color: var(--text); margin: 0; }
.app-promo-head p { font-size: 12px; color: var(--accent-2); margin: 3px 0 0; }
.app-promo > p { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin: 0 0 12px; }
.app-promo .btn { width: 100%; justify-content: center; }
.app-promo-links { font-size: 12px; line-height: 1.6; margin: 10px 0 0 !important; }
.app-promo-links a { color: var(--accent-2); }

.viewer-wrap { position: relative; min-width: 0; min-height: 0; display: grid; }
.viewer-wrap[data-view="3d"] { grid-template-columns: 1fr; }
.viewer-wrap[data-view="3d"] #editor-view { display: none; }
.viewer-wrap[data-view="2d"] { grid-template-columns: 1fr; }
.viewer-wrap[data-view="2d"] #viewer { display: none; }
.viewer-wrap[data-view="2d"] .viewer-hint { display: none; }
.viewer-wrap[data-view="split"] { grid-template-columns: 1fr 1fr; }
.viewer-wrap[data-view="split"] #editor-view { border-right: 1px solid var(--line); }
#viewer { position: relative; min-width: 0; min-height: 0; }
#viewer canvas { display: block; }

.view-mode-bar {
  position: absolute; top: 12px; right: 14px; z-index: 5;
  display: flex; gap: 4px; padding: 4px;
  background: rgba(16,18,21,0.85); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.view-mode-bar button {
  padding: 6px 12px; border-radius: 7px; border: none; cursor: pointer;
  background: transparent; color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: 12px;
}
.view-mode-bar button.active { background: var(--accent); color: #14100a; }

#editor-view { position: relative; min-width: 0; min-height: 0; }
#planCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.editor-toolbar {
  position: absolute; top: 12px; left: 12px; z-index: 5;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap; max-width: calc(100% - 24px);
  background: rgba(16,18,21,0.88); border: 1px solid var(--line); border-radius: 10px; padding: 5px;
}
.editor-toolbar button {
  padding: 6px 10px; border-radius: 7px; border: 1px solid transparent; cursor: pointer;
  background: var(--bg-3); color: var(--muted); font-size: 12px; font-weight: 600; font-family: var(--font-body);
}
.editor-toolbar button:hover { color: var(--text); }
.editor-toolbar button.active { background: var(--accent); color: #14100a; }
.ed-ortho { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); padding: 0 6px; cursor: pointer; }
.ed-ortho input { accent-color: var(--accent); }
.ed-sep { width: 1px; height: 20px; background: var(--line); margin: 0 2px; }
.ed-levels { display: flex; gap: 2px; }
.ed-levels button { padding: 6px 8px; font-size: 11px; }

#editor-flash {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #3a2a12; border: 1px solid var(--accent); color: var(--accent-2);
  padding: 8px 16px; border-radius: 9px; font-size: 12.5px; opacity: 0; pointer-events: none;
  transition: 0.25s; z-index: 6; white-space: nowrap;
}
#editor-flash.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* proprietăți editor */
.ed-props-title { font-family: var(--font-head); font-weight: 700; font-size: 14px; margin-bottom: 10px; color: var(--accent-2); }
.ed-info { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.ed-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.ed-label input, .ed-label select, .ed-fields input, .ed-fields select {
  display: block; width: 100%; margin-top: 4px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 9px; color: var(--text); font-size: 13px; font-family: var(--font-body);
}
.ed-label input:focus, .ed-label select:focus, .ed-fields input:focus, .ed-fields select:focus { outline: none; border-color: var(--accent); }
.ed-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-fields label { font-size: 11px; color: var(--muted); font-weight: 600; }
.ed-add-row { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.ed-btn { padding: 7px 12px; font-size: 12px; }
.ed-opening {
  border: 1px solid var(--line); border-radius: 9px; padding: 10px; margin-bottom: 10px; background: var(--bg-3);
}
.ed-opening.sel { border-color: var(--accent); }
.ed-opening-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ed-opening-head b { font-size: 13px; cursor: pointer; }
.ed-del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 2px 6px; border-radius: 5px; }
.ed-del:hover { color: #e06c75; background: rgba(224,108,117,0.12); }
.ed-list-group {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--accent); margin: 12px 0 5px;
}
.ed-list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--bg-3); font-size: 12px; color: #c6ccd3; margin-bottom: 4px; cursor: pointer;
}
.ed-list-row:hover { border-color: var(--accent); color: var(--text); }
.ed-list-row.sub { margin-left: 14px; font-size: 11.5px; background: transparent; }
.ed-list-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(16,18,21,0.8); border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px; font-size: 12px; color: var(--muted);
  pointer-events: none; white-space: nowrap;
}

.roof-pick {
  position: absolute; top: 62px; left: 14px; z-index: 6; width: 232px;
  background: rgba(16,18,21,0.92); border: 1px solid var(--accent); border-radius: 12px;
  padding: 12px 14px; backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.roof-pick[hidden] { display: none; }
.roof-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.roof-pick-head span { font-family: var(--font-head); font-size: 13px; color: var(--text); }
.roof-pick-head b { color: var(--accent); }
.roof-pick-head button {
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px;
  padding: 2px 4px; border-radius: 5px;
}
.roof-pick-head button:hover { color: #fff; background: rgba(255,255,255,0.08); }
.roof-pick-row { display: flex; align-items: center; gap: 10px; }
.roof-pick-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.roof-pick-row output { font-family: var(--font-head); font-weight: 700; color: var(--accent-2); min-width: 38px; text-align: right; }
.roof-pick-del {
  width: 100%; margin-top: 10px; padding: 8px 10px; cursor: pointer;
  background: rgba(224,108,117,0.10); border: 1px solid rgba(224,108,117,0.55);
  border-radius: 8px; color: #e88a92; font-family: var(--font-body); font-weight: 600; font-size: 12px;
}
.roof-pick-del:hover { background: rgba(224,108,117,0.2); color: #ffb3b9; }
.roof-pick-del.restore { background: rgba(240,140,46,0.12); border-color: var(--accent); color: var(--accent-2); }
.roof-pick-hint { margin: 8px 0 0; font-size: 11px; color: var(--muted); line-height: 1.4; }

.dormer-add { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 8px 0 6px; }
.dormer-add select, .dormer-add button {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 9px; color: var(--text); font-size: 12.5px; font-family: var(--font-body);
}
.dormer-add input[type="range"] { width: 100%; accent-color: var(--accent); }
.dormer-add button { cursor: pointer; font-weight: 600; }
.dormer-add button:hover { border-color: var(--accent); color: var(--accent-2); }
.dormer-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.dormer-row {
  padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--bg-3); font-size: 12px; color: #c6ccd3;
}
.dormer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.dormer-fields { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.dormer-fields label { font-size: 10px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.dormer-fields input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px;
  padding: 4px 5px; color: var(--text); font-size: 11.5px; font-family: var(--font-body);
}
.dormer-fields input:focus { outline: none; border-color: var(--accent); }
.dormer-win { margin-top: 6px; font-size: 11px; color: var(--muted); }

.velux-add, .spout-add { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 8px 0 6px; }
.velux-add select, .spout-add select, .velux-add button, .spout-add button {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 9px; color: var(--text); font-size: 12.5px; font-family: var(--font-body);
}
.velux-add button, .spout-add button { cursor: pointer; font-weight: 600; }
.velux-add button:hover, .spout-add button:hover { border-color: var(--accent); color: var(--accent-2); }
.velux-add input[type="range"], .spout-add input[type="range"] { width: 100%; accent-color: var(--accent); }
.velux-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.velux-grid label { font-size: 10px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.velux-grid input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px;
  padding: 5px; color: var(--text); font-size: 11.5px; font-family: var(--font-body);
}
.velux-grid input:focus { outline: none; border-color: var(--accent); }
.velux-list, .spout-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.velux-row, .spout-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--bg-3); font-size: 12px; color: #c6ccd3;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .promo-inner { grid-template-columns: 1fr; }
  .promo-visual { display: grid; min-height: 350px; margin-top: 34px; }
  .promo-video-frame { max-width: min(100%, 460px); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 12px;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .config-page { height: auto; overflow: auto; }
  .config-layout { grid-template-columns: 1fr; }
  .viewer-wrap { height: 68vh; order: -1; }
  .viewer-wrap[data-view="split"] { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .viewer-wrap[data-view="split"] #editor-view { border-right: none; border-bottom: 1px solid var(--line); }
  .config-panel { border-right: none; overflow: visible; }
}

/* grosime pereți — presetări */

.seg-5 button { font-size: 11.5px; padding: 8px 3px; }

/* fereastră cerere ofertă WhatsApp */
.quote-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: rgba(8, 10, 12, 0.6); padding: 20px; }
.quote-box { max-width: 440px; width: 100%; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.quote-box h3 { font-size: 18px; margin-bottom: 10px; }
.quote-box p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.quote-box p b { color: var(--text); }
.quote-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quote-actions .btn { flex: 1 1 auto; justify-content: center; }

/* ---------- configurator: corecții mobile ---------- */
@media (max-width: 900px) {
  .view-mode-bar {
    top: 8px; left: 8px; right: 8px;
    justify-content: flex-end;
  }
  .view-mode-bar button { padding: 5px 9px; font-size: 11px; }
  .editor-toolbar {
    top: 56px; left: 8px; right: 8px;
    max-width: none; max-height: 34%;
    overflow-y: auto;
  }
  .viewer-hint {
    left: 10px; right: 10px; bottom: 10px;
    transform: none; white-space: normal;
    text-align: center; font-size: 10px; line-height: 1.35;
    padding: 6px 10px;
  }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
}
.range-row select {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 7px; padding: 7px 9px; color: var(--text);
  font-family: var(--font-body); font-size: 13px;
}

/* ---------- pagini legale ---------- */
.legal { max-width: 900px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.legal .meta { color: var(--muted); font-size: 12px; margin-bottom: 28px; }
.legal h2 { font-family: var(--font-head); font-size: 20px; margin: 30px 0 10px; }
.legal h3 { font-family: var(--font-head); font-size: 15px; margin: 20px 0 8px; color: var(--accent-2); }
.legal p, .legal li { color: var(--muted); font-size: 14px; line-height: 1.75; }
.legal p { margin-bottom: 10px; }
.legal ul { margin: 8px 0 14px 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-2); text-decoration: underline; }
.legal strong { color: var(--text); }
.legal code { background: var(--bg-3); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.legal .note { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 18px 0; }
.legal .note p { margin: 0; font-size: 13px; }
.legal-link { padding: 18px 0 0; font-size: 11px; color: var(--muted); }
.legal-link a { color: var(--accent-2); }

/* touch: canvas-urile preiau gesturile, nu scroll-ul paginii */
#viewer canvas, #planCanvas { touch-action: none; }

/* ---------- plan mărit / fullscreen ---------- */
.viewer-wrap.expanded {
  position: fixed; inset: 0; z-index: 80;
  width: 100vw; height: 100dvh; background: var(--bg);
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
}
.viewer-wrap.expanded[data-view="split"] { grid-template-rows: 1fr 1fr !important; }
.viewer-wrap.expanded .view-mode-bar { top: 10px; right: 10px; left: auto; }
body.plan-expanded { overflow: hidden; }
.editor-toolbar button:disabled { opacity: .35; cursor: default; }
.editor-toolbar #ed-undo:not(:disabled),
.editor-toolbar #ed-redo:not(:disabled) {
  color: var(--accent-2);
  border-color: rgba(240, 140, 46, 0.35);
}
/* contact pe email */
.contact-actions { flex-wrap: wrap; }
.form-alt { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.form-alt .btn { width: 100%; }
.contact-line a { color: var(--accent-2); }
