/* ===== ОБЩИЙ CSS ШАПКИ И ФУТЕРА (layout.css) ===== */
/* ============================================================
   1. TOPBAR + HEADER
   ============================================================ */
/* Акционная полоса */
/* липкий стек: топбар + шапка двигаются вместе, без зазора */
.head-stack{position:sticky;top:0;z-index:100;}
.topbar{
  background:var(--blue);color:#fff;
  text-align:center;padding:10px 24px;
  font-size:13.5px;font-weight:500;line-height:1.4;
  position:relative;z-index:101;
}
.topbar a{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px;}
.topbar a:hover{opacity:.85;}
.tb-short{display:none;}
.topbar-close{
  position:absolute;right:18px;top:50%;transform:translateY(-50%);
  background:none;border:none;color:rgba(255,255,255,.7);cursor:pointer;
  font-size:18px;line-height:1;padding:4px;
}
.topbar-close:hover{color:#fff;}

.header{
  height:72px;display:flex;align-items:center;
  border-bottom:1px solid var(--line);
  position:relative;z-index:100;
  background:#fff;
}
.header .container{display:flex;align-items:center;justify-content:space-between;width:100%;}

.logo{display:flex;align-items:center;gap:8px;font-weight:700;font-size:18px;}
.logo-img{height:34px;width:auto;display:block;}
.logo-mark{display:grid;grid-template-columns:repeat(2,8px);gap:3px;}
.logo-mark span{width:8px;height:8px;border-radius:50%;background:var(--black);}
.logo-mark span:nth-child(2){background:var(--blue);}
.hero-badge .logo-img{height:42px;}

.nav{display:flex;gap:30px;}
.nav a{color:var(--gray-dark);font-size:15px;font-weight:500;transition:color .2s;position:relative;}
.nav a::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:2px;background:var(--blue);border-radius:2px;transition:width .2s;}
.nav a:hover{color:var(--text);}
.nav a:hover::after{width:100%;}

.header-right{display:flex;align-items:center;gap:20px;}
.tg-link{display:inline-flex;align-items:center;gap:7px;color:var(--gray-dark);font-size:14px;font-weight:500;transition:color .2s;}
.tg-link:hover{color:var(--blue);}
.header-cta{padding:9px 18px;font-size:14px;border-radius:10px;}

/* Бургер */
.burger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:6px;border:none;background:none;position:relative;z-index:1002;}
.burger span{display:block;width:24px;height:2px;background:var(--text);border-radius:2px;transition:transform .35s cubic-bezier(.65,.05,.36,1),opacity .25s,background .3s;}
.burger.open span{background:var(--text);}
.burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.burger.open span:nth-child(2){opacity:0;transform:translateX(-8px);}
.burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* Мобильное меню — полноэкранная панель */
.mobile-menu{
  position:fixed;inset:0;z-index:1001;
  background:#fff;
  background-image:radial-gradient(rgba(31,122,255,.07) 1px,transparent 1px);
  background-size:18px 18px;
  display:flex;flex-direction:column;
  padding:90px 28px 32px;
  opacity:0;visibility:hidden;
  transform:translateY(-12px);
  transition:opacity .35s ease,transform .45s cubic-bezier(.16,1,.3,1),visibility .35s;
  overflow-y:auto;
}
.mobile-menu.open{opacity:1;visibility:visible;transform:translateY(0);}
.mm-close{
  position:absolute;top:22px;right:22px;
  width:42px;height:42px;border-radius:50%;
  background:var(--soft);border:1px solid var(--line);
  display:grid;place-items:center;cursor:pointer;color:var(--text);
  transition:background .2s,transform .2s;z-index:2;
}
.mm-close:active{background:var(--line);transform:rotate(90deg);}
.mm-close svg{width:18px;height:18px;}

.mm-label{
  font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--gray);margin-bottom:22px;
  opacity:0;transform:translateY(10px);transition:all .4s ease;
}
.mobile-menu.open .mm-label{opacity:1;transform:none;transition-delay:.15s;}

