/* =========================================================
   IVComp — podstrona czyszczenia konsol
   Nagłówek i stopka: site-chrome.css
   Rezerwacje: booking-modal.css

   Obrazy w assets/images/:
   - czyszczenie_konsol01.png
   - ps4_xbox.png
   - ps5_xbox_s.png
   ========================================================= */

/* =========================================================
   Ustawienia podstawowe
   ========================================================= */

* {
  box-sizing: border-box;
}

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

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

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.cs-wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

/* =========================================================
   Treść i typografia
   ========================================================= */

.cs-page {
  line-height: 1.45;
}

.cs-page p {
  margin: 0 0 10px;
  line-height: 1.45;
}

.cs-page p:last-child {
  margin-bottom: 0;
}

.cs-page h2 {
  margin: 0 0 12px;
  color: #293f51;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.cs-page h3 {
  margin: 0 0 9px;
  color: #2e475b;
  font-size: 1.125rem;
  line-height: 1.25;
}

.cs-page .cs-eyebrow {
  margin: 0 0 7px;
  color: #58809d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Mniejsze odstępy pomiędzy sekcjami */
.cs-section {
  padding: 10px 0;
}

.cs-heading {
  max-width: 760px;
  margin-bottom: 12px;
}

/* =========================================================
   Baner główny
   ========================================================= */

.cs-hero {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 22rem;
  height: auto;
  padding: 32px 0;

  overflow: hidden;

  background-color: #172938;

  background-image:
    linear-gradient(
      90deg,
      rgba(15, 29, 42, 0.92) 0%,
      rgba(15, 29, 42, 0.78) 42%,
      rgba(15, 29, 42, 0.32) 72%,
      rgba(15, 29, 42, 0.15) 100%
    ),
    url("../images/czyszczenie_konsol01.png");

  background-repeat: no-repeat;
  background-position: center, center right;
  background-size: cover;

  color: #fff;
}

.cs-hero-grid {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;

  row-gap: 16px;
  column-gap: 8px;
}

.cs-page .cs-hero .cs-eyebrow {
  color: #bdd8ee;
}

.cs-hero h1 {
  margin: 0 0 14px;

  color: #fff;

  font-size: clamp(
    1.625rem,
    1.3rem + 1.2vw,
    2.25rem
  );

  line-height: 1.15;
  letter-spacing: -0.7px;
}

.cs-page .cs-lead {
  max-width: 720px;
  margin: 0;

  color: #dfeaf2;
  font-size: 1rem;
  line-height: 1.45;
}

.cs-hero-note {
  padding: 22px;

  border: 1px solid rgba(189, 216, 238, 0.3);
  border-radius: 15px;

  background: rgba(15, 29, 42, 0.78);
}

.cs-page .cs-hero-note p {
  margin: 0 0 12px;

  color: #dce8f1;
  font-size: 14px;
}

.cs-page .cs-hero-note p:last-child {
  margin-bottom: 0;
}

.cs-hero-note strong {
  display: block;

  color: #fff;
  font-size: 21px;
}

/* =========================================================
   Przyciski
   ========================================================= */

.cs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 20px;
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 12px 20px;

  border: 1px solid #a6c5dc;
  border-radius: 9px;

  background: #bdd8ee;
  color: #334959;

  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.cs-btn:hover {
  background: #d3e6f4;
}

.cs-btn-ghost {
  border-color: #91a9ba;

  background: transparent;
  color: #fff;
}

.cs-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* =========================================================
   Artykuły i zdjęcia
   ========================================================= */

.cs-article {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;

  row-gap: 16px;
  column-gap: 8px;

  padding: 20px;

  border: 1px solid #d9e4ed;
  border-radius: 16px;

  background: #fff;
  box-shadow: 0 8px 22px rgba(35, 62, 87, 0.03);
}

.cs-photo {
  padding: 7px;

  border: 1px solid #d0dfeb;
  border-radius: 12px;

  background: #edf3f8;
}

.cs-photo img {
  display: block;

  width: 100%;
  height: 260px;

  border-radius: 7px;

  object-fit: contain;
}

/* =========================================================
   Listy
   ========================================================= */

.cs-page .cs-list {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.cs-page .cs-list li {
  margin-bottom: 4px;
  padding-left: 4px;

  line-height: 1.4;
}

.cs-page .cs-list li:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Karty korzyści
   ========================================================= */

.cs-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  row-gap: 16px;
  column-gap: 8px;

  margin-top: 10px;
}

.cs-small-card {
  padding: 20px;

  border: 1px solid #d9e4ed;
  border-top: 3px solid #aac9e0;
  border-radius: 13px;

  background: #fff;
}

.cs-small-card h3 {
  font-size: 18px;
}

.cs-small-card p {
  font-size: 15px;
}

/* =========================================================
   Serwis napędów
   ========================================================= */

.cs-drive {
  padding: 25px;

  border: 1px solid #cddfeb;
  border-left: 4px solid #98bdd8;
  border-radius: 15px;

  background: #eaf2f8;
}

.cs-drive ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  row-gap: 10px;
  column-gap: 16px;
}

.cs-page .cs-note {
  margin-top: 12px;

  color: #62798a;
  font-size: 13px;
  line-height: 1.45;
}

/* =========================================================
   Cennik — układ kart
   ========================================================= */

.cs-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;

  row-gap: 16px;
  column-gap: 8px;
}

