/* =========================================================
   IVComp — naprawa gniazd HDMI w konsolach

   Tło banera:
   assets/images/naprawa_hdmi01.png

   Ścieżki obrazów względem arkusza w assets/css/
   Wspólny nagłówek i stopka: site-chrome.css
   ========================================================= */

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

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;

  background: #f4f7fa;
  color: #435463;

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

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

/* =========================================================
   Zapasowy nagłówek
   ========================================================= */

.hd-fallback {
  padding: 12px 0;

  border-bottom: 1px solid #d9e4ed;

  background: #fff;
}

.hd-fallback nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hd-fallback a {
  text-decoration: none;
}

.hd-brand {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-right: auto;

  font-size: 13px;
  line-height: 1.35;
}

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

  width: 44px;
  height: 44px;

  border-radius: 5px;

  object-fit: contain;
}

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

  color: #677e90;
  font-size: 10px;
}

/* =========================================================
   Baner — naprawa HDMI
   ========================================================= */

.hd-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_hdmi01.png");

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

  color: #fff;
}

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

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

.hd-eyebrow {
  margin: 0 0 9px;

  color: #5c829e;
  font-size: 11px;
  font-weight: 700;

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

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

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

  color: #fff;

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

  line-height: 1.12;
  letter-spacing: -0.6px;
}

.hd-main .hd-hero .hd-lead {
  max-width: 760px;
  margin: 0;

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

.hd-hero-note {
  padding: 21px;

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

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

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

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

.hd-main .hd-hero-note p {
  margin: 9px 0 0;

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

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

.hd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 19px;
}

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

  min-height: 46px;
  padding: 11px 19px;

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

  background: #bdd8ee;
  color: #354b5c;

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

.hd-btn:hover {
  background: #d0e4f4;
}

.hd-btn-alt {
  border-color: #92a9bb;

  background: transparent;
  color: #fff;
}

.hd-btn-alt:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

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

.hd-main h2 {
  margin: 0 0 13px;

  color: #2a4356;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.hd-main h3 {
  margin: 0 0 10px;

  color: #314c61;
  font-size: 17px;
  line-height: 1.35;
}

.hd-main p {
  margin: 0 0 12px;
}

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

.hd-section {
  padding: 27px 0;
}

.hd-panel {
  padding: 20px;

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

  background: #fff;
  box-shadow: 0 5px 16px #23456306;
}

/* =========================================================
   Wprowadzenie i zdjęcia
   ========================================================= */

.hd-intro {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.hd-photo {
  padding: 7px;

  border: 1px solid #cbdde9;
  border-radius: 11px;

  background: #edf3f8;
}

.hd-photo img {
  display: block;

  width: 100%;
  height: 225px;

  border-radius: 6px;

  object-fit: contain;
}

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

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

.hd-list li {
  margin: 6px 0;
}

.hd-accent {
  border-left: 4px solid #9abed8;
}

.hd-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 18px;
}

.hd-muted {
  color: #667f92;
  font-size: 13px;
}

/* =========================================================
   Cennik
   ========================================================= */

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

.hd-price-card {
  display: flex;
  flex-direction: column;

  min-width: 0;
  overflow: hidden;

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

  background: #fff;
  box-shadow: 0 7px 20px #28466008;
}

.hd-price-card .hd-photo {
  border: 0;
  border-bottom: 1px solid #d5e2ec;
  border-radius: 0;
}

.hd-price-card .hd-photo img {
  height: 155px;
}

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

  min-width: 0;
  padding: 20px;
}

.hd-label {
  display: block;
  margin-bottom: 7px;

  color: #5d7e98;
  font-size: 10px;
  font-weight: 700;

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

.hd-main .hd-price {
  margin: 0 0 14px;

  color: #2d6289;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.15;
}

.hd-price-card p:not(.hd-price) {
  font-size: 14px;
}

.hd-price-card .hd-btn {
  align-self: flex-start;
  margin-top: auto;
}

.hd-main .hd-note {
  margin-top: 16px;
  padding: 12px 15px;

  border-left: 3px solid #9fc0d8;
  border-radius: 6px;

  background: #e9f2f8;
  color: #5c7487;

  font-size: 12px;
}

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

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

  margin-top: 18px;
}

.hd-step {
  padding: 19px;

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

  background: #fff;
}

.hd-step span {
  display: inline-grid;
  place-items: center;

  width: 32px;
  height: 32px;

  margin-bottom: 12px;

  border-radius: 8px;

  background: #e1eef7;
  color: #376484;

  font-weight: 700;
}

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

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

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

  padding: 23px;

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

  background: #e4eff8;
}

.hd-cta .hd-btn {
  flex-shrink: 0;
}

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

.hd-contact {
  padding: 24px;

  border: 1px solid #d4e2ed;
  border-top: 3px solid #a8c7df;
  border-radius: 13px;

  background: #fff;
}

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

  margin-top: 18px;
}

.hd-contact-grid h3 {
  margin-bottom: 7px;
  font-size: 14px;
}

.hd-contact-grid p,
.hd-contact-grid a {
  font-size: 14px;
}

.hd-contact-grid a {
  color: #2f6389;
}

/* =========================================================
   Zapasowa stopka
   ========================================================= */

.hd-footer-fallback {
  padding: 30px 0;

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

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

.hd-footer-fallback a {
  color: #bdd8ee;
}

.hd-footer-fallback iframe {
  display: block;

  width: 100%;
  height: 230px;

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

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

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

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

  padding: 10px;

  background: #fff;
}

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

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

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

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

  .hd-intro {
    grid-template-columns: 240px minmax(0, 1fr);
  }

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

  .hd-prices {
    gap: 12px;
  }

  .hd-card-body {
    padding: 16px;
  }

  .hd-main .hd-price {
    font-size: 26px;
  }
}

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

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

  .hd-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_hdmi01.png");
  }

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

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

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

  .hd-section {
    padding: 21px 0;
  }

  .hd-intro,
  .hd-two,
  .hd-prices,
  .hd-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-panel,
  .hd-contact,
  .hd-cta {
    padding: 20px;
  }

  .hd-heading {
    display: block;
  }

  .hd-price-card {
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr);
  }

  .hd-price-card .hd-photo {
    display: flex;
    align-items: center;

    border-bottom: 0;
    border-right: 1px solid #d5e2ec;
  }

  .hd-price-card .hd-photo img {
    height: 140px;
  }

  .hd-price-card h3 {
    font-size: 16px;
  }

  .hd-price-card .hd-btn {
    padding: 9px 12px;
    font-size: 13px;
  }

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

  .hd-step {
    padding: 15px;
  }

  .hd-fallback nav {
    gap: 10px;
    font-size: 12px;
  }

  .hd-brand {
    width: 100%;
  }
}

/* =========================================================
   Bardzo małe ekrany
   ========================================================= */

@media (max-width: 370px) {
  .hd-contact-grid,
  .hd-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-price-card {
    display: flex;
  }

  .hd-price-card .hd-photo {
    border-right: 0;
  }

  .hd-price-card .hd-photo img {
    height: 150px;
  }
}

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

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