header#masthead {
  padding: clamp(0.312rem, 0.2128rem + 0.4072vw, 0.625rem) 0;
  background-color:#FFFDF8;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header#masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home header#masthead {
  background: #FFFDF8;
}

header#masthead.sticky {
  background-color: #FFFDF8;
  z-index: 999;
  top: 0;
  position: sticky;
}

/* Общий стиль ссылок в меню */
#primary-menu .menu-item a {
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  color: #000;
  position: relative;
  text-decoration: none; /* Убираем стандартное подчеркивание */
  padding-bottom: 5px; /* Отступ для подчеркивания */
}
#primary-menu .menu-item a:hover {
  transition: transform 0.3s ease-in-out;
  color: #fcc004;
}

/* Убираем подчеркивание у всех пунктов по умолчанию */
#primary-menu .menu-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #fcc004; /* Жёлтое подчеркивание */
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

/* Показываем подчеркивание при ховере */
#primary-menu .menu-item a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}



.home #primary-menu .menu-item a {
  color: #000;
  transition: 0.3s ease;
}

.home #primary-menu .menu-item:hover a {
  color: var(--Accent);
  transition: 0.3s ease;
}

.main-navigation ul {
  column-gap: 40px;
}

.site-right {
  display: flex;
  align-items: center;
  column-gap: 50px;
}

a.open-popup.header_btn {
  padding: 15px 28px;
  border-radius: 12px;
  background-color: var(--Accent);
  text-transform: uppercase;
  font-size: 16px;
  line-height: normal;
  display: flex;
  align-items: center;
  column-gap: 8px;
  color: #000;
}
svg.burger path {
  fill: #000;
}
a.open-popup.header_btn path {
  fill: #000;
}

@media screen and (max-width: 768px) {
  a.open-popup.header_btn {
    display: none;
  }
  .site-branding img.custom-logo,
  .mob-menu-logo img.custom-logo {
    width: 87px;
    height: 46px;
  }
  
}