:root{
  --bg: #00117D;         /* фирменный фон */
  --glass: rgba(255,255,255,0.06);
  --glass-strong: rgba(255,255,255,0.10);
  --accent-cyan: #00E8FF;
  --accent-magenta: #BD00FF;
  --text: #ffffff;
  --radius-lg: 16px;
  --radius-md: 12px;
  --fw-regular: 400;
  --fw-medium: 600;
  --container: 1150px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height:100%; }
body {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

/* --------------------
   utils
-------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* visually hidden */
.visually-hidden { position:absolute!important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

/* --------------------
   HEADER
-------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width:100%;        /* ← всегда на всю ширину */
  z-index:1200;
  padding: 14px 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35); /* ← ТЕНЬ */
}

.header-inner {
  display:flex;
  align-items:center;               /* ← Центрирование по вертикали */
  justify-content:space-between;    /* ← меню справа */
  gap:20px;
  width:100%;
  max-width: var(--container);                /* ← ВОТ ЗДЕСЬ ФИКСИРУЕТСЯ ШИРИНА ХЕДЕРА, отсылает вот сюда --container: 1150px; */
  margin: 0 auto;
  padding: 0 20px;
}

/* logo */
.logo-img {
  height: 58px;   /* изменяй значение — это размер логотипа */
  width: auto;    /* сохраняет пропорции */
  display:block;
}

/* LOGO BOX — прямоугольник под логотип */
.logo-box {
  background-color: #00117D;            /* цвет фона #00117D  #FFE900  */
  padding: 8px 10px;                    /* пространство вокруг логотипа */
  min-width: 60px;                      /* минимальная ширина прямоугольника */
  min-height: 72px;                     /* минимальная высота прямоугольника */
  
 /* box-sizing: border-box;  */
  border-radius: 14px;                  /* закругление углов */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);  /* тень прямоугольника */
  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  top: 50px;                             /* поднимет блок -вверх или вниз на xxpx относительно центра хедера */

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Увеличение при наведении */
.logo-box:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

/* desktop nav */
.nav {
  display:flex;
  align-items:center;
  gap:22px;
}
.nav a {
  color:var(--text);
  text-decoration:none;
  font-weight:var(--fw-regular);
  transition: color .18s ease, transform .18s ease;
}
.nav a:hover { color: var(--accent-cyan); transform: translateY(-2px); }

.btn-nav {
  padding:8px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* burger */
.burger {
  display:none;
  width:44px;
  height:36px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.06);
  background: transparent;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  padding:6px;
}
.burger span { display:block; height:2px; background:var(--text); border-radius:2px; transition: transform .25s ease, opacity .2s ease; }
.burger span + span { margin-top:6px; }

/* Mobile menu overlay */
.overlay {
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.55);
  z-index:1000;
  transition: opacity .25s ease;
  opacity:1;                        /* что за значение? */
}
.overlay[hidden] {
  opacity:0;
  pointer-events:none;
}

/* sliding mobile menu */
.mobile-menu {
  position: fixed;
  top:72px;
  right: -100%;
  width: 320px;
  height: calc(100vh - 72px);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255,255,255,0.06);
  box-shadow: -20px 20px 60px rgba(0,0,0,0.45);
  z-index:1100;
  transition: right .35s cubic-bezier(.2,.9,.2,1);
  padding:18px;
  border-top-left-radius:12px;
  border-bottom-left-radius:12px;
}

/* open state */
.mobile-menu.open { right: 0; }

.mobile-inner { padding-top:8px; display:flex; flex-direction:column; gap:18px; }
.mobile-nav { display:flex; flex-direction:column; gap:14px; }
.mobile-link {
  color:var(--text);
  text-decoration:none;
  padding:10px 12px;
  border-radius:10px;
  display:block;
  font-weight:500;
}
.mobile-link:hover { background: rgba(255,255,255,0.02); color:var(--accent-cyan); }
.btn-mobile {
  margin-top:6px;
  border:1px solid rgba(255,255,255,0.08);
  text-align:center;
  padding:10px 12px;
}

/* --------------------
   HERO
-------------------- */
.hero {
  padding-top:110px; /* header offset */
  padding-bottom:80px;
  min-height: calc(100vh - 110px);
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;
}

.hero-inner {
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding: 40px 20px;
  display:grid;
  grid-template-columns: 1fr;
  align-items:center;
}

