/* ============================================================
   Day 2 — шапка, меню, мега-каталог, мобильное меню.
   Все классы с префиксом las-, чтобы не задевать тему Bono.
   ============================================================ */

.las-header-wrap {
  --las-green: #0d700d;
  --las-green-dark: #0a5c0a;
  --las-ink: #111111;
  --las-muted: #595959;
  --las-line: #e6e6e6;
  position: relative;
  font-family: 'Rubik', 'Segoe UI', Tahoma, Arial, sans-serif;
  color: var(--las-ink);
}

.las-header-wrap *,
.las-header-wrap *::before,
.las-header-wrap *::after {
  box-sizing: border-box;
}

.las-header-wrap a {
  text-decoration: none;
}

.las-header-wrap img {
  display: block;
  max-width: 100%;
}

.las-header-wrap a:focus-visible,
.las-header-wrap button:focus-visible {
  outline: 2px solid var(--las-green);
  outline-offset: 2px;
}

.las-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 45px;
}

/* ── Верхняя полоса ─────────────────────────────────────── */

.las-topbar {
  background: var(--las-green);
  color: #fff;
  font-size: .82rem;
}

.las-topbar__in {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.las-topbar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.las-topbar a:hover {
  color: #d6f0d6;
}

/* ── Шапка ──────────────────────────────────────────────── */

.las-header {
  position: sticky;
  top: 0;
  z-index: 95;
  background: #fff;
  border-bottom: 1px solid var(--las-line);
  margin: 0;
  padding: 0;
}

.las-header-wrap .las-header {
  margin-bottom: 0;
}

/* Sticky Menu оборачивает шапку и добавляет свой отступ 30px. */
.las-header-wrap #mysticky-wrap {
  margin-bottom: 0 !important;
}

.las-header-wrap #mysticky-nav .las-header {
  margin-bottom: 0 !important;
}

.admin-bar .las-header {
  top: 32px;
}

.las-header__in {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}

.las-logo img {
  width: 186px;
  height: auto;
}

.las-header__phones {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 215px;
}

.las-header__phones a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--las-ink);
  line-height: 1.25;
}

.las-header__phones a:hover {
  color: var(--las-green);
}

.las-header__phones svg {
  color: var(--las-green);
  flex: none;
}

.las-header__phones b {
  display: block;
  font-weight: 500;
  font-size: .98rem;
}

.las-header__phones small {
  display: block;
  font-weight: 300;
  color: var(--las-muted);
  font-size: .72rem;
}

.las-header__phone {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--las-ink);
  font-weight: 500;
  white-space: nowrap;
}

.las-header__phone svg {
  color: var(--las-green);
}

.las-search {
  display: flex;
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--las-line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.las-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 10px 14px;
  font: inherit;
  font-weight: 300;
  outline: none;
}

.las-search:focus-within {
  border-color: var(--las-green);
}

.las-search button {
  border: 0;
  background: var(--las-green);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .15s ease;
}

.las-search button:hover {
  background: var(--las-green-dark);
}

.las-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.las-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--las-line);
  border-radius: 4px;
  background: #fff;
  color: var(--las-ink);
  transition: border-color .15s ease, color .15s ease;
}

.las-icon-btn:hover {
  border-color: var(--las-green);
  color: var(--las-green);
}

.las-cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--las-green);
  color: #fff;
  font-size: .66rem;
  font-weight: 500;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.las-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--las-green);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}

.las-btn:hover {
  background: var(--las-green-dark);
  color: #fff;
}

/* Тема Bono красит все ссылки внутри .site-header в чёрный. */
.site-header a.las-btn,
.site-header a.las-btn:hover,
.site-header a.las-btn:focus {
  color: #fff;
}

.las-btn:active {
  transform: translateY(1px);
}

.las-header__actions .las-btn {
  padding: 0 22px;
  height: 42px;
  font-size: .84rem;
}

.las-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--las-line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.las-burger__box,
.las-burger__box::before,
.las-burger__box::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--las-ink);
  transition: transform .18s ease;
}

.las-burger__box {
  position: relative;
}

.las-burger__box::before,
.las-burger__box::after {
  content: "";
  position: absolute;
  left: 0;
}

