/* =========================================================
   HERO &#8212; INSTALACJE ODGROMOWE
========================================================= */

.lightning-hero {
  padding: 18px 0 14px;
  background: #081223;
}

.lightning-hero-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #081223;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  isolation: isolate;
}

.lightning-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  width: 100%;
  height: 100%;
}

.lightning-hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lightning-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
    90deg,
    rgba(8, 18, 35, 0.84) 0%,
    rgba(8, 18, 35, 0.68) 36%,
    rgba(8, 18, 35, 0.42) 64%,
    rgba(8, 18, 35, 0.14) 100%
  );
}

.lightning-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 790px;
  padding: 58px;
  color: #fff;
}

.lightning-hero-content .kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: #ff8a00;
  color: #111;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
}

.lightning-hero-content h1 {
  max-width: 790px;
  margin: 15px 0 18px;
  color: #fff;
  font-size: clamp(2.15rem, 3.2vw, 3.15rem);
  line-height: 1.06;
  text-wrap: balance;
}

.lightning-hero-content .lead {
  max-width: 710px;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.65;
}

.lightning-hero-content .cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 26px;
}

.lightning-hero-content .cta .btn {
  width: auto;
  min-width: 240px;
  margin: 0;
  justify-content: center;
}

.lightning-hero-content .cta .btn:not(.primary) {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.lightning-hero-content .cta .btn:not(.primary):hover {
  background: #f3f4f6;
  color: #111;
}

.lightning-hero-content .pillrow,
.lightning-hero-content .trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.lightning-hero-content .pillrow {
  margin-top: 24px;
}

.lightning-hero-content .trust-strip {
  margin-top: 14px;
}

.lightning-hero-content .pill,
.lightning-hero-content .trust-item {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0;
  border-radius: 999px;
  color: #fff;
  line-height: 1.25;
}

.lightning-hero-content .pill {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
}

.lightning-hero-content .trust-item {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
}

/* =========================================================
   HERO &#8212; TELEFON
========================================================= */

@media (max-width: 700px) {
  .lightning-hero {
    padding: 14px 0 12px;
  }

  .lightning-hero-card {
    display: block;
    min-height: 0;
    border-radius: 18px;
  }

  .lightning-hero-bg img {
    object-position: center top;
  }

  .lightning-hero-overlay {
    background:
      linear-gradient(
      180deg,
      rgba(8, 18, 35, 0.52) 0%,
      rgba(8, 18, 35, 0.64) 36%,
      rgba(8, 18, 35, 0.80) 68%,
      rgba(8, 18, 35, 0.92) 100%
    );
  }

  .lightning-hero-content {
    display: flex;
    min-height: 720px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 20px;
  }

  .lightning-hero-content .kicker {
    padding: 7px 10px;
    font-size: 0.74rem;
  }

  .lightning-hero-content h1 {
    margin-top: 13px;
    font-size: clamp(1.85rem, 8vw, 2.3rem);
    line-height: 1.08;
  }

  .lightning-hero-content .lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .lightning-hero-content .cta {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .lightning-hero-content .cta .btn {
    width: 100%;
    min-width: 0;
  }

  .lightning-hero-content .pillrow,
  .lightning-hero-content .trust-strip {
    gap: 8px;
  }

  .lightning-hero-content .pill,
  .lightning-hero-content .trust-item {
    font-size: 0.88rem;
    white-space: normal;
  }
}

/* =========================================================
   INSTALACJA ODGROMOWA BEZ NIEDOMÓWIEŃ
========================================================= */

.lightning-clarity-card,
.lightning-scope-card,
.lightning-modern-card,
.lightning-objects-card,
.lightning-process-card,
.lightning-gallery-card {
  padding: 38px;
}

.lightning-section-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.lightning-section-head .kicker,
.lightning-modern-intro .kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  color: #b45309;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lightning-section-head h2 {
  margin: 0 0 12px;
}

.lightning-section-head p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.lightning-clarity-grid,
.lightning-objects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lightning-clarity-item {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.lightning-clarity-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #ff8a00;
}

.lightning-clarity-number,
.lightning-modern-number,
.lightning-object-number {
  display: block;
  margin-bottom: 14px;
  color: #b45309;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
}

.lightning-clarity-item h3,
.lightning-scope-item h3,
.lightning-object-item h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.lightning-clarity-item p,
.lightning-scope-item p,
.lightning-modern-item p,
.lightning-object-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.lightning-clarity-note,
.lightning-scope-note,
.lightning-gallery-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 138, 0, 0.3);
  border-left: 5px solid #ff8a00;
  border-radius: 13px;
  background: rgba(255, 138, 0, 0.07);
}

