/* ==========================================================================
   Serwis drukarek – arkusz stylów
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Kolory marki (z dotychczasowego logo) */
  --blue: #0269ae;
  --blue-dark: #015490;
  --blue-100: #d3e4f1;
  --blue-50: #ecf4fa;

  /* Szarości */
  --ink: #1d2733;
  --text: #3b4652;
  --muted: #5d6874;
  --line: #dde2e6;
  --gray-100: #f3f5f7;
  --gray-300: #c1c6c9;

  /* Akcenty CMYK */
  --cmyk-c: #00a0e3;
  --cmyk-m: #e4007d;
  --cmyk-y: #ffd500;
  --cmyk-k: #1d1d1b;

  --radius: 12px;
  --container: 1120px;
  --header-h: 72px;
}

/* ---------- Podstawy ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: var(--blue);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* sekcje dostają fokus po kliknięciu w menu (js/main.js) – bez obwódki */
section[tabindex="-1"]:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container.narrow {
  max-width: 800px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  border-color: var(--blue-100);
  color: var(--blue);
}

.btn-secondary:hover {
  background: var(--blue-50);
}

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

/* cienki pasek CMYK */
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg,
      var(--cmyk-c) 0 25%,
      var(--cmyk-m) 25% 50%,
      var(--cmyk-y) 50% 75%,
      var(--cmyk-k) 75% 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: calc(var(--header-h) - 5px);
}

.brand img {
  height: 32px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--blue);
  background: var(--blue-50);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 2px solid var(--blue-100);
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  background: var(--blue-50);
}

/* ---------- Sekcja główna ---------- */

.hero {
  background: var(--blue);
  color: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding-block: 64px;
}

.eyebrow {
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero h1 {
  max-width: 16em;
  color: #fff;
  font-size: clamp(2rem, 1.25rem + 3vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
}

.lead {
  max-width: 30em;
  margin-top: 20px;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero .btn-primary {
  background: #fff;
  color: var(--blue);
}

.hero .btn-primary:hover {
  background: var(--blue-50);
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero :focus-visible {
  outline-color: #fff;
}

.hero-meta {
  margin-top: 20px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-art {
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

/* ilustracja drukarki */
.pi-bg { fill: rgba(255, 255, 255, 0.08); }
.pi-shadow { fill: rgba(0, 0, 0, 0.14); }
.pi-paper { fill: #fff; stroke: var(--gray-300); stroke-width: 2; }
.pi-line { fill: none; stroke: var(--gray-300); stroke-width: 5; stroke-linecap: round; }
.pi-top { fill: #dfe5ea; stroke: var(--ink); stroke-width: 3; }
.pi-body { fill: #f7f9fb; stroke: var(--ink); stroke-width: 3; }
.pi-screen { fill: var(--blue); }
.pi-check { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.pi-btn { fill: var(--gray-300); }
.pi-slot { fill: var(--ink); }

.cmyk-c { fill: var(--cmyk-c); }
.cmyk-m { fill: var(--cmyk-m); }
.cmyk-y { fill: var(--cmyk-y); }
.cmyk-k { fill: var(--cmyk-k); }

/* ---------- Sekcje ---------- */

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section-alt {
  background: var(--gray-100);
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2,
.benefits h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 10px;
  color: var(--muted);
}

/* ---------- Osiągnięcia i zalety ---------- */

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat {
  text-align: center;
}

.stat-art {
  width: 100%;
  max-width: 220px;
  margin-inline: auto;
  color: var(--blue);
}

.stat-number {
  fill: var(--ink);
  font-family: inherit;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-number-sm {
  font-size: 34px;
}

.stat-unit {
  fill: var(--blue);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.stat figcaption {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
}

.sheet-paper { fill: #fff; stroke: currentColor; stroke-width: 2.4; }
.sheet-printer { fill: #fff; stroke: currentColor; stroke-width: 2.6; }
.sheet-slot { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.sheet-line { fill: none; stroke: var(--gray-300); stroke-width: 4; stroke-linecap: round; }

.benefit-list {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.benefit-list .icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  stroke-width: 1.6;
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--blue);
}

.benefit-list strong {
  display: block;
  color: var(--ink);
  font-size: 1.125rem;
}

.benefit-list span {
  display: block;
  color: var(--muted);
}

/* ---------- Usterki ---------- */

.issues {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.issue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 14px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.issue .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
  color: var(--blue);
}

/* ---------- Cennik ---------- */

.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.price-table tr:last-child th,
.price-table tr:last-child td {
  border-bottom: 0;
}

.price-table th {
  text-align: left;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
}

.price-table th span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.975rem;
  font-weight: 500;
}

.price {
  text-align: right;
  white-space: nowrap;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.price-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Marki ---------- */

.brands {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.brands li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #4a5560;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ---------- Kontakt ---------- */

.contact {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
}

.contact-list {
  display: grid;
  gap: 20px;
  margin: 0 0 28px;
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-list a {
  font-weight: 700;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.storefront {
  margin-top: 36px;
  max-width: 408px;
}

.storefront img {
  border-radius: var(--radius);
}

.storefront figcaption,
.map figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* na desktopie mapa wypełnia wysokość kolumny z danymi kontaktowymi;
   pinezka jest na środku obrazu, więc przycięcie boków jej nie gubi */
.map {
  display: flex;
  flex-direction: column;
}

.map > a {
  display: block;
  flex: 1;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map figcaption {
  text-align: right;
}

.map figcaption a {
  display: inline;
  border: 0;
  color: inherit;
}

/* ---------- Stopka ---------- */

.site-footer {
  background: var(--gray-100);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: 40px 28px;
}

.footer-brand img {
  height: 26px;
  width: auto;
}

.footer-brand p {
  margin-top: 10px;
  color: var(--muted);
}

.footer-contact {
  font-style: normal;
  line-height: 1.8;
}

.footer-contact a {
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom {
  padding-block: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Pasek „Zadzwoń” (tylko telefon) ---------- */

.call-bar {
  display: none;
}

/* ==========================================================================
   Responsywność
   ========================================================================== */

@media (max-width: 999px) {
  .issues {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .map {
    order: -1;
  }

  .map > a {
    min-height: 0;
  }

  .map img {
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 719px) {
  :root {
    --header-h: 0px;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  /* na telefonie nagłówek nie jest przyklejony – przyklejony jest pasek „Zadzwoń” */
  .site-header {
    position: static;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 6px;
    padding-block: 14px 8px;
  }

  .brand img {
    height: 26px;
  }

  .header-phone {
    display: none;
  }

  .main-nav {
    width: 100%;
    margin-left: -12px;
    justify-content: space-between;
  }

  .main-nav a {
    font-size: 0.95rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 40px 44px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* numer jest stale w pasku „Zadzwoń” na dole – bez dubla w sekcji głównej */
  .hero-actions .btn-primary {
    display: none;
  }

  .hero-art {
    max-width: 280px;
  }

  .issues {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .issue {
    padding: 22px 10px 18px;
    font-size: 0.95rem;
  }

  .brands {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .brands li {
    min-height: 60px;
    font-size: 1.1rem;
  }

  .price-table th,
  .price-table td {
    padding: 18px 16px;
  }

  .price {
    font-size: 1.25rem;
  }

  .stat-art {
    max-width: 170px;
  }

  .stat figcaption {
    font-size: 1rem;
  }

  .call-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: var(--blue);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  }
}
