/* IVComp — O nas.
   Treść strony i modal zdjęć.
   Wspólny nagłówek i stopka: site-chrome.css.
*/

/* Podstawy */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: #f4f7fa;
  color: #435565;
  font: 0.9375rem/1.55 Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

a:focus-visible {
  outline: 3px solid #568fb8;
  outline-offset: 4px;
}

.ab-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

/* Baner */
.ab-hero {
  display: flex;
  align-items: center;
  min-height: 22rem;
  height: auto;
  padding: 32px 0;
  background: linear-gradient(115deg, #172938, #2c465b);
  color: #fff;
}

.ab-hero-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: 16px;
}

.ab-eyebrow {
  margin: 0 0 10px;
  color: #5e849e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ab-hero .ab-eyebrow {
  color: #bdd8ee;
}

.ab-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: -0.6px;
}

.ab-lead {
  max-width: 760px;
  margin: 0;
  color: #dce9f2;
  font-size: 1rem;
}

.ab-hero-note {
  padding: 22px;
  border: 1px solid #bdd8ee40;
  border-radius: 13px;
  background: #ffffff07;
}

.ab-hero-note strong {
  display: block;
  color: #deedf8;
  font-size: 28px;
}

.ab-hero-note p {
  margin: 9px 0 0;
  color: #dce9f2;
  font-size: 13px;
}

/* Przyciski */
.ab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 20px;
}

.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid #a7c7df;
  border-radius: 8px;
  background: #bdd8ee;
  color: #344d5e;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.ab-btn:hover {
  background: #d2e6f4;
}

.ab-btn-alt {
  border-color: #93aabb;
  background: transparent;
  color: #fff;
}

/* Treść */
.ab-section {
  padding: 28px 0;
}

.ab-main h2 {
  margin: 0 0 14px;
  color: #2c4458;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.ab-main h3 {
  margin: 0 0 11px;
  color: #304c61;
  font-size: 1.125rem;
  line-height: 1.35;
}

.ab-main p {
  margin: 0 0 13px;
}

.ab-main p:last-child {
  margin-bottom: 0;
}

.ab-panel {
  padding: 20px;
  border: 1px solid #d5e2ec;
  border-radius: 13px;
  background: #fff;
}

.ab-intro {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
}

.ab-accent {
  border-left: 4px solid #9dbfd8;
}

.ab-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.ab-list li {
  margin-bottom: 8px;
}

/* Usługi */
.ab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.ab-service {
  display: flex;
  flex-direction: column;
  padding: 23px;
  border: 1px solid #d4e2ed;
  border-top: 3px solid #a7c7df;
  border-radius: 13px;
  background: #fff;
}

.ab-service p {
  font-size: 14px;
}

.ab-link {
  margin-top: auto;
  padding-top: 12px;
  color: #2c658e;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* Etapy obsługi */
.ab-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.ab-step {
  padding: 20px;
  border: 1px solid #d5e2ec;
  border-radius: 12px;
  background: #fff;
}

.ab-number {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #e0edf7;
  color: #376586;
  font-weight: 700;
}

.ab-step h3 {
  font-size: 17px;
}

.ab-step p {
  font-size: 13px;
}

/* Nagłówki sekcji */
.ab-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ab-heading p {
  color: #678094;
  font-size: 13px;
}

/* Galeria */
.ab-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ab-gallery-photo {
  display: block;
  padding: 7px;
  border: 1px solid #d1e0ec;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px #28465f08;
  text-decoration: none;
  cursor: zoom-in;
}

.ab-gallery-photo img {
  display: block;
  width: 100%;
  height: 235px;
  border-radius: 7px;
  background: #eaf1f7;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.ab-gallery-photo:hover img {
  opacity: 0.9;
}

.ab-gallery-photo span {
  display: block;
  padding: 9px 5px 3px;
  color: #58758b;
  font-size: 12px;
}

/* Kontakt */
.ab-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 25px;
  border: 1px solid #c8dcea;
  border-radius: 14px;
  background: #e4eff8;
}

.ab-contact .ab-actions {
  flex-shrink: 0;
  margin-top: 0;
}

/* Link przejścia do treści */
.ab-skip {
  position: absolute;
  left: -9999px;
}

.ab-skip:focus {
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 10px;
  background: #fff;
}

/* Modal zdjęć */
#ab-photo-modal {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(1100px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(189, 216, 238, 0.35);
  border-radius: 14px;
  background: #172938;
  color: #fff;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  overflow: auto;
}

#ab-photo-modal::backdrop {
  background: rgba(8, 15, 22, 0.88);
}

.ab-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(189, 216, 238, 0.18);
}

.ab-modal-toolbar p {
  margin: 0;
  color: #d9e9f5;
  font-size: 13px;
  line-height: 1.4;
}

.ab-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #91b2ca;
  border-radius: 8px;
  background: #bdd8ee;
  color: #263f52;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.ab-modal-close:hover {
  background: #d5e8f6;
}

.ab-modal-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.ab-modal-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

#ab-modal-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 132px);
  max-height: calc(100dvh - 132px);
  border-radius: 5px;
  object-fit: contain;
}

html.ab-modal-open,
body.ab-modal-open {
  overflow: hidden;
}

/* Tablety */
@media (max-width: 950px) {
  .ab-hero-grid {
    grid-template-columns: 1fr;
  }

  .ab-hero-note {
    display: none;
  }

  .ab-grid {
    grid-template-columns: 1fr;
  }

  .ab-process {
    grid-template-columns: repeat(2, 1fr);
  }

  .ab-contact {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Telefony */
@media (max-width: 650px) {
  .ab-wrap {
    width: calc(100% - 28px);
  }

  .ab-hero {
    min-height: 0;
    padding: 24px 0;
  }

  .ab-hero h1 {
    font-size: 1.625rem;
    line-height: 1.2;
  }

  .ab-lead {
    font-size: 1rem;
  }

  .ab-hero p:not([class*="eyebrow"]) {
    font-size: 1rem;
    line-height: 1.5;
  }

  .ab-actions {
    flex-direction: column;
  }

  .ab-section {
    padding: 22px 0;
  }

  .ab-intro {
    grid-template-columns: 1fr;
  }

  .ab-panel,
  .ab-service,
  .ab-contact {
    padding: 20px;
  }

  .ab-heading {
    display: block;
  }

  .ab-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ab-gallery-photo img {
    height: 190px;
  }

  .ab-step {
    padding: 16px;
  }

  .ab-process {
    gap: 10px;
  }

  #ab-photo-modal {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 10px;
  }

  .ab-modal-toolbar {
    padding: 8px 10px;
  }

  .ab-modal-image-wrap {
    padding: 8px;
  }
}

/* Bardzo małe ekrany */
@media (max-width: 370px) {
  .ab-gallery,
  .ab-process {
    grid-template-columns: 1fr;
  }
}

/* Ograniczenie animacji */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ab-gallery-photo img {
    transition: none;
  }
}