/* ============================================================
   REDESIGN.CSS — каркас: хедер, меню, футер, мобильное меню
   ============================================================ */

/* ---------- Локальные сбросы внутри блоков ---------- */
#new-header *,
#new-header *::before,
#new-header *::after,
.top-menu-wrapper *,
.top-menu-wrapper *::before,
.top-menu-wrapper *::after,
.mobile-menu-panel *,
.mobile-menu-panel *::before,
.mobile-menu-panel *::after,
.footer-custom *,
.footer-custom *::before,
.footer-custom *::after {
  box-sizing: border-box;
}
#new-header a,
.top-menu-wrapper a,
.mobile-menu-panel a,
.footer-custom a { text-decoration: none; color: inherit; }
.mobile-menu-panel ul,
.top-menu-wrapper ul,
.footer-custom ul { list-style: none; margin: 0; padding: 0; }

.container-fluid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   ХЕДЕР
   ============================================================ */
#new-header {
  background: linear-gradient(180deg, #2a5298 0%, #3461a4 40%, #3a70b8 100%);
  padding: 15px 0;
  border-bottom: 4px solid #f4801f;
  position: relative;
  z-index: 1000;
}
#new-header .header-grid {
  display: grid;
  grid-template-columns: 160px 1fr 250px auto auto auto;
  align-items: center;
  gap: 15px;
}
#new-header .header-logo a {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#new-header .header-logo .logo-img {
  max-height: 50px;
  width: auto;
}
#new-header .header-logo .logo-sub {
  color: rgba(255,255,255,0.6);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}

#new-header .header-search { width: 100%; }
#new-header .search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s;
  padding: 2px;
}
#new-header .search-form:focus-within {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}
#new-header .search-icon {
  color: rgba(255,255,255,0.4);
  font-size: 16px;
  padding: 0 12px;
}
#new-header .search-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  font-size: 14px;
  color: #fff;
  outline: none;
  box-shadow: none;
}
#new-header .search-form input::placeholder { color: rgba(255,255,255,0.4); font-weight: 300; }
#new-header .search-form button {
  background: #f4801f;
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
#new-header .search-form button:hover { background: #d96e1a; transform: scale(1.02); }

#new-header .header-contacts { display: flex; flex-direction: column; gap: 4px; }
#new-header .contact-item { display: flex; align-items: center; gap: 8px; }
#new-header .contact-icon { color: rgba(255,255,255,0.4); font-size: 16px; width: 18px; text-align: center; }
#new-header .contact-phone { color: #fff; font-size: 18px; font-weight: 700; transition: color 0.3s; }
#new-header .contact-phone:hover { color: #f4801f; }
#new-header .contact-email { color: rgba(255,255,255,0.6); font-size: 13px; transition: color 0.3s; }
#new-header .contact-email:hover { color: #f4801f; }

#new-header .header-extra { display: flex; flex-direction: column; gap: 4px; }
#new-header .extra-messenger {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 13px; transition: color 0.3s; white-space: nowrap;
}
#new-header .extra-messenger:hover { color: #f4801f; }
#new-header .extra-icon { font-size: 16px; color: rgba(255,255,255,0.4); width: 18px; text-align: center; }
#new-header .extra-schedule {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.5); font-size: 12px; white-space: nowrap;
}
#new-header .schedule-icon { font-size: 14px; color: rgba(255,255,255,0.3); width: 18px; text-align: center; }

#new-header .header-socials { display: flex; gap: 6px; align-items: center; }
#new-header .social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.35);
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  border: 1px solid rgba(255,255,255,0.04);
}
#new-header .social-link:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(255,255,255,0.15);
}

#new-header .mobile-burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s;
  z-index: 1001;
}
#new-header .mobile-burger:hover { color: #f4801f; }

/* ============================================================
   ВЕРХНЕЕ МЕНЮ
   ============================================================ */
