/* =========================================================
   IVComp — naprawa płyty głównej laptopa i notebooka

   Plik: assets/css/naprawa-plyty-glownej.css
   Tło: assets/images/naprawa_plyty_glownej01.png

   Wspólny nagłówek i stopka: site-chrome.css
   Modal rezerwacji: booking-modal.css
   ========================================================= */

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

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;

  color: #354453;
  background: #f5f8fb;

  font: 0.9375rem/1.55 Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

/* =========================================================
   Typografia
   ========================================================= */

h1 {
  margin: 0 0 14px;

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

  line-height: 1.13;
  letter-spacing: -1px;
}

h2 {
  margin: 0 0 16px;

  color: #253b4d;
  font-size: 1.5rem;
  line-height: 1.25;
}

h3 {
  margin: 10px 0;

  color: #2c4356;
  font-size: 1.125rem;
  line-height: 1.35;
}

p {
  margin: 0 0 16px;
}

.eyebrow {
  margin: 0 0 14px;

  color: #b8d5eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.lead {
  max-width: 700px;

  color: #dfebf4;
  font-size: 1rem;
}

/* =========================================================
   Starszy układ nagłówka
   Wspólny nagłówek .ivc-* obsługuje site-chrome.css
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;

  background: #fff;
  border-bottom: 1px solid #dde6ee;
  box-shadow: 0 3px 18px #22334408;
}

.navrow {
  display: flex;
  align-items: center;
  gap: 16px;

  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;

  text-decoration: none;
}

.brand img {
  display: block;
  flex-shrink: 0;

  width: 52px;
  height: 52px;

  border-radius: 7px;

  object-fit: contain;
}

.brand strong {
  display: block;

  color: #253747;
  font-size: 15px;
  line-height: 1.3;
}

.brand small {
  display: block;
  margin-top: 4px;

  color: #657889;
  font-size: 11px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-left: auto;

  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: #23658c;
}

.nav details {
  position: relative;
}

.nav summary {
  cursor: pointer;
}

.nav details div {
  position: absolute;
  top: 32px;
  left: 0;

  min-width: 230px;
  padding: 10px;

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

  background: #fff;
  box-shadow: 0 10px 30px #152c4320;
}

.nav details div a {
  display: block;
  padding: 8px;

  border-radius: 6px;
}

.nav details div a:hover {
  background: #edf5fb;
}

.menu-toggle {
  display: none;
}

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

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

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

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

  background: #bdd8ee;
  color: #314657;

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

.button:hover {
  background: #d0e4f4;
}

.button.secondary {
  border-color: #91a7b8;

  background: transparent;
  color: #fff;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

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

  margin-top: 25px;
}

/* =========================================================
   Baner — naprawa płyty głównej
   ========================================================= */

.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/naprawa_plyty_glownej01.png");

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

  color: #fff;
}

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

  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: center;
  gap: 16px;
}

.hero h1 {
  color: #fff;
}

