html{scroll-behavior:smooth}
img{max-width:100%;display:block}
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-construction.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;
}

.license-preview{
  min-height:390px;
}

.license-preview iframe{
  width:100%;
  height:390px;
  border:none;
  display:block;
}

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

/* RESPONSIVE */
/* RESPONSIVE */
@media(max-width:1100px){
  .steps{
    grid-template-columns:1fr 1fr;
  }

  .hero h1{
    font-size:42px;
  }
}

@media(max-width:900px){
  .license-block{
    grid-template-columns:1fr;
  }

  .license-preview{
    min-height:680px;
  }

  .license-preview iframe{
    width:100%;
    height:680px;
    border:none;
    display:block;
  }
}

@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-refinery.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:70vh;
  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 10px;
  font-size:56px;
  line-height:1.05;
  letter-spacing:-0.8px;
  font-weight:700;
}

.cap-hero p{
  color: rgba(255,255,255,0.86);
  max-width: 820px;
  margin: 16px 0 26px;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions{
  display:flex;
  gap:16px;
  margin-top:10px;
}

.hero-actions .btn{
  padding:12px 22px;
  font-size:15px;
}

.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; }
}

/* Two image block for capability pages */
.img-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  margin-top:20px;
}
.img-grid img{
  width:100%;
  border-radius:14px;
  border:1px solid #e6ecf2;
  box-shadow: 0 18px 50px rgba(15,44,76,0.10);
}
@media (max-width: 860px){
  .img-grid{ grid-template-columns: 1fr; }
}
/* =========================
   ABOUT (HOME) — PREMIUM BACKGROUND
========================= */
#about.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/industrial-tanks.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color:#fff;
}
#about.section h2{ color:#fff; }
#about.section .lead{ color: rgba(255,255,255,0.88); }

/* =========================
   DELIVERY (HOME) — PREMIUM BACKGROUND + CARDS
========================= */
#delivery.section{
  background:
    linear-gradient(90deg,
      rgba(6,14,25,0.94) 0%,
      rgba(6,14,25,0.86) 60%,
      rgba(6,14,25,0.74) 100%
    ),
    url("assets/cap-industrial.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
#delivery.section h2{ color:#fff; }
#delivery.section .step{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius:14px;
  padding:26px;
  backdrop-filter: blur(6px);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
#delivery.section .step:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.26);
}
#delivery.section .step-title{ color:#fff; }
#delivery.section .step-text{ color: rgba(255,255,255,0.86); }
#delivery.section .step-num{ color:#9ec3ff; }

/* =========================
   HERO — PREMIUM OVERLAY + TRUST BAR
========================= */
.hero-image{ position: relative; }
.hero-image::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.10), transparent 45%),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,0.08), transparent 50%),
    linear-gradient(180deg, rgba(6,14,25,0.12), rgba(6,14,25,0.45));
  pointer-events:none;
}
.hero-grid{ position: relative; z-index: 1; padding:120px 0; }
.hero-actions{ margin-top:26px; }

/* HERO TRUST BAR */

.hero-trust{
  margin-top:24px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.trust-item{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.25);
  font-size:13px;
  font-weight:600;
  color:#ffffff;
  backdrop-filter:blur(4px);
}

/* Mobile: disable fixed backgrounds for performance/compatibility */
@media(max-width:900px){
  #about.section, #delivery.section{ background-attachment: scroll; }
  .hero-grid{ padding:90px 0; }
  .trust-item{ font-size:12px; padding:9px 12px; }
}

