/* ===== OVERRIDE BOOTSTRAP CONTAINER ===== */
@media (min-width: 1200px) {
  .container {
    width: 1190px;
    max-width: 100%;
  }
}

/* ===== SITE CONTAINER ===== */
.site-wrapper {
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* ===== HEADER PRO ===== */
#header-pro {
  font-family: 'Open Sans', sans-serif;
}

/* --- Top bar: menu + socials --- */
.header-top {
  background: #2e608b;
  border-bottom: 1px solid #2e608b;
}

.header-top .site-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

/* Burger (mobile) */
.header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.header-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.header-burger.is-active span:nth-child(2) {
  opacity: 0;
}

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

/* Desktop menu */
.menu-scroll {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.menu-scroll li a {
  display: block;
  padding: 0 18px;
  line-height: 48px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.menu-scroll li a:hover,
.menu-scroll li a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

/* Account dropdown in header-top */
.header-account>a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.header-account>a i {
  font-size: 18px;
}

.header-account>a:hover,
.header-account>a:focus {
  opacity: 1;
  color: #fff;
  text-decoration: none;
}

.header-account .dropdown-menu {
  min-width: 180px;
  border-radius: 0;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  padding: 6px 0;
}

.header-account .dropdown-menu li a {
  padding: 8px 16px;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-account .dropdown-menu li a:hover {
  background: #f5f5f5;
  color: #2e608b;
}

.header-account .dropdown-menu .divider {
  margin: 4px 0;
}

/* Right group: button + socials */
.header-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

/* Social icons */
.header-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  /* background: rgba(255, 255, 255, 0.08); */
  color: #ccc;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.header-socials a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.header-socials a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.header-socials a img {
  width: 17px;
  height: 17px;
}

/* --- Bottom bar: logo + contacts --- */
.header-bottom {
  background: linear-gradient(rgb(246, 240, 240), rgb(246, 240, 240));
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-bottom .site-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  flex-wrap: wrap;
}

/* Logo */
.header-logo a {
  display: inline-block;
  text-decoration: none;
}

.header-logo img {
  max-height: 60px;
  width: auto;
}

.header-logo .site-name {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

/* Contact block */
.header-contacts {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-contact-icon {
  font-size: 25px;
  color: #2e608b;
  flex-shrink: 0;
}

.header-contact-item>div {
  display: flex;
  flex-direction: column;
}

.header-contact-item .label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  display: none;
}

.header-contact-item .value {
  font-size: 15px;
  color: #222;
  font-weight: 500;
  white-space: pre-line;
  line-height: 1.4;
  max-width: 180px;
}

.header-contact-item.phone .value {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.3px;
}

.header-contact-item.phone a {
  color: inherit;
  text-decoration: none;
  font-size: 21px;
}

.header-contact-item.phone a:hover {
  color: #2e608b;
}

/* "Заказать звонок" button in header-top */
.btn-order-call-header {
  display: inline-block;
  padding: 9px 18px;
  background: #3e6c94;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.btn-order-call-header:hover {
  background: #e8e8e8;
  color: #222;
}

@media (max-width: 767px) {
  .btn-order-call-header {
    display: none;
  }
}

/* Cart in header */
.header-cart {
  margin-left: 8px;
}

.header-cart #cart button {
  background: #2e608b;
  border: none;
  color: #fff;
  border-radius: 0px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  border: 1px solid #e6e6e6;
}

.header-cart #cart button:hover {
  background: #245070;
}

.header-cart #cart .dropdown-menu {
  min-width: 260px;
}

/* ===== MOBILE DRAWER ===== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.is-open {
  display: block;
  opacity: 1;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #1a1a1a;
  z-index: 1200;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.is-open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #2e2e2e;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: #ccc;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.mobile-nav-close:hover {
  color: #fff;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  flex: 1;
}

.mobile-nav-menu li a {
  display: block;
  padding: 13px 24px;
  color: #ccc;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav-menu li a:hover {
  color: #fff;
  padding-left: 32px;
}

.mobile-nav-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #2e2e2e;
}

.mobile-nav-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  text-decoration: none;
  transition: background 0.2s;
}

.mobile-nav-socials a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mobile-nav-socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .menu-scroll {
    display: none;
  }

  .header-burger {
    display: flex;
  }

  .header-contacts {
    gap: 16px;
  }

  .header-contact-item .label {
    display: none;
  }

  .header-contact-icon {
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  .header-bottom .site-wrapper {
    height: 120px;
    justify-content: center;
  }

  .header-logo img {
    max-height: 44px;
  }

  .header-contact-item.address {
    display: none;
  }

  .header-contact-item.hours {
    display: none;
  }

  .header-contact-item.phone .value a {
    font-size: 16px;
  }

  .header-cart {
    margin-left: 4px;
  }
}

@media (max-width: 479px) {
  .header-top .site-wrapper {
    height: 44px;
  }

  .header-socials {
    gap: 6px;
  }

  .header-socials a {
    width: 28px;
    height: 28px;
  }
}

span#cart-total {
  padding-left: 5px;
}

.mobile-nav-header img {
  display: none;
}

@media (max-width: 767px) {
  .header-cart #cart button {
    font-size: 12px;
  }

  .header-contact-item.phone .value a {
    font-size: 15px;
  }
}