/* =========================================================
   main.css — shared styles (header + overlays + common UI)
   ========================================================= */

/* Base */
:root{
  --bg-0: #040a16;
  --bg-1: #071a3b;
  --bg-2: #0b2a5f;

  --glass: rgba(18, 28, 48, 0.55);
  --glass-2: rgba(18, 28, 48, 0.35);
  --stroke: rgba(255,255,255,0.08);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);

  --primary: #0b63ff;
  --primary-2: #0a55da;

  --radius: 12px;
  --radius-lg: 16px;

  --shadow: 0 10px 30px rgba(0,0,0,0.35);

  --dropdown-bg: rgba(255,255,255,0.96);
  --dropdown-text: #0c1630;
  --dropdown-hover: rgba(12,22,48,0.06);
  --dropdown-shadow: 0 18px 45px rgba(0,0,0,0.35);

}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);

  /* approximate “space blue” */
  background:
    radial-gradient(1000px 500px at 20% 15%, rgba(11, 99, 255, 0.15), transparent 60%),
    radial-gradient(900px 700px at 70% 30%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(135deg, var(--bg-0), var(--bg-1));
}

a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; }

.container{
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Header */
.site-header{
  padding: 22px 0;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 18px 18px;
  border-radius: var(--radius-lg);

  background: linear-gradient(90deg, rgba(6,12,26,0.55), rgba(12,25,48,0.35));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-text{
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 28px;
  line-height: 1;
}

.logo-accent{
  color: var(--primary);
}

/* Desktop nav hidden on mobile by default */
.header-nav{
  display: none;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.nav-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;

  background: transparent;
  border: 0;
  border-radius: 10px;

  color: var(--muted);
  cursor: pointer;
}

.nav-link:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.lang-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);

  cursor: pointer;
}

.chev{
  font-size: 12px;
  opacity: 0.9;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary{
  background: var(--primary);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 10px 22px rgba(11, 99, 255, 0.25);
}

.btn-primary:hover{
  background: var(--primary-2);
}

.btn-full{ width: 100%; }

/* Burger (mobile) */
.burger{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;
  border-radius: 10px;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
}

.burger:hover{
  background: rgba(255,255,255,0.07);
}

.burger-lines{
  position: relative;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
}

.burger-lines::before,
.burger-lines::after{
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
}

.burger-lines::before{ top: -7px; }
.burger-lines::after{ top: 7px; }

/* Overlays (Industries + Mobile menu) */
.overlay{
  position: fixed;
  inset: 0;
  z-index: 1000;

  /* hidden */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  background: linear-gradient(135deg, #06122a, #071a3b 40%, #04112a);
  transition: opacity .18s ease, visibility .18s ease;
}

.overlay.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay-top{
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
}

.overlay-top-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overlay-title{
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 10px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}

.icon-btn:hover{
  background: rgba(255,255,255,0.09);
}

.overlay-content{
  padding: 28px 0;
}

.overlay-list{
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  gap: 12px;
  max-width: 520px;
}

.overlay-link{
  display: block;
  padding: 16px 14px;
  border-radius: 12px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.90);
}

.overlay-link:hover{
  background: rgba(255,255,255,0.09);
}

/* Mobile menu panel */
.mobile-menu{
  min-height: 100%;
  padding: 22px 18px;
}

.mobile-menu-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-menu-body{
  padding-top: 18px;
  display: grid;
  gap: 22px;
}

.mobile-section{
  display: grid;
  gap: 12px;
}

.mobile-h{
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

.mobile-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.mobile-link{
  display: inline-flex;
  align-items: center;

  padding: 10px 0;
  color: rgba(255,255,255,0.82);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.mobile-link:hover{
  color: rgba(255,255,255,0.95);
}

.btn-link{
  width: fit-content;
}

/* Helpers */
.page{
  padding: 10px 0 60px;
}

.page-placeholder{
  height: 320px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 14px;
  background: rgba(0,0,0,0.10);
}

/* Desktop breakpoint */
@media (min-width: 992px){
  .burger{ display: none; }
  .header-nav{ display: inline-flex; }
  .logo-text{ font-size: 30px; }

  /* mobile overlay styles still usable */
  .mobile-h{ font-size: 40px; }
}

/* Body lock when overlay open */
.body-locked{
  overflow: hidden;
}

/* ===== Industries dropdown (desktop) ===== */
.nav-dd{
  position: relative;
  display: inline-flex;
}

.nav-link--pill{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
}

.dropdown{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;

  background: var(--dropdown-bg);
  color: var(--dropdown-text);

  border-radius: 12px;
  box-shadow: var(--dropdown-shadow);
  border: 1px solid rgba(0,0,0,0.06);

  padding: 8px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 1200;
}

.dropdown.is-open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}

.dropdown-link{
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--dropdown-text);
}

.dropdown-link:hover{
  background: var(--dropdown-hover);
}

/* ===== Mobile Industries collapsible ===== */
.mobile-h-btn{
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.mobile-submenu[hidden]{
  display: none;
}

.container-wide{
  max-width: 1400px; /* расширяем именно этот блок */
}


/* =========================
   Mobile — как в макете
   ========================= */
@media (max-width: 991px){
  .packages{
    padding: 44px 0 60px;
  }

  .packages-title{
    font-size: 44px;
    line-height: 1.06;
  }

  .packages-tabs{
    margin: 16px auto 16px;
    gap: 10px;
    padding: 0 6px;
  }

  .pkg-tab{
    height: 44px;
    font-size: 13px;
    padding: 0 10px;
    line-height: 1.15;
    white-space: normal; /* чтобы “Operational Simulation Pilot” мог переноситься аккуратно */
  }

  .pkg-card{
    padding: 22px 18px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "figure";           /* картинка снизу */
    gap: 16px;
  }

  .pkg-title{
    font-size: 22px;
  }

  .pkg-sub{
    font-size: 15px;
    margin: 10px 0 14px;
  }

  .pkg-list{
    gap: 14px;
  }

  .pkg-figure{
    padding: 14px;
    border-radius: 14px;
  }
}