/* ===== BASE ===== */
.a-header{
  background: #323232;
  width: 100%;
  color: #f5f1e9;
}

/* Текст только внутри шапки, без влияния на страницу */
.a-header,
.a-header a,
.a-header span,
.a-header button,
.a-header label,
.a-header div{
  font-family: "Museo Sans Cyrl", sans-serif !important;
  font-weight: 700;
  color: #f5f1e9;
  box-sizing: border-box;
}

.a-header__inner{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ===== BRAND (logo + ARISTO) ===== */
.a-header__brand{
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  flex-shrink: 0;
}

.a-header__logo{
  height: 170%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.a-header__logo img{
  height: 100%;
  width: auto;
  max-height: none;
  display: block;
}

.a-header__brand-text{
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

/* ===== RIGHT ZONE ===== */
.a-header__right{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* DESKTOP: phone + CTA inline */
.a-header__contacts{
  display: flex;
  align-items: center;
  gap: 14px;
}

.a-header__phone-desktop{
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* CTA as button */
.a-header__cta{
  background: #b16023;
  color: #f5f1e9;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 16px;
  letter-spacing: 0.06em;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.a-header__cta:focus{
  outline: none;
}

/* ===== АДРЕС СПРАВА ОТ CTA (ДЕСКТОП) ===== */
.a-header__address{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  white-space: nowrap;
  margin-left: 16px; /* расстояние от CTA */
}


.a-header__address-text{
  font-size: 16px;
  letter-spacing: 0.06em;
  line-height: 1.25;
  opacity: 0.95;
}

.a-header__route{
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  opacity: 0.85;
  text-decoration: underline;
}

/* ===== MENU (mobile) ===== */
.a-header__menu{
  position: relative;
}

.a-header__menu-toggle{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.a-header__menu-btn{
  width: 44px;
  height: 40px;
  border-radius: 8px;
  background: rgba(245,241,233,0.10);
  display: none; /* показываем только на мобиле */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}

.a-header__menu-btn span{
  width: 18px;
  height: 2px;
  background: rgba(245,241,233,0.95);
  display: block;
  border-radius: 2px;
}

.a-header__menu-panel{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 260px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(20,20,20,0.98);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  display: none;
  z-index: 50;
}

.a-header__menu-phone{
  display: block;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 10px;
  white-space: nowrap;
}

.a-header__menu-address-text{
  font-size: 14px;
  line-height: 1.3;
  opacity: 0.92;
  margin-bottom: 6px;
}

.a-header__menu-route{
  font-size: 13px;
  opacity: 0.85;
  text-decoration: underline;
}

.a-header__menu-backdrop{
  display: none;
}

#aMenuToggle:checked ~ .a-header__menu-panel{
  display: block;
}

#aMenuToggle:checked ~ .a-header__menu-backdrop{
  display: block;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: transparent;
}

/* ===== MOBILE RULES ===== */
@media (max-width: 768px){
  .a-header__inner{
    height: 64px;
    padding: 10px 12px;
  }

  .a-header__logo{
    height: 120%; /* масштаб логотипа на мобиле */
  }

  .a-header__brand-text{
    font-size: 40px;
  }

  /* В мобиле в шапке только: бренд | CTA | меню */
  .a-header__phone-desktop{
    display: none;
  }

  .a-header__address{
    display: none;
  }

  .a-header__menu-btn{
    display: flex;
  }

  .a-header__right{
    gap: 10px;
  }

  .a-header__cta{
    padding: 9px 12px;
    font-size: 13px;
  }

  .a-header__menu-panel{
    min-width: 240px;
    top: calc(100% + 8px);
  }
}