/* =========================================================
   PoloCheck 3D — START V0.2
   Dopasowanie do POLOCHECK3D_WEB_MASTER_V1_LOCKED
   ========================================================= */

:root {
  --navy: #062568;
  --navy-deep: #041c56;
  --blue: #116cf2;
  --cyan: #14aee6;
  --green: #08a92c;
  --ink: #0c2b64;
  --body: #18396f;
  --muted: #536b92;
  --line: #dfe6ee;
  --card-border: #e3e8ee;
  --white: #ffffff;
  --container: 1110px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a {
  color: inherit;
  text-decoration: none;
}

button { font: inherit; }

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

/* HEADER */

.site-header {
  position: relative;
  z-index: 20;
  background: #fff;
}

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

.brand {
  width: 185px;
  display: block;
}

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

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

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

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

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

.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  padding: 10px;
  border: 0;
  background: transparent;
  border-radius: 10px;
}

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

/* HERO */

.hero {
  padding: 2px 0 26px;
  background: #fff;
}

.hero-inner {
  text-align: center;
}

.hero-brand-master {
  width: min(100%, 780px);
  margin: 0 auto;
  image-rendering: auto;
}

/* Exact FULL LOGO MASTER includes checkmark, wordmark, 3D and slogan. */

.hero-lead {
  margin: 6px auto 0;
  color: #173773;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
  font-weight: 450;
  letter-spacing: -.012em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 38px;
  margin-top: 27px;
}

.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;
}

/* SERVICE CARDS */

.services-preview {
  padding: 7px 0 44px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  min-height: 288px;
  padding: 28px 25px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.985);
  box-shadow: 0 9px 24px rgba(16, 47, 90, .025);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: #cfdbe8;
  box-shadow: 0 15px 30px rgba(16, 47, 90, .07);
}

.service-icon {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.service-card h3 {
  margin: 0;
  color: #092663;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: -.018em;
  font-weight: 800;
}

.service-card p {
  margin: 20px 0 0;
  color: #425d8b;
  font-size: 14px;
  line-height: 1.5;
}


/* LOCKED SERVICE ICON MASTERS
   These are inserted as exact image assets.
   Do not redraw/reinterpret them in CSS or SVG. */

.service-icon-master {
  width: 104px;
  height: 104px;
  margin-bottom: 10px;
}

.service-icon-master img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

/* Optical normalization only for the Kontrola jakości icon.
   Master asset remains untouched. */
.service-icon-qc {
  width: 122px;
  height: 122px;
  margin-top: -9px;
  margin-bottom: 1px;
}

/* ABOUT */

.about-home {
  position: relative;
  overflow: hidden;
  min-height: 342px;
  padding: 18px 0 12px;
  background: #fff;
}

.about-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  align-items: end;
  min-height: 315px;
}

.about-copy {
  align-self: center;
  max-width: 475px;
  padding-left: 20px;
}

.about-kicker {
  margin: 0 0 20px;
  color: #092663;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: .29em;
}

.about-copy p:not(.about-kicker) {
  margin: 0;
  color: #29487c;
  font-size: 14px;
  line-height: 2.12;
}


.about-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 310px;
  overflow: visible;
}

.about-visual img {
  position: relative;
  z-index: 2;
  width: min(118%, 570px);
  max-height: 350px;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 10px 14px rgba(15, 46, 82, .055));
  transform: translateX(20px);
}

/* Trail is embedded directly in the turbine candidate asset. */

/* FOOTER */

.contact-footer {
  padding: 0 0 23px;
  background: #fff;
}

.contact-footer-inner {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.18fr;
  align-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, #062767 0%, #092e7b 45%, #062767 100%);
  box-shadow: 0 10px 24px rgba(5, 36, 100, .07);
}

.contact-entry {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 450;
}

.footer-icon-master {
  width: 34px;
  height: 34px;
  display: block;
  flex: 0 0 34px;
  object-fit: contain;
  image-rendering: auto;
}

/* Optical correction for the WWW icon only.
   The layout box stays 34 × 34 px; only the visible outer circle is reduced
   so it matches the phone and e-mail icon borders. */
.footer-icon-www {
  transform: scale(.92);
  transform-origin: center;
}

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

/* A11Y */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* RESPONSIVE */

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

  .header-inner {
    min-height: 74px;
  }

  .brand {
    width: 175px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    left: 17px;
    right: 17px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(12, 42, 88, .10);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 14px;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-brand-master {
    width: min(100%, 690px);
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin-inline: auto;
  }

  .service-card {
    min-height: 250px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-copy {
    padding: 26px 0 0;
    max-width: 650px;
  }

  .about-visual {
    justify-content: center;
    align-items: flex-start;
    min-height: 238px;
    margin-top: -8px;
  }

  .about-visual img {
    width: min(100%, 500px);
    object-position: center top;
    transform: translateY(-10px);
  }

  .contact-footer-inner {
    grid-template-columns: 1fr;
    padding: 6px 12px;
  }

  .contact-entry {
    justify-content: flex-start;
  }

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

@media (max-width: 620px) {
  .header-inner {
    min-height: 68px;
  }

  .brand {
    width: 162px;
  }

  .hero {
    padding-top: 4px;
  }

  .hero-brand-master {
    width: 112%;
    max-width: none;
    margin-left: -6%;
  }

  .desktop-only {
    display: none;
  }

  .hero-lead {
    margin-top: 2px;
    max-width: 480px;
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 360px;
    margin: 23px auto 0;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .services-preview {
    padding-top: 10px;
  }

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

  .about-kicker {
    font-size: 15px;
    letter-spacing: .22em;
  }

  .about-copy p:not(.about-kicker) {
    line-height: 1.75;
  }

  .about-visual {
    min-height: 220px;
    margin-top: -14px;
  }

  .about-visual img {
    width: min(106%, 410px);
    margin-inline: auto;
    object-position: center top;
    transform: translateY(-18px);
  }

  .contact-entry {
    font-size: 14px;
    padding-inline: 10px;
  }
}
