/* =========================================================
   ALLHIR HERO v2 — stable desktop + stable mobile
   (mobile: icons visually inside the card)
   ========================================================= */

.allhir-hero2{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 220px;
  overflow: hidden;
}

.allhir-hero2__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: left center;
  transform: scale(1.02);
}

.allhir-hero2__inner{
  position: relative;
  min-height: 720px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 60px 60px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.allhir-hero2__panel{
  --card-w: 460px;
  --actions-w: 130px;

  display: grid;
  grid-template-columns: var(--card-w) var(--actions-w);
  column-gap: 42px;
  align-items: stretch;
}

/* CARD */
.allhir-hero2__card{
  position: relative;
  width: 100%;
  height: 100%;
  padding: 28px 30px;
  border-radius: 24px;

  background: rgba(18,18,18,0.42);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 26px 90px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.06);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.allhir-hero2__title{
  margin: 0 0 12px !important;
  font-size: 26px;
  line-height: 1.14;
  font-weight: 900;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
  background: transparent !important;
  box-shadow: none !important;
}

.allhir-hero2__text{
  margin: 0 0 10px !important;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.86);
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.allhir-hero2__text--muted{
  color: rgba(255,255,255,0.72);
  margin-bottom: 16px !important;
}

/* CTA */
.allhir-hero2__cta{
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 14px;
}

.allhir-hero2__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;

  font-weight: 900;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 14px;

  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;

  transition: transform .12s ease, box-shadow .12s ease;
}

.allhir-hero2__btn--primary{
  background: #d8791f;
  color: #101010 !important;
  box-shadow: 0 16px 32px rgba(216,121,31,0.30);
}

.allhir-hero2__btn--ghost{
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.95) !important;
}

/* ACTIONS (desktop column) */
.allhir-hero2__actions{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.allhir-hero2__action{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  padding: 6px 4px;
}

.allhir-hero2__action img{
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 999px;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.65));
}

.allhir-hero2__action span{
  font-size: 15px;
  font-weight: 900;
  line-height: 1.12;
  color: rgba(255,255,255,0.92);
  text-align: center;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}

/* desktop lift only */
@media (min-width: 981px){
  .allhir-hero2__inner{ padding-top: 50px; }
  .allhir-hero2__panel{ transform: translateY(-70px); }
}

/* =========================
   MOBILE
   - hero centered
   - icons VISUALLY inside card (absolute over panel)
   ========================= */
@media (max-width: 980px){

  .allhir-hero2{
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: 0 !important;
  }

  .allhir-hero2__inner{
    min-height: 0 !important;
    padding: 18px 14px 26px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
  }

  .allhir-hero2__panel{
    position: relative !important;   /* нужно для absolute-иконок */
    transform: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
  }

  .allhir-hero2__card{
    width: 100% !important;
    margin: 0 auto !important;
    padding: 18px 16px 120px !important; /* место под иконки ВНУТРИ */
    border-radius: 18px !important;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
  }

  .allhir-hero2__title{
    font-size: 20px !important;
    line-height: 1.15 !important;
    margin: 0 0 10px !important;
  }

  .allhir-hero2__text{
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .allhir-hero2__cta{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }

  .allhir-hero2__btn{
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px 10px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* ИКОНКИ “внутри” карточки: абсолютом внизу */
  .allhir-hero2__actions{
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 16px !important;

    width: 100% !important;
    height: auto !important;

    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;

    gap: 10px !important;
    flex-wrap: nowrap !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  .allhir-hero2__action{
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    padding: 0 !important;
    gap: 6px !important;
    text-align: center !important;
  }

  .allhir-hero2__action img{
    width: 82px !important;
    height: 82px !important;
  }

  .allhir-hero2__action span{
    font-size: 13px !important;
    line-height: 1.1 !important;
  }
}
/* =========================================================
   ALLHIR — MOBILE HEADER: menu button top-right above login
   Требует класс на правом блоке иконок: .allhir-head-actions
   ========================================================= */

@media (max-width: 980px){

  /* делаем якорь для абсолютного позиционирования */
  header, .wp-site-blocks > header{
    position: relative;
  }

  /* правый блок (иконки входа/выхода) — тоже якорь */
  .allhir-head-actions{
    position: relative;
    padding-top: 46px; /* место под кнопку меню сверху */
  }

  /* кнопка открытия мобильного меню (бургер) */
  .wp-block-navigation__responsive-container-open{
    position: absolute !important;
    right: 12px !important;
    top: 8px !important;

    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;

    border-radius: 12px !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    z-index: 9999 !important;
  }

  /* на всякий: если тема рисует “левую” кнопку/дубликат — прячем всё,
     что лежит НЕ внутри нашего правого блока */
  header .wp-block-navigation__responsive-container-open{
    display: none !important;
  }
  header .allhir-head-actions .wp-block-navigation__responsive-container-open{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* делаем иконку бургера чуть контрастнее */
  .allhir-head-actions .wp-block-navigation__responsive-container-open svg{
    opacity: .95 !important;
  }
}