.top-menu-wrapper {
  background: #f8f9fc;
  border-top: 1px solid #e8edf4;
  border-bottom: 1px solid #e8edf4;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.top-menu-wrapper.sticky {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-top-color: transparent;
}
.top-menu-wrapper .store-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
}
.top-menu-wrapper .store-horizontal > li { position: relative; display: inline-block; }
.top-menu-wrapper .store-horizontal > li > a {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #1a2a3a;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}
.top-menu-wrapper .store-horizontal > li > a:hover {
  color: #3461a4;
  background: rgba(52,97,164,0.06);
}
.top-menu-wrapper .store-horizontal > li > a .fa-angle-down {
  font-size: 12px;
  margin-left: 4px;
  color: #94a3b8;
  transition: transform 0.3s ease;
}
.top-menu-wrapper .store-horizontal > li:hover > a .fa-angle-down { transform: rotate(180deg); }
.top-menu-wrapper .store-horizontal > li > a.root-item-selected {
  color: #3461a4;
  background: rgba(52,97,164,0.04);
}
.top-menu-wrapper .store-horizontal > li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  z-index: 100;
  border-top: 3px solid #3461a4;
}
.top-menu-wrapper .store-horizontal > li:hover ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.top-menu-wrapper .store-horizontal > li ul li a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: #4a5a6a;
  transition: all 0.2s ease;
  position: relative;
}
.top-menu-wrapper .store-horizontal > li ul li a:hover {
  color: #3461a4;
  background: rgba(52,97,164,0.06);
  padding-left: 26px;
}
.top-menu-wrapper .store-horizontal > li ul li a::before {
  content: '›';
  position: absolute;
  left: 8px;
  top: 8px;
  color: #3461a4;
  font-size: 16px;
  opacity: 0;
  transition: all 0.2s ease;
}
.top-menu-wrapper .store-horizontal > li ul li a:hover::before { opacity: 1; left: 10px; }

/* ============================================================
   FLOATING BURGER
   ============================================================ */
#floatingBurgerContainer {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  pointer-events: none;
  max-width: 48px;
}
#floatingBurgerContainer.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#floatingBurgerContainer .floating-burger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3461a4;
  color: #fff;
  font-size: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(52,97,164,0.3);
  transition: all 0.3s ease;
}
#floatingBurgerContainer .floating-burger-btn:hover { background: #2a4f87; transform: scale(1.05); }
#floatingBurgerContainer .floating-burger-btn:active { transform: scale(0.92); }

/* ============================================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================================ */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active { display: block; opacity: 1; }
.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: -340px;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: #3461a4;
  z-index: 9999;
  padding: 50px 20px 30px;
  overflow-y: auto;
  transition: left 0.4s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 4px 0 30px rgba(0,0,0,0.15);
}
.mobile-menu-panel.active { left: 0; }
.mobile-menu-panel .menu-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.3s;
  z-index: 10;
}
.mobile-menu-panel .menu-close:hover { transform: rotate(90deg); }
.mobile-menu-panel .mobile-menu-list li { margin-bottom: 2px; }
.mobile-menu-panel .mobile-menu-list li hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 10px 0;
}
.mobile-menu-panel .mobile-menu-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: all 0.3s;
}
.mobile-menu-panel .mobile-menu-list li a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.mobile-menu-panel .mobile-menu-list li a i {
  font-size: 18px;
  width: 24px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}
