/* ===== HEADER ===== */
.site_header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.header_topbar {
  background: #f2f2f2;
  height: 30px;
  transition: transform .3s ease;
}

.header_topbar-inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header_main {
  height: 65px;
  background: #fff;
  transition: height .2s ease, background .2s ease, margin-top .2s;
}

.header_main .header_container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site_header--compact .header_topbar {
  transform: translateY(-100%);
}

.site_header--compact .header_main {
  height: 70px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  margin-top: -30px;
}

.header_container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LEFT / RIGHT */
.header_left,
.header_right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* LINKS */
.header_top-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  justify-content: flex-end;
}

.header_top-links a {
  color: #444;
  text-decoration: none;
}

.header_top-links a:hover {
  color: #000000;
}

/* LOGO */
.logo img {
  width: 135px;
  height: 55px;
  object-fit: contain;
}

/* ACTIONS */
.header_actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 18pt !important;
  font-family: Roboto;
  font-weight: 500;
}

.cabinet-btn {
  padding: 9px 16px;
  background: #00a943;;
  color: #fff;
  border-radius: 15px;
  font-size: 11pt !important;
  font-family: Roboto;
  font-weight: 300;
}

body {
  padding-top: 130px; /* 40 + 90 */
}

.site_header--compact ~ body {
  padding-top: 70px;
}

/* ===== BURGER ===== */
.header_burger {
  display: none;
  width: 28px;
  height: 22px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.header_burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
  transition: all 0.3s ease;
}

.header_burger span:nth-child(1) { top: 0; }
.header_burger span:nth-child(2) { top: 10px; }
.header_burger span:nth-child(3) { top: 20px; }

/* BURGER → X */
.header_burger.active span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}
.header_burger.active span:nth-child(2) {
  opacity: 0;
}
.header_burger.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 65px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 65px);
  transition: left 0.3s ease;
  z-index: 900;
  padding: 24px;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-menu.open {
  left: 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 35px;
  align-items: center;
}

.mobile-nav a {
  font-size: 20px;
  color: #000;
  text-decoration: none;
  display: block;
  padding: 8px;
  font-weight: bold;
  text-align: center;
  border: 1px solid #adadad;
  border-radius: 10px;
  margin: 0px 70px;
  width: 300px;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.mobile-nav b {
  font-size: 26px;
  color: #000;
  padding: 8px;
  text-align: center;
  margin: 0px 70px;
}

.mobile-phone {
  font-size: 20px;
  font-weight: 600;
}

.mobile-btn {
  padding: 12px;
  background: #007bff;
  color: #fff;
  border-radius: 8px;
  text-align: center;
}

/* ===== COMPACT HEADER ===== */
.site_header--compact {
  height: 70px;
}

.site_header--compact .header_top-links {
  display: none;
}

.site_header--compact .header_left,
.site_header--compact .header_right {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.site_header--compact .header_container {
  padding-top: 0;
  padding-bottom: 0;
}

.site_header--compact {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* ===== BLOCK SCROLL ===== */
.no-scroll {
  overflow: hidden;
}

/* ===== ADAPTIVE ===== */
@media (max-width: 992px) {
  .header_left nav,
  .header_right nav,
  .header_actions {
    display: none;
  }

  .header_burger {
    display: block;
  }
}

@media (max-width: 992px) {
  .header_topbar {
    display: none;
  }
}

/* чтобы контент не уехал под header */
body {
  padding-top: 90px;
}
