:root {
  --canvas: 1920px;
  --container: 1220px;
  /* Boczny margines (gutter), do którego ściskają się boki na węższych ekranach. */
  --gutter: 30px;
  --white: #fff;
  --white-soft: #fbfbff;
  --navy: #151551;
  --purple: #5234a3;
  --purple-light: #ccbbff;
  --purple-bright: #9a66ff;
  --purple-button: #9b5df4;
  --line: #918ba5;
  --dark-1: #0f042d;
  --dark-2: #22183e;
  --dark-3: #362d4f;
  --dark-gradient: linear-gradient(108deg, var(--dark-1) 40%, var(--dark-2) 80%, var(--dark-3) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--navy);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body, h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
/* Płynny kontener: stała maks. szerokość, wyśrodkowany; boki (tło) ściskają się do --gutter. */
.container { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section-kicker { font-size: 20px; font-weight: 600; line-height: 20px; }
.section-heading h2 { font-size: 48px; font-weight: 700; line-height: 48px; }
.home-main { width: 100%; }

/* Header: 1920 x 120, padding 37/350, gap 60. */
.site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 120px;
  color: var(--white);
  background-color: var(--dark-1);
  /* Cover scales the intact art to fill width; at 1920 it is ~1:1. */
  background-image: url('../img/framer-hero.svg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}
.header-inner {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  height: 120px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-logo { width: 155px; height: 46px; flex: 0 0 155px; }
.site-logo img { width: 155px; height: 46px; }
.main-nav { flex: 1; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav-toggle { display: none; }
.nav-item { position: relative; }
.nav-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 16.5px;
}
.nav-pill:hover, .nav-pill:focus-visible { background: rgba(255,255,255,.08); outline: none; }
.chevron { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dropdown {
  position: absolute;
  top: 48px;
  left: 0;
  z-index: 30;
  min-width: 300px;
  padding: 10px 22px;
  border: 1px solid rgba(21,21,81,.08);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 20px 48px rgba(21,21,81,.18);
  /* Stan ukryty: fade + delikatny zjazd. Nie używamy display:none,
     bo przełączanie display gubi śledzenie hovera (menu znikało). */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
/* Niewidzialny „mostek” wypełnia lukę między przyciskiem a panelem,
   dzięki czemu przejście kursorem nie gubi hovera i menu nie znika. */
.dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  border-bottom: 1px solid rgba(21,21,81,.08);
}
.dropdown a:hover, .dropdown a:focus-visible { color: var(--purple); outline: none; }
.dropdown-arrow {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .55;
}
.dropdown-single a:last-child { border-bottom: 0; }
/* Mega dropdown (Usługi): dwie kolumny z pionowym separatorem. */
.dropdown-mega { min-width: 660px; padding: 6px 0; display: grid; grid-template-columns: 1fr 1fr; }
.dropdown-col { display: flex; flex-direction: column; padding: 4px 26px; }
.dropdown-col-sub { border-left: 1px solid rgba(21,21,81,.08); }
.dropdown-col a:last-child { border-bottom: 0; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.has-dropdown.is-open .chevron { transform: rotate(225deg) translate(-2px, -1px); }
@media (prefers-reduced-motion: reduce) {
  .dropdown { transition: none; }
}
.nav-cta {
  width: 200px;
  height: 40px;
  margin-left: auto;
  flex: 0 0 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--purple-button);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
}
.nav-cta:hover, .nav-cta:focus-visible { background: #8a4de0; outline: 2px solid var(--purple-light); outline-offset: 2px; }

/* Hero stage: y=120..1080. */
.home-hero-stage {
  position: relative;
  min-height: 960px;
  color: var(--white);
  background-color: var(--dark-1);
  /* Same cover scale as the header (width-driven), offset -120px to continue it. */
  background-image: url('../img/framer-hero.svg');
  background-position: center -120px;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}
.hero { min-height: 500px; }
.hero-inner {
  min-height: 500px;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.hero-eyebrow { max-width: 371px; min-height: 30px; color: var(--purple-light); font-weight: 500; }
.hero-title { max-width: 930px; min-height: 115px; color: var(--white); font-size: 48px; font-weight: 700; line-height: 57.6px; }
.hero-description { max-width: 591px; min-height: 120px; color: var(--white); font-size: 16.5px; line-height: 23.1px; }
.hero-actions { display: flex; gap: 20px; height: 55px; align-items: center; }
.button {
  position: relative;
  height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  border-radius: 8px;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 16.5px;
  white-space: nowrap;
}
.button-arrow {
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
  transform-origin: center;
}
.button-light { background: var(--white); color: var(--navy); }
.button-purple { background: var(--purple-button); color: var(--white); }
.button:hover, .button:focus-visible { filter: brightness(.95); outline: 2px solid var(--purple-light); outline-offset: 2px; }

.numbers-partners { min-height: 460px; padding: 40px 0; }
.stats-panel {
  width: 100%;
  min-height: 190px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 20px rgba(54,45,79,.25);
}
.stat { position: relative; padding: 49px 30px 30px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 29px; width: 1px; height: 132px; background: rgba(255,255,255,.35); }
.stat-label { order: 2; color: var(--white); font-size: 16.5px; line-height: 16.5px; }
.stat-value { order: 1; color: var(--purple-light); font-size: 60px; font-weight: 500; line-height: 60px; }
.partners {
  width: 100%;
  height: 100px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 20px rgba(54,45,79,.25);
}
/* Maska wygasza loga przy krawędziach; border pozostaje ostry. */
.partners-viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: partners-scroll 40s linear infinite;
  will-change: transform;
}
.partners:hover .partners-track,
.partners:focus-within .partners-track { animation-play-state: paused; }
.partner { flex: 0 0 auto; height: 57px; display: flex; align-items: center; justify-content: center; padding: 0 38px; }
.partner img { max-width: 150px; max-height: 40px; width: auto; height: auto; filter: brightness(0) invert(1); opacity: .85; }
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; }
}

/* Cooperation: y=1080, 1920 x 804. */
.cooperation {
  position: relative;
  min-height: 804px;
  padding: 103px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff 43%, #e3dff4 81%, #c7c0ea 100%);
}
.cooperation-decoration { position: absolute; top: 0; right: 0; width: 501px; max-width: 30%; opacity: .35; }
.cooperation-container { position: relative; z-index: 1; width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.cooperation-heading { min-height: 99px; margin: 0 10px 40px; display: flex; flex-direction: column; gap: 15px; }
.cooperation-heading .section-kicker { color: var(--purple); }
.cooperation-heading h2 { color: var(--navy); }
.cooperation-panel {
  width: 100%;
  min-height: 400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 44px 40px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 0 20px rgba(54,45,79,.25);
}
.cooperation-column { display: flex; flex-direction: column; justify-content: space-between; }
.cooperation-item { height: 50px; display: flex; align-items: center; gap: 15px; }
.cooperation-item img { width: 38px; height: 38px; object-fit: contain; flex: 0 0 38px; }
.cooperation-item p { color: var(--navy); font-size: 16.5px; font-weight: 500; line-height: 21.285px; }

/* One source background covers services and model sections. */
.dark-content-stage {
  /* Auto height: sekcja rozciąga się, gdy karty Model 3A są rozwinięte. */
  height: auto;
  color: var(--white);
  background-color: var(--dark-1);
  /* Cover scales the intact art to fill width; at 1920 it is ~1:1. */
  background-image: url('../img/framer-services-bg.svg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}
.services { min-height: 875px; padding: 100px 0; }
.services-heading { width: 100%; min-height: 120px; display: flex; flex-direction: column; gap: 15px; }
.services-heading .section-kicker, .model-heading .section-kicker { color: var(--purple-light); }
.services-heading h2, .model-heading h2 { color: var(--white-soft); }
.service-grid { width: 100%; margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.service-card {
  min-height: 440px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  /* Framer: karta to obrazek SVG bez data-border — brak ramki i tła kontenera. */
  border: 0;
  background: transparent;
  overflow: hidden;
}
.service-head { display: flex; align-items: center; gap: 14px; min-height: 49px; }
.service-icon { width: 49px; height: 49px; flex: 0 0 49px; object-fit: contain; }
.service-card h3 { color: var(--white); font-size: 20px; font-weight: 700; line-height: 22px; }
.card-rule { width: 100%; height: 1px; margin: 19px 0; background: rgba(145,139,165,.5); }
.service-card ul { padding: 0; display: flex; flex-direction: column; gap: 18px; }
.service-card li { display: flex; align-items: center; gap: 12px; font-size: 16.5px; line-height: 16.5px; }
.service-card li::before { content: ''; width: 20px; height: 20px; flex: 0 0 20px; background: url('../img/icon-check.svg') center/contain no-repeat; }
.service-card > p { margin-top: 19px; color: var(--white); font-size: 16.5px; line-height: 23.1px; }
.services-button {
  width: 100%;
  height: 55px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--white);
  border-radius: 5px;
  background: rgba(129,134,204,.1);
  color: var(--white);
  font-size: 16.5px;
  font-weight: 500;
}
.services-button:hover, .services-button:focus-visible { background: rgba(129,134,204,.35); outline: 2px solid var(--purple-light); outline-offset: 2px; }

.model { padding: 80px 0; }
.model-container { width: min(1260px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.model-heading { width: 100%; min-height: 83px; padding: 0 20px; display: flex; flex-direction: column; gap: 15px; }
.model-grid { width: 100%; margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.model-card {
  position: relative;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--white);
  border-radius: 10px;
  background: rgba(129,134,204,.1);
  overflow: hidden;
}
.model-card h3 { color: var(--white); font-size: 36px; font-weight: 700; line-height: 36px; }
.model-rule { width: 100px; height: 6px; margin: 15px 0 20px; border-radius: 3px; background: var(--purple-bright); }
.model-card > p { min-height: 64px; color: var(--white); font-size: 16.5px; font-weight: 500; line-height: 21.285px; }
.model-card ul { margin-top: 21px; display: flex; flex-direction: column; gap: 8px; }
.model-card li { display: flex; align-items: center; gap: 10px; font-size: 16.5px; line-height: 16.5px; }
.model-card li::before { content: '›'; color: var(--purple-light); font-size: 24px; line-height: 12px; }
.model-card-bottom { margin-top: 26px; width: 100%; height: 35px; flex: 0 0 35px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.25); cursor: pointer; }
.model-card-bottom:hover, .model-card-bottom:focus-visible { background: rgba(255,255,255,.35); outline: none; }
.model-toggle-chevron { display: block; width: 11px; height: 11px; margin-top: -3px; border-right: 3px solid var(--white); border-bottom: 3px solid var(--white); transform: rotate(45deg); transition: transform .35s ease; }
.model-card.is-open .model-toggle-chevron { margin-top: 3px; transform: rotate(225deg); }
.model-more {
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height .4s ease, margin-top .4s ease, opacity .3s ease, visibility .4s;
}
.model-card.is-open .model-more { max-height: 760px; margin-top: 24px; opacity: 1; visibility: visible; }
.model-more-item { display: flex; flex-direction: column; gap: 8px; }
.model-more-item + .model-more-item { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.model-more-title { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 16.5px; font-weight: 500; line-height: 16.5px; }
.model-more-title::before { content: ''; width: 16px; height: 16px; flex: 0 0 16px; background: url('../img/icon-check-plain.svg') center/contain no-repeat; }
.model-more-desc { color: rgba(255,255,255,.7); font-size: 15px; line-height: 21px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* CTA: y=3495, 1920 x 456. */
.contact-cta {
  min-height: 456px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff 28%, #e3dff4 72%, #c7c0ea 100%);
}
.cta-grid { min-height: 456px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.cta-copy { min-height: 456px; padding: 78px 0 48px; }
.cta-copy .section-kicker { color: var(--purple); }
.cta-copy h2 { margin-top: 14px; color: var(--navy); font-size: 48px; font-weight: 700; line-height: 48px; }
.cta-rule { display: block; width: min(340px, 100%); height: 1px; margin: 28px 0 32px; background: rgba(21,21,81,.25); }
.cta-description { color: var(--navy); font-size: 16.5px; line-height: 21.45px; }
.cta-button { width: min(318px, 100%); height: 55px; margin-top: 31px; padding: 0 19px 0 54px; display: flex; align-items: center; justify-content: space-between; border-radius: 5px; background: var(--purple); color: var(--white); font-size: 16.5px; font-weight: 500; }
.cta-button span { font-size: 27px; font-weight: 300; }
.cta-button:hover, .cta-button:focus-visible { background: #3d2680; outline: 2px solid var(--purple-bright); outline-offset: 2px; }
.cta-art { width: 100%; max-width: 605px; height: auto; max-height: 456px; margin-left: auto; object-fit: contain; }

/* Footer: y=3951, 1920 x 385. */
.site-footer {
  width: 100%;
  min-height: 385px;
  color: var(--white);
  background: var(--dark-gradient);
  overflow: hidden;
}
.footer-grid { min-height: 385px; padding-top: 68px; display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 15px; }
.footer-company { min-height: 250px; padding-right: 19px; }
.footer-brand-row { min-height: 75px; display: flex; align-items: center; gap: 20px; }
.footer-logo { width: 180px; height: auto; }
.footer-brand-row p { max-width: 210px; color: var(--white); font-size: 16.5px; font-weight: 500; line-height: 21.45px; }
.footer-contact { margin-top: 29px; }
.footer-contact h2, .footer-column h2 { color: var(--white); font-size: 30px; font-weight: 500; line-height: 39px; }
.footer-contact-details { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 222px) minmax(0, 1fr); gap: 20px; padding-left: 20px; border-left: 5px solid var(--purple); }
.footer-contact-details p, .footer-contact-details a { color: var(--white); font-size: 16.5px; line-height: 21.45px; }
.footer-column { position: relative; min-height: 250px; padding: 15px 20px; border: 0; border-radius: 12px; background: transparent; }
.footer-column::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.45) 30%, rgba(255,255,255,.15) 55%, rgba(255,255,255,0) 88%);
  background: linear-gradient(180deg in oklab, rgba(255,255,255,.85) 0%, rgba(255,255,255,.45) 30%, rgba(255,255,255,.15) 55%, rgba(255,255,255,0) 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.footer-column ul { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.footer-column a { color: var(--white); font-size: 16.5px; line-height: 21.285px; }
.footer-column a:hover, .footer-column a:focus-visible { color: var(--purple-light); outline: none; }

/* ============================================================
   MOBILE / TABLET (≤ 900px) + małe telefony (≤ 480px)
   ============================================================ */
/* Nagłówek → hamburger już ≤1200px: poziome menu (7 pozycji + CTA) mieści się
   dopiero od ~1180px, więc niżej zwijamy je do hamburgera na każdej stronie. */
@media (max-width: 1200px) {
  /* --- Nagłówek + hamburger --- */
  .site-header { height: 76px; }
  .header-inner { height: 76px; gap: 0; }
  .site-logo, .site-logo img { width: 132px; height: auto; flex: 0 0 auto; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    margin-left: auto;
    padding: 10px;
    border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--white); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    padding: 10px 18px 20px;
    background: rgba(15,4,45,.99);
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 24px 40px rgba(0,0,0,.45);
    display: none;
  }
  .site-header.nav-open .main-nav { display: flex; }
  .nav-item { width: 100%; }
  .nav-pill { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .dropdown {
    position: static;
    min-width: 0;
    margin: 0 0 4px;
    padding: 4px 10px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    box-shadow: none;
    /* Na mobile wracamy do przełączania display (statyczny układ w kolumnie),
       więc neutralizujemy fade z desktopu. */
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: none;
  }
  /* Menu mobilne jest ciemne – linki i separatory na jasno. */
  .dropdown::before { display: none; }
  .dropdown a { color: var(--white); border-bottom-color: rgba(255,255,255,.1); }
  .dropdown a:hover, .dropdown a:focus-visible { color: var(--purple-light); }
  .dropdown-arrow { display: none; }
  /* Mega dropdown: jedna kolumna, bez pionowego separatora. */
  .dropdown-mega { min-width: 0; grid-template-columns: 1fr; padding: 4px 10px; display: none; }
  .dropdown-col { padding: 0; }
  .dropdown-col-sub { border-left: 0; }
  .dropdown-col-main a:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
  /* Na dotyku tylko klik (is-open), bez hovera */
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: none; }
  .has-dropdown:hover .dropdown-mega, .has-dropdown:focus-within .dropdown-mega { display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .has-dropdown.is-open .dropdown-mega { display: block; }
  .nav-cta { flex: 0 0 auto; width: 100%; height: 48px; margin: 8px 0 0; }

  /* Nagłówek w trybie hamburger: gradient zamiast poziomego SVG. */
  .site-header { background-image: none; background: var(--dark-gradient); }
}

/* Treść przechodzi w układ mobilny dopiero ≤900px — do tej szerokości układy
   2-kolumnowe mieszczą się bez problemu (hamburger włącza się wcześniej, ≤1200px). */
@media (max-width: 900px) {
  :root { --gutter: 18px; }

  /* --- Ciemne tła treści: gradient (poziomy SVG psuje się na portrait) --- */
  .home-hero-stage, .dark-content-stage { background-image: none; background: var(--dark-gradient); }

  /* --- Hero --- */
  .home-hero-stage { min-height: 0; }
  .hero { min-height: 0; }
  .hero-inner { min-height: 0; height: auto; padding: 40px 0 10px; gap: 16px; }
  .hero-eyebrow { max-width: none; }
  .hero-title { max-width: none; min-height: 0; font-size: clamp(28px, 7vw, 46px); line-height: 1.2; }
  .hero-description { max-width: none; min-height: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; height: auto; width: 100%; gap: 12px; }
  .button { width: 100%; }

  /* --- Statystyki + partnerzy --- */
  .numbers-partners { min-height: 0; padding: 10px 0 40px; }
  .stats-panel { min-height: 0; }
  .stat { padding: 26px 14px; }
  .stat-value { font-size: clamp(34px, 9vw, 56px); line-height: 1; }
  .partners { height: 78px; }

  /* --- Współpraca --- */
  .cooperation { min-height: 0; padding: 52px 0; }
  .cooperation-decoration { display: none; }
  .cooperation-heading { min-height: 0; margin: 0 0 24px; }
  .cooperation-panel { grid-template-columns: 1fr; min-height: 0; height: auto; padding: 24px 20px; gap: 6px; }
  .cooperation-item { height: auto; padding: 8px 0; }

  /* --- Usługi --- */
  .services { min-height: 0; padding: 56px 0; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { min-height: 0; }
  .services-button { width: 100%; }

  /* --- Model 3A --- */
  .model { padding: 52px 0; }
  .model-grid { grid-template-columns: 1fr; }
  .model-card { min-height: 0; }

  /* --- CTA --- */
  .contact-cta { min-height: 0; }
  .cta-grid { grid-template-columns: 1fr; min-height: 0; gap: 28px; align-items: stretch; }
  .cta-copy { min-height: 0; padding: 48px 0 0; }
  .cta-art { max-width: 380px; margin: 0 auto; }
  .cta-button { width: 100%; }

  /* --- Stopka --- */
  .site-footer { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; min-height: 0; padding-top: 44px; padding-bottom: 36px; gap: 32px 18px; }
  .footer-company { grid-column: 1 / -1; min-height: 0; }
  .footer-column { min-height: 0; }

  /* --- Wspólna typografia nagłówków --- */
  .section-heading h2, .cta-copy h2 { font-size: clamp(26px, 6vw, 44px); line-height: 1.18; }
}

@media (max-width: 480px) {
  /* Statystyki w pionie z poziomymi separatorami */
  .stats-panel { grid-template-columns: 1fr; }
  .stat { padding: 22px 16px; }
  .stat + .stat::before { left: 16px; right: 16px; top: 0; width: auto; height: 1px; }
  .hero-title { font-size: clamp(25px, 8vw, 40px); }

  /* Stopka jednokolumnowa */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact-details { grid-template-columns: 1fr; gap: 4px 20px; }
}

/* ============================================================
   ROZWIĄZANIA (/rozwiazania/)
   ============================================================ */
.solutions-main { width: 100%; }

/* --- Hero (ciemny, kontynuacja tła nagłówka) --- */
.solutions-hero {
  position: relative;
  color: var(--white);
  background-color: var(--dark-1);
  background-image: url('../img/framer-hero.svg');
  background-position: center -120px;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}
.solutions-hero-inner { min-height: 340px; padding: 74px 0 84px; display: flex; align-items: center; gap: 40px; }
.solutions-hero-copy { flex: 1 1 auto; display: flex; flex-direction: column; gap: 22px; }
.solutions-hero-title { max-width: 520px; color: var(--white); font-size: 48px; font-weight: 700; line-height: 57.6px; }
.solutions-hero-description { max-width: 470px; color: var(--white); font-size: 16.5px; line-height: 23.1px; }
.solutions-hero-art { flex: 0 0 auto; width: min(520px, 46%); height: auto; }

/* --- Etapy (jasne tło z delikatnym gradientem) --- */
.solutions-stages-stage { background: linear-gradient(180deg, #fff 0%, #fff 52%, #ece8f8 84%, #ddd6f2 100%); }
.solutions-stages { padding: 92px 0 64px; }
.stage-block { padding: 26px 0; }
.stage-top { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.stage-copy { order: 1; }
.stage-media { order: 2; display: flex; justify-content: center; }
.stage-flip .stage-copy { order: 2; }
.stage-flip .stage-media { order: 1; }
.stage-media img { width: 100%; max-width: 560px; height: auto; }
.stage-label { color: var(--purple); font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 15px; }
.stage-title { margin-top: 12px; color: var(--navy); font-size: 40px; font-weight: 700; line-height: 44px; }
.stage-text { margin-top: 18px; max-width: 520px; color: rgba(21,21,81,.74); font-size: 16.5px; line-height: 24px; }
.stage-flip .stage-copy .stage-text { margin-left: auto; }

/* Pigułki etapów (pełna szerokość pod blokiem) */
.step-pills { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-pill {
  height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 22px; border-radius: 8px;
  border: 1px solid rgba(82,52,163,.22);
  background: #fff;
  color: var(--navy);
  font-size: 13.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(82,52,163,.06);
}
.step-pill-arrow { color: var(--purple-bright); font-size: 18px; line-height: 1; }
.step-pill.is-active { flex-direction: row-reverse; background: var(--purple); border-color: var(--purple); color: var(--white); box-shadow: 0 8px 20px rgba(82,52,163,.28); }
.step-pill.is-active .step-pill-arrow { color: var(--white); }

.stage-divider { display: block; height: 1px; margin: 22px 0; background: rgba(82,52,163,.14); }

/* --- Dlaczego model działa (biała karta) --- */
.why-card {
  margin-top: 64px;
  display: grid; grid-template-columns: minmax(240px, 340px) 1px 1fr; gap: 44px; align-items: center;
  padding: 50px 56px; border-radius: 22px; background: var(--white);
  box-shadow: 0 24px 60px rgba(54,45,79,.12);
}
.why-kicker { color: var(--purple); font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.why-heading h2 { margin-top: 14px; color: var(--navy); font-size: 34px; font-weight: 700; line-height: 40px; }
.why-divider { width: 1px; height: 100%; min-height: 130px; background: rgba(82,52,163,.16); }
.why-list { display: flex; flex-direction: column; gap: 24px; }
.why-list li { display: flex; align-items: center; gap: 16px; color: var(--navy); font-size: 17px; font-weight: 500; }
.why-list img { width: 26px; height: 26px; flex: 0 0 26px; }

/* --- Ciemna sekcja: Viaz + Kontakt --- */
.solutions-dark-stage {
  color: var(--white);
  background-color: var(--dark-1);
  background-image: url('../img/framer-services-bg.svg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}
.viaz { padding: 84px 0 18px; }
.viaz-card {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 32px 40px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(129,134,204,.10);
}
.viaz-kicker { color: var(--purple-light); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.viaz-title { margin: 8px 0; color: var(--white); font-size: 30px; font-weight: 700; line-height: 32px; }
.viaz-description { max-width: 560px; color: rgba(255,255,255,.8); font-size: 16px; line-height: 22px; }
.viaz-button {
  flex: 0 0 auto; height: 52px; display: inline-flex; align-items: center; gap: 18px;
  padding: 0 28px; border-radius: 8px; border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.04); color: var(--white); font-size: 15px; font-weight: 500; white-space: nowrap;
}
.viaz-button:hover, .viaz-button:focus-visible { background: rgba(255,255,255,.12); outline: none; }
.viaz-button-arrow { position: relative; width: 24px; height: 1px; background: currentColor; }
.viaz-button-arrow::after { content: ''; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }

.solutions-contact { padding: 42px 0 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-kicker { color: var(--purple-light); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.contact-title { margin: 12px 0 24px; color: var(--white); font-size: 40px; font-weight: 700; line-height: 44px; }
.contact-description { max-width: 520px; color: rgba(255,255,255,.82); font-size: 16px; line-height: 24px; }
.expert-card { margin-top: 40px; display: flex; align-items: center; gap: 18px; }
.expert-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 72px; }
.expert-name { color: var(--white); font-size: 18px; font-weight: 600; }
.expert-role { margin-top: 2px; color: var(--purple-light); font-size: 14px; }
.expert-phone { margin-top: 8px; }
.expert-phone a { color: var(--white); font-size: 15px; font-weight: 500; }

/* Formularz (biała karta) */
.contact-form-card { padding: 40px; border-radius: 18px; background: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.form-label { color: var(--navy); font-size: 14px; font-weight: 500; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d8d5e6; border-radius: 8px;
  background: var(--white-soft); color: var(--navy); font-size: 15px;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(82,52,163,.12); }
.form-field textarea { min-height: 96px; resize: vertical; }
.form-counter { position: absolute; top: 2px; right: 0; color: var(--line); font-size: 12px; }
.contact-submit { height: 52px; border: 0; border-radius: 8px; background: var(--purple); color: var(--white); font-size: 16px; font-weight: 500; cursor: pointer; }
.contact-submit:hover, .contact-submit:focus-visible { background: #3d2680; outline: none; }
.form-note { color: var(--line); font-size: 13px; text-align: center; }
.form-honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.form-status.is-success { background: #e7f6ec; color: #1c6b3a; }
.form-status.is-error { background: #fdeaea; color: #a12626; }

/* --- Rozwiązania: mobile/tablet --- */
@media (max-width: 900px) {
  .solutions-hero, .solutions-dark-stage { background-image: none; background: var(--dark-gradient); }
  .solutions-hero-inner { flex-direction: column; align-items: flex-start; min-height: 0; padding: 44px 0 40px; gap: 26px; }
  .solutions-hero-title { max-width: none; font-size: clamp(28px, 7vw, 44px); line-height: 1.2; }
  .solutions-hero-description { max-width: none; }
  .solutions-hero-art { width: min(360px, 82%); }

  .solutions-stages { padding: 56px 0 40px; }
  .stage-top { grid-template-columns: 1fr; gap: 24px; }
  .stage-copy { order: 1; }
  .stage-media { order: 2; }
  .stage-media img { max-width: 440px; }
  .stage-title { font-size: clamp(26px, 6vw, 38px); line-height: 1.18; }
  .stage-flip .stage-copy .stage-text { margin-left: 0; }
  .step-pills { grid-template-columns: 1fr 1fr; }

  .why-card { margin-top: 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding: 34px 26px; }
  .why-divider { display: none; }
  .why-heading h2 { font-size: clamp(24px, 5.5vw, 32px); line-height: 1.2; }

  .viaz { padding: 56px 0 8px; }
  .viaz-card { flex-direction: column; align-items: flex-start; padding: 26px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-title { font-size: clamp(26px, 6vw, 38px); line-height: 1.18; }
  .contact-form-card { padding: 28px; }
}

@media (max-width: 480px) {
  .step-pills { grid-template-columns: 1fr; }
}

/* ============================================================
   O NAS (/o-nas/)
   ============================================================ */
.about-main { width: 100%; }

/* --- Hero (ciemny) + specjalizacje --- */
.about-hero-stage {
  position: relative;
  color: var(--white);
  background-color: var(--dark-1);
  background-image: url('../img/framer-hero.svg');
  background-position: center -120px;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}
.about-hero-inner { display: flex; align-items: center; gap: 40px; padding: 72px 0 34px; }
.about-hero-copy { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.about-hero-title { max-width: 560px; color: var(--white); font-size: 48px; font-weight: 700; line-height: 57.6px; }
.about-hero-description { max-width: 470px; color: var(--white); font-size: 16.5px; line-height: 23.1px; }
.about-hero-art { flex: 0 0 auto; width: min(520px, 46%); height: auto; }

.specializations { padding: 18px 0 74px; }
.spec-panel {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px 32px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 20px rgba(54,45,79,.25);
}
.spec-label { color: var(--purple-light); font-size: 13px; font-weight: 600; letter-spacing: .14em; }
.spec-pills { display: grid; grid-template-columns: repeat(6, 1fr); }
.spec-pill { position: relative; display: flex; align-items: center; justify-content: center; padding: 8px 8px; text-align: center; color: var(--white); font-size: 14.5px; font-weight: 500; }
.spec-pill + .spec-pill::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 22px; background: rgba(255,255,255,.22); }
.spec-practice { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding: 0 6px; color: rgba(255,255,255,.85); font-size: 15px; }
.spec-practice-label { color: var(--purple-light); font-weight: 600; }
.spec-practice-line { width: 60px; height: 1px; background: rgba(255,255,255,.3); }
.spec-practice-plus { color: var(--purple-light); font-weight: 600; }
.spec-practice-item { color: var(--white); }

/* --- Zespół --- */
.team { padding: 92px 0 104px; background: linear-gradient(180deg, #fff 0%, #fff 52%, #ece8f8 86%, #ddd6f2 100%); }
.team-heading { margin-bottom: 46px; display: flex; flex-direction: column; gap: 12px; }
.team-heading .team-kicker { color: var(--purple); }
.team-heading h2 { color: var(--navy); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.team-card { padding: 34px 36px; border-radius: 16px; background: var(--white); border: 1px solid rgba(82,52,163,.06); box-shadow: 0 16px 44px rgba(54,45,79,.10); }
.team-card-head { display: flex; align-items: center; gap: 20px; }
.team-photo { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; object-fit: cover; }
.team-photo-placeholder { background: linear-gradient(155deg, var(--purple-bright), var(--purple)); }
.team-name { color: var(--purple); font-size: 20px; font-weight: 700; line-height: 24px; }
.team-role { margin-top: 4px; color: var(--line); font-size: 14.5px; }
.team-rule { display: block; height: 1px; margin: 22px 0; background: rgba(21,21,81,.1); }
.team-desc { color: rgba(21,21,81,.78); font-size: 15.5px; line-height: 23px; }

/* --- O nas: mobile/tablet --- */
@media (max-width: 900px) {
  .about-hero-stage { background-image: none; background: var(--dark-gradient); }
  .about-hero-inner { flex-direction: column; align-items: flex-start; padding: 44px 0 24px; gap: 26px; }
  .about-hero-title { max-width: none; font-size: clamp(28px, 7vw, 44px); line-height: 1.2; }
  .about-hero-description { max-width: none; }
  .about-hero-art { width: min(360px, 82%); }
  .hero-actions { flex-direction: column; align-items: stretch; height: auto; width: 100%; gap: 12px; }

  .specializations { padding: 8px 0 52px; }
  .spec-pills { grid-template-columns: repeat(3, 1fr); gap: 6px 0; }
  .spec-pill:nth-child(3n+1)::before { display: none; }
  .spec-practice { font-size: 14px; }

  .team { padding: 56px 0 64px; }
  .team-heading { margin-bottom: 30px; }
  .team-heading h2 { font-size: clamp(26px, 6vw, 40px); line-height: 1.18; }
  .team-grid { grid-template-columns: 1fr; gap: 18px; }
  .team-card { padding: 26px 24px; }
}

@media (max-width: 480px) {
  .spec-pills { grid-template-columns: 1fr 1fr; }
  .spec-pill::before { display: none; }
}

/* ≤1200px nagłówek przechodzi na płaski gradient (tryb hamburger). Dekoracyjne
   tła SVG wszystkich ciemnych sekcji muszą zniknąć razem z nim — inaczej hero
   pokazuje linie, a nagłówek jest płaski → widoczny szew na styku (viewport
   tabletowy). Reguła na końcu pliku, by wygrać kolejnością źródła nad definicjami
   .solutions-hero / .about-hero-stage (zdefiniowanymi niżej niż blok nagłówka). */
@media (max-width: 1200px) {
  .home-hero-stage, .dark-content-stage,
  .solutions-hero, .solutions-dark-stage,
  .about-hero-stage { background-image: none; background: var(--dark-gradient); }
}