/* glass card */
.hero-glass{
  max-width:840px;
  margin: 0 auto;
  padding: 44px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 60px rgba(0, 120, 255, 0.06);
  text-align:center;
  animation: glassPop .6s cubic-bezier(.2,.9,.2,1);
  z-index: 3;              /* Чтобы текст оставался над canvas, увеличим z-index hero-glass */
  position: relative;
}

/* title */
.hero-title {
  font-size: clamp(28px, 5.2vw, 48px);
  line-height:1.05;
  letter-spacing: -0.01em;
  font-weight:700;
  color:var(--text);
  margin-bottom:12px;
  text-wrap:balance;
  animation: fadeUp .6s .08s both;
}

.hero-sub {
  color: rgba(255,255,255,0.9);
  margin-bottom:22px;
  font-size: 16px;
  animation: fadeUp .6s .12s both;
}

.hero-actions { display:flex; gap:14px; justify-content:center; align-items:center; flex-wrap:wrap; }

/* CTA */
.cta-btn {
  display:inline-block;
  padding:12px 22px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  color: #001117;
  font-weight:700;
  text-decoration:none;
  box-shadow: 0 10px 40px rgba(0, 232, 255, 0.12), 0 4px 18px rgba(189,0,255,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta-btn:hover { transform: translateY(-4px); box-shadow: 0 18px 60px rgba(0,232,255,0.16); }

.ghost-btn {
  display:inline-block;
  padding:10px 18px;
  border-radius:10px;
  color:var(--text);
  border:1px solid rgba(255,255,255,0.06);
  text-decoration:none;
  background:transparent;
  transition: color .18s ease, transform .18s ease;
}
.ghost-btn:hover { color:var(--accent-magenta); transform: translateY(-3px); }

/* decorative SVG */
.hero-decor { position:absolute; left:0; right:0; bottom:0; height:160px; opacity:0.7; pointer-events:none; transform: translateY(20px); filter: blur(8px); }

/* Mesh canvas (particles) */
#mesh {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;                                   /* располагаем внизу hero секции */
  width: 100%;
  height: clamp(220px, 30vw, 380px);           /* можно подрегулировать */
  pointer-events: none;                        /* не мешаем кликам и меню */
  opacity: 0.85;
  z-index: 2;                                  /* поверх декора, но ниже текста */
  mix-blend-mode: screen;                      /* мягкий светящийся эффект */
  display: block;
}

/* Адаптив: уменьшить высоту на мобильных */
@media (max-width: 768px) {
  #mesh { height: 240px; opacity: 0.75; }
}



/* --------------------
   SERVICES
-------------------- */
.services { padding:70px 0; }
.section-title { font-size:28px; text-align:center; margin-bottom:32px; font-weight:700; }

.cards {
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:22px;
  margin-top:18px;
}

/* card */
.card {
  padding:22px;
  border-radius:14px;
  background: var(--glass);
  border:1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  transition: transform .25s cubic-bezier(.2,.9,.2,1), box-shadow .25s;
  min-height:160px;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 24px rgba(0, 232, 255, 0.06);
}
.card-icon {
  font-size:26px;
  margin-bottom:12px;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.35));
}
.card h3 { margin-bottom:8px; font-size:18px; font-weight:600; }
.card p { font-size:14px; color: rgba(255,255,255,0.92); line-height:1.5; }

/* --------------------
   CONTACT CTA
-------------------- */
.contact-cta {
  padding:48px 0;
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  text-align:center;
}
.contact-cta p { margin:12px 0 18px; color: rgba(255,255,255,0.9); }

/* --------------------
   FOOTER
-------------------- */
.footer { padding:28px 0; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.footer-links a { color: rgba(255,255,255,0.85); text-decoration:none; margin-left:14px; font-size:14px; }
.footer-links a:hover { color: var(--accent-cyan); }

/* --------------------
   Animations
-------------------- */
@keyframes glassPop {
  from { transform: translateY(8px) scale(.995); opacity:0; }
  to { transform: translateY(0) scale(1); opacity:1; }
}
@keyframes fadeUp {
  from { transform: translateY(10px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}

/* --------------------
   Responsive
-------------------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-glass { padding:36px; }
}

@media (max-width: 768px) {
  .nav { display:none; }
  .burger { display:flex; }

  .cards { grid-template-columns: 1fr; }
  .hero-inner { padding: 24px; }

  .hero-glass { padding:28px; border-radius:14px; }
  .hero-decor { height:120px; opacity:0.45; }

}

/* small tweaks */
.cta-btn.large { padding:14px 28px; font-size:18px; border-radius:14px; }



