/* Additions ported from teslatabs.com: home icon, "Zakres usług" mega menu, header socials,
   contact dropdown rows, mobile offer groups and the "O firmie" page. */
:root {
  --lx-red: #e00c19;
  --lx-ink: #1a2336;
  --lx-muted: #6b7280;
  --lx-line: #e5e7eb;
  --lx-paper: #ffffff;
  --lx-paper-2: #f3f4f6;
}
.dark {
  --lx-ink: #ffffff;
  --lx-muted: #9aa3b2;
  --lx-line: rgb(255 255 255 / 0.12);
  --lx-paper: #182335;
  --lx-paper-2: #0c1422;
}

/* Home icon */
.lx-home {
  display: grid;
  place-items: center;
  width: 34px;
  height: 40px;
  color: inherit;
}
.lx-home svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.lx-home:hover svg {
  transform: scale(1.08);
}
.menu-lis-mob {
  align-items: center;
}

/* Zakres usług mega menu */
.menu-lis-mob .lx-mega-item {
  position: static;
}
.lx-mega-btn {
  /* No "font" shorthand: it would reset the template's leading-10 and drop the hover line onto the text. */
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
}
.lx-chev {
  width: 10px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.lx-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  background: var(--lx-paper);
  color: var(--lx-ink);
  border-top: 3px solid var(--lx-red);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  text-transform: none;
  font-weight: 500;
  letter-spacing: normal;
}
.lx-mega-item:hover .lx-mega,
.lx-mega-item:focus-within .lx-mega,
.lx-mega-item.is-open .lx-mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.lx-mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1680px;
  margin-inline: auto;
  padding: 36px clamp(16px, 4vw, 48px) 40px;
}
.lx-mega-col {
  min-width: 0;
  padding-inline: clamp(20px, 2.6vw, 44px);
  border-left: 1px solid var(--lx-line);
}
.lx-mega-col:first-child {
  padding-left: 0;
  border-left: 0;
}
.lx-mega-col:last-child {
  padding-right: 0;
}
.lx-mega-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--lx-line);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  color: var(--lx-ink);
}
.lx-mega-head small {
  display: block;
  margin-top: 3px;
  font-weight: 400;
  font-size: 12px;
  color: var(--lx-muted);
}
.lx-mega-head:hover {
  color: var(--lx-red);
}
.lx-mega-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgb(224 12 25 / 0.1);
  color: var(--lx-red);
}
.lx-mega-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lx-mega-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}
.lx-mega-sub {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lx-red);
}
.lx-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lx-mega-list a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--lx-ink);
  opacity: 0.85;
  transition: color 0.15s, padding 0.2s ease, opacity 0.15s;
}
.lx-mega-list a:hover,
.lx-mega-list a[aria-current="page"] {
  color: var(--lx-red);
  opacity: 1;
  padding-left: 6px;
}

/* Header socials (desktop) — black on hover so they show on the red header */
.lx-header-socials {
  display: none;
  align-items: center;
  gap: 2px;
  padding-right: 10px;
  margin-right: 4px;
  border-right: 1px solid rgb(255 255 255 / 0.3);
}
.lx-header-socials a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: inherit;
  transition: color 0.2s;
}
.lx-header-socials a:hover {
  color: #000;
}
.lx-header-socials svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
@media (min-width: 1280px) {
  .lx-header-socials {
    display: flex;
  }
}

/* Contact dropdown rows: label above the value */
.lx-contact-row {
  display: block !important;
  line-height: 1.35;
}
.lx-contact-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Mobile menu: offer groups and socials */
.lx-mob-offer {
  display: block !important;
  padding: 18px 0 6px;
}
.lx-mob-title {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}
.lx-mob-group summary {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid var(--lx-line);
}
.lx-mob-group summary::-webkit-details-marker {
  display: none;
}
.lx-mob-group summary::after {
  content: "+";
  color: var(--lx-red);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s;
}
.lx-mob-group[open] summary::after {
  transform: rotate(45deg);
}
.lx-mob-group ul {
  list-style: none;
  margin: 0;
  padding: 6px 0 10px 14px;
}
.lx-mob-group a {
  display: block;
  padding: 7px 0;
  font-size: 15px;
}
.lx-mob-socials {
  display: flex;
  gap: 12px;
  margin: 22px 0 6px;
}
.lx-mob-socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--lx-line);
  color: inherit;
}
.lx-mob-socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* O firmie page */
.lx-facts {
  display: grid;
  gap: 1px;
  background: var(--lx-line);
  border-block: 1px solid var(--lx-line);
}
.lx-facts div {
  padding: 16px 0;
  background: var(--lx-paper-2);
}
.dark .lx-facts div {
  background: #182335;
}
.lx-facts strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--lx-red);
}
.lx-facts span {
  font-size: 13px;
  opacity: 0.75;
}
.lx-prose a {
  color: var(--lx-red);
  font-weight: 600;
}
.lx-socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lx-socials-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--lx-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.lx-socials-row a:hover {
  border-color: var(--lx-red);
  color: var(--lx-red);
}
.lx-socials-row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Night-mode switch: sun and moon are outline icons; without this they render filled black. */
label[for="theme-toggle"] svg {
  fill: none;
  stroke-width: 1.8;
}

/* Scrolled (white) header: the template darkens only menu links, so match the button and socials. */
header#site-header.dark-menu .lx-mega-btn,
header#site-header.dark-menu .lx-header-socials a {
  color: #182335;
}
header#site-header.dark-menu .lx-mega-btn::after {
  background-color: #182335;
}
header#site-header.dark-menu .lx-header-socials {
  border-right-color: rgb(24 35 53 / 0.25);
}
header#site-header.dark-menu .lx-header-socials a:hover {
  color: var(--lx-red);
}
.dark header#site-header.dark-menu .lx-mega-btn,
.dark header#site-header.dark-menu .lx-header-socials a {
  color: #fff;
}
.dark header#site-header.dark-menu .lx-mega-btn::after {
  background-color: #fff;
}
.dark header#site-header.dark-menu .lx-header-socials {
  border-right-color: rgb(255 255 255 / 0.3);
}
