:root{
      --primary:#0f4c81;
      --accent:#ff7a00;
      --bg:#f6f8fb;
      --card:#ffffff;
      --muted:#6b7280;
      --maxw:1200px;
      --nav-h:68px;
      --progress-h:4px;
      --radius:12px;
    }
    *{box-sizing:border-box}
    html,body{height:100%;margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;background:var(--bg);color:#0b1220;-webkit-font-smoothing:antialiased}
    a{color:inherit}
    .container{max-width:var(--maxw);margin:0 auto;padding:18px}
    .topbar{position:fixed;left:0;right:0;top:0;height:var(--nav-h);background:linear-gradient(90deg,var(--primary), #083047);color:#fff;display:flex;align-items:center;z-index:90;box-shadow:0 6px 22px rgba(6,10,20,0.12)}
    .topbar .inner{width:100%;max-width:var(--maxw);margin:0 auto;padding:10px;display:flex;align-items:center;justify-content:space-between;gap:12px}
    .brand{display:flex;gap:12px;align-items:center}
    .logo{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,#0ea5e9,#0284c7);display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff}
    .logo img{ max-width:50px; max-height:100px; object-fit:contain; display:block;}
    nav.primary{display:flex;gap:14px;align-items:center}
    nav.primary a{padding:8px 10px;border-radius:8px;font-weight:600;color:rgba(255,255,255,0.95)}
    .btn-quote{background:var(--accent);padding:8px 14px;border-radius:10px;border:0;color:#fff;font-weight:700;cursor:pointer}
    .menu-panel{position:fixed;left:0;right:0;top:var(--nav-h);background:linear-gradient(180deg, rgba(15,76,129,0.98), rgba(8,48,71,0.98));color:#fff;padding:22px 0;display:none;z-index:89}
    .menu-panel.open{display:block}
    .menu-grid{max-width:var(--maxw);margin:0 auto;padding:0 18px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
    .menu-item{display:block;padding:10px;border-radius:8px;font-weight:700;opacity:.95}
    .scroll-progress{position:fixed;left:0;right:0;top:calc(var(--nav-h));height:var(--progress-h);background:linear-gradient(90deg,var(--accent), #ffd29b);width:0%;z-index:88}
    .hero-ghost{height:calc(var(--nav-h) + var(--progress-h));} 
    main{padding-top:12px}
    .page{display:none;opacity:0;transform:translateY(12px);transition:opacity .28s ease, transform .28s ease}
    .page.active{display:block;opacity:1;transform:translateY(0)}
    .hero{min-height:62vh;background-image:url('https://images.unsplash.com/photo-1505842465776-3a45a2b6b4b9?w=1800&q=80&auto=format&fit=crop');background-size:cover;background-position:center;display:grid;grid-template-columns:1fr 420px;gap:24px;align-items:center;padding:64px 20px 80px;color:#fff;position:relative;border-radius:0 0 20px 20px}
    .hero::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg, rgba(2,6,23,0.55), rgba(2,6,23,0.25));border-radius:0 0 20px 20px}
    .hero .left, .hero .right{position:relative;z-index:2}
    .kicker{display:inline-block;background:rgba(255,255,255,0.08);padding:6px 10px;border-radius:999px;font-weight:700}
    h1{font-family:Montserrat, sans-serif;font-size:clamp(28px,4.5vw,44px);margin:14px 0 10px}
    p.lead{max-width:720px;color:rgba(255,255,255,0.92)}
    .carousel-wrap{margin-top:18px;background:rgba(255,255,255,0.06);padding:10px;border-radius:12px;overflow:hidden}
    .carousel{display:flex;gap:10px;transition:transform .8s cubic-bezier(.2,.9,.2,1);align-items:stretch;will-change:transform}
    .slide{min-width:300px;flex:0 0 300px;border-radius:10px;overflow:hidden;background:#fff;color:#111;position:relative;box-shadow:0 10px 30px rgba(2,6,23,0.08)}
    .slide img{width:100%;height:180px;object-fit:cover;display:block}
    .slide video{width:100%;height:180px;object-fit:cover;display:block;background:#000}
    .slide .meta{padding:12px}
    .slide .meta h4{margin:0 0 6px;font-weight:800}
    .slide .meta p{margin:0;color:var(--muted);font-size:14px}
    .carousel-controls{display:flex;gap:8px;margin-top:8px;justify-content:flex-end}
    .ctrl{background:#fff;padding:6px 10px;border-radius:8px;border:0;cursor:pointer;box-shadow:0 6px 18px rgba(2,6,23,0.06)}
    section{padding:44px 20px}
    .services{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
    .service{background:var(--card);padding:18px;border-radius:12px;box-shadow:0 6px 18px rgba(12,20,40,0.04)}
    .projects{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
    .project{position:relative;border-radius:12px;overflow:hidden;cursor:pointer;background:#fff}
    .project img{width:100%;height:220px;object-fit:cover}
    .contact-grid{display:grid;grid-template-columns:1fr 420px;gap:18px}
    .card{background:var(--card);padding:16px;border-radius:12px;box-shadow:0 8px 26px rgba(2,6,23,0.06);}
    input,select,textarea{width:100%;padding:10px;border-radius:8px;border:1px solid #eef2f7;font-size:15px}
    textarea{min-height:120px;resize:vertical}
    .stars{display:flex;gap:6px;align-items:center}
    .star{font-size:22px;cursor:pointer;color:#ddd}
    .star.selected{color:gold}
    .review{background:#fff;padding:12px;border-radius:10px;box-shadow:0 6px 18px rgba(2,6,23,0.04)}
    footer{padding:26px 20px;text-align:center;color:var(--muted)}
    .modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(2,6,23,0.6);z-index:92;opacity:0;pointer-events:none;transition:opacity .2s}
    .modal.open{opacity:1;pointer-events:auto}
    .panel{background:#fff;border-radius:12px;max-width:920px;width:95%;padding:12px;overflow:auto}
    .light-img{width:100%;height:auto;border-radius:8px}
    .back-btn{background:rgba(0,0,0,0.06);padding:8px 12px;border-radius:8px;border:0;cursor:pointer}
    .lang-switch{display:flex;gap:8px;align-items:center}
    .lang-btn{background:transparent;border:1px solid rgba(255,255,255,0.12);color:#fff;padding:6px 8px;border-radius:8px;cursor:pointer;font-weight:700}
    .lang-btn.active{background:#fff;color:var(--primary)}
    @media (max-width:1100px){
      .hero{grid-template-columns:1fr;gap:18px;padding:42px 18px}
      .carousel{gap:8px}
      .slide{min-width:240px;flex:0 0 240px}
      .menu-grid{grid-template-columns:repeat(2,1fr)}
      nav.primary{display:none}
    }
    @media (max-width:700px){
      .menu-panel .menu-grid{grid-template-columns:1fr}
      .projects .project img{height:160px}
      .contact-grid{grid-template-columns:1fr}
    }

img, video { max-width:100%; height:auto; display:block; }
html, body { -webkit-text-size-adjust:100%; }


@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr !important; padding: 42px 16px !important; min-height: auto !important; }
  .hero .right { margin-top: 18px; }
}


@media (max-width: 700px) {
  .slide { min-width: 220px; flex: 0 0 220px; }
  .slide img, .slide video { height: 140px; object-fit: cover; }
  .carousel { gap: 8px; }
  .services { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  p, .muted { font-size: 15px; }


  button, .btn-quote, .ctrl { min-height: 44px; padding: 10px 12px; touch-action: manipulation; }
  html, body { overflow-x: hidden; }
}

@media (max-width: 1100px) {
  .services { grid-template-columns: 1fr 1fr; }
}

.project img, .card img { width:100%; height:auto; object-fit:cover; }

img {
    width: 300px;
    height: 500px;
    object-fit: cover; 
}

picture{
   width: 350px;
   height: 250px;
}

.reviews-floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 340px;
  max-height: 60vh;
  background: #fff;
  color: #0b1220;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(2,6,23,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  font-family: Inter, system-ui, Arial, sans-serif;
}
.reviews-floating .floating-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-bottom:1px solid #f1f5f9;
  background: linear-gradient(90deg, #f8fafc, #ffffff);
  font-weight:800;
}
.reviews-floating .floating-body {
  padding:10px;
  overflow:auto;
  max-height: calc(60vh - 56px);
}
.reviews-floating .floating-list .review {
  margin-bottom:8px;
  background:#fff;
  padding:8px;
  border-radius:8px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.04);
}
.reviews-floating .toggle-btn {
  background:transparent;
  border:0;
  cursor:pointer;
  font-size:16px;
  padding:6px 8px;
}
.reviews-floating.collapsed {
  width: 44px;
  height: 44px;
  overflow: visible;
  border-radius: 999px;
}
.reviews-floating.collapsed .floating-head,
.reviews-floating.collapsed .floating-body { display:none; }
@media (max-width:700px){
  .reviews-floating { display:none; } 
}

#autobuild-cards { margin-top:18px; }
.autobuild-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:14px;
}
.autobuild-card{
  background:#fff;border-radius:10px;box-shadow:0 8px 24px rgba(2,6,23,0.06);
  overflow:hidden;border:1px solid #eee;padding:10px;display:flex;flex-direction:column;
}
.autobuild-card img{ width:100%; height:140px; object-fit:cover; border-radius:8px; }
.autobuild-card h4{ margin:10px 0 6px; font-size:16px; line-height:1.1; }
.autobuild-card p{ margin:0; color:#6b7280; font-size:13px; flex:1; min-height:36px }
.autobuild-actions{ display:flex; gap:8px; margin-top:10px; }
.autobuild-actions button{ flex:1; padding:8px 10px; border-radius:8px; border:0; cursor:pointer; background:#0f4c81; color:#fff; font-weight:700; }


.autobuild-modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:99999; }
.autobuild-modal[aria-hidden="false"]{ display:flex; }
.autobuild-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,0.6); }
.autobuild-panel{ position:relative; z-index:2; width:min(980px,96%); max-height:90vh; overflow:hidden; border-radius:12px; background:#fff; padding:16px; box-shadow:0 20px 60px rgba(2,6,23,0.3); }
.autobuild-close{ position:absolute; right:12px; top:10px; background:transparent; border:0; font-size:22px; cursor:pointer; padding:6px; }
.autobuild-viewer{ display:flex; align-items:center; gap:12px; margin-top:6px; }
.autobuild-prev, .autobuild-next{ background:transparent; border:0; font-size:32px; cursor:pointer; width:44px; height:44px; }
.autobuild-image-wrap{ flex:1; display:flex; align-items:center; justify-content:center; min-height:300px; max-height:68vh; overflow:hidden; }
.autobuild-image-wrap img{ max-width:100%; max-height:68vh; object-fit:contain; display:block; }
.autobuild-thumbs{ display:flex; gap:8px; margin-top:12px; overflow:auto; padding-bottom:6px; }
.autobuild-thumbs img{ width:80px; height:56px; object-fit:cover; border-radius:6px; cursor:pointer; opacity:0.85; border:2px solid transparent; }
.autobuild-thumbs img.active{ border-color:#0f4c81; opacity:1; }
.autobuild-controls{ display:flex; gap:8px; margin-top:12px; align-items:center; justify-content:space-between; }
.autobuild-select{ background:#ff7a00; color:#fff; border:0; padding:8px 12px; border-radius:8px; cursor:pointer; font-weight:700; }


@media (max-width:700px){
  .autobuild-image-wrap{ min-height:220px; }
  .autobuild-prev, .autobuild-next{ font-size:26px; width:36px; height:36px; }
}


img, video { max-width:100%; height:auto; display:block; object-fit:cover; }


.slide { position:relative; flex:0 0 320px; height:320px; border-radius:10px; overflow:hidden; }
.slide img, .slide video { width:100%; height:100%; object-fit:cover; display:block; }

.slide-view-wrap{ position:absolute; left:12px; bottom:12px; z-index:3; }
.slide-view-btn{ background:rgba(0,0,0,0.6); color:#fff; border:0; padding:8px 12px; border-radius:8px; cursor:pointer; font-weight:700; }


.gallery-wrap{ display:flex; flex-direction:column; gap:12px; }
.gallery-main{ display:flex; align-items:center; justify-content:center; min-height:360px; max-height:78vh; overflow:hidden; background:#fff; border-radius:8px; }
.gallery-main-img{ max-width:100%; max-height:78vh; object-fit:contain; border-radius:8px; }
.gallery-controls{ display:flex; justify-content:space-between; gap:8px; position:relative; }
.gallery-prev, .gallery-next{ background:rgba(0,0,0,0.06); border:0; padding:8px 12px; border-radius:8px; cursor:pointer; font-size:18px; }
.gallery-thumbs{ display:flex; gap:8px; overflow:auto; padding-bottom:6px; margin-top:6px; }
.gallery-thumb{ width:100px; height:70px; object-fit:cover; border-radius:6px; cursor:pointer; opacity:0.85; border:2px solid transparent; }
.gallery-thumb.active{ border-color:var(--primary); opacity:1; }


@media (max-width:900px){
  .slide { flex:0 0 240px; height:240px; }
  .gallery-main{ min-height:220px; }
  .gallery-thumb{ width:72px; height:52px; }
}

.lightbox-caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:16px;
  background:linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
  color:#fff;
}

.lightbox-caption h3{
  margin:0;
  font-size:20px;
  font-weight:700;
}

.lightbox-caption p{
  margin:4px 0 0;
  font-size:14px;
  opacity:.95;
}

.gallery-wrap { display:flex; flex-direction:column; gap:12px; align-items:center; }
.gallery-main { position: relative; width: 100%; max-width: 100%; }
.gallery-main img.gallery-main-img {
  display:block;
  width:100%;
  height:auto;
  max-height:80vh; 
  object-fit:contain;
}


.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.18) 40%, rgba(0,0,0,0));
  color: #ffffff;
  pointer-events: none;
  box-sizing: border-box;
}
.gallery-caption h3{ margin:0; font-size:18px; font-weight:700; line-height:1.1; }
.gallery-caption p{ margin:6px 0 0; font-size:13px; color: #f3f3f3; opacity:0.95; }


.gallery-controls { z-index: 5; display:flex; gap:8px; margin-bottom:8px; }
.gallery-thumbs { display:flex; gap:6px; overflow-x:auto; max-width:100%; padding-top:8px; }
.gallery-thumb { width:72px; height:56px; object-fit:cover; cursor:pointer; border-radius:6px; border:2px solid transparent; }
.gallery-thumb.active { border-color: rgba(255,255,255,0.9); }


.chat-fab{
  position:fixed;
  right:22px;
  bottom:22px;
  width:56px;
  height:56px;
  border-radius:50%;
  background:#0f4c81;
  color:#fff;
  border:0;
  cursor:pointer;
  font-size:22px;
  box-shadow:0 14px 40px rgba(2,6,23,.25);
  z-index:10000;
}

.chat-bot{
  position:fixed;
  right:22px;
  bottom:90px;
  width:340px;
  max-height:70vh;
  background:#fff;
  border-radius:14px;
  box-shadow:0 18px 60px rgba(2,6,23,.28);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  z-index:10001;
}

.chat-bot.closed{
  display:none;
}

.chat-header{
  background:linear-gradient(90deg,#0f4c81,#083047);
  color:#fff;
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight:800;
}

.chat-header button{
  background:transparent;
  border:0;
  color:#fff;
  font-size:18px;
  cursor:pointer;
}

.chat-body{
  padding:12px;
  flex:1;
  overflow:auto;
  background:#f8fafc;
}

.chat-msg{
  margin-bottom:10px;
  display:flex;
}

.chat-msg.bot{
  justify-content:flex-start;
}

.chat-msg.user{
  justify-content:flex-end;
}

.chat-bubble{
  max-width:80%;
  padding:10px 12px;
  border-radius:12px;
  font-size:14px;
  line-height:1.35;
}

.chat-msg.bot .chat-bubble{
  background:#ffffff;
  color:#0b1220;
  border:1px solid #eef2f7;
}

.chat-msg.user .chat-bubble{
  background:#0f4c81;
  color:#fff;
}

.chat-footer{
  display:flex;
  gap:8px;
  padding:10px;
  border-top:1px solid #eef2f7;
}

.chat-footer input{
  flex:1;
  padding:10px;
  border-radius:8px;
  border:1px solid #e5e7eb;
  font-size:14px;
}

.chat-footer button{
  background:#ff7a00;
  border:0;
  color:#fff;
  padding:0 14px;
  border-radius:8px;
  cursor:pointer;
  font-weight:700;
}

@media (max-width:700px){
  .chat-bot{
    right:12px;
    left:12px;
    width:auto;
    bottom:80px;
    max-height:65vh;
  }
  .chat-fab{
    right:14px;
    bottom:14px;
  }
}


.chat-suggestion { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 12px; }
.chat-suggestion button {
  background:#0f4c81; color:#fff; border:0; padding:8px 10px; border-radius:8px; cursor:pointer; font-weight:700;
}
.chat-suggestion button:hover{ filter:brightness(.95) }
