*{box-sizing:border-box}
body{margin:0;font-family:'Inter',sans-serif;color:#101828}
.container{width:92%;max-width:1320px;margin:auto}

/* HEADER */
.site-header{position:sticky;top:0;background:#fff;border-bottom:1px solid #e6ecf2;z-index:1000}
.header-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand img{height:82px}
.nav a{margin:0 12px;text-decoration:none;color:#0F2C4C;font-weight:600;font-size:14px}
.btn{padding:12px 22px;border-radius:8px;font-weight:700;text-decoration:none}
.btn-primary{background:#0F2C4C;color:#fff}
.btn-secondary{border:2px solid #fff;color:#fff}

/* HERO */
.hero-image{
min-height:78vh;
display:flex;
align-items:center;
background:
linear-gradient(90deg,rgba(6,14,25,.92),rgba(6,14,25,.75)),
url("assets/hero.jpg");
background-size:cover;background-position:center;
color:#fff
}
.hero-grid{padding:110px 0}
.hero h1{font-size:56px;line-height:1.05;margin:20px 0}
.hero p{max-width:680px;line-height:1.7;font-size:18px}
.kicker{font-size:13px;opacity:.85}

/* SECTIONS */
.section{padding:100px 0}
.section-light{background:#f7f9fc}
h2{font-size:34px;margin-bottom:20px;color:#0F2C4C}
.lead{font-size:18px;max-width:800px;color:#344054}

/* STEPS */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:30px}
.step{background:#fff;border:1px solid #e6ecf2;padding:22px;border-radius:12px}
.step-num{font-weight:800;color:#0F2C4C}

/* GRID */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:22px;margin-top:30px}
.card{background:#fff;border:1px solid #e6ecf2;padding:26px;border-radius:12px}
.card h3{margin-top:0;color:#0F2C4C}

/* LICENSE */
.license-block{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  margin-top:20px;
}

/* FOOTER */
.footer{background:#0F2C4C;color:#fff;text-align:center;padding:40px 0;margin-top:60px}

/* RESPONSIVE */
@media(max-width:1100px){
.steps{grid-template-columns:1fr 1fr}
.license-block{grid-template-columns:1fr}
.hero h1{font-size:42px}
}
@media(max-width:600px){
.steps{grid-template-columns:1fr}
.brand img{height:64px}
}

/* LICENSE INFO - FIX BUTTON OVERLAP */
.license-info{
  display:flex;
  flex-direction:column;
  gap:12px;                 /* задаём нормальный вертикальный ритм */
}

.license-line{
  line-height:1.7;
}

.license-actions{
  margin-top:10px;          /* кнопка уходит вниз, не прижимается к тексту */
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

/* если кнопка слишком широкая и ломает блок */
.license-actions .btn{
  max-width: 100%;
}

/* CONTACT LINKS */
.contact-link{
  color:#0F2C4C;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Ensure secondary button readable on light backgrounds */
.section .btn-secondary,
.section-light .btn-secondary{
  border-color:#0F2C4C;
  color:#0F2C4C;
}

/* =========================
   MODALS (WhatsApp / Email / Proposal)
========================= */
.modal{
  position: fixed;
  inset:0;
  background: rgba(0,0,0,0.45);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:10000;
}

.modal.active{
  display:flex;
}
.modal-card{
  width:720px;
  max-width:92%;
  max-height:90vh;
  background:#fff;
  border-radius:12px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.modal-card-wide{ width:min(980px,94vw); }

.modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:18px 20px;
  background:#f7f9fc;
  border-bottom:1px solid #eef2f7;
}
.modal-title{
  font-weight:800;
  color:#0F2C4C;
  font-size:18px;
  letter-spacing:-0.2px;
}
.modal-sub{
  margin-top:6px;
  color:#475467;
  font-size:13px;
  line-height:1.45;
}
.modal-close{
  width:40px;height:40px;
  border-radius:10px;
  border:1px solid #e6ecf2;
  background:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:1;
  color:#0F2C4C;
}

.modal-body{
  padding:28px;
  overflow-y:auto;
}

.modal-actions{
  padding:20px 28px;
  border-top:1px solid #e6e6e6;
  display:flex;
  justify-content:flex-end;
  background:#fff;
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.field{display:flex;flex-direction:column;gap:8px;}
.field label{font-size:13px;font-weight:800;color:#0F2C4C;}
.field input,.field select,.field textarea{
  width:100%;
  border:1px solid #e6ecf2;
  border-radius:12px;
  padding:12px 12px;
  font:inherit;
  font-size:14px;
  outline:none;
}
.field textarea{resize:vertical;min-height:120px;}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:rgba(15,44,76,0.45);
  box-shadow:0 0 0 4px rgba(15,44,76,0.08);
}
.field-full{grid-column:1/-1;}

.hint{font-size:12px;color:#667085;line-height:1.4;margin-top:-2px;}
.hp-field{display:none;}

.modal-actions{
  margin-top:16px;
  display:flex;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.modal-actions .btn-secondary{
  border:2px solid #0F2C4C;
  color:#0F2C4C;
  background:transparent;
}

/* Responsive */
@media(max-width:700px){
  .modal-card{margin:5vh auto;}
  .form-grid{grid-template-columns:1fr;}
}


/* === Modal UX upgrade: scroll body + sticky actions (proposal/email/whatsapp) === */
.modal-card{
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}
.modal-body{
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-actions{
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}


/* =========================
   CAPABILITIES (HOME) — GLOBAL BG
========================= */
#capabilities.section{
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg,
      rgba(6,14,25,0.92) 0%,
      rgba(6,14,25,0.84) 55%,
      rgba(6,14,25,0.72) 100%
    ),
    url("assets/capabilities-bg.jpg");
  background-size: cover;
  background-position: center;
}

#capabilities.section h2{ color:#fff; }
#capabilities.section .lead{ color: rgba(255,255,255,0.86); }

#capabilities.section .card{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

#capabilities.section .card:hover{
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(15,44,76,0.20);
  border-color: rgba(255,255,255,0.22);
}

#capabilities.section .card h3{ color:#fff; }
#capabilities.section .card p{ color: rgba(255,255,255,0.82); }

/* Clickable cards */
.card-link{
  display:block;
  text-decoration:none;
}
.card-link:focus{
  outline: 3px solid rgba(255,255,255,0.35);
  outline-offset: 3px;
}

/* =========================
   CAPABILITY PAGES — HERO (THEMATIC)
   Use on 5 pages: industrial / engineering / mep / fabrication / ai
========================= */
.cap-hero{
  min-height:58vh;
  display:flex;
  align-items:center;
  position:relative;
  background-size:cover;
  background-position:center;
  overflow:hidden;
  color:#fff;
}

.cap-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg,
    rgba(6,14,25,0.92) 0%,
    rgba(6,14,25,0.84) 55%,
    rgba(6,14,25,0.68) 100%);
}

.cap-hero .container{
  position:relative;
  z-index:1;
}

.cap-hero h1{
  color:#fff;
  margin:14px 0 0;
  font-size:52px;
  line-height:1.05;
  letter-spacing:-0.8px;
}

.cap-hero p{
  color: rgba(255,255,255,0.86);
  max-width:820px;
}

.cap-hero.industrial{ background-image: url("assets/cap-industrial.jpg"); }
.cap-hero.engineering{ background-image: url("assets/cap-engineering.jpg"); }
.cap-hero.mep{ background-image: url("assets/cap-mep.jpg"); }
.cap-hero.fabrication{ background-image: url("assets/cap-fabrication.jpg"); }
.cap-hero.ai{ background-image: url("assets/cap-ai.jpg"); }

@media(max-width:860px){
  .cap-hero{ min-height:52vh; }
  .cap-hero h1{ font-size:38px; }
}
