/* Header + burger — Maxwise visual language */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px;
  background: #FFF;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1840px;
  margin: 0 auto;
  width: 100%;
}

.header__logo {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #111;
  flex-shrink: 0;
  z-index: 2;
  transition: color 0.2s ease;
}

.header__logo:hover {
  color: #1976D2;
}

.header__actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 2;
}

.header__action {
  display: flex;
  padding: 6px 10px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  color: #FFF;
  text-align: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  border-radius: 16px;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header__action:hover {
  transform: translateY(-1px);
}

.header__action:active {
  transform: translateY(0);
}

.header__action--telegram {
  background: #1976D2;
}

.header__action--telegram:hover {
  background: #1565C0;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.35);
}

.header__action--whatsApp {
  background: #25D366;
}

.header__action--whatsApp:hover {
  background: #1ebe57;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Burger button */
.burger {
  display: none;
  position: relative;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 10px;
  background: #F0F4FB;
  border: 1px solid #DCE8FF;
  color: #111;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.burger:hover {
  background: #E3F0FB;
  border-color: #1976D2;
  box-shadow: 0 2px 10px rgba(25, 118, 210, 0.15);
}

.burger:hover .burger__line {
  background: #1976D2;
}

.burger__line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #111;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.2s ease;
  pointer-events: none;
}

.burger.is-active {
  background: #E3F0FB;
  border-color: #1976D2;
}

.burger.is-active .burger__line {
  background: #1976D2;
}

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

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

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

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #222;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover {
  color: #1976D2;
  background: #F0F4FB;
}

/* Mobile: hide desktop-style nav, show burger + drawer */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 8px 16px 16px;
    background: #FFF;
    border-top: 1px solid #DCE8FF;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    border-radius: 10px;
    border: 1px solid transparent;
  }

  .nav__link:hover,
  .nav__link:active {
    color: #1976D2;
    background: #F5F8FF;
    border-color: #DCE8FF;
  }
}

@media (min-width: 769px) {
  .header {
    padding: 16px 40px;
  }

  .header__logo {
    font-size: 18px;
  }

  .header__actions {
    margin-left: 0;
    order: 3;
  }

  .nav {
    margin-left: auto;
    order: 2;
  }

  .nav__list {
    gap: 4px;
  }

  .nav__link {
    font-size: 14px;
    font-weight: 500;
  }

  .header__action {
    padding: 8px 14px;
    font-size: 11px;
  }
}