.hero-note {
  padding: 25px;

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

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

.hero-note strong {
  display: block;

  color: #d9ebf9;
  font-size: 22px;
}

.hero-note p {
  margin: 10px 0 0;

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

/* =========================================================
   Sekcje
   ========================================================= */

.section {
  padding: 28px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p {
  color: #657889;
}

/* =========================================================
   Karty usług
   ========================================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;

  min-width: 0;
  overflow: hidden;

  border: 1px solid #dbe5ed;
  border-radius: 15px;

  background: #fff;
  box-shadow: 0 7px 22px #28425d09;

  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px #28425d14;
}

.photo {
  padding: 9px;

  border-bottom: 1px solid #dbe5ed;

  background: #edf3f8;
}

.photo img {
  display: block;

  width: 100%;
  height: 180px;

  border-radius: 8px;

  object-fit: contain;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 20px;
}

.label {
  color: #647f94;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.price {
  color: #286086;
  font-size: 14px;
  font-weight: 700;
}

.card-body > p:not(.price) {
  font-size: 14px;
  line-height: 1.65;
}

.card-link {
  margin-top: auto;
  padding-top: 12px;

  color: #225e86;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.note {
  margin: 22px 0 0;

  color: #657889;
  font-size: 13px;
}

/* =========================================================
   Artykuł — diagnostyka notebooków
   ========================================================= */

.article {
  max-width: 960px;
  margin: auto;
  padding: 20px;

  border: 1px solid #dbe5ed;
  border-left: 4px solid #9dbfd9;
  border-radius: 15px;

  background: #fff;
}

.article h3 {
  margin-top: 26px;
}

.article ul {
  padding-left: 22px;
}

.article li {
  margin-bottom: 10px;
}

/* =========================================================
   Etapy naprawy
   ========================================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;

  margin-top: 26px;
}

.step {
  padding: 20px;

  border: 1px solid #dbe5ed;
  border-radius: 14px;

  background: #fff;
}

.number {
  display: inline-grid;
  place-items: center;

  width: 38px;
  height: 38px;

  border-radius: 11px;

  background: #dfedf8;
  color: #2c5c7d;

  font-weight: 700;
}

.step h3 {
  margin: 16px 0 10px;
  font-size: 17px;
}

.step p {
  margin: 0;
  font-size: 14px;
}

/* =========================================================
   Sekcja kontaktowa CTA
   ========================================================= */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-top: 35px;
  padding: 32px;

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

  background: #e4eff8;
}

.cta h2 {
  font-size: 1.5rem;
}

.cta p {
  margin: 0;
}

.cta .button {
  flex-shrink: 0;
}

/* =========================================================
   Starszy układ stopki
   Wspólną stopkę .ivc-* obsługuje site-chrome.css
   ========================================================= */

.footer {
  padding: 48px 0 20px;

  background: #1b2c3b;
  color: #dbe5ed;
}

.footer h2 {
  color: #fff;
  font-size: 24px;
}

.footer h3 {
  color: #fff;
  font-size: 17px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 16px;
}

.footer a {
  color: #bdd8ee;
}

.footer iframe {
  width: 100%;
  height: 270px;

  border: 0;
  border-radius: 12px;
}

.copyright {
  margin-top: 30px;
  padding-top: 20px;

  border-top: 1px solid #ffffff20;

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

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

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

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

  padding: 10px;

  background: #fff;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #528fba;
  outline-offset: 4px;
}

/* =========================================================
   Mniejsze ekrany — do 1100px
   ========================================================= */

@media (max-width: 1100px) {
  .navrow {
    gap: 14px;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    font-size: 10px;
  }

  .nav > .button {
    padding: 10px;
  }

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

/* =========================================================
   Tablet — do 900px
   ========================================================= */

@media (max-width: 900px) {
  .menu-toggle {
    display: block;

    margin-left: auto;
    padding: 9px 12px;

    border: 1px solid #cfdeeb;
    border-radius: 8px;

    background: #edf4fa;
    color: #314657;

    font: inherit;
    cursor: pointer;
  }

  .navrow {
    flex-wrap: wrap;

    min-height: 76px;
    padding: 10px 0;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;

    width: 100%;
    margin: 0;
    padding: 12px 0;
  }

  .nav.open {
    display: flex;
  }

  .nav details div {
    position: static;

    margin-top: 8px;

    box-shadow: none;
  }

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

  .hero-note {
    display: none;
  }

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

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

  .map {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   Baner mobilny — do 650px
   ========================================================= */

@media (max-width: 650px) {
  .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/naprawa_plyty_glownej01.png");
  }

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

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

/* =========================================================
   Telefon — do 600px
   ========================================================= */

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

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 12px;
  }

  .brand small {
    font-size: 10px;
  }

  .menu-toggle {
    padding: 8px;
    font-size: 13px;
  }

  .actions {
    flex-direction: column;
  }

  .section {
    padding: 22px 0;
  }

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

  .photo img {
    height: 215px;
  }

  .article {
    padding: 16px;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;

    padding: 23px;
  }

  .footer-grid {
    gap: 12px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .map {
    grid-column: auto;
  }

  .footer {
    padding-top: 32px;
  }
}

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

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

  .service-card {
    transition: none;
  }
}