* { box-sizing: border-box; }

:root {
  --navy: #082566;
  --navy-2: #17377f;
  --blue: #176bff;
  --cyan: #1ec9df;
  --green: #26cc67;
  --text: #173471;
  --muted: #456094;
  --line: #e8edf3;
  --container: 1390px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(calc(100% - 96px), var(--container));
  margin-inline: auto;
}

/* HEADER */
.site-header {
  position: relative;
  z-index: 10;
  padding: 26px 0 8px;
  background: #fff;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 61px;
  color: #092566;
  font-size: 19px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 16px 0 18px;
}

.main-nav a.active { color: #0a5bff; }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  bottom: 7px;
  height: 2px;
  background: #0e67ff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

/* HERO — proportions taken from the approved master */
.scan-hero {
  position: relative;
  padding: 84px 0 46px;
}

.scan-hero-grid {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: 66px;
  align-items: center;
}

.scan-hero-copy {
  padding-left: 14px;
}

.scan-hero-copy h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(64px, 5.5vw, 84px);
  line-height: .98;
  letter-spacing: -.045em;
}

.title-line {
  display: block;
  width: 92px;
  height: 3px;
  margin: 28px 0 32px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
}

.scan-hero-copy p {
  max-width: 560px;
  margin: 0;
  color: #183774;
  font-size: 19px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  gap: 30px;
  margin-top: 38px;
}

.btn {
  height: 62px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border-radius: 9px;
  font-size: 17px;
  font-weight: 600;
}

.btn-primary {
  min-width: 220px;
  color: #fff;
  background: #08266b;
}

.btn-primary img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.btn-secondary {
  min-width: 250px;
  color: #173471;
  border: 1.5px solid #183675;
  background: #fff;
}

.btn-secondary .arrow {
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.scan-hero-visual {
  min-height: 370px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-hero-visual img {
  width: min(92%, 585px);
  height: auto;
}

/* SECTION HEADINGS */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 31px;
  line-height: 1;
}

.heading-line {
  width: 64px;
  height: 2px;
}

.heading-line.blue { background: var(--blue); }
.heading-line.green { background: var(--green); }

/* PROCESS — V0.5 matched directly to the supplied master screenshot */
.process-section {
  padding: 12px 0 18px;
}

.process-section .section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 18px;
}

.process-section .section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
}

.process-section .heading-line {
  width: 46px;
  height: 2px;
}

.process-row {
  display: grid;
  grid-template-columns: 220px 92px 220px 92px 220px;
  justify-content: center;
  align-items: start;
  column-gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.process-step {
  width: 220px;
  text-align: center;
}

.process-visual {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-visual img {
  width: 204px;
  height: 204px;
  object-fit: contain;
}

.process-step h3 {
  margin: 10px 0 8px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.22;
  font-weight: 800;
}

.process-step p {
  width: 205px;
  margin: 0 auto;
  color: #304d86;
  font-size: 12px;
  line-height: 1.42;
}

/* Exact visual logic from the master:
   a short dotted blue connector ending in a thin arrow. */
.process-arrow {
  position: relative;
  width: 92px;
  height: 220px;
}

.process-arrow::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 104px;
  border-top: 3px dotted #176bff;
}


.process-arrow::after {
  content: none;
}

/* BENEFITS — V0.4 matched to the approved master proportions */
.benefits-section {
  padding: 8px 0 18px;
}

.benefits-heading {
  margin-bottom: 12px;
}

.benefits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1040px;
  margin: 0 auto;
  border-top: 1px solid #f2f4f7;
}

.benefit-item {
  min-height: 138px;
  padding: 18px 24px 12px;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 16px;
  align-items: start;
}

.benefit-item + .benefit-item {
  border-left: 1px solid #f0f3f7;
}

.benefit-item img {
  width: 58px;
  max-height: 70px;
  object-fit: contain;
}

.benefit-item h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.18;
}