.las-burger__box::before { top: -6px; }
.las-burger__box::after { top: 6px; }

/* ── Меню ───────────────────────────────────────────────── */

.las-nav {
  position: relative;
  z-index: 94;
  background: #fff;
  border-bottom: 1px solid var(--las-line);
}

.las-nav__in {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 7px;
  padding-bottom: 7px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.las-nav__in::-webkit-scrollbar {
  display: none;
}

.las-nav__in > a {
  display: block;
  padding: 8px 0;
  color: var(--las-ink);
  font-weight: 500;
  font-size: .9rem;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.las-nav__in > a:hover {
  color: var(--las-green);
  border-color: var(--las-green);
}

.las-catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: var(--las-green);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease;
}

.las-catalog-btn:hover,
.las-catalog-btn[aria-expanded="true"] {
  background: var(--las-green-dark);
}

.las-catalog-btn__chev {
  transition: transform .18s ease;
}

.las-catalog-btn[aria-expanded="true"] .las-catalog-btn__chev {
  transform: rotate(180deg);
}

/* ── Каталог: панель ────────────────────────────────────── */

.las-catalog-panel {
  position: absolute;
  top: 100%;
  left: max(45px, calc((100% - 1360px) / 2 + 45px));
  right: max(45px, calc((100% - 1360px) / 2 + 45px));
  width: auto;
  max-width: none;
  background: #fff;
  border: 1px solid var(--las-line);
  border-top: 0;
  box-shadow: 0 24px 48px rgba(17, 17, 17, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .2s;
}

.las-catalog-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

.las-catalog-panel__in {
  display: flex;
  align-items: stretch;
}

.las-cats {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  flex: none;
  width: 360px;
}

.las-cat {
  position: static;
}

.las-cat__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px 9px 12px;
  border-radius: 4px;
  color: var(--las-ink);
  transition: background .15s ease;
}

.las-cat__row:hover,
.las-cat.is-active .las-cat__row,
.las-cat:focus-within .las-cat__row {
  background: #f2f7f2;
}

.las-cat__icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 4px;
  background: #eef4ee;
  color: var(--las-green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}

.las-cat__row:hover .las-cat__icon,
.las-cat.is-active .las-cat__icon,
.las-cat:focus-within .las-cat__icon {
  background: var(--las-green);
  color: #fff;
}

.las-cat__name {
  flex: 1;
  min-width: 0;
  font-size: .92rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.las-cat__count {
  flex: none;
  color: var(--las-muted);
  font-size: .82rem;
}

.las-cat__chev {
  flex: none;
  color: #9a9a9a;
}

.las-cat__sub {
  position: absolute;
  top: 0;
  left: 360px;
  width: calc(100% - 360px);
  height: 100%;
  display: none;
  border-left: 1px solid var(--las-line);
  background: #fff;
}

.las-cat:hover .las-cat__sub,
.las-cat:focus-within .las-cat__sub,
.las-cat.is-active .las-cat__sub {
  display: block;
}

.las-sub {
  padding: 22px 24px;
}

.las-sub__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--las-line);
  margin-bottom: 12px;
}

.las-sub__title {
  color: var(--las-ink);
  font-size: .98rem;
  font-weight: 600;
}

.las-sub__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--las-green);
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
}

.las-sub__all-count {
  color: var(--las-muted);
  font-weight: 400;
}

.las-sub__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}

.las-sub__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--las-line);
  border-radius: 4px;
  color: var(--las-ink);
  font-size: .85rem;
  transition: border-color .15s ease, background .15s ease;
}

.las-sub__item:hover {
  border-color: #a9cba9;
  background: #fafcf9;
}

.las-sub__icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--las-green);
}

.las-sub__icon svg {
  width: 18px;
  height: 18px;
}

.las-sub__name {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.las-sub__count {
  color: var(--las-muted);
  font-size: .74rem;
  flex: none;
}

/* ── Мобильное меню ─────────────────────────────────────── */

.las-mmenu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.las-mmenu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

body.las-menu-open {
  overflow: hidden;
}

.las-mmenu__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--las-line);
}

.las-mmenu__bar-actions {
  display: flex;
  gap: 8px;
}