.lightning-clarity-note span,
.lightning-scope-note span,
.lightning-modern-note span,
.lightning-objects-note span,
.lightning-gallery-note span,
.lightning-contact-note span {
  color: var(--muted);
  line-height: 1.55;
}

@media (hover: hover) {
  .lightning-clarity-item {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .lightning-clarity-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.09);
  }
}

@media (max-width: 700px) {
  .lightning-clarity-card {
    padding: 24px 18px;
  }

  .lightning-section-head {
    margin-bottom: 18px;
  }

  .lightning-clarity-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lightning-clarity-item {
    min-height: 0;
    padding: 20px 18px 20px 22px;
  }

  .lightning-clarity-note {
    padding: 16px;
  }
}

/* =========================================================
   ZAKRES INSTALACJI ODGROMOWEJ
========================================================= */

.lightning-scope-grid,
.lightning-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lightning-scope-item {
  min-height: 245px;
  padding: 23px 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f8f9fb 100%
    );
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.lightning-scope-number {
  display: block;
  margin-bottom: 15px;
  color: #b45309;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
}

.lightning-scope-cta,
.lightning-modern-cta,
.lightning-process-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (hover: hover) {
  .lightning-scope-item {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .lightning-scope-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.09);
  }
}

@media (max-width: 950px) {
  .lightning-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .lightning-scope-card {
    padding: 24px 18px;
  }

  .lightning-scope-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lightning-scope-item {
    min-height: 0;
    padding: 20px 18px;
  }

  .lightning-scope-note {
    padding: 16px;
  }

  .lightning-scope-cta {
    flex-direction: column;
  }

  .lightning-scope-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   POMIARY I DOKUMENTACJA PO WYKONANIU
========================================================= */

.lightning-docs-card {
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      #081223 0%,
      #111c30 100%
    );
  color: #fff;
  box-shadow: 0 16px 40px rgba(8, 18, 35, 0.16);
}

.lightning-docs-head {
  max-width: 850px;
  margin-bottom: 24px;
}

.lightning-docs-head .kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  color: #ffb15c;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.lightning-docs-head h2 {
  margin: 0 0 14px;
  color: #fff;
}

.lightning-docs-head p {
  max-width: 790px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.lightning-docs-grid,
.lightning-modern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lightning-docs-item {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
}

.lightning-docs-number,
.lightning-process-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 17px;
  border-radius: 50%;
  background: #ff8a00;
  color: #111;
  font-size: 1rem;
  font-weight: 900;
}

.lightning-docs-item h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.35;
}

.lightning-docs-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.lightning-equipment-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 138, 0, 0.42);
  border-left: 5px solid #ff8a00;
  border-radius: 12px;
  background: rgba(255, 138, 0, 0.1);
}

.lightning-equipment-note strong {
  color: #fff;
}

.lightning-equipment-note span,
.lightning-modern-highlight span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

@media (hover: hover) {
  .lightning-docs-item {
    transition:
      transform 0.2s ease,
      background 0.2s ease;
  }

  .lightning-docs-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.09);
  }
}

@media (max-width: 700px) {
  .lightning-docs-card {
    padding: 26px 20px;
  }

  .lightning-docs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lightning-docs-item {
    min-height: 0;
    padding: 20px;
  }

  .lightning-equipment-note {
    padding: 16px;
  }
}

/* =========================================================
   MODERNIZACJA ISTNIEJĄCEJ INSTALACJI
========================================================= */

.lightning-modern-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: start;
}

.lightning-modern-intro h2 {
  margin: 0 0 16px;
}

.lightning-modern-intro > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.lightning-modern-highlight {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 22px;
  padding: 20px;
  border-left: 5px solid #ff8a00;
  border-radius: 13px;
  background: #081223;
  color: #fff;
}

.lightning-modern-highlight strong {
  font-size: 1.05rem;
  line-height: 1.45;
}

.lightning-modern-item {
  min-height: 225px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f8f9fb 100%
    );
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.lightning-modern-item h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.lightning-modern-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 138, 0, 0.3);
  border-left: 5px solid #ff8a00;
  border-radius: 13px;
  background: rgba(255, 138, 0, 0.07);
}

@media (hover: hover) {
  .lightning-modern-item {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .lightning-modern-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.09);
  }
}

