* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

body {
  margin: 0;
  padding: 0;
  padding-top: 70px;
}

html, body {
  overflow-x: hidden; 
  width: 100%;
 
}

body, h1, h2, h3, h4, h5, h6, .mainNavigation_dim a, .buttonLarge_dim {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
}

.contacts .phone a,
.phone a,
.getConsult_dim a.buttonLarge_dim,
.buttonLarge_dim {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500;       
  letter-spacing: 0.5px;   
  font-size: 15px;        
}

.phone a {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800;
}

.header {
  background-color: #2c2c2c; 
  color: #ffffff;
  padding: 15px 0;
  font-family: Raleway, regular;
  position: fixed; 
  top: 0;   
  left: 0;
  width: 100%;       
  z-index: 2000;    
  background: #2c2c2c; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.5); 
  
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center; 
  justify-content: space-between; 
  padding: 0 20px;
}


.logo img{
  width: 170px;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-text {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
}


.nav-list {
  list-style: none;
  display: flex;
  gap: 50px; 
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: #F5F5F5;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: #c5a367;
}

.contacts {
  text-align: right;
}

.phone {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
}

.phone a {
  color: #F5F5F5;
  text-decoration: none;
  margin-left: 10px;
  transition: color 0.3s;
}

.callback {
  font-size: 12px;
  color: #aaaaaa;
  display: block;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.brand {
  font-size: 40px;
  font-weight: bold;
  color: #c5a367;
  transition: color 0.3s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-link:hover .brand {
  color: #ffffff;
}

.logo-link:hover .logo-img {
  transform: scale(1.1);
}

.phone:hover a {
  color: #CFA564; 
}

.services-dropdown {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(44, 44, 44, 0.95); 
  
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px); 

  border-bottom: 1px solid rgba(207, 165, 100, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;

  max-height: calc(100vh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 40px 0;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px)
}

.services-dropdown.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #F5F5F5;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.service-item:hover {
  color: #CFA564;
}

.service-item svg {
    transition: transform 0.3s ease-out;  
}

.service-item:hover svg {
  transform: translateY(-5px);
}

.services-dropdown .menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.services-dropdown.is-active .menu-item {
    opacity: 1;
    transform: translateY(0);
}

.services-dropdown.is-active .menu-item:nth-child(1) { transition-delay: 0.1s; }
.services-dropdown.is-active .menu-item:nth-child(2) { transition-delay: 0.15s; }
.services-dropdown.is-active .menu-item:nth-child(3) { transition-delay: 0.2s; }
.services-dropdown.is-active .menu-item:nth-child(4) { transition-delay: 0.25s; }
.services-dropdown.is-active .menu-item:nth-child(5) { transition-delay: 0.3s; }

@media (max-width: 768px) {
  .services-dropdown {
    top: 70px; 
    padding: 20px 0;
  }

  .services-grid {
    grid-template-columns: 1fr; 
    gap: 15px;
    padding: 0 10px;
  }

  .service-item {
    padding: 12px; 
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 8px;
    font-size: 16px; 
  }
  
  .callback {
    display: none; 
  }
}

.burger-menu {
  display: none; 
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
  padding: 10px;
}

.burger-menu span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #CFA564; 
  transition: all 0.3s ease;
  border-radius: 2px;
}


.burger-menu.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger-menu.is-active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}



@media (max-width: 992px) {
  body {
    padding-top: 70px; 
  }

  .burger-menu {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 80%;
    height: 100vh;
    background: #2c2c2c;
    padding: 100px 40px;
    transition: 0.5s;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  .nav.is-active {
    right: 0; 
  }

  .nav-list {
    flex-direction: column;
    gap: 30px;
  }

   .contacts {
    order: 2;
    margin-right: 25px;
    align-items: center;
  }

  .logo {
    order: 1;
  }

  .logo img {
    width: 130px;
  }

  .phone a {
    font-size: 15px; 
  }

}

