/* Shared centered containers and responsive spacing.
   Load after each page's component styles so these dimensions stay consistent. */
:root {
  --wrap: 1040px;
  --page-wrap: 1080px;
  --nav-wrap: 1120px;
  --gutter: 20px;
  --section-space: 72px;
  --column-gap: 40px;
}

html {
  font-size: 100%;
}

.nav-inner {
  max-width: var(--nav-wrap);
}

.section-wrap,
.hero-inner,
.page-hero-inner,
.jobs-inner,
.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
}

.job-page,
.svc-page,
.pp-wrap,
.art-shell,
.filter-bar-wrap {
  width: 100%;
  max-width: var(--page-wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.job-page,
.svc-page,
.art-shell {
  padding-top: calc(136px + env(safe-area-inset-top));
  padding-bottom: var(--section-space);
}

.job-page,
.svc-page {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--column-gap);
}

.job-page > *,
.svc-page > *,
.about-grid > *,
.emp-grid > *,
.contact-grid > * {
  min-width: 0;
}

.page-hero {
  padding: calc(144px + env(safe-area-inset-top)) var(--gutter) 72px;
}

.jobs-section {
  padding: 48px var(--gutter) var(--section-space);
}

#services,
#value-prop,
#about,
#process,
#guarantees,
#employees,
#booking,
#contact,
#referencje {
  padding: var(--section-space) var(--gutter);
}

#hero {
  min-height: min(900px, 100svh);
  padding: calc(144px + env(safe-area-inset-top)) var(--gutter) 96px;
}

.hero-inner {
  display: block;
}

.hero-inner > div {
  max-width: 760px;
}

.hero-h1 {
  max-width: 680px;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.1;
  text-align: left;
}

.hero-sub,
.hero-sub-desktop {
  display: block;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.7;
  text-align: left;
}

.hero-eyebrow,
.hero-h1-kw {
  text-align: left;
}

.sec-h2 {
  max-width: 820px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.18;
  text-align: left;
}

.sec-sub {
  max-width: 640px;
  line-height: 1.75;
  text-align: left;
}

.page-intro {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.75;
}

.about-grid,
.emp-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--column-gap);
  margin-top: 40px;
}

.process-steps-grid {
  column-gap: var(--column-gap);
}

.booking-split {
  margin-top: 0;
  gap: 32px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 40px;
  text-align: left;
}

.reference-wrap blockquote {
  max-width: 960px;
}

.reference-card {
  padding: clamp(24px, 4vw, 56px);
}

.articles-page {
  grid-template-columns: minmax(0, 1fr);
}

.articles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.art-shell {
  grid-template-columns: minmax(0, 1fr) 280px;
  column-gap: var(--column-gap);
}

.art-main {
  grid-column: 1;
}

.art-toc {
  display: none;
}

.toc-inline {
  display: block;
}

.art-rail {
  grid-column: 2;
  max-width: none;
}

.art-h1,
.page-h1 {
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.18;
}

.svc-h1,
.job-h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
}

.article-body {
  font-size: 18px;
  line-height: 1.8;
}

.article-body > p,
.article-body > ul,
.article-body > ol {
  max-width: none;
}

.pp-wrap {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--column-gap);
  padding-block: 64px var(--section-space);
}

.footer-grid {
  gap: 40px;
}

@media (min-width: 1024px) {
  #hero {
    min-height: min(760px, 100svh);
    padding-block: calc(128px + env(safe-area-inset-top)) 72px;
  }

  .hero-inner > div {
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-h1 {
    max-width: 900px;
    font-size: clamp(36px, 3.6vw, 54px);
    text-wrap: balance;
  }

  .hero-h1,
  .hero-sub,
  .hero-eyebrow,
  .hero-h1-kw {
    margin-inline: auto;
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
    margin-bottom: 0;
  }

  .section-wrap > .fu:first-child,
  .page-hero-inner,
  .articles-page > div > .fu:first-child {
    text-align: center;
  }

  .section-wrap > .fu:first-child .sec-h2,
  .section-wrap > .fu:first-child .sec-sub,
  .section-heading,
  .page-hero-inner > *,
  .articles-page .page-h1,
  .articles-page .page-intro {
    margin-inline: auto;
    text-align: center;
  }

  .pl-marquee {
    max-width: var(--wrap);
    margin-inline: auto;
  }
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 16px;
  }

  .nav-link {
    font-size: 12.8px;
  }
}