@media (max-width: 850px) {
  .lightning-modern-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .lightning-modern-card {
    padding: 24px 18px;
  }

  .lightning-modern-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lightning-modern-item {
    min-height: 0;
    padding: 20px 18px;
  }

  .lightning-modern-highlight,
  .lightning-modern-note {
    padding: 16px;
  }

  .lightning-modern-cta {
    flex-direction: column;
  }

  .lightning-modern-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   INSTALACJE ODGROMOWE DLA RÓŻNYCH OBIEKTÓW
========================================================= */

.lightning-object-item {
  min-height: 220px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f8f9fb 100%
    );
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.lightning-objects-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 138, 0, 0.3);
  border-radius: 14px;
  background: rgba(255, 138, 0, 0.07);
}

.lightning-objects-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lightning-objects-cta {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.lightning-objects-cta .btn {
  justify-content: center;
  white-space: nowrap;
}

@media (hover: hover) {
  .lightning-object-item {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .lightning-object-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.09);
  }
}

@media (max-width: 900px) {
  .lightning-objects-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .lightning-objects-cta {
    flex: none;
  }
}

@media (max-width: 700px) {
  .lightning-objects-card {
    padding: 24px 18px;
  }

  .lightning-objects-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lightning-object-item {
    min-height: 0;
    padding: 20px 18px;
  }

  .lightning-objects-bottom {
    padding: 16px;
  }

  .lightning-objects-cta {
    flex-direction: column;
  }

  .lightning-objects-cta .btn {
    width: 100%;
    white-space: normal;
  }
}

/* =========================================================
   JAK WYGLĄDA WSPÓŁPRACA
========================================================= */

.lightning-process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lightning-process-item {
  min-height: 260px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f8f9fb 100%
    );
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.lightning-process-item h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.lightning-process-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lightning-process-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 5px solid #ff8a00;
  border-radius: 12px;
  background: #081223;
  color: #fff;
}

.lightning-process-note span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

@media (hover: hover) {
  .lightning-process-item {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .lightning-process-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.09);
  }
}

@media (max-width: 1100px) {
  .lightning-process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .lightning-process-card {
    padding: 24px 18px;
  }

  .lightning-process-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lightning-process-item {
    min-height: 0;
    padding: 20px 18px;
  }

  .lightning-process-note {
    padding: 16px;
  }

  .lightning-process-cta {
    flex-direction: column;
  }

  .lightning-process-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   INSTALACJE ODGROMOWE W PRAKTYCE
========================================================= */

.lightning-gallery-item {
  display: flex;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.lightning-gallery-item picture {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
}

.lightning-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightning-gallery-item figcaption {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 18px;
}

.lightning-gallery-item figcaption strong {
  font-size: 1.05rem;
  line-height: 1.4;
}

.lightning-gallery-item figcaption span {
  color: var(--muted);
  line-height: 1.6;
}

@media (hover: hover) {
  .lightning-gallery-item {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .lightning-gallery-item img {
    transition: transform 0.3s ease;
  }

  .lightning-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.1);
  }

  .lightning-gallery-item:hover img {
    transform: scale(1.025);
  }
}

@media (max-width: 900px) {
  .lightning-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightning-gallery-item:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 8px);
  }
}

@media (max-width: 700px) {
  .lightning-gallery-card {
    padding: 24px 18px;
  }

  .lightning-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lightning-gallery-item:last-child {
    grid-column: auto;
    max-width: none;
  }

  .lightning-gallery-item figcaption {
    padding: 17px;
  }

  .lightning-gallery-note {
    padding: 16px;
  }
}

/* =========================================================
   KONTAKT &#8212; INSTALACJE ODGROMOWE
========================================================= */

.lightning-contact-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 138, 0, 0.3);
  border-left: 5px solid #ff8a00;
  border-radius: 12px;
  background: rgba(255, 138, 0, 0.07);
}

@media (max-width: 700px) {
  .lightning-contact-note {
    padding: 15px 16px;
  }
}

.contact-box > .kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  color: #b45309;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  .lightning-section-head,
  .lightning-docs-head {
    display: block;
    max-width: none;
  }

  .lightning-section-head .kicker,
  .lightning-docs-head .kicker {
    display: inline-flex;
    margin-bottom: 10px;
  }

  .lightning-section-head h2,
  .lightning-docs-head h2 {
    margin: 0 0 12px;
  }

  .lightning-section-head p,
  .lightning-docs-head p {
    max-width: none;
    margin: 0;
  }
  .quote-form button[type="submit"] {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  .lightning-hero-bg img {
    object-position: center top;
  }
}