:root{
  --bg:#0b1220;
  --text:#e9eefc;
  --muted:#a8b3d6;
  --line:rgba(255,255,255,.10);
  --accent:#6ee7ff;
  --accent2:#7c3aed;
  --ok:#3ddc97;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}

body {
  margin:0;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  color: var(--text);
  line-height:1.55;

  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(110,231,255,0.15), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(124,58,237,0.18), transparent 60%),
    linear-gradient(160deg, #050912 0%, #0b1220 45%, #060a14 100%);
  background-attachment: fixed;
}

a{color:inherit;text-decoration:none}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:2000;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.65);
  border-bottom: 1px solid var(--line);
}

/* FIX: no LV-only “gap/offset” due to wrapping */
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:12px;
  flex-wrap:nowrap;
}

.brand{display:flex;align-items:center;gap:12px;min-width:220px}
.brand-text{min-width:0}
.logo-img{
  width:auto; /*old width 134px*/
  height:32px;
  /* border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.25); */
  /*object-fit: contain; */    /*old cover*/ 
  /* background: rgba(255,255,255,.04); */
}
.brand h1 {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
}
.brand small {
  margin-top: 5px;
  line-height: 1.2;
  font-size: 12px;
}

nav{
  display:flex;align-items:center;gap:18px;
  flex-wrap:nowrap;
  white-space:nowrap;
}
nav a{color:var(--muted);font-size:14px;white-space:nowrap}
nav a:hover{color:var(--text)}

.right-tools{
  display:flex;align-items:center;gap:10px;
  flex-wrap:nowrap;
  justify-content:flex-end;
  white-space:nowrap;
}

.social{display:flex;gap:10px;flex-wrap:nowrap}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:10px;
  padding:10px 12px;           /* slightly tighter to avoid wrap */
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  transition: transform .18s ease, border-color .18s ease;
  font-weight:600;font-size:14px;
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(110,231,255,.35)}
.btn.primary{
  border-color: rgba(110,231,255,.35);
  background: linear-gradient(135deg, rgba(110,231,255,.22), rgba(124,58,237,.18));
}
.btn.ok{
  border-color: rgba(61,220,151,.35);
  background: linear-gradient(135deg, rgba(61,220,151,.22), rgba(110,231,255,.10));
}

/* language */
.lang{
  display:flex;gap:6px;align-items:center;
  padding:6px;border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.lang button{
  padding:8px 10px;border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:700;
  cursor:pointer;
  font-size:12px;
  letter-spacing:.3px;
}
.lang button.active{color:var(--text); border-color: rgba(110,231,255,.35)}

/* Sections */
.hero{padding:54px 0 26px}
.hero-grid{display:grid;grid-template-columns: 1.2fr .8fr;gap:22px;align-items:stretch}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-main{padding:26px}
.kicker{
  display:inline-flex;gap:8px;align-items:center;
  padding:7px 10px;border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color:var(--muted);
  font-size:12px;
}
.dot{width:7px;height:7px;border-radius:50%;background:var(--ok);box-shadow: 0 0 0 4px rgba(61,220,151,.12)}
.hero h2{margin:14px 0 10px;font-size:38px;line-height:1.12;letter-spacing:-.5px}
.hero p{margin:0;color:var(--muted);font-size:16px;max-width:60ch}
.hero-cta{margin-top:18px;display:flex;gap:10px;flex-wrap:wrap}

.bullets{margin-top:18px;display:grid;grid-template-columns: 1fr 1fr;gap:10px}
.pill{
  display:flex;gap:10px;align-items:flex-start;
  padding:12px 12px;border-radius:14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}
.pill b{display:block;font-size:13px}
.pill span{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.icon{
  width:32px;height:32px;border-radius:12px;
  background: linear-gradient(135deg, rgba(110,231,255,.20), rgba(124,58,237,.16));
  border:1px solid rgba(255,255,255,.12);
  display:grid;place-items:center;flex:0 0 32px;
}

section{padding: 24px 0}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 12px}
.section-head h3{margin:0;font-size:22px}
.section-head p{margin:0;color:var(--muted);max-width:70ch}

.grid3{display:grid;grid-template-columns: repeat(3, 1fr);gap:14px}
.grid2{display:grid;grid-template-columns: repeat(2, 1fr);gap:14px}
.svc{padding:16px}
.svc h4{margin:4px 0 6px}
.svc p{margin:0;color:var(--muted);font-size:13px}

/* Works gallery */
.works-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.work{
  grid-column: span 4;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 10px 26px rgba(0,0,0,.20);
  transform: translateZ(0);
}
.work img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
  filter: saturate(1.05) contrast(1.03);
}
.work:hover{border-color: rgba(110,231,255,.35)}

.contact{display:grid;grid-template-columns: 1fr 1fr;gap:14px}
.contact.one{grid-template-columns: 1fr}
.contact .card{padding:18px}

.fine{font-size:12px;color:var(--muted);margin-top:10px}
.muted{color:var(--muted)}
.h4{margin:0 0 10px}
.pre{white-space:pre-line}

footer{padding:26px 0 38px;color:var(--muted)}
.foot{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;flex-wrap:wrap;
  border-top:1px solid var(--line);padding-top:14px;
}
.foot-links{display:flex;gap:10px;flex-wrap:wrap}
.mini{
  padding:9px 12px;border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  font-size:13px;color:var(--text);
}
.mini:hover{border-color: rgba(110,231,255,.35)}