@media (max-width: 1023px) {
  :root {
    --section-space: 64px;
    --column-gap: 32px;
  }

  #nav {
    display: none;
  }

  .mob-logo-fixed {
    display: block;
  }

  .mob-ham-circle {
    display: flex;
  }

  .job-page,
  .svc-page,
  .art-shell,
  .pp-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .job-page,
  .svc-page,
  .art-shell {
    padding-top: calc(112px + env(safe-area-inset-top));
  }

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

  .art-main,
  .art-rail {
    grid-column: 1;
  }

  .art-rail {
    grid-row: auto;
  }

  .toc {
    position: static;
    max-height: none;
  }

  .lead-card,
  .salary-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .scroll-hint {
    display: none;
  }

  .about-grid,
  .emp-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    gap: 32px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-space: 56px;
    --column-gap: 24px;
  }

  #hero {
    min-height: auto;
    padding: calc(112px + env(safe-area-inset-top)) var(--gutter) 56px;
  }

  .hero-h1 {
    font-size: clamp(32px, 8.8vw, 36px);
    line-height: 1.17;
  }

  .hero-sub {
    font-size: 16px;
    line-height: 1.75;
  }

  .page-hero {
    padding-top: calc(112px + env(safe-area-inset-top));
    padding-bottom: 48px;
  }

  .about-grid,
  .emp-grid,
  .contact-grid {
    margin-top: 32px;
  }

  .articles-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.8;
  }

  .pp-wrap {
    padding-top: 40px;
  }

  .footer-grid {
    gap: 28px;
  }
}

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

/* Homepage benefits, recruitment flow and partner presentation. */
#about,
#process,
#guarantees,
#services,
#booking,
#contact {
  scroll-margin-top: 104px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#about .stats-highlight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0;
  border: 0;
  border-block: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

#about .stats-highlight-item {
  min-width: 0;
  padding: 20px 12px;
  border-right: 1px solid var(--border);
  border-bottom: 0;
  text-align: center;
}

#about .stats-highlight-item:last-child {
  border-right: 0;
}

#about .stats-highlight-item::before {
  display: none;
}

#about .stats-highlight-num {
  font-size: 34px;
}

.about-intro {
  max-width: 760px;
  margin: 32px auto 40px;
  text-align: center;
}

.about-intro > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.about-intro .lang-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 360px;
  margin: 20px auto 0;
}

.about-languages-label {
  grid-column: 1 / -1;
  margin-bottom: 12px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
}

.about-intro .lang-pill {
  padding: 4px 8px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.about-intro .lang-pill:last-child {
  border-right: 0;
}

.svc-links {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.svc-links > span {
  grid-column: 1 / -1;
  margin: 0 0 6px;
}

.svc-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.svc-links a::after {
  content: '→';
  flex: none;
  color: var(--accent);
  font-size: 18px;
}

.svc-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.about-benefits {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  padding-bottom: 100px;
}

.benefit-item {
  min-width: 0;
}

.benefit-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 184px;
  padding: 24px 12px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(74, 142, 212, 0.035);
  text-align: center;
  list-style: none;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.benefit-trigger::-webkit-details-marker {
  display: none;
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(74, 142, 212, 0.3);
  border-radius: 16px;
  color: var(--accent-h, #6dcff6);
  background: rgba(74, 142, 212, 0.09);
  box-shadow: 0 0 26px rgba(74, 142, 212, 0.12);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 7px rgba(74, 142, 212, 0.5));
}

.benefit-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.benefit-chevron {
  display: none;
}

.benefit-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.benefit-item[open] .benefit-trigger,
.benefit-trigger:hover {
  background: rgba(74, 142, 212, 0.085);
  border-color: rgba(74, 142, 212, 0.5);
  box-shadow: 0 8px 30px rgba(74, 142, 212, 0.1);
}

.benefit-detail {
  position: absolute;
  inset: auto 0 0;
  max-width: 760px;
  min-height: 76px;
  margin-inline: auto;
  padding: 12px 16px 0;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.benefit-detail::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin: 0 auto 12px;
  background: var(--accent);
  opacity: 0.6;
}

.benefit-detail p {
  max-width: 760px;
  margin-inline: auto;
}

.benefit-typed {
  display: none;
}

.about-photo {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 13 / 5;
  min-height: 280px;
  margin-top: 40px;
  margin-inline: 0;
  border-radius: 20px;
  overflow: hidden;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 70%;
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 20, 34, 0.03), rgba(9, 20, 34, 0.12));
  pointer-events: none;
}

.recruitment-flow {
  position: relative;
  margin-top: 48px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-inline: 12px;
  text-align: center;
}