.mm-nav{display:flex;flex-direction:column;flex:1;}
.mm-nav a{
  display:flex;align-items:baseline;gap:16px;
  padding:14px 0;font-size:30px;font-weight:800;letter-spacing:-.03em;
  color:var(--text);border-bottom:1px solid rgba(0,0,0,.06);
  opacity:0;transform:translateX(-24px);
  transition:opacity .5s ease,transform .55s cubic-bezier(.16,1,.3,1),color .2s;
}
.mm-nav a .mm-num{
  font-size:13px;font-weight:700;color:var(--blue);
  flex:none;min-width:24px;font-variant-numeric:tabular-nums;
}
.mobile-menu.open .mm-nav a{opacity:1;transform:none;}
.mobile-menu.open .mm-nav a:nth-child(1){transition-delay:.20s;}
.mobile-menu.open .mm-nav a:nth-child(2){transition-delay:.27s;}
.mobile-menu.open .mm-nav a:nth-child(3){transition-delay:.34s;}
.mobile-menu.open .mm-nav a:nth-child(4){transition-delay:.41s;}
.mobile-menu.open .mm-nav a:nth-child(5){transition-delay:.48s;}
.mm-nav a:active{color:var(--blue);transform:translateX(6px);}

/* низ меню — CTA + контакты */
.mm-foot{
  margin-top:28px;display:flex;flex-direction:column;gap:14px;
  opacity:0;transform:translateY(16px);
  transition:opacity .5s ease,transform .55s cubic-bezier(.16,1,.3,1);
}
.mobile-menu.open .mm-foot{opacity:1;transform:none;transition-delay:.55s;}
.mm-foot .btn{width:100%;padding:16px;font-size:16px;}
.mm-tg{
  display:flex;align-items:center;justify-content:center;gap:8px;
  font-size:15px;font-weight:600;color:var(--gray-dark);padding:6px;
}
.mm-tg svg{width:17px;height:17px;}
.mm-tg:active{color:var(--blue);}
.mm-social{display:flex;justify-content:center;gap:10px;margin-top:4px;}
.mm-social a{
  width:42px;height:42px;border-radius:12px;border:1px solid var(--line);
  display:grid;place-items:center;color:var(--gray-dark);
  transition:border-color .2s,color .2s,transform .2s;
}
.mm-social a:active{border-color:var(--blue);color:var(--blue);transform:scale(.94);}
.mm-social svg{width:20px;height:20px;}

/* ============================================================
   MOBILE MENU CONTACT BUTTONS — телефон, Telegram, MAX
   ============================================================ */
.mm-contact-buttons{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
  margin-top:2px;
}
.mm-contact-btn{
  display:grid;
  grid-template-columns:42px 1fr;
  align-items:center;
  gap:12px;
  min-height:58px;
  padding:10px 12px;
  border-radius:16px;
  background:#f7f9ff;
  border:1px solid #dbeafe;
  color:var(--text);
  text-decoration:none;
  box-shadow:0 6px 16px rgba(15,23,42,.04);
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}
.mm-contact-btn:active{
  transform:scale(.98);
  background:#eef4ff;
  border-color:rgba(31,122,255,.32);
}
.mm-contact-ico{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#fff;
  color:var(--blue);
  border:1px solid #dbeafe;
  box-shadow:0 6px 14px rgba(31,122,255,.08);
}
.mm-contact-ico svg{
  width:20px;
  height:20px;
}
.mm-contact-ico.mm-max{
  background:var(--blue);
  color:#fff;
  border-color:var(--blue);
  font-weight:900;
  font-size:18px;
  line-height:1;
}
.mm-contact-btn strong{
  display:block;
  font-size:14px;
  line-height:1.2;
  font-weight:800;
  color:var(--text);
}
.mm-contact-btn em{
  display:block;
  margin-top:3px;
  font-style:normal;
  font-size:12.5px;
  line-height:1.25;
  color:var(--gray-dark);
}
@media(max-width:380px){
  .mm-contact-btn{
    grid-template-columns:38px 1fr;
    min-height:54px;
    padding:9px 10px;
  }
  .mm-contact-ico{
    width:38px;
    height:38px;
    border-radius:13px;
  }
}