.cs-price-card {
  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;

  min-width: 0;
  margin: 0;
  padding: 28px 28px 220px;

  overflow: hidden;
  overflow-wrap: anywhere;

  border: 1px solid rgba(30, 64, 100, 0.14);
  border-radius: 22px;

  background-color: #f5f9fd;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;

  box-shadow: 0 12px 32px rgba(20, 45, 75, 0.09);
}

/* PS4 / Xbox One */
.cs-price-card.cs-price-ps4 {
  background-image: url("../images/ps4_xbox.png");
}

/* PS5 / Xbox Series */
.cs-price-card.cs-price-ps5 {
  background-image: url("../images/ps5_xbox_s.png");
}

/* =========================================================
   Cennik — treść
   ========================================================= */

.cs-models {
  display: block;
  margin: 0 0 8px;

  color: #43566d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;

  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.cs-page .cs-price-card h3 {
  margin: 0 0 12px;

  color: #14263d;
  line-height: 1.2;
}

.cs-page .cs-price {
  margin: 0 0 16px;

  color: #14263d;
  font-size: 39px;
  font-weight: 700;
  line-height: 1;
}

.cs-price span {
  font-size: 17px;
}

.cs-page .cs-price-card .cs-list {
  flex: 1 1 auto;

  margin: 0 0 20px;
  padding-left: 20px;

  color: #263b52;
  line-height: 1.45;
}

.cs-page .cs-price-card .cs-list li {
  margin: 0 0 7px;
  line-height: 1.45;
}

.cs-page .cs-price-card .cs-list li:last-child {
  margin-bottom: 0;
}

/* Przycisk nad dolnym obszarem ze zdjęciem konsol */
.cs-price-card > .cs-btn {
  align-self: flex-start;
  margin: auto 0 0;
}

/* =========================================================
   Galeria
   ========================================================= */

.cs-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  row-gap: 16px;
  column-gap: 8px;
}

.cs-gallery-photo {
  display: block;
  padding: 7px;

  border: 1px solid #cfdfeb;
  border-radius: 13px;

  background: #fff;
  box-shadow: 0 7px 20px rgba(40, 70, 96, 0.04);

  text-decoration: none;
  cursor: zoom-in;

  transition: transform 0.2s;
}

.cs-gallery-photo:hover {
  transform: translateY(-3px);
}

.cs-gallery-photo img {
  display: block;

  width: 100%;
  height: 200px;

  border-radius: 8px;

  background: #edf3f8;

  object-fit: contain;
}

.cs-gallery-photo span {
  display: block;
  padding: 10px 5px 4px;

  color: #577187;
  font-size: 12px;
}

/* =========================================================
   Kontakt
   ========================================================= */

.cs-cta {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;

  row-gap: 16px;
  column-gap: 8px;

  padding: 25px;

  border: 1px solid #c9ddeb;
  border-radius: 16px;

  background: #e4eff8;
}

.cs-cta img {
  display: block;

  width: 100%;
  height: 190px;

  border-radius: 9px;

  object-fit: contain;
}

/* =========================================================
   Dostępność
   ========================================================= */

.cs-skip {
  position: absolute;
  left: -9999px;
}

.cs-skip:focus {
  top: 10px;
  left: 10px;
  z-index: 2000;

  padding: 10px;

  background: #fff;
}

a:focus-visible {
  outline: 3px solid #5a92b9;
  outline-offset: 4px;
}

/* =========================================================
   Podgląd zdjęć — bez ramki
   ========================================================= */

#cs-lightbox {
  position: fixed;
  inset: 0;

  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;
  outline: none;

  background: transparent;
  box-shadow: none;

  overflow: hidden;
}

#cs-lightbox[open] {
  display: grid;
  place-items: center;
}

#cs-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

#cs-lightbox-image {
  display: block;

  width: auto;
  height: auto;

  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;
  box-shadow: none;

  object-fit: contain;
}

#cs-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;

  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.45);
  color: #fff;

  font: 36px/1 Arial, Helvetica, sans-serif;

  cursor: pointer;
}

#cs-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

#cs-lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

html.cs-lightbox-open,
html.cs-lightbox-open body {
  overflow: hidden;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 950px) {
  .cs-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .cs-article {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .cs-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-benefits {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   Telefon
   ========================================================= */

@media (max-width: 650px) {
  .cs-wrap {
    width: calc(100% - 28px);
  }

  .cs-hero {
    min-height: 0;
    height: auto;
    padding: 24px 0;

    background-image:
      linear-gradient(
        90deg,
        rgba(15, 29, 42, 0.94) 0%,
        rgba(15, 29, 42, 0.82) 65%,
        rgba(15, 29, 42, 0.65) 100%
      ),
      url("../images/czyszczenie_konsol01.png");
  }

  .cs-hero h1 {
    font-size: 1.625rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
  }

  .cs-page .cs-hero .cs-lead {
    font-size: 1rem;
    line-height: 1.5;
  }

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

  .cs-article,
  .cs-prices,
  .cs-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-article,
  .cs-drive,
  .cs-cta {
    padding: 21px;
  }

  .cs-photo img {
    height: 240px;
  }

  .cs-drive ul {
    display: block;
  }

  .cs-price-card {
    padding: 24px 22px 190px;
    border-radius: 18px;
  }

  .cs-gallery {
    row-gap: 10px;
  }

  .cs-gallery-photo img {
    height: 165px;
  }

  .cs-gallery-photo span {
    font-size: 11px;
  }

  .cs-cta img {
    height: 170px;
  }

  #cs-lightbox-image {
    max-width: calc(100vw - 16px);
  }
}

/* =========================================================
   Ograniczenie animacji
   ========================================================= */

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

  .cs-gallery-photo {
    transition: none;
  }
}