/* =========================
   NAV REFINEMENT
========================= */
.nav{display:flex;align-items:center;flex-wrap:wrap;gap:2px}
.nav a{transition:color .2s ease, opacity .2s ease}
.nav a:hover{color:#1d4ed8}

/* =========================
   MILITARY CARD (HOME)
========================= */
.card-military{
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border-color: rgba(158,195,255,0.30) !important;
  position: relative;
}
.card-military::before{
  content:"Strategic";
  position:absolute;
  top:18px;
  right:18px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#dbeafe;
  background:rgba(29,78,216,0.28);
  border:1px solid rgba(191,219,254,0.3);
}
.card-military h3{padding-right:80px}

/* =========================
   INNER PAGE HERO
========================= */
.inner-hero{
  min-height:62vh;
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;
  color:#fff;
  background:
    linear-gradient(90deg, rgba(6,14,25,0.92) 0%, rgba(6,14,25,0.82) 56%, rgba(6,14,25,0.60) 100%),
    url("assets/military-engineering-hero.jpg") center/cover no-repeat;
}
.inner-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 78% 30%, rgba(255,255,255,0.10), transparent 36%);
}
.inner-hero .container{position:relative;z-index:1}
.inner-hero h1{
  color:#fff;
  margin:16px 0 14px;
  font-size:56px;
  line-height:1.03;
  max-width:780px;
}
.inner-hero p{
  max-width:760px;
  color:rgba(255,255,255,0.86);
  font-size:18px;
  line-height:1.7;
}
.hero-breadcrumb{
  display:inline-flex;
  gap:10px;
  align-items:center;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#c7d7ea;
}
.hero-breadcrumb a{color:#c7d7ea;text-decoration:none}

/* =========================
   MILITARY PAGE LAYOUT
========================= */
.page-section{padding:92px 0}
.section-dark{
  background:linear-gradient(180deg,#0c1728 0%, #101f36 100%);
  color:#fff;
}
.section-dark h2,
.section-dark h3{color:#fff}
.section-dark .lead,
.section-dark p{color:rgba(255,255,255,0.84)}
.page-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:start;
}
.info-panel,
.feature-panel,
.cert-panel,
.image-panel{
  background:#fff;
  border:1px solid #e6ecf2;
  border-radius:18px;
  padding:28px;
  box-shadow:0 16px 45px rgba(15,44,76,0.08);
}
.section-dark .info-panel,
.section-dark .feature-panel,
.section-dark .cert-panel,
.section-dark .image-panel{
  background:rgba(255,255,255,0.06);
  border-color:rgba(255,255,255,0.12);
  box-shadow:0 20px 50px rgba(0,0,0,0.22);
}
.kpi-list,
.feature-list{margin:0;padding-left:18px}
.kpi-list li,
.feature-list li{margin-bottom:12px;line-height:1.7}
.military-highlights{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin-top:28px;
}
.military-highlights .card{height:100%}
.media-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin-top:26px;
}
.media-card img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:14px;
  margin-bottom:14px;
  border:1px solid rgba(255,255,255,0.12);
}
.media-card h3{margin:0 0 8px}
.media-card p{margin:0}
.cert-frame{
  width:100%;
  height:500px;
  border:none;
  border-radius:14px;
  background:#fff;
}
.cert-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.inline-note{
  display:inline-flex;
  margin-top:18px;
  padding:10px 14px;
  border-radius:12px;
  background:rgba(15,44,76,0.06);
  color:#0F2C4C;
  border:1px solid #d8e2ee;
  font-weight:600;
}
.section-dark .inline-note{
  background:rgba(255,255,255,0.08);
  color:#fff;
  border-color:rgba(255,255,255,0.12);
}
.back-link{display:inline-flex;align-items:center;gap:10px;color:#0F2C4C;text-decoration:none;font-weight:700}
.section-dark .back-link{color:#fff}

/* =========================
   FOOTER ON INNER PAGES
========================= */
.footer .container{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}

/* =========================
   RESPONSIVE EXTENSIONS
========================= */
@media(max-width:1100px){
  .page-grid,
  .military-highlights,
  .media-grid{grid-template-columns:1fr}
  .inner-hero h1{font-size:42px}
}
@media(max-width:760px){
  .header-row{gap:16px;align-items:flex-start}
  .nav{gap:8px 2px}
  .nav a{margin:0 8px 0 0;font-size:13px}
  .btn{padding:11px 18px}
  .hero h1,
  .inner-hero h1{font-size:34px}
  .section,
  .page-section{padding:74px 0}
  .media-card img{height:190px}
  .cert-frame{height:380px}
}