/* ============================================================
   11. FOOTER
   ============================================================ */
.footer{border-top:1px solid var(--line);padding:52px 0 110px;}
.footer .container{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap;align-items:flex-start;}
.footer-left{max-width:320px;}
.footer-left .logo{margin-bottom:14px;}
.footer-left p{color:var(--gray-dark);font-size:14px;line-height:1.6;}
.footer-nav{display:flex;gap:24px;flex-wrap:wrap;align-items:center;}
.footer-nav a{color:var(--gray-dark);font-size:14px;font-weight:500;transition:color .2s;}
.footer-nav a:hover{color:var(--blue);}
.footer-bottom{
  border-top:1px solid var(--line);margin-top:32px;padding-top:24px;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;
}
.footer-bottom span,.footer-bottom a{font-size:13px;color:var(--gray);}
.footer-bottom a:hover{color:var(--blue);}



/* ============================================================
   FOOTER CONTACTS — реквизиты, телефон, Telegram, MAX
   ============================================================ */
.footer-company{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:5px;
  color:var(--gray);
  font-size:13px;
  line-height:1.45;
}
.footer-company span:first-child{
  color:var(--text);
  font-weight:700;
}
.footer-contacts{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:220px;
}
.footer-contact{
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:var(--text);
  font-size:14px;
  font-weight:700;
  transition:color .2s ease;
}
.footer-contact:hover{
  color:var(--blue);
}
.footer-contact svg{
  width:17px;
  height:17px;
  color:var(--blue);
  flex:none;
}
.footer-socials{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.footer-socials a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:9px 12px;
  border-radius:12px;
  background:#f7f9ff;
  border:1px solid #dbeafe;
  color:var(--gray-dark);
  font-size:13px;
  font-weight:700;
  transition:background .2s ease,color .2s ease,transform .2s ease,border-color .2s ease;
}
.footer-socials a:hover{
  background:#eef4ff;
  color:var(--blue);
  border-color:rgba(31,122,255,.28);
  transform:translateY(-1px);
}
.footer-socials svg{
  width:17px;
  height:17px;
  color:var(--blue);
}
.footer-max-icon{
  width:17px;
  height:17px;
  border-radius:5px;
  display:grid;
  place-items:center;
  background:var(--blue);
  color:#fff;
  font-size:11px;
  font-weight:900;
  line-height:1;
}
@media(max-width:768px){
  .footer-contacts{
    width:100%;
  }
  .footer-socials a{
    flex:1 1 0;
    justify-content:center;
  }
}



/* ============================================================
   FOOTER BOTTOM REQUISITES — ИП и ИНН в нижней строке
   ============================================================ */
.footer-bottom-info{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 16px;
}
.footer-bottom-info span{
  font-size:13px;
  color:var(--gray);
}
.footer-bottom-info span:not(:first-child){
  color:var(--gray-dark);
  font-weight:600;
}
@media(max-width:680px){
  .footer-bottom-info{
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
  }
}

/* ============================================================
   FOOTER PC ALIGN — контакты ближе к правой части, рядом с меню
   ============================================================ */
@media(min-width:769px){
  .footer .container:first-child{
    align-items:flex-start;
  }
  .footer-left{
    margin-right:auto;
  }
  .footer-nav{
    order:2;
    margin-left:auto;
    max-width:320px;
    justify-content:flex-start;
  }
  .footer-contacts{
    order:3;
    margin-left:28px;
    align-items:flex-start;
  }
  .footer-extra-space{
    order:4;
  }
}