.benefit-item p {
  margin: 0;
  color: #304d86;
  font-size: 11.5px;
  line-height: 1.42;
}

/* FOOTER */
.contact-footer { padding: 4px 0 26px; }

.contact-footer-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  padding: 0 78px;
  color: #fff;
  background: #17377f;
  border-radius: 17px;
}

.contact-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  white-space: nowrap;
  font-size: 18px;
}

.footer-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.72);
}

.footer-icon-master {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
}

.footer-icon-www {
  transform: scale(.92);
  transform-origin: center;
}

@media (max-width: 1050px) {
  .container { width: min(calc(100% - 48px), var(--container)); }
  .brand img { width: 265px; }
  .main-nav { gap: 34px; }

  .scan-hero {
    padding-top: 52px;
  }

  .scan-hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scan-hero-copy { padding-left: 0; }

  .scan-hero-visual {
    min-height: 0;
  }

  .scan-hero-visual img {
    width: min(92%, 620px);
  }

  .process-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-arrow {
    margin: -8px 0;
    justify-self: center;
    transform: rotate(90deg);
  }

  .benefits-row {
    grid-template-columns: 1fr;
  }

  .benefit-item + .benefit-item {
    border-left: 0;
    border-top: 1px solid #edf1f5;
  }

  .contact-footer-inner {
    padding: 0 34px;
    gap: 18px;
  }

  .contact-entry { font-size: 16px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 30px), var(--container)); }

  .site-header { padding-top: 15px; }
  .brand img { width: 220px; }

  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    left: 15px;
    right: 15px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 14px;
    box-shadow: 0 16px 35px rgba(18,45,85,.10);
  }

  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 4px; }

  .scan-hero-copy h1 { font-size: 46px; }

  .scan-hero-copy p { font-size: 16px; }

  .hero-actions {
    flex-direction: column;
    gap: 14px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section-heading {
    gap: 15px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .heading-line {
    width: 38px;
  }

  .process-visual {
    height: 225px;
  }

  .process-visual img {
    width: 218px;
    height: 218px;
  }

  .benefit-item {
    grid-template-columns: 78px 1fr;
    padding: 20px 10px;
  }

  .benefit-item img {
    width: 70px;
  }

  .contact-footer-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px 24px;
  }

  .contact-entry {
    justify-content: flex-start;
    padding: 10px 0;
    font-size: 15px;
  }

  .footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,.25);
  }
}




@media (max-width: 1050px) {
  .container { width: min(calc(100% - 48px), var(--container)); }
  .brand img { width: 265px; }
  .main-nav { gap: 34px; }

  .scan-hero { padding-top: 52px; }

  .scan-hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scan-hero-copy { padding-left: 0; }

  .scan-hero-visual {
    min-height: 0;
  }

  .scan-hero-visual img {
    width: min(92%, 620px);
  }

  .process-row {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 620px;
  }

  .process-step {
    width: 100%;
  }

  .process-visual {
    width: 220px;
    height: 220px;
    margin: 0 auto;
  }

  .process-arrow {
    width: 80px;
    height: 54px;
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .process-arrow::before {
    top: 26px;
  }

  .process-arrow::after {
    top: 13px;
  }

  .benefits-row {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .benefit-item + .benefit-item {
    border-left: 0;
    border-top: 1px solid #f0f3f7;
  }

  .contact-footer-inner {
    padding: 0 34px;
    gap: 18px;
  }

  .contact-entry { font-size: 16px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 30px), var(--container)); }

  .site-header { padding-top: 15px; }
  .brand img { width: 220px; }

  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    left: 15px;
    right: 15px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 14px;
    box-shadow: 0 16px 35px rgba(18,45,85,.10);
  }

  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 4px; }

  .scan-hero-copy h1 { font-size: 46px; }
  .scan-hero-copy p { font-size: 16px; }

  .hero-actions {
    flex-direction: column;
    gap: 14px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section-heading {
    gap: 16px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .heading-line {
    width: 38px;
  }

  .process-visual {
    width: 196px;
    height: 196px;
  }

  .process-visual img {
    width: 184px;
    height: 184px;
  }

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

  .process-step p {
    width: min(100%, 215px);
    font-size: 12px;
  }

  .benefit-item {
    grid-template-columns: 64px 1fr;
    padding: 17px 8px;
  }

  .benefit-item img {
    width: 56px;
  }

  .contact-footer-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px 24px;
  }

  .contact-entry {
    justify-content: flex-start;
    padding: 10px 0;
    font-size: 15px;
  }

  .footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,.25);
  }
}


