.header {
  position: relative;
  z-index: 10;
}

.header_row {
  display: flex;
  align-items: center;
  min-height: 150px;
  padding-block: 20px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 4px;
}

.logo_simbayk img {
  width: auto;
  height: 109.5px;
}

.logo_rmk img {
  width: 78px;
  height: 65px;
}

.logo_name {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  font-family: "Benguiat", "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.05;
  text-shadow: 0 12px 51px rgba(15, 89, 3, 0.1);
}

.logo_name img {
  width: 75px;
  height: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.385vw, 65px);
  margin-left: 45.5px;
}

.menu a {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.menu a:hover {
  color: #e2fc04;
}

.phones {
  display: flex;
  align-items: center;
  gap: 25px;
}

.phones a {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.phones a:hover {
  color: #e2fc04;
}

.phones_desktop {
  margin-left: auto;
  margin-right: 50px;
}

@media (min-width: 1551px) {
  /* в макете текст меню и телефонов стоит чуть выше центра логотипов */
  .menu,
  .phones_desktop {
    position: relative;
    top: -4px;
  }
}

.menu .phones {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  flex-shrink: 0;
}

.burger span {
  display: block;
  height: 2px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.is_open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is_open span:nth-child(2) {
  opacity: 0;
}

.burger.is_open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1550px) {
  .header_row {
    justify-content: space-between;
    min-height: 120px;
    padding-block: 18px;
  }

  .logo_simbayk img {
    height: 80px;
  }

  .burger {
    display: flex;
  }

  .phones_desktop {
    display: none;
  }

  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: #121314;
    border-top: 1px solid rgba(140, 140, 140, 0.5);
    padding: 10px 20px 20px;
  }

  .menu.is_open {
    display: flex;
  }

  .menu a {
    padding-block: 14px;
    border-bottom: 1px solid rgba(140, 140, 140, 0.5);
  }

  .menu .phones {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
  }

  .menu .phones a {
    padding-block: 14px;
    border-bottom: 1px solid rgba(140, 140, 140, 0.5);
  }

  .menu .phones a:last-child {
    border-bottom: none;
  }
}

@media (min-width: 700px) and (max-width: 1100px) {
  .menu {
    padding: 10px 50px 20px;
  }
}

.header_call,
.menu_brand {
  display: none;
}

/* мобильная версия: логотипы слева, трубка и бургер справа, меню открывается на весь экран */
@media (max-width: 767px) {
  .header,
  .header_row {
    height: 76px;
    min-height: 0;
  }

  .header_row {
    align-items: flex-start;
    justify-content: flex-start;
    padding-block: 5px 0;
  }

  .logo_simbayk {
    margin-left: 2px;
  }

  .logo_simbayk img {
    width: 65.5px;
    height: 65.7px;
  }

  .logo_rmk {
    margin: 23px 0 0 17px;
  }

  .logo_rmk img {
    width: 51px;
    height: 42px;
  }

  .header_call {
    display: block;
    margin: 30.2px 0 0 auto;
  }

  .header_call img {
    width: 25px;
    height: 24px;
  }

  .burger {
    position: relative;
    z-index: 2;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    margin: 33.3px 0 0 20px;
    padding: 0;
  }

  .burger span {
    height: 1.5px;
  }

  /* область нажатия шире самого значка */
  .burger::after {
    content: "";
    position: absolute;
    inset: -14px -10px;
  }

  /* крестик чуть крупнее бургера: 19x19 в макете меню */
  .burger.is_open span:nth-child(1),
  .burger.is_open span:nth-child(3) {
    width: 26.5px;
    margin-left: -1.25px;
  }

  .burger.is_open span:nth-child(1) {
    transform: translateY(8.25px) rotate(45deg);
  }

  .burger.is_open span:nth-child(3) {
    transform: translateY(-8.25px) rotate(-45deg);
  }

  .menu.is_open {
    position: fixed;
    inset: 0;
    z-index: 1;
    align-items: flex-start;
    padding: 90px 20px 30px;
    overflow-y: auto;
    background: #161819;
    border-top: none;
  }

  .menu.is_open .menu_brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 31.2px;
  }

  .menu_brand img {
    width: 49px;
    height: 41px;
  }

  .menu_brand p {
    max-width: 200px;
    font-size: 12px;
    line-height: 17px;
    color: #8c8c8c;
  }

  .menu a,
  .menu .phones a {
    padding-block: 0;
    border-bottom: none;
    font-size: 14px;
    line-height: 35px;
  }

  .menu .phones {
    flex-direction: column-reverse;
    margin-top: 25px;
  }

  .menu .phones a {
    color: #e2fc04;
  }
}