.las-mmenu__icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--las-line);
  border-radius: 4px;
  background: #fff;
  color: var(--las-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.las-mmenu__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 28px;
  -webkit-overflow-scrolling: touch;
}

.las-mmenu__searchbox {
  margin-bottom: 14px;
}

.las-mmenu__search {
  display: flex;
  border: 1px solid var(--las-line);
  border-radius: 4px;
  overflow: hidden;
}

.las-mmenu__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

.las-mmenu__search button {
  border: 0;
  background: var(--las-green);
  color: #fff;
  padding: 0 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.las-mmenu__block {
  border-top: 1px solid var(--las-line);
  padding: 14px 0;
}

.las-mcat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.las-mcat__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--las-green);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  padding: 0;
}

.las-mcat__back[hidden],
.las-mcat__detail[hidden],
.las-mmenu__searchbox[hidden] {
  display: none !important;
}

.las-mcat__title {
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--las-muted);
}

.las-mcat__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.las-mcat__li {
  border-bottom: 1px solid #f0f0f0;
}

.las-mcat__row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 2px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--las-ink);
  text-align: left;
  cursor: pointer;
}

.las-mcat__icon {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: #eef4ee;
  color: var(--las-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.las-mcat__name {
  flex: 1;
  font-weight: 500;
  font-size: .94rem;
}

.las-mcat__count {
  color: var(--las-muted);
  font-size: .82rem;
}

.las-mcat__chev {
  color: #9a9a9a;
  flex: none;
}

.las-mcat__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  color: var(--las-green);
  font-weight: 500;
  font-size: .9rem;
}

.las-mcat__subs {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.las-mcat__sub {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  color: var(--las-ink);
  font-size: .9rem;
}

.las-mcat__sub-icon {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #f4f7f4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.las-mcat__sub-name {
  flex: 1;
}

.las-mcat__sub-count {
  color: var(--las-muted);
  font-size: .8rem;
}

.las-mcontacts {
  display: grid;
  gap: 10px;
}

.las-mcontacts__row {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--las-ink);
  font-size: .92rem;
}

.las-mcontacts__row svg {
  color: var(--las-green);
  margin-top: 3px;
}

.las-mcontacts__row small {
  display: block;
  color: var(--las-muted);
  font-size: .76rem;
  font-weight: 300;
}

.las-mcontacts__info {
  margin: 14px 0 0;
  color: var(--las-muted);
  font-size: .8rem;
  line-height: 1.5;
}

.las-mmenu__cta {
  padding-top: 16px;
}

.las-mmenu__cta .las-btn {
  width: 100%;
  height: 46px;
}

.las-mmenu__links {
  display: grid;
  gap: 0;
  padding: 6px 0;
}

.las-mmenu__links a {
  display: block;
  padding: 10px 2px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--las-ink);
  font-size: .95rem;
  font-weight: 500;
}

.las-mmenu__links a:hover {
  color: var(--las-green);
}

/* ── Адаптив ────────────────────────────────────────────── */

@media (max-width: 1020px) {
  .las-header__phones {
    display: none;
  }

  .las-header__phone {
    display: inline-flex;
  }

  .las-header__in {
    gap: 16px;
  }

  .las-search {
    order: 5;
    flex-basis: 100%;
  }
}

@media (max-width: 820px) {
  .las-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .las-header__in {
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: nowrap;
  }

  .las-burger {
    display: inline-flex;
    order: -1;
  }

  .las-logo img {
    width: 140px;
  }

  .las-header__phone {
    display: none;
  }

  .las-search {
    display: none;
  }

  .las-header__actions {
    gap: 8px;
  }

  .las-header__actions .las-btn {
    display: none;
  }

  .las-nav {
    display: none;
  }

  .las-topbar__in {
    justify-content: center;
    text-align: center;
    font-size: .76rem;
  }

  .las-topbar__addr {
    display: none;
  }

  .las-catalog-panel {
    display: none;
  }
}

@media (max-width: 480px) {
  .las-logo img {
    width: 120px;
  }

  .las-icon-btn {
    width: 38px;
    height: 38px;
  }

  .las-header__actions .las-icon-btn:not(.las-icon-btn--cart) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .las-header-wrap *,
  .las-mmenu,
  .las-catalog-panel {
    transition: none !important;
    animation: none !important;
  }
}