@media (max-width: 920px){
  /* on mobile allow wrap */
  .topbar-inner{flex-wrap:wrap}
  .right-tools{flex-wrap:wrap;justify-content:flex-start}
  nav{display:none}

  .hero-grid{grid-template-columns: 1fr}
  .grid3{grid-template-columns: 1fr}
  .grid2{grid-template-columns: 1fr}
  .work{grid-column: span 12}
  .work img{height:240px}
}

/* Make work a button */
.work{
  appearance:none;
  cursor:pointer;
  padding:0;
}

/* Lightbox */
.lb{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}
.lb.is-open{display:block}

.lb-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
}

.lb-dialog{
  position:relative;
  max-width: min(1080px, 92vw);
  margin: 6vh auto;
  padding: 14px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.lb-figure{
  margin:0;
  border-radius: 14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
}

.lb-img{
  width:100%;
  height: min(70vh, 640px);
  object-fit: contain;
  display:block;
}

.lb-close{
  position:absolute;
  top:10px;
  right:10px;
  width:42px;
  height:42px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color: var(--text);
  font-size: 18px;
  cursor:pointer;
}

.lb-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:46px;
  height:46px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  display:grid;
  place-items:center;
  cursor:pointer;
}

.lb-prev{left:10px}
.lb-next{right:10px}

.lb-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 4px 0;
}

.lb-counter{
  color: var(--muted);
  font-size: 13px;
}

.lb-dots{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.lb-dot{
  width:10px;height:10px;border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  cursor:pointer;
}
.lb-dot.active{
  border-color: rgba(110,231,255,.55);
  background: rgba(110,231,255,.35);
}

@media (max-width: 920px){
  .lb-dialog{margin: 10vh auto}
  .lb-img{height: min(62vh, 520px)}
  .lb-prev{left:8px}
  .lb-next{right:8px}
}

.hero-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:22px;
  align-items:stretch;
}

/* multiline text (for bullet lists from i18n) */
.pre{
  white-space: pre-line; /* \n станет переносом строки */
}

/* если у тебя глобально центрирование — списки лучше читать слева */
.pre, .svc .pre, .svc p{
  text-align: left;
}

.map-dark {
  margin-top: -4px;
  flex: 0 0 420px;
  height: 200px;
  max-width: 720px;
  margin: 16px auto 0;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

.contact-flex{
  display: flex;
  gap: 20px;
  padding-bottom: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.contact-info{
  flex: 1 1 420px;
  min-width: 260px;
}

.social{display:flex;gap:10px;align-items:center}

.iconbtn{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.iconbtn:hover{
  transform: translateY(-1px);
  border-color: rgba(110,231,255,.35);
  background: linear-gradient(135deg, rgba(110,231,255,.14), rgba(124,58,237,.10));
}
.iconbtn svg{width:20px;height:20px;fill:rgba(233,238,252,.92)}

/* ===== Mobile polish ===== */
@media (max-width: 920px){
  .contact-flex{
    flex-direction: column;
    gap: 12px;
  }

  .contact-info{
    flex: 1 1 auto;
    min-width: 0;
  }

  .map-dark{
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    height: 240px;         
    margin: 0;             
  }

  .brand{ min-width: 0; }
  .brand-text h1{ font-size: 15px; }
  .brand-text small{ font-size: 12px; }

  .right-tools{
    width: 100%;
    justify-content: space-between;
  }

  .topbar .btn.primary{
    padding: 10px 12px;
  }

  .works-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .work{ grid-column: auto; }
  .work img{ height: 160px; }
}

@media (max-width: 520px){
  .hero-cta{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-cta .btn{
    width: 100%;
    justify-content: center;
    padding: 12px 14px; /* чуть крупнее */
  }

  .right-tools{
    gap: 8px;
  }

  .social{ gap: 8px; }
  .iconbtn{
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .lang{ padding: 4px; }
  .lang button{ padding: 7px 9px; }

  .hero{ padding: 40px 0 16px; }
  .hero-main{ padding: 18px; }

  .hero h2{
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.3px;
  }

  .hero p{
    font-size: 15px;
  }

  .bullets{
    grid-template-columns: 1fr; 
  }
}

@media (max-width: 420px){
  .works-grid{ grid-template-columns: 1fr; }
  .work img{ height: 220px; }
}

/* ===== Leaflet route button (inside map) ===== */
.leaflet-control-route{
  margin-top: 47px; 
}

.leaflet-control-route .route-btn{
  width: 37px;
  height: 37px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color: var(--text);
  cursor: pointer;

  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}

.leaflet-control-route .route-btn:hover{
  border-color: rgba(110,231,255,.35);
  transform: translateY(-1px);
}

.addr-link{
  color: inherit;
  font-weight: 700;
  text-decoration-color: rgba(110,231,255,.35);
  text-underline-offset: 3px;
}

.addr-link:hover{
  text-decoration-color: rgba(110,231,255,.75);
}

.phone-link{
  color: inherit;
  font-weight: 800;
  text-decoration-color: rgba(61,220,151,.35);
  text-underline-offset: 3px;
}
.phone-link:hover{
  text-decoration-color: rgba(61,220,151,.75);
}

/* Для видео на фоне */
#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: -1; 
  mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero {
  position: relative;
  padding: 54px 0 26px; 
  overflow: hidden; 
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero-grid {
  display: grid;
  /* grid-template-columns: 1.2fr .8fr; */
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
  position: relative; 
}

.hero-main {
  position: relative; 
  z-index: 1; 
}

#financing {
  padding: 40px 0;
  margin-top: 40px;
}

#financing h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

.section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.financing-logo {
  max-width: 330px; 
  object-fit: contain;
}
