/* Desktop Menu */
.navigation {
  gap: 40px;
  display: flex;
  padding: 16px 0;
  flex-wrap: wrap;
  align-items: center;
}
.navigation .nav-item {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 0;
  transition: color .2s;
  position: relative;
}
.navigation .nav-item:hover { color: rgba(255,255,255,.8); }
.navigation .nav-item.active {
  color: #fff;
}
.navigation .nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}
@media (max-width: 768px) {
  .navigation { display: none; }
}

/* Mobile Menu */
.mob-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(12,12,12,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  overflow-y: auto;
  animation: mobMenuIn .3s ease;
}
@keyframes mobMenuIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.mob-menu .mob-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s;
  z-index: 2;
}
.mob-menu .mob-close-btn:hover {
  background: rgba(255,255,255,.12);
  transform: rotate(90deg);
}
.mob-menu .mob-close-btn img {
  width: 16px;
  height: 16px;
  filter: brightness(2);
}
.mob-menu .container {
  padding: 24px 20px 40px;
  max-width: 480px;
  margin: 0 auto;
}
.mob-menu .mob-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mob-menu .mob-menu-top-right {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mob-menu .Contact-Info {
  display: flex;
  align-items: center;
}
.mob-menu .Contact-Info .btn-primary {
  padding: 10px 24px;
  font-size: 14px;
  border-radius: 10px;
  white-space: nowrap;
}
.mob-menu .logo img {
  width: 120px;
}
.mob-menu .social-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mob-menu .social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  transition: background .2s;
}
.mob-menu .social-icons a:hover {
  background: rgba(255,255,255,.1);
}
.mob-menu .social-icons img {
  width: 20px;
  height: 20px;
}
.mob-menu .menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 0;
}
.mob-menu .menu-item {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: all .2s;
  display: block;
  text-align: left;
}
.mob-menu .menu-item:last-child {
  border-bottom: none;
}
.mob-menu .menu-item:hover,
.mob-menu .menu-item:active {
  color: #fff;
  padding-left: 8px;
}
.mob-menu .menu-item.active {
  color: var(--color-accent);
}
.mob-menu .menu-item.expandable {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mob-menu .menu-item.expandable::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(255,255,255,.3);
  border-bottom: 2px solid rgba(255,255,255,.3);
  transform: rotate(-45deg);
  transition: transform .3s;
  flex-shrink: 0;
}
.mob-menu .menu-item.expanded {
  color: var(--color-accent);
}
.mob-menu .menu-item.expanded::after {
  transform: rotate(45deg);
  border-color: var(--color-accent);
}
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.submenu.expanded {
  position: relative;
  max-height: 300px;
}
.mob-menu .menu ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0 0 0 16px;
  margin: 0;
  gap: 0;
}
.mob-menu .menu li {
  color: rgba(255,255,255,.5);
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.mob-menu .menu li:last-child { border-bottom: none; }
.mob-menu .copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 8px;
}
.mob-menu .copyright a {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  text-decoration: none;
}
.mob-menu .copyright span:last-child {
  color: rgba(255,255,255,.3);
  font-size: 13px;
}
.links-services, .links-installation {
  width: 100%;
}

@media (max-width: 768px) {
  .mob-menu .mob-menu-top {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .mob-menu .mob-menu-top-right {
    gap: 8px;
  }
  .mob-menu .Contact-Info {
    width: auto;
  }
}
@media (max-width: 430px) {
  .mob-menu .Contact-Info {
    width: auto;
  }
  .mob-menu .copyright {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Updated mobile menu top */
.mob-menu-top {
  padding: 20px 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mob-menu-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mob-menu-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mob-menu-cta {
  width: 100%;
}
.btn-mob-login {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  background: var(--color-accent);
  color: var(--color-black);
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s;
  box-sizing: border-box;
}
.btn-mob-login:hover {
  opacity: .9;
  transform: translateY(-1px);
}
.mob-menu .mob-close-btn {
  top: 28px;
  right: 24px;
}

/* Fix close button position */
.mob-menu .mob-close-btn {
  top: 24px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  z-index: 10;
}
/* Better telegram icon */
.mob-menu .social-icons a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mob-menu .social-icons a img {
  width: 18px;
  height: 18px;
  opacity: .8;
}

/* Fix: close button above everything */
.mob-menu .mob-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  z-index: 100;
}
.mob-menu .container {
  padding-top: 60px;
}
.mob-menu .mob-menu-top {
  padding-top: 0;
}
/* Smaller войти button */
.mob-menu .btn-primary,
.mob-menu .Contact-Info .btn-primary {
  padding: 10px 20px;
  font-size: 13px;
  border-radius: 8px;
}

/* ===== MOB MENU REDESIGN ===== */
.mob-menu-cta > div {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
}
.mob-menu-cta .btn-mob-login {
  flex: 1;
}
.mob-menu .menu-item {
  text-align: left !important;
  font-size: 15px !important;
  color: rgba(255,255,255,0.65) !important;
  padding: 13px 0 !important;
}
.mob-menu .menu-item:hover,
.mob-menu .menu-item:active {
  color: #fff !important;
  padding-left: 6px !important;
}
.mob-menu .menu li a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 13px;
  display: block;
  padding: 2px 0;
}
.mob-menu .menu li a:hover {
  color: #d6ff40;
}