/* ==========================================================
   V0.6 — APPROVED ICON MASTERS
   These rules intentionally normalize only rendering size.
   The PNG masters themselves are not modified or reinterpreted.
   ========================================================== */

/* „Jak pracujemy?” — all three masters share the same 1254x1254 canvas */
.process-visual {
  width: 220px;
  height: 220px;
  overflow: visible;
}

.process-visual img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: none;
}

/* „Co zyskujesz?” — V2 icon masters, same source canvas */
.benefit-item img {
  width: 72px;
  height: 72px;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: none;
}

/* The CTA email asset comes from the fixed contact-icon family. */
.btn-primary img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

/* Mobile: keep the same relative icon logic, only reduce the common frame. */
@media (max-width: 760px) {
  .process-visual {
    width: 196px;
    height: 196px;
  }

  .process-visual img {
    width: 196px;
    height: 196px;
  }

  .benefit-item img {
    width: 62px;
    height: 62px;
  }
}


/* V0.7 requested cleanup */
.benefit-accent {
  display: none !important;
}

/* Larger icon in "Skontaktuj się" CTA only */
.btn-primary img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}


/* ==========================================================
   V0.9 — LOCKED SCAN HERO MASTER
   The hero artwork is now a clean transparent source asset.
   No CSS masking, repainting or artifact hiding is used.
   ========================================================== */

.scan-hero-visual {
  position: relative;
  overflow: visible;
}

.scan-hero-visual::after {
  content: none;
}

.scan-hero-visual img {
  width: min(92%, 585px);
  height: auto;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 1050px) {
  .scan-hero-visual img {
    width: min(92%, 620px);
  }
}

@media (max-width: 760px) {
  .scan-hero-visual img {
    width: 100%;
  }
}


/* ==========================================================
   V0.10 — SOFT HERO BACKGROUND
   Requested change only:
   - keep hero graphic at exactly the V0.9 size,
   - do NOT fade/dim the right edge,
   - add only a very soft neutral/light technical background
     behind the hero asset to reduce visual harshness.
   ========================================================== */

.scan-hero-visual {
  position: relative;
  isolation: isolate;
}

.scan-hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 118%;
  height: 112%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at center,
      rgba(255,255,255,1) 0%,
      rgba(249,252,255,.96) 40%,
      rgba(244,249,255,.58) 64%,
      rgba(255,255,255,0) 82%
    );
  filter: blur(12px);
  pointer-events: none;
}

.scan-hero-visual img {
  position: relative;
  z-index: 1;
  /* V0.9 size intentionally unchanged */
  width: min(92%, 585px);
  height: auto;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
  mask-image: none;
  -webkit-mask-image: none;
}

@media (max-width: 1050px) {
  .scan-hero-visual img {
    width: min(92%, 620px);
  }
}

@media (max-width: 760px) {
  .scan-hero-visual img {
    width: 100%;
  }
}


/* V0.11 candidate — wyłącznie nowe HERO2 */
.scan-hero-visual picture {
  display: block;
  width: 100%;
}