.flow-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 24px;
  border: 1px solid rgba(74, 142, 212, 0.65);
  border-radius: 15px;
  background: var(--accent-btn);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 0 26px rgba(74, 142, 212, 0.2);
}

.flow-step h3 {
  min-height: 2.7em;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
}

.flow-step p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.process-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.flow-track,
.flow-pulse {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-track {
  stroke: rgba(74, 142, 212, 0.22);
}

.flow-pulse {
  stroke: #6dcff6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(74, 142, 212, 0.8));
  animation: flow-draw 8s linear infinite;
  animation-play-state: paused;
}

.flow-pulse-final {
  animation-name: flow-draw-final;
}

.process-action {
  display: flex;
  justify-content: center;
  padding-top: 72px;
}

.process-cta {
  z-index: 1;
  animation: flow-cta-glow 8s ease-in-out infinite;
  animation-play-state: paused;
}

.recruitment-flow.is-visible .flow-pulse,
.recruitment-flow.is-visible .process-cta {
  animation-play-state: running;
}

@keyframes flow-draw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  3% { opacity: 1; }
  13%, 45% { stroke-dashoffset: 0; opacity: 1; }
  60%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes flow-draw-final {
  0% { stroke-dashoffset: 1; opacity: 0; }
  3% { opacity: 1; }
  20%, 45% { stroke-dashoffset: 0; opacity: 1; }
  60%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes flow-cta-glow {
  0%, 52%, 74%, 100% { box-shadow: 0 4px 16px rgba(74, 142, 212, 0.12); }
  56%, 64% { box-shadow: 0 0 0 5px rgba(74, 142, 212, 0.1), 0 0 36px rgba(74, 142, 212, 0.7); }
}

.guar-grid {
  grid-auto-rows: 1fr;
}

.guar-grid .guar-card {
  grid-column: auto;
}

.pl-h {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.pl-logo {
  width: calc(var(--h) * var(--ratio));
  flex: none;
}

.pl-marquee:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 12px;
}

@media (hover: hover) {
  .pl-marquee:focus-within .pl-track {
    animation-play-state: paused;
  }
}

.pl-marquee.is-playing .pl-track {
  animation-play-state: running;
}

@media (min-width: 1024px) {
  #hero {
    min-height: min(680px, 100svh);
  }

  .hero-h1 {
    margin-bottom: 32px;
  }

  .about-benefits.is-enhanced .benefit-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .about-benefits.is-enhanced .benefit-typed {
    display: block;
  }
}

@media (max-width: 1023px) {
  .svc-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-benefits {
    display: block;
    padding-bottom: 0;
  }

  .benefit-item {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(74, 142, 212, 0.035);
    overflow: hidden;
  }

  .benefit-trigger {
    flex-direction: row;
    gap: 16px;
    min-height: 80px;
    padding: 16px;
    text-align: left;
    border: 0;
    border-radius: 0;
  }

  .benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .benefit-title {
    flex: 1;
    font-size: 16px;
  }

  .benefit-chevron {
    display: block;
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--accent);
  }

  .benefit-item[open] .benefit-chevron {
    transform: rotate(180deg);
  }

  .benefit-detail {
    position: static;
    min-height: 0;
    padding: 4px 20px 24px;
    font-size: 16px;
    text-align: left;
    border: 0;
    background: transparent;
  }

  .benefit-detail::before {
    display: none;
  }

  .process-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .flow-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 24px;
    padding: 0;
    text-align: left;
  }

  .flow-number {
    grid-row: 1 / 3;
    margin: 0;
  }

  .flow-step h3 {
    min-height: 0;
    margin-bottom: 8px;
  }

  .flow-step p {
    grid-column: 2;
    font-size: 16px;
  }

  .process-action {
    padding-top: 64px;
  }
}

@media (max-width: 600px) {
  #about .stats-highlight-item {
    padding: 16px 4px;
  }

  #about .stats-highlight-num {
    font-size: clamp(23px, 6.5vw, 28px);
  }

  #about .stats-highlight-lbl {
    min-height: 2.8em;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .svc-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .pl-logo {
    width: calc(var(--h) * var(--ratio) * 0.8);
  }

  .about-intro {
    margin-top: 24px;
    margin-bottom: 28px;
  }

  .about-photo {
    margin-top: 28px;
  }

  .flow-step {
    column-gap: 20px;
  }
}

@media (max-width: 767px) {
  .about-photo {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-pulse {
    display: none;
  }

  .process-cta,
  .benefit-trigger {
    animation: none;
    transition: none;
  }
}