.mobile-menu-panel .mobile-menu-list li a:hover i { color: #f4801f; }
.mobile-menu-panel .footer_soc {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 10px 0;
}
.mobile-menu-panel .footer_soc a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.3);
  font-size: 22px;
  transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  border: 1px solid rgba(255,255,255,0.04);
}
.mobile-menu-panel .footer_soc a:hover {
  background: rgba(255,255,255,0.10);
  transform: scale(1.08);
  color: #fff;
}

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer-custom {
  background: linear-gradient(0deg, #2a5298 0%, #3461a4 40%, #3a70b8 100%);
  padding: 20px 0 16px;
  border-top: 4px solid #f4801f;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  margin-top: 40px;
}
.footer-custom .footer-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 4px 0 8px;
}
.footer-custom .footer-social-row { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.footer-custom .footer-social-row .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}
.footer-custom .footer-social-row .social-link svg {
  color: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
  width: 18px;
  height: 18px;
}
.footer-custom .footer-social-row .social-link svg text,
.footer-custom .footer-social-row .social-link svg path { fill: currentColor; }
.footer-custom .footer-social-row .social-link:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  transform: scale(1.08);
  border-color: rgba(255,255,255,0.15);
}
.footer-custom .footer-phone {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.footer-custom .footer-phone i {
  font-size: 16px;
  color: rgba(255,255,255,0.35);
  transition: color 0.3s ease;
}
.footer-custom .footer-phone:hover { color: #f4801f; transform: translateY(-2px); }
.footer-custom .footer-phone:hover i { color: #f4801f; }
.footer-custom .footer-feedback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f4801f;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 20px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow: 0 2px 10px rgba(244,128,31,0.2);
  white-space: nowrap;
}
.footer-custom .footer-feedback i {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  transition: transform 0.3s ease;
}
.footer-custom .footer-feedback:hover {
  background: #d96e1a;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(244,128,31,0.35);
  color: #fff;
}
.footer-custom .footer-feedback:hover i { transform: rotate(-8deg) scale(1.1); }
.footer-custom .footer-copy {
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  margin-top: 14px;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
  font-weight: 300;
}

/* ============================================================
   АДАПТИВ ХЕДЕРА/МЕНЮ/ФУТЕРА
   ============================================================ */
@media (max-width: 1024px) {
  #new-header .header-grid { grid-template-columns: 140px 1fr 180px auto auto; gap: 12px; }
  #new-header .header-socials { display: none; }
  .top-menu-wrapper .store-horizontal > li > a { padding: 12px 14px; font-size: 13px; }
}
@media (max-width: 900px) {
  .top-menu-wrapper .store-horizontal > li > a { padding: 10px 10px; font-size: 12px; letter-spacing: 0; }
}
@media (max-width: 800px) {
  .top-menu-wrapper .store-horizontal > li > a { padding: 8px 7px; font-size: 11px; letter-spacing: 0; }
}
@media (max-width: 700px) {
  .top-menu-wrapper .store-horizontal > li > a { padding: 8px 5px; font-size: 10px; letter-spacing: 0; }
}
@media (max-width: 600px) {
  .top-menu-wrapper { display: none; }
  #new-header .mobile-burger { display: block; }
  #new-header .header-grid { grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; }
  #new-header .header-logo { grid-column: 1 / 2; grid-row: 1 / 2; }
  #new-header .header-logo a { flex-direction: row; justify-content: flex-start; gap: 10px; }
  #new-header .header-logo .logo-img { max-height: 40px; }
  #new-header .header-search { grid-column: 1 / -1; grid-row: 2 / 3; }
  #new-header .search-form { border-radius: 30px; }
  #new-header .search-form input { font-size: 13px; padding: 8px 0; }
  #new-header .search-form button { padding: 6px 14px; font-size: 12px; }
  #new-header .header-contacts { grid-column: 1 / 2; grid-row: 3 / 4; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  #new-header .contact-phone { font-size: 14px; }
  #new-header .contact-email { font-size: 12px; }
  #new-header .header-extra { grid-column: 2 / 3; grid-row: 3 / 4; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; }
  #new-header .extra-messenger { font-size: 12px; }
  #new-header .extra-schedule { font-size: 11px; }
  #new-header .mobile-burger { grid-column: 3 / 4; grid-row: 3 / 4; font-size: 24px; padding: 4px; justify-self: end; }
  .mobile-menu-panel { width: 300px; padding: 50px 16px 30px; }
  .mobile-menu-panel .mobile-menu-list li a { font-size: 14px; padding: 8px 10px; }
}
@media (max-width: 480px) {
  #new-header { padding: 10px 0; }
  #new-header .header-logo .logo-img { max-height: 35px; }
  #new-header .contact-phone { font-size: 13px; }
  #new-header .contact-email { font-size: 11px; }
  .mobile-menu-panel { width: 280px; padding: 45px 14px 20px; }
  .mobile-menu-panel .mobile-menu-list li a { font-size: 13px; padding: 6px 8px; gap: 10px; }
  .footer-custom .footer-grid { flex-direction: column; align-items: center; gap: 12px; }
  .footer-custom .footer-copy { font-size: 11px; }
}
@media (max-width: 420px) {
  .footer-custom .footer-phone { font-size: 15px; }
  .footer-custom .footer-feedback { font-size: 12px; padding: 6px 16px; }
}
@media (max-width: 360px) {
  #floatingBurgerContainer { top: 8px; right: 10px; }
  #floatingBurgerContainer .floating-burger-btn { width: 40px; height: 40px; font-size: 18px; }
  .mobile-menu-panel { width: 260px; padding: 40px 12px 16px; }
  .mobile-menu-panel .mobile-menu-list li a { font-size: 12px; padding: 5px 6px; gap: 8px; }
}