:root {
  --navy: #122236;
  --navy-2: #1b3049;
  --orange: #f59e0b;
  --orange-dark: #db8600;
  --cream: #f6f5f1;
  --white: #fff;
  --ink: #17202b;
  --muted: #657080;
  --line: #dfe3e7;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(18, 34, 54, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 108px 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 12px 18px; background: var(--orange); color: var(--navy); font-weight: 800; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background .25s, box-shadow .25s; }
.site-header.scrolled, .site-header.nav-open { background: rgba(18,34,54,.97); box-shadow: 0 10px 35px rgba(0,0,0,.16); }
.header-inner { height: 88px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.1; min-width: max-content; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; transform: rotate(-3deg); background: var(--orange); color: var(--navy); font-size: .82rem; font-weight: 800; letter-spacing: -.04em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.05rem; letter-spacing: -.03em; }
.brand small { margin-top: 4px; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; opacity: .72; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .92rem; font-weight: 600; transition: color .2s; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--orange); }
.header-phone { display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: var(--white); text-decoration: none; font-weight: 800; white-space: nowrap; }
.header-phone span { color: var(--orange); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: #fff; transition: transform .2s, opacity .2s; }

.hero { position: relative; min-height: 760px; overflow: hidden; display: flex; align-items: center; color: var(--white); background: var(--navy); }
.hero-image { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(11,25,41,.99) 0%, rgba(11,25,41,.89) 34%, rgba(11,25,41,.25) 65%, rgba(11,25,41,.06) 100%), url("assets/fachowiec-przy-pracy.png"); background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 155px; background: linear-gradient(transparent, rgba(8,18,30,.65)); pointer-events: none; }
.hero-content { position: relative; z-index: 1; padding-top: 86px; }
.hero-copy { width: min(650px, 58%); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--orange-dark); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { display: block; width: 28px; height: 3px; background: var(--orange); }
.hero .eyebrow { color: var(--orange); }
.hero h1 { max-width: 630px; margin: 0; font-size: clamp(3.4rem, 6.3vw, 5.8rem); line-height: .96; letter-spacing: -.065em; }
.hero h1 em { display: block; color: var(--orange); font-style: normal; }
.hero-lead { max-width: 570px; margin: 28px 0 33px; color: rgba(255,255,255,.78); font-size: 1.13rem; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 72px; padding: 12px 24px; border-radius: 13px; text-decoration: none; box-shadow: 0 14px 30px rgba(0,0,0,.18); transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(0,0,0,.24); }
.button-primary { background: var(--orange); color: var(--navy); }
.button-primary:hover { background: #ffae1f; }
.button-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: rgba(18,34,54,.12); font-size: 1.18rem; }
.button small, .button strong { display: block; line-height: 1.15; }
.button small { font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.button strong { margin-top: 4px; font-size: 1.18rem; }
.text-link { color: var(--white); font-weight: 700; text-underline-offset: 6px; text-decoration-color: var(--orange); }
.trust-list { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 24px; margin: 42px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.72); font-size: .83rem; font-weight: 700; }
.trust-list span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: rgba(245,158,11,.15); color: var(--orange); }

.services { background: var(--cream); }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 80px; margin-bottom: 52px; }
.section-heading h2, .process h2, .contact h2 { margin: 0; font-size: clamp(2.25rem, 4vw, 3.8rem); line-height: 1.06; letter-spacing: -.055em; }
.section-heading > p { max-width: 490px; margin: 0 0 6px; color: var(--muted); font-size: 1.05rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card { position: relative; min-height: 226px; padding: 31px 27px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .22s, border-color .22s, box-shadow .22s; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(245,158,11,.55); box-shadow: var(--shadow); }
.service-card.featured { grid-column: span 2; background: var(--orange); border-color: var(--orange); }
.service-card-cta { grid-column: span 2; background: var(--navy); color: var(--white); border-color: var(--navy); }
.service-number { color: var(--orange-dark); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.featured .service-number, .service-card-cta .service-number { color: currentColor; opacity: .65; }
.service-card h3 { margin: 40px 0 10px; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.025em; }
.service-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.service-card.featured p { max-width: 460px; color: rgba(18,34,54,.76); }
.service-card-cta p { color: rgba(255,255,255,.66); }
.service-card-cta a { display: inline-block; margin-top: 18px; color: var(--orange); font-weight: 800; text-underline-offset: 5px; }

.gallery { background: var(--white); }
.gallery-heading { align-items: center; }
.gallery-grid { columns: 4 250px; column-gap: 16px; }
.gallery-item {
  position: relative;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: 16px;
  background: var(--navy);
  cursor: zoom-in;
  box-shadow: 0 8px 24px rgba(18,34,54,.11);
}
.gallery-item::after {
  content: "Powiększ";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(11,23,37,.82);
  color: var(--white);
  font: 700 .72rem/1 "Manrope", system-ui, sans-serif;
  letter-spacing: .03em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s, transform .2s;
}
.gallery-item img { width: 100%; height: auto; transition: transform .35s, opacity .35s; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.025); opacity: .88; }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: translateY(0); }

.lightbox {
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  height: min(88vh, 900px);
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 18px;
  background: #08121e;
  color: var(--white);
  box-shadow: 0 30px 100px rgba(0,0,0,.6);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(3,8,14,.9); backdrop-filter: blur(5px); }
.lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; margin: 0; padding: 22px; }
.lightbox figure img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox figcaption { min-height: 42px; padding: 14px 55px 0; text-align: center; color: rgba(255,255,255,.78); font-size: .9rem; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(8,18,30,.78);
  color: var(--white);
  cursor: pointer;
}
.lightbox-close { top: 14px; right: 14px; width: 46px; height: 46px; font-size: 2rem; line-height: 1; }
.lightbox-nav { top: 50%; width: 50px; height: 50px; font-size: 2.5rem; transform: translateY(-50%); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--orange); color: var(--navy); }

.process { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.process::before { content: ""; position: absolute; width: 450px; height: 450px; right: -180px; top: -220px; border: 80px solid rgba(245,158,11,.07); border-radius: 50%; }
.process-layout { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; gap: 100px; align-items: center; }
.eyebrow.light { color: var(--orange); }
.process-intro > p:last-child { max-width: 480px; color: rgba(255,255,255,.64); }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 62px 1fr; align-items: start; gap: 23px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.steps li:last-child { border-bottom: 0; }
.steps > li > span { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(245,158,11,.45); border-radius: 50%; color: var(--orange); font-weight: 800; }
.steps h3 { margin: 1px 0 3px; font-size: 1.2rem; }
.steps p { margin: 0; color: rgba(255,255,255,.58); font-size: .92rem; }

.contact { background: var(--white); }
.contact-box { display: flex; align-items: center; justify-content: space-between; gap: 60px; padding: 58px 64px; border-radius: 24px; background: var(--orange); box-shadow: 0 24px 60px rgba(195,119,0,.18); }
.contact-box .eyebrow { color: rgba(18,34,54,.72); }
.contact-box .eyebrow span { background: var(--navy); }
.contact-box h2 { max-width: 720px; }
.button-dark { flex: 0 0 auto; background: var(--navy); color: var(--white); }
.button-dark:hover { background: var(--navy-2); }
.button-dark .button-icon { background: rgba(255,255,255,.1); color: var(--orange); }

.site-footer { padding: 40px 0; background: #0b1725; color: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand-footer .brand-mark { width: 38px; height: 38px; }
.footer-inner p { margin: 0; color: rgba(255,255,255,.48); font-size: .8rem; }
.footer-inner > a:last-child { color: var(--orange); font-weight: 800; text-decoration: none; }
.mobile-call { display: none; }

*:focus-visible { outline: 3px solid #fbbf24; outline-offset: 4px; }

@media (max-width: 1000px) {
  .header-phone { display: none; }
  .hero-copy { width: 67%; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-layout { gap: 55px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 70px; }
  .container { width: min(100% - 30px, 620px); }
  .section { padding: 75px 0; }
  .site-header { background: rgba(18,34,54,.9); }
  .header-inner { height: 72px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: .98rem; }
  .menu-toggle { display: block; color: white; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 72px 0 auto; display: grid; gap: 0; margin: 0; padding: 10px 20px 24px; visibility: hidden; opacity: 0; transform: translateY(-8px); background: var(--navy); transition: opacity .2s, transform .2s, visibility .2s; }
  .main-nav.open { visibility: visible; opacity: 1; transform: translateY(0); }
  .main-nav a { padding: 15px 5px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1rem; }
  .hero { min-height: 720px; align-items: flex-end; }
  .hero-image { background-image: linear-gradient(0deg, rgba(10,23,38,1) 0%, rgba(10,23,38,.98) 37%, rgba(10,23,38,.22) 76%), url("assets/fachowiec-przy-pracy.png"); background-position: 66% center; }
  .hero-content { padding-top: 150px; padding-bottom: 50px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(3rem, 14.5vw, 4.8rem); }
  .hero-lead { margin: 20px 0 25px; font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .hero .button { width: 100%; }
  .text-link { text-align: center; }
  .trust-list { gap: 10px 18px; margin-top: 28px; }
  .section-heading { grid-template-columns: 1fr; gap: 23px; margin-bottom: 35px; }
  .section-heading h2, .process h2, .contact h2 { font-size: clamp(2.15rem, 10vw, 3.2rem); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card.featured, .service-card-cta { grid-column: auto; min-height: auto; }
  .service-card h3 { margin-top: 24px; }
  .gallery-grid { columns: 2 145px; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; border-radius: 12px; }
  .gallery-item::after { display: none; }
  .lightbox { width: calc(100% - 16px); height: calc(100vh - 100px); border-radius: 12px; }
  .lightbox figure { padding: 12px; }
  .lightbox figcaption { min-height: 48px; padding: 12px 44px 0; font-size: .82rem; }
  .lightbox-close { top: 10px; right: 10px; width: 42px; height: 42px; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .process-layout { grid-template-columns: 1fr; gap: 28px; }
  .steps li { grid-template-columns: 52px 1fr; gap: 17px; }
  .steps > li > span { width: 48px; height: 48px; }
  .contact-box { align-items: stretch; flex-direction: column; gap: 30px; padding: 38px 25px; }
  .button-dark { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .mobile-call { position: fixed; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; inset: auto 0 0; height: 70px; background: var(--orange); color: var(--navy); text-decoration: none; font-weight: 800; letter-spacing: .04em; box-shadow: 0 -10px 30px rgba(0,0,0,.17); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
