/* ==================== Mobile header (header_auth) ==================== */
.header_auth {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--header-color);
  width: 100%;
  height: 3rem;
  padding: 0 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.header_auth__logo {
  display: flex;
  align-items: center;
}

.header_auth__logo img {
  width: 5.5rem;
  display: block;
}

.header_auth__burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.header_auth__burger img {
  width: 1.2rem;
  height: 1.2rem;
}

/* ==================== Desktop overrides (≥ 768px) ==================== */
@media (min-width: 768px) {
  .header_auth {
    padding: 0 1rem;
  }

  .header_auth__logo img {
    width: 7rem;
  }

  .header_auth__burger img {
    width: 1.6rem;
    height: 1.6rem;
  }
}

/* ==================== Overlay (центрирует панель через flex) ==================== */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.mob-overlay.open {
  display: flex;
}

/* ==================== Panel (matches React .popup-content) ==================== */
@keyframes anvil {
  0%   { transform: scale(1) translateY(0px); opacity: 0; }
  1%   { transform: scale(0.96) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0px); opacity: 1; }
}

.mob-panel {
  position: relative;
  width: min(calc(100% - 1rem), 20rem);
  max-height: 90vh;
  background: var(--mobile-background-color);
  border-radius: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: anvil 0.3s cubic-bezier(0.38, 0.1, 0.36, 0.9) forwards;
}

.mob-panel__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.mob-panel__close img {
  width: 16px;
  height: 16px;
}

/* ==================== Modal content (matches React .modal__body / .modal__content) ==================== */
.mob-panel .modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 1.2rem 1.2rem 2.2rem;
}

.mob-panel .modal__logo {
  max-width: 7.8rem;
}

.mob-panel .modal__logo img {
  width: 100%;
  display: block;
}

/* Modal list — matches React .modal__list */
.mob-panel .modal__list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mob-panel .modal__list a {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--Grey);
  text-decoration: none;
  display: flex;
  align-items: center;
  outline: none;
}

.mob-panel .modal__list b {
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 16px;
  line-height: 19px;
  color: var(--White);
  display: block;
}

/* Mail row */
.mob-mail {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mob-mail img {
  width: 1rem;
  height: 1rem;
}

/* Company info (landing__footer inside modal) */
.mob-panel .landing__footer {
  font-size: 14px;
  line-height: 20px;
  color: var(--Grey);
  text-align: left;
  width: 100%;
}

/* 18+ / copyright */
.mob-panel .footer__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 130%;
  color: #a5a5a5;
  font-size: 16px;
  font-weight: 400;
  width: 100%;
}