/* ВАУ-зона в подвале: место под 3D-анимацию */
.footer-extra-space{
  width:100%;
  flex-basis:100%;
  min-height:330px;
  margin-top:18px;
  position:relative;
  overflow:visible;
  border:none;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.footer-wow-canvas{
  position:absolute;
  inset:0;
  z-index:1;
}
.footer-wow-canvas canvas{
  display:block;
  width:100% !important;
  height:100% !important;
}
.footer-wow-center{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:2;
  width:96px;
  height:96px;
  border-radius:26px;
  background:rgba(255,255,255,.66);
  border:1px solid rgba(232,232,232,.86);
  display:grid;
  place-items:center;
  backdrop-filter:blur(12px);
  box-shadow:0 24px 70px rgba(15,23,42,.10);
  pointer-events:none;
}
.footer-wow-mark{
  display:grid;
  grid-template-columns:repeat(2,24px);
  gap:8px;
}
.footer-wow-mark span{
  width:24px;
  height:24px;
  border-radius:8px;
  background:#101114;
  box-shadow:0 10px 22px rgba(0,0,0,.16);
}
.footer-wow-mark span:last-child{
  background:var(--blue);
  box-shadow:0 12px 26px rgba(31,122,255,.36);
}
.footer-wow-chip{
  position:absolute;
  z-index:3;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:108px;
  padding:10px 13px;
  border-radius:16px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(232,232,232,.92);
  box-shadow:0 14px 34px rgba(15,23,42,.09);
  color:var(--text);
  font-size:13px;
  font-weight:700;
  backdrop-filter:blur(10px);
  animation:footerChipFloat 6s ease-in-out infinite;
}
.footer-wow-chip::before{
  content:'';
  width:9px;
  height:9px;
  flex:none;
  border-radius:50%;
  background:var(--blue);
  box-shadow:0 0 0 5px rgba(31,122,255,.10);
}
.footer-wow-chip.c1{left:9%;top:24%;transform:rotate(-5deg);animation-delay:.1s;}
.footer-wow-chip.c2{left:22%;bottom:18%;transform:rotate(4deg);animation-delay:.7s;}
.footer-wow-chip.c3{left:43%;top:16%;transform:rotate(-2deg);animation-delay:1.2s;}
.footer-wow-chip.c4{right:26%;bottom:18%;transform:rotate(-4deg);animation-delay:.4s;}
.footer-wow-chip.c5{right:11%;top:26%;transform:rotate(5deg);animation-delay:1s;}
.footer-wow-chip.c6{right:9%;bottom:32%;transform:rotate(-2deg);animation-delay:1.6s;}
.footer-wow-chip.c7{left:12%;bottom:39%;transform:rotate(3deg);animation-delay:1.9s;}
@keyframes footerChipFloat{
  0%,100%{translate:0 0;}
  50%{translate:0 -12px;}
}
.footer-wow-path{
  position:absolute;
  left:12%;
  right:12%;
  bottom:28px;
  z-index:2;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(31,122,255,.34), transparent);
}
.footer-wow-path::before,
.footer-wow-path::after{
  content:'';
  position:absolute;
  top:50%;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--blue);
  transform:translateY(-50%);
  box-shadow:0 0 0 8px rgba(31,122,255,.10);
}
.footer-wow-path::before{left:28%;}
.footer-wow-path::after{right:28%;}
@media(max-width:768px){
  .footer{padding-bottom:90px;}
  .footer-extra-space{min-height:240px;border-radius:0;margin-top:10px;}
  .footer-wow-canvas{display:none;}
  .footer-wow-center{width:78px;height:78px;border-radius:22px;}
  .footer-wow-mark{grid-template-columns:repeat(2,19px);gap:7px;}
  .footer-wow-mark span{width:19px;height:19px;border-radius:7px;}
  .footer-wow-chip{font-size:11px;min-width:auto;padding:8px 10px;border-radius:13px;}
  .footer-wow-chip.c3,.footer-wow-chip.c6,.footer-wow-chip.c7{display:none;}
  .footer-wow-chip.c1{left:6%;top:18%;}
  .footer-wow-chip.c2{left:8%;bottom:20%;}
  .footer-wow-chip.c4{right:8%;bottom:18%;}
  .footer-wow-chip.c5{right:7%;top:20%;}
}
