/* Menu główne z kategoriami oferty – patrz megamenu.php */

.lm-row { display: flex; flex-wrap: nowrap; align-items: center; }
.lm-row > .lm-col-logo,
.lm-row > .lm-col-cta { flex: 0 0 auto; width: auto; max-width: none; }
.lm-row > .lm-col-menu { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; }
.lm-col-cta .book_btn a { white-space: nowrap; }
.lm-row > .col-12 { display: none; }
.lm-col-logo .logo img { display: block; width: 220px; max-width: none; height: auto; }
.lm-cta-short { display: none; }

/* ---------- górny pasek ---------- */
.lm-nav { display: flex; justify-content: center; }
.lm-nav ul { list-style: none; margin: 0; padding: 0; }
.lm-nav__list { display: flex; align-items: center; gap: 4px; }
.lm-item { position: relative; display: flex; }
.lm-nav .lm-top {
  position: relative; display: flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 13px; margin: 0; border: 0; background: none; cursor: pointer;
  font-family: "Poppins", sans-serif; font-size: 15px; font-weight: 500; line-height: 1;
  color: #1f1f1f; white-space: nowrap; text-transform: none; text-decoration: none;
  transition: color .2s ease;
}
.lm-nav .lm-top::before { display: none !important; }
.lm-nav .lm-top::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(to right, #0181f5 0%, #5db2ff 100%);
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.lm-nav .lm-top:hover,
.lm-nav .lm-top:focus,
.lm-item.is-open > .lm-top,
.lm-item.is-current > .lm-top { color: #0181f5; }
.lm-nav .lm-top:hover::after,
.lm-item.is-open > .lm-top::after,
.lm-item.is-current > .lm-top::after { transform: scaleX(1); }
.lm-nav .lm-top:focus-visible,
.lm-link:focus-visible,
.lm-drawer button:focus-visible,
.lm-drawer a:focus-visible { outline: 2px solid #0181f5; outline-offset: 2px; border-radius: 6px; }
.lm-chev { flex: none; width: 10px; height: 10px; transition: transform .22s ease; }
.lm-item.is-open .lm-chev { transform: rotate(180deg); }

/* ---------- rozwijana lista kategorii ---------- */
.lm-drop {
  --lm-gap: 18px;
  position: absolute; top: calc(100% + var(--lm-gap)); left: 0; z-index: 995;
  min-width: 290px; padding: 10px; background: #fff;
  border-top: 1px solid #e8ecf3; border-radius: 0 0 14px 14px;
  box-shadow: 0 24px 48px rgba(29, 36, 86, .16);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
/* niewidzialny „mostek", żeby lista nie znikała po drodze z paska */
.lm-drop::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--lm-gap) - 1px); height: calc(var(--lm-gap) + 1px); }
.lm-item.is-open .lm-drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.lm-link {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px;
  text-decoration: none; transition: background-color .15s ease;
}
.lm-link::before { display: none !important; }
.lm-link:hover, .lm-link:focus { background: #f3f8ff; text-decoration: none; }
.lm-icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: #f3f8ff; transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.lm-icon img { display: block; width: 32px; height: 32px; max-width: none; }
.lm-link:hover .lm-icon { background: #fff; transform: scale(1.06); box-shadow: 0 4px 12px rgba(1, 129, 245, .18); }
.lm-name {
  font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 600; line-height: 1.3;
  color: #1f1f1f; white-space: nowrap; text-transform: none;
}
.lm-link:hover .lm-name, .lm-link:focus .lm-name, .lm-link.is-current .lm-name { color: #0181f5; }

@media (max-width: 1199px) {
  .lm-nav .lm-top { padding: 0 9px; font-size: 14px; }
  .lm-nav .lm-top::after { left: 9px; right: 9px; }
  .lm-col-logo .logo img { width: 130px; }
  .lm-cta-long { display: none; }
  .lm-cta-short { display: inline; }
}

/* ---------- panel na telefonie ---------- */
.lm-backdrop {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 11990; background: rgba(15, 20, 48, .38);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
}
.lm-backdrop.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.lm-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 12000; width: 360px; max-width: 92vw;
  display: flex; flex-direction: column; background: #fff; text-align: left;
  font-family: "Poppins", sans-serif;
  transform: translateX(100%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.lm-drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; box-shadow: -16px 0 40px rgba(15, 20, 48, .2); }
.lm-drawer ul { list-style: none; margin: 0; padding: 0; }
.lm-drawer button { margin: 0; border: 0; background: none; cursor: pointer; font-family: inherit; }
.lm-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #e8ecf3; }
.lm-drawer__head img { height: 36px; width: auto; }
.lm-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: #1f1f1f; }
.lm-drawer__scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 16px 16px; }
.lm-label { margin: 14px 4px 6px; font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; color: #8a8f9c; }
.lm-acc { border-bottom: 1px solid #e8ecf3; }
.lm-acc__btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px;
  font-size: 16px; font-weight: 600; color: #1f1f1f; text-align: left;
}
.lm-acc__btn small { margin-left: 8px; font-size: 12px; font-weight: 500; color: #8a8f9c; }
.lm-acc__btn .lm-chev { width: 12px; height: 12px; }
.lm-acc__btn[aria-expanded="true"] { color: #0181f5; }
.lm-acc__btn[aria-expanded="true"] .lm-chev { transform: rotate(180deg); }
.lm-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.lm-acc__panel > ul { overflow: hidden; }
.lm-acc__btn[aria-expanded="true"] + .lm-acc__panel { grid-template-rows: 1fr; }
.lm-acc__panel .lm-link { padding: 8px 4px; }
.lm-acc__panel .lm-name { white-space: normal; }
.lm-acc__panel li:last-child { padding-bottom: 10px; }
.lm-plain {
  display: flex; align-items: center; min-height: 52px; padding: 0 4px; border-bottom: 1px solid #e8ecf3;
  font-size: 16px; font-weight: 600; color: #1f1f1f; text-decoration: none;
}
.lm-plain:hover, .lm-plain:focus { color: #0181f5; text-decoration: none; }
.lm-drawer__foot { display: grid; gap: 10px; padding: 14px 16px 18px; border-top: 1px solid #e8ecf3; text-align: center; }
.lm-btn {
  display: flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 30px;
  font-size: 14px; font-weight: 500; color: #fff; text-decoration: none;
  background: linear-gradient(to right, #0181f5 0%, #5db2ff 100%);
}
.lm-btn:hover, .lm-btn:focus { color: #fff; text-decoration: none; }
.lm-tel { font-size: 16px; font-weight: 600; color: #1f1f1f; text-decoration: none; }
.lm-tel:hover, .lm-tel:focus { color: #0181f5; text-decoration: none; }
body.lm-lock { overflow: hidden; }

/* ---------- niższy pasek nagłówka na telefonie (treść nie chowa się pod nim) ---------- */
@media (max-width: 992px) {
  #mobile-header { padding: 12px 0; box-shadow: 0 1px 6px rgba(0, 0, 0, .18); }
  #mobile-header .logo-mobile { text-align: left; padding-left: 15px; line-height: 0; }
  #mobile-header .logo-mobile img { max-width: 150px; height: auto; vertical-align: middle; }
  #mobile-header .logo-mobile-switch {
    top: 50%; right: 12px; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  }
  #mobile-header .logo-mobile-switch .fa { font-size: 28px; }
  body { padding-top: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .lm-drop, .lm-drawer, .lm-backdrop, .lm-acc__panel, .lm-chev, .lm-nav .lm-top::after { transition-duration: 0s !important; }
}