.scan-hero-visual picture img {
  display: block;
  width: min(92%, 585px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}


/* ==========================================================
   V0.6 — CTA BUTTONS LOCKED TO START
   Exact visual rules copied from assets/css/styles.css.
   Existing service-page button rules above remain untouched;
   this final block overrides them only for the CTA appearance.
   ========================================================== */

.btn {
  min-width: 206px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 600;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #072b75, #06215e);
  box-shadow: 0 8px 18px rgba(4, 37, 104, .10);
}

.btn-secondary {
  color: #122d68;
  background: #fff;
  border: 1.5px solid #29498a;
}

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

.btn-icon {
  font-size: 20px;
  line-height: 1;
}

.btn-arrow {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}


/* ==========================================================
   V0.7 — SERVICE PAGE RHYTHM / TYPOGRAPHY
   Shared tuning for Skanowanie 3D / Inżynieria odwrotna / QC.
   ========================================================== */

/* H1 — slightly calmer hierarchy */
.scan-hero-copy h1,
.re-hero-copy h1,
.qc-hero-copy h1 {
  font-size: 60px !important;
  line-height: 1.06 !important;
}

/* HERO -> "Jak pracujemy?" */
.process-section {
  padding-top: 80px !important;
}

/* Heading -> process icons */
.process-section .section-heading {
  margin-bottom: 38px !important;
}

/* "Jak pracujemy?" -> "Co zyskujesz?" */
.process-section {
  padding-bottom: 64px !important;
}

.benefits-section {
  padding-top: 0 !important;
}

/* Heading -> benefit cards */
.benefits-section .section-heading {
  margin-bottom: 32px !important;
}

/* Benefits -> contact footer */
.benefits-section {
  padding-bottom: 48px !important;
}

/* Tablet */
@media (max-width: 1050px) {
  .scan-hero-copy h1,
  .re-hero-copy h1,
  .qc-hero-copy h1 {
    font-size: 52px !important;
  }

  .process-section {
    padding-top: 68px !important;
    padding-bottom: 56px !important;
  }

  .process-section .section-heading {
    margin-bottom: 34px !important;
  }

  .benefits-section .section-heading {
    margin-bottom: 30px !important;
  }

  .benefits-section {
    padding-bottom: 42px !important;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .scan-hero-copy h1,
  .re-hero-copy h1,
  .qc-hero-copy h1 {
    font-size: 42px !important;
    line-height: 1.08 !important;
  }

  .process-section {
    padding-top: 54px !important;
    padding-bottom: 46px !important;
  }

  .process-section .section-heading {
    margin-bottom: 28px !important;
  }

  .benefits-section .section-heading {
    margin-bottom: 26px !important;
  }

  .benefits-section {
    padding-bottom: 36px !important;
  }
}


/* ==========================================================
   V0.8 — LOCKED DESKTOP HEADER / NAV
   Source of truth: START.
   Same logo size, header height, container width, nav font,
   gaps, link padding and active underline on every page.
   ========================================================== */
@media (min-width: 761px) {
  .site-header {
    position: relative !important;
    z-index: 20 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .site-header .container {
    width: min(calc(100% - 52px), 1110px) !important;
    margin-inline: auto !important;
  }

  .header-inner {
    min-height: 92px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 48px !important;
  }

  .brand {
    width: 185px !important;
    display: block !important;
    flex: 0 0 185px !important;
  }

  .brand img {
    width: 100% !important;
    height: auto !important;
  }

  .main-nav {
    display: flex !important;
    align-items: center !important;
    gap: 51px !important;
    color: #071f55 !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: normal !important;
  }

  .main-nav a {
    position: relative !important;
    padding: 34px 0 29px !important;
  }

  .main-nav a::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 18px !important;
    width: 0 !important;
    height: 2px !important;
    background: #1769ee !important;
    transform: translateX(-50%) !important;
    transition: width .18s ease !important;
  }

  .main-nav a:hover::after,
  .main-nav a.active::after {
    width: 58px !important;
  }

  .menu-toggle {
    display: none !important;
  }
}
