.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffffffa3;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  height: 100px;
}

.header__column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 20px;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  /* max-width: 1440px; */
  margin: 0 auto;
}

@media (min-width: 768px) {
  .header-bar {
    padding: 10px 60px;
  }
}

@media (max-width: 1250px) {
  .header-bar {
    padding: 10px 10px;
  }
}

.header__lang {
  display: flex;
  column-gap: 15px;
  @media (max-width: 1024px) {
    column-gap: 7px;
  }
}

.header__lang--link {
  font-weight: 300;
  font-size: 16px;
  color: #000;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .header__lang--link {
    font-size: 18px;
  }
}

.header__lang--link-active {
  font-weight: 400;
  cursor: default;
}

.header__notice {
  display: none;
  font-size: 16px;
  text-wrap: nowrap;
}

@media (min-width: 768px) {
  .header__notice {
    font-size: 18px;
    display: block;
    margin: 0;
  }
}

.header__link-login {
  display: none;
  font-size: 16px;
}

.header__contact-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.header__contact-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: #000;
}

.header__contact-item img {
  height: 21px;
  margin-right: 7px;
}

.header__contact-text {
  margin: 0;
  font-size: 16px;
  text-decoration: none;
  color: #000;
  white-space: normal;
  word-break: break-word;
}

/* Адаптивность для контактов на планшетах */
@media (max-width: 1080px) and (min-width: 768px) {
  .header__contact-text {
    font-size: 14px;
  }

  .header__contact-item img {
    height: 18px;
    margin-right: 5px;
  }
}

@media (min-width: 768px) {
  .header__link-login {
    display: block;
    color: #000;
    font-size: 18px;
    text-decoration: none;
  }
}

/* Скрываем кнопку "Личный кабинет" на планшетах и мобильных */
@media (max-width: 1080px) {
  .header__link-login {
    display: none;
  }
}

.header__logo {
  z-index: 200;
  height: 20px;
}

.header__logo img {
  height: 100%;
}

/* Десктопная навигация */
.header__links {
  display: flex;
  justify-content: center;
}

/* Скрываем десктопную навигацию на планшетах и мобильных */
@media (max-width: 1080px) {
  .header__links--desktop {
    display: none;
  }
}

.header__links::-webkit-scrollbar {
  display: none;
}

.header__links--link {
  display: block;
  font-size: 14px;
  background-color: #ffffff5b;
  border-radius: 10px;
  padding: 5px 8px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

@media (min-width: 768px) {
  .header__links--link {
    font-size: 18px;
  }
}

.header__link {
  font-size: 14px;
  display: none;
  z-index: 200;
  cursor: pointer;
  user-select: none;
}

@media (min-width: 768px) {
  .header__link {
    font-size: 18px;
    display: block;
    white-space: nowrap;
    color: var(--color-text-accent);
    font-weight: 500;
  }
}

/* Скрываем кнопку заявки на мобильных, она будет в сайдбаре */
@media (max-width: 1080px) {
  .header__link {
    display: none;
  }
}

@media (min-width: 768px) {
  .header__links--item {
    position: relative;
  }
}

/* Кнопка гамбургер-меню */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

@media (max-width: 1080px) {
  .header__burger {
    display: flex;
  }
}

.header__burger span {
  width: 100%;
  height: 3px;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Боковое меню */
.header__sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.header__sidebar.active {
  visibility: visible;
  opacity: 1;
}

.header__sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.header__sidebar-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  max-width: 85vw;
  height: 100%;
  background-color: #fff;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.header__sidebar.active .header__sidebar-content {
  transform: translateX(0);
}

.header__sidebar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e5e5;
}

.header__sidebar-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

p.bab {
    font-size: 1.17em; 
    font-weight: bold; 
    margin: 1em 0; 
    line-height: 1.2; 
    font-family: inherit;
    display: block;
    color: inherit;
}

.header__sidebar-nav {
  padding: 24px 0;
}

.header__sidebar-item {
  border-bottom: 1px solid #f0f0f0;
}

.header__sidebar-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.header__sidebar-link:hover {
  background-color: #f8f9fa;
  color: var(--color-text-accent);
}

.header__sidebar-link--primary {
  color: var(--color-text-accent);
  font-weight: 600;
}

.header__sidebar-link--primary:hover {
  background-color: var(--color-text-accent);
  color: white;
}

.header__sidebar-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
  color: #666;
}

.header__sidebar-item.active .header__sidebar-arrow {
  transform: rotate(180deg);
}

/* Выпадающие меню в сайдбаре */
.header__sidebar-dropdown {
  background-color: #f8f9fa;
  border-top: 1px solid #e5e5e5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.header__sidebar-dropdown:not(.hidden) {
  max-height: 130vh;
  /* padding: 16px 0; */
}

.header__sidebar-dropdown-section {
  /* margin-bottom: 24px; */
}

.header__sidebar-dropdown-title {
  color: #666;
  font-size: 14px;
  font-weight: 600;
  padding: 16px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header__sidebar-dropdown-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 24px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.header__sidebar-dropdown-item:hover {
  background-color: #fff;
}

.header__sidebar-dropdown-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.header__sidebar-dropdown-item h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.header__sidebar-dropdown-item p {
  margin: 0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.header__sidebar-dropdown-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: transparent;
}

/* Выпадающие меню для десктопа */
.headers__links-dropdowns--list {
  position: absolute;
  left: 0;
  right: 0;
  height: calc(100vh - 70px);
  top: 70px;
  overflow-y: auto;
  text-align: left;
  background-color: #fff;
  border-radius: 16px;
  padding: 30px 30px;
  display: flex;
  flex-direction: column;
  column-gap: 25px;
  margin-top: 10px;
  list-style-type: none;
  margin: 0;
  z-index: 1000;
  overflow: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.headers__links-dropdowns--list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 600px) {
  .headers__links-dropdowns--list {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .headers__links-dropdowns--list {
    position: absolute;
    top: 80px;
    width: max-content;
    height: max-content;
    text-align: left;
    box-shadow: 0 10px 20px #60606021;
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: row;
    column-gap: 25px;
    margin-top: 10px;
    list-style-type: none;
    margin: 0;
  }
}

.headers__links-dropdowns--item {
}

.headers__links-dropdown--list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  row-gap: 8px;
  flex-direction: column;
}

.headers__links-dropdown--item {
  position: relative;
  display: grid;
  row-gap: 2px;
  column-gap: 12px;
  grid-template-columns: 24px 1fr;
  grid-template-rows: max-content max-content;
}

.headers__links-dropdown--item img {
  width: 24px;
  height: 24px;
  grid-row: 1/3;
}

.headers__links-dropdown--item h3 {
  grid-column: 2;
  margin: 0;
  font-size: 18px;
}

.headers__links-dropdown--item p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 14px;
}

.headers__links-dropdown--item a {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  text-decoration: none;
}

.headers__links-dropdown--title {
  color: #969696;
  font-size: 18px;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 20px;
  text-transform: uppercase;
}

#headerServices,
#headerMedia {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

#headerServices:not(.hidden),
#headerMedia:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}


.header__sidebar-dropdown-item-title {
  font-size: 1.17em;
  font-weight: bold; 
  margin: 0 0 0.5em 0; 
  display: block; 
  line-height: 1.2; 
}



.headers__links-dropdown--item-title {
  font-size: 1.17em; 
  font-weight: bold; 
  margin: 0 0 0.5em 0;
  display: block; 
  line-height: 1.2; 
}