@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* Ustawienia globalne */
:root {
  --navy: #0B1D3A;
  --navy-2: #06152e;
  --navy-3: #041128;
  --blue: #146BFF;
  --blue-2: #0E8DFF;
  --silver: #D1D5DB;
  --text: #0a1733;
  --muted: #52627a;
  --white: #ffffff;
  --surface: #f7faff;
  --line: rgba(209, 213, 219, .55);
  --shadow: 0 18px 42px rgba(11, 29, 58, .10);
  --shadow-2: 0 22px 65px rgba(20, 107, 255, .18);
  --radius: 18px;
  --container: 1240px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: #fff;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@supports not (overflow-x: clip) {
  body {
    overflow-x: hidden;
  }
}

body.no-scroll,
html.menu-open,
body.menu-open {
  overflow: hidden;
  overscroll-behavior: contain;
}

body.menu-open,
body.no-scroll {
  position: static;
  width: auto;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 18px;
  top: -100px;
  z-index: 9999;
  padding: 12px 18px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 18px;
}

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


/* Navbar */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  background: linear-gradient(90deg, rgba(3, 13, 30, .98), rgba(7, 24, 55, .94));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.055);
  transition: box-shadow .25s ease, background .25s ease, height .25s ease;
}

.site-header.is-scrolled {
  height: 78px;
  background: rgba(3, 13, 30, .96);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 3.2vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 65px;
  max-height: 65px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(20,107,255,.18));
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.94);
  font-size: 14px;
  font-weight: 700;
}

.nav-list li {
  list-style: none;
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px 10px;
  transition: color .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  transition: width .22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue-2);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-link:focus-visible,
.nav-toggle:focus-visible,
.footer-col a:focus-visible,
.footer-registry-item:focus-visible,
.service-more:focus-visible,
.service-card:focus-visible,
.to-top:focus-visible {
  outline: 2px solid rgba(14, 141, 255, .9);
  outline-offset: 4px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.nav-toggle .burger {
  position: relative;
  width: 22px;
  height: 16px;
  display: block;
  background: linear-gradient(
    to bottom,
    transparent 7px,
    rgba(255,255,255,.94) 7px,
    rgba(255,255,255,.94) 9px,
    transparent 9px
  );
}

.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,.94);
  border-radius: 999px;
  transition: transform .2s ease, top .2s ease, bottom .2s ease, opacity .2s ease;
}

.nav-toggle .burger::before {
  top: 0;
}

.nav-toggle .burger::after {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .burger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .burger::before {
  top: 7px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger::after {
  bottom: 7px;
  transform: rotate(-45deg);
}

.nav-toggle > span:not(.sr-only):not(.burger) {
  display: none;
}


/* Start / Hero */
.hero {
  position: relative;
  min-height: clamp(600px, 72vh, 760px);
  margin-top: 0;
  padding-top: var(--header-height);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(105deg, rgba(7, 22, 50, .95) 0%, rgba(6, 21, 46, .74) 45%, rgba(8, 33, 75, .28) 100%),
    url("../img/tlo_1.png") 74% 42% / cover no-repeat;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: calc(clamp(600px, 72vh, 760px) - var(--header-height));
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  padding: 70px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .11em;
}

.hero-eyebrow {
  color: rgba(255,255,255,.64);
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(43px, 5.2vw, 68px);
  line-height: 1.18;
  letter-spacing: -.045em;
  font-weight: 900;
}

.hero h1 span,
.about h2 span {
  color: var(--blue-2);
}

.hero-lead {
  max-width: 640px;
  margin: 28px 0 38px;
  color: rgba(255,255,255,.86);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  z-index: 2;
  width: clamp(320px, 24vw, 420px);
  min-height: 0;
  margin: 0 auto;
  justify-self: center;
  align-self: center;
  pointer-events: none;
  transform: translateY(-10px);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18% 4% -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,141,255,.34) 0%, rgba(20,107,255,.18) 34%, transparent 68%);
  filter: blur(20px);
  opacity: .82;
  animation: portalGlow 5.6s ease-in-out infinite;
}

.hero-icon {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: none;
  object-fit: contain;
  transform-origin: center;
  filter: drop-shadow(0 24px 50px rgba(20,107,255,.35));
  animation: ideaTechFloatSmooth 4.7s cubic-bezier(.45, 0, .55, 1) infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}


/* Sekcje wspólne */
.section-pad {
  padding: 72px 0;
}

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

.centered {
  text-align: center;
}

.section-heading h2,
.about h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.22;
  letter-spacing: -.035em;
  font-weight: 900;
}


/* Usługi i modal usług */
.services {
  background:
    radial-gradient(circle at 50% 0, rgba(20,107,255,.06), transparent 34%),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.services .container {
  width: min(100% - 48px, 1440px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: clamp(18px, 1.45vw, 26px);
}

.service-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  height: 100%;
  min-height: clamp(500px, 30vw, 545px);
  padding: 34px clamp(20px, 1.35vw, 28px) 26px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  border: 1px solid rgba(11, 29, 58, .08);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(11, 29, 58, .08);
  cursor: pointer;
  isolation: isolate;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  opacity: .72;
  background: linear-gradient(90deg, rgba(20,107,255,0), rgba(20,107,255,.85), rgba(14,141,255,0));
  transition: opacity .22s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(20, 107, 255, .23);
  box-shadow: var(--shadow-2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--blue);
  background: linear-gradient(180deg, rgba(20,107,255,.09), rgba(20,107,255,.025));
  border: 1px solid rgba(20,107,255,.12);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84), 0 12px 24px rgba(20,107,255,.08);
}

.service-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.service-card h3 {
  min-height: 74px;
  display: grid;
  place-items: center;
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(16px, .94vw, 18px);
  line-height: 1.22;
  font-weight: 900;
}

.service-card p {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13.7px;
  line-height: 1.52;
  font-weight: 500;
  text-wrap: pretty;
}

.service-more {
  appearance: none;
  align-self: end;
  margin-top: 18px;
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease;
}

.service-card:hover .service-more,
.service-more:hover {
  transform: translateX(5px);
  color: var(--blue-2);
}

.footer-col a[data-service-modal] {
  cursor: pointer;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 34px);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.service-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 13, 30, .10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.service-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100vw - 44px));
  max-height: none;
  overflow: visible;
  padding: clamp(24px, 3vw, 38px);
  color: var(--text);
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(20,107,255,.18);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(3, 13, 30, .26);
  transform: translateY(10px) scale(.94);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.service-modal.is-open .service-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.service-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(11,29,58,.12);
  border-radius: 12px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.service-modal__close:hover {
  color: var(--blue);
}

.service-modal__eyebrow {
  margin-bottom: 10px;
}

.service-modal h2 {
  margin: 0 48px 14px 0;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 900;
}

.service-modal__content p {
  max-width: 980px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.62;
  font-weight: 500;
}

.service-modal__content ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--text);
}

.service-modal__content li {
  margin: 0 0 8px;
  line-height: 1.48;
  font-weight: 600;
  break-inside: avoid;
}

@media (min-width: 760px) {
  .service-modal__content ul {
    columns: 2;
    column-gap: 38px;
  }
}

@media (max-height: 760px) and (min-width: 721px) {
  .service-modal {
    align-items: flex-start;
    padding-top: 18px;
    padding-bottom: 18px;
  }
}


/* Statystyki */
.stats {
  position: relative;
  padding: 52px 0;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(6, 21, 46, .88) 0%, rgba(8, 35, 78, .68) 54%, rgba(6, 21, 46, .88) 100%),
    url("../img/tlo_2.png") center bottom / cover no-repeat;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  position: relative;
  min-height: 130px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 14px;
  width: 1px;
  height: calc(100% - 28px);
  background: rgba(255,255,255,.24);
}

.stat-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  color: var(--blue-2);
  filter: drop-shadow(0 10px 22px rgba(20,107,255,.28));
}

.stat-item strong {
  color: #fff;
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.03em;
}

.stat-item span {
  color: rgba(255,255,255,.9);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}


/* O nas */
.about {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 82px;
  align-items: center;
}

.about-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.about-content p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
}


/* Stopka */
.site-footer {
  color: rgba(255,255,255,.86);
  background:
    radial-gradient(circle at 15% 10%, rgba(20,107,255,.18), transparent 25%),
    linear-gradient(120deg, #06152e 0%, #071b3a 55%, #06152e 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(370px, 1.55fr) .85fr 1.08fr 1fr;
  gap: 52px;
  padding: 56px 0 42px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding-top: 18px;
}

.footer-brand img {
  width: clamp(330px, 19vw, 390px);
  max-height: 112px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 14px;
  filter: drop-shadow(0 8px 18px rgba(20,107,255,.16));
}

.footer-brand p {
  width: clamp(330px, 19vw, 390px);
  max-width: none;
  margin: 0;
  color: rgba(255,255,255,.86);
  text-align: center;
  white-space: nowrap;
  font-size: clamp(13px, .82vw, 15px);
  line-height: 1.5;
}

.footer-col h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.footer-col a {
  display: block;
  margin: 0 0 11px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  transition: color .2s ease, transform .2s ease;
}

.footer-col a:hover {
  color: var(--blue-2);
  transform: translateX(4px);
}

.footer-contact a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}

.footer-contact-text {
  min-width: 0;
}

.footer-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 1px;
  object-fit: contain;
  pointer-events: none;
}

.footer-account strong {
  display: inline-block;
  margin-top: 2px;
  color: #fff;
  font-weight: 800;
  line-height: 1.35;
  transition: color .2s ease;
}

.footer-account-number {
  white-space: nowrap;
  font-size: 12.5px;
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
}

.footer-account:hover strong {
  color: var(--blue-2);
}

.footer-registry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 52px);
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
  text-align: center;
}

.footer-registry-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  color: rgba(255,255,255,.88);
  font-size: clamp(13px, .9vw, 15px);
  font-weight: 800;
  line-height: 1.35;
  border-radius: 8px;
  transition: color .2s ease, transform .2s ease;
}

.footer-registry-item strong {
  color: #fff;
  font-weight: 900;
  transition: color .2s ease;
}

.footer-registry-item:hover {
  color: var(--blue-2);
  transform: translateX(4px);
}

.footer-registry-item:hover strong {
  color: var(--blue-2);
}

.footer-registry-item.is-copied::after {
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
}

.footer-records {
  padding: 16px 0 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.72);
  text-align: center;
}

.footer-records p {
  max-width: 1120px;
  margin: 0 auto;
  font-size: clamp(12px, .78vw, 13px);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

.footer-capital {
  text-align: right;
}


/* Elementy interaktywne */
.copy-link {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
}

.copy-link:hover {
  color: var(--blue-2);
}

.copy-link.is-copied::after {
  content: "Skopiowano";
  position: absolute;
  left: 34px;
  top: calc(100% + 4px);
  z-index: 5;
  padding: 5px 8px;
  color: #fff;
  background: rgba(20,107,255,.96);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, box-shadow .2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: transparent;
  box-shadow: none;
}

.to-top img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  pointer-events: none;
}


/* Animacje */
@keyframes portalGlow {
  0%, 100% {
    opacity: .58;
    transform: scale(.96);
  }

  50% {
    opacity: .9;
    transform: scale(1.06);
  }
}

@keyframes ideaTechFloatSmooth {
  0%, 100% {
    transform: translate3d(0, -4px, 0);
  }

  50% {
    transform: translate3d(0, 8px, 0);
  }
}

@keyframes ideaTechFloatLaptopWide {
  0%, 100% {
    transform: translate3d(0, -3px, 0);
  }

  50% {
    transform: translate3d(0, 7px, 0);
  }
}

@keyframes ideaTechFloatLaptopSmall {
  0%, 100% {
    transform: translate3d(0, -3px, 0);
  }

  50% {
    transform: translate3d(0, 6px, 0);
  }
}

@keyframes ideaTechFloatTablet {
  0%, 100% {
    transform: translate3d(0, -2px, 0);
  }

  50% {
    transform: translate3d(0, 5px, 0);
  }
}

@keyframes ideaTechFloatMobileLarge {
  0%, 100% {
    transform: translate3d(0, -2px, 0);
  }

  50% {
    transform: translate3d(0, 4px, 0);
  }
}

@keyframes ideaTechFloatMobileSmall {
  0%, 100% {
    transform: translate3d(0, -1px, 0);
  }

  50% {
    transform: translate3d(0, 3px, 0);
  }
}


/* Responsywność / mobile */
@media (min-width: 1440px) {

  /* Start / Hero */
  .hero {
    background-position: 75% 41%;
  }

  .hero h1 {
    font-size: clamp(58px, 4.4vw, 76px);
  }

  .hero-lead {
    font-size: 19px;
  }

  .hero-visual {
    width: clamp(450px, 28vw, 560px);
    transform: translateX(clamp(44px, 5.2vw, 112px)) translateY(-4px);
  }
}

@media (min-width: 1800px) {

  /* Start / Hero */
  .hero-visual {
    width: clamp(450px, 28vw, 560px);
    transform: translateX(clamp(44px, 5.2vw, 112px)) translateY(-4px);
  }
}

@media (min-width: 1181px) and (max-width: 1439px) {

  /* Start / Hero */
  .hero-visual {
    width: clamp(400px, 32vw, 500px);
    transform: translate3d(clamp(-72px, -5vw, -54px), -2px, 0);
    will-change: transform;
  }

  .hero-icon {
    animation: ideaTechFloatLaptopWide 4.7s cubic-bezier(.45, 0, .55, 1) infinite;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    filter: none;
  }

  .hero-visual::before {
    animation: none;
  }

  /* Stopka */
  .footer-grid {
    grid-template-columns: minmax(320px, 1.35fr) .72fr 1fr minmax(270px, 1.15fr);
    gap: clamp(28px, 3vw, 42px);
  }

  .footer-account-number {
    font-size: clamp(11px, .9vw, 12.5px);
  }

  .footer-bottom {
    padding-right: 84px;
  }
}

@media (min-width: 961px) and (max-width: 1180px) {

  /* Start / Hero */
  .hero-visual {
    width: clamp(350px, 33vw, 420px);
    transform: translate3d(clamp(-48px, -4vw, -30px), -2px, 0);
    will-change: transform;
  }

  .hero-icon {
    animation: ideaTechFloatLaptopSmall 4.8s cubic-bezier(.45, 0, .55, 1) infinite;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    filter: none;
  }

  .hero-visual::before {
    animation: none;
  }
}

@media (min-width: 961px) {

  /* Start / Hero */
  .hero-visual {
    justify-self: end;
  }

  .hero-icon {
    filter: drop-shadow(0 28px 58px rgba(20,107,255,.42));
  }
}

@media (min-width: 961px) and (max-width: 1439px) {

  /* Start / Hero — płynniejsza animacja logo na mniejszych ekranach.
     Ciężki drop-shadow na animowanym PNG potrafił powodować przycięcia. */
  .hero-icon {
    filter: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

@media (max-width: 1180px) {

  /* Navbar */
  .brand img {
    width: 205px;
    height: auto;
    max-height: 64px;
  }

  .nav-list {
    gap: 22px;
    font-size: 13px;
  }

  /* Start / Hero */
  .hero {
    background-position: 76% 42%;
  }

  /* Usługi i modal usług */
  .services .container {
    width: min(100% - 42px, 1040px);
  }

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

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

  .service-card:last-child {
    grid-column: 2 / 3;
  }

  /* O nas */
  .about-grid {
    gap: 54px;
  }

  /* Stopka */
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 42px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding-right: 84px;
  }
}

@media (max-width: 960px) {

  /* Ustawienia globalne */
  :root {
    --header-height: 78px;
  }

  .container {
    width: min(100% - 36px, var(--container));
  }

  /* Navbar */
  .site-header,
  .site-header.is-scrolled {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--header-height);
    margin: 0;
    transform: none;
  }

  .header-inner {
    justify-content: space-between;
    gap: 12px;
  }

  .brand img {
    width: clamp(180px, 43vw, 235px);
    max-height: 62px;
  }

  .nav {
    position: static;
  }

  .nav-toggle {
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin-left: auto;
    margin-right: 6px;
    z-index: 6000;
  }

  .nav-list {
    position: fixed;
    left: 18px;
    right: 18px;
    top: calc(var(--header-height) + 10px);
    height: auto;
    max-height: calc(100svh - var(--header-height) - 24px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px;
    color: rgba(255,255,255,.94);
    background: rgba(3, 13, 30, .94);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0,0,0,.40);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: none;
    transition: none;
    z-index: 5500;
  }

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

  .nav-link {
    display: block;
    padding: 14px 12px;
    border-bottom: 0;
    border-radius: 12px;
    font-size: 16px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.is-active {
    color: #fff;
    background: rgba(20, 107, 255, .18);
  }

  /* Start / Hero */
  .hero {
    background-position: 67% 40%;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-content {
    max-width: 760px;
    display: grid;
    justify-items: center;
    padding: 62px 0 16px;
    text-align: center;
  }

  .hero-lead {
    max-width: 720px;
  }

  .hero-visual {
    position: relative;
    left: auto;
    top: auto;
    width: min(340px, 66vw);
    min-height: 300px;
    margin: 0 auto 32px;
    transform: none;
  }

  .hero-visual::before {
    inset: 18% 2% -10%;
    animation: none;
  }

  .hero-icon {
    width: min(310px, 58vw);
    animation: ideaTechFloatTablet 4.9s cubic-bezier(.45, 0, .55, 1) infinite;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    filter: none;
  }

  /* Usługi i modal usług */
  .services .container {
    width: min(100% - 36px, var(--container));
  }

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

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

  .service-card p {
    max-width: 420px;
  }

  .service-card:last-child {
    grid-column: 1 / -1;
    max-width: 430px;
    justify-self: center;
    width: 100%;
  }

  /* Statystyki */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,.18);
  }

  /* O nas */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  /* Stopka */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 46px;
    padding: 50px 0 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    align-items: center;
    justify-self: center;
    width: 100%;
    padding-top: 0;
  }

  .footer-brand img,
  .footer-brand p {
    width: min(330px, 80vw);
    text-align: center;
  }

  .footer-brand p {
    white-space: normal;
  }

  .footer-contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 34px;
  }

  .footer-contact h3 {
    grid-column: 1 / -1;
  }

  .footer-registry {
    gap: 18px;
  }
}

@media (max-width: 720px) {

  /* Ustawienia globalne */
  .container {
    width: min(100% - 30px, var(--container));
  }

  /* Start / Hero */
  .hero {
    min-height: auto;
    background-position: 66% 37%;
  }

  .hero-content {
    padding-top: 48px;
  }

  .hero h1 {
    max-width: 560px;
    font-size: clamp(37px, 10vw, 50px);
    line-height: 1.12;
  }

  .hero-lead {
    max-width: 520px;
    margin-top: 22px;
    font-size: 15.5px;
    line-height: 1.7;
  }

  .hero-visual {
    width: min(285px, 71vw);
    min-height: 245px;
    margin-bottom: 26px;
  }

  .hero-icon {
    width: min(265px, 70vw);
    animation: ideaTechFloatMobileLarge 5s cubic-bezier(.45, 0, .55, 1) infinite;
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  /* Sekcje wspólne */
  .section-pad {
    padding: 56px 0;
  }

  .section-heading h2,
  .about h2 {
    line-height: 1.18;
  }

  /* Usługi i modal usług */
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:last-child {
    min-height: 0;
    max-width: none;
    grid-column: auto;
  }

  .service-card h3,
  .service-card p {
    min-height: 0;
  }

  .service-card p {
    max-width: 520px;
  }

  /* Statystyki */
  .stats {
    padding: 52px 0;
    background-position: center bottom;
  }

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

  .stat-item {
    min-height: 174px;
    padding: 24px 0;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.16);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .stat-item::after {
    display: none;
  }

  .stat-item img,
  .stats .stat-item img {
    width: 46px;
    height: 46px;
  }

  .stat-item strong {
    font-size: clamp(36px, 9vw, 44px);
  }

  .stat-item span {
    font-size: 15.5px;
    line-height: 1.6;
  }

  /* O nas */
  .about-grid {
    gap: 34px;
  }

  /* Stopka */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 46px;
  }

  .footer-brand {
    align-items: flex-start;
    justify-self: start;
  }

  .footer-brand img,
  .footer-brand p {
    width: min(260px, 78vw);
    text-align: left;
  }

  .footer-brand p {
    max-width: 340px;
    font-size: 14px;
  }

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

  .footer-registry {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }

  .footer-registry-item {
    justify-content: flex-start;
    width: fit-content;
  }

  .footer-registry-item.is-copied::after {
    left: 0;
    transform: none;
  }

  .footer-records {
    padding: 15px 0 17px;
    text-align: left;
  }

  .footer-records p {
    max-width: none;
    font-size: 12.5px;
    line-height: 1.6;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding-right: 72px;
    line-height: 1.65;
  }

  .footer-bottom p {
    width: 100%;
  }

  .footer-capital {
    order: 1;
    text-align: left;
  }

  .footer-copyright {
    order: 2;
  }
}

@media (max-width: 520px) {

  /* Ustawienia globalne */
  :root {
    --header-height: 76px;
  }

  /* Navbar */
  .site-header,
  .site-header.is-scrolled {
    height: var(--header-height);
  }

  .brand img {
    width: clamp(176px, 55vw, 225px);
    max-height: 60px;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
    margin-right: 4px;
    border-radius: 14px;
  }

  .nav-list {
    padding: 18px 18px 32px;
  }

  /* Start / Hero */
  .hero {
    background-position: 63% 36%;
  }

  .hero-content {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: clamp(34px, 10.5vw, 42px);
    letter-spacing: -.04em;
  }

  .hero-lead {
    margin: 18px 0 22px;
    font-size: 15px;
    line-height: 1.62;
  }

  .hero-visual {
    width: min(280px, 78vw);
    min-height: 210px;
    margin-top: 0;
    margin-bottom: 28px;
  }

  .hero-icon {
    width: min(235px, 76vw);
    animation: ideaTechFloatMobileSmall 5.1s cubic-bezier(.45, 0, .55, 1) infinite;
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  /* Usługi i modal usług */
  .service-card {
    padding: 30px 22px 26px;
  }

  .service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
  }

  .service-icon img {
    width: 42px;
    height: 42px;
  }

  .service-card h3 {
    min-height: 0;
    margin-bottom: 12px;
  }

  .service-modal {
    align-items: flex-start;
    padding: 14px;
  }

  .service-modal__dialog {
    width: 100%;
    padding: 24px 20px 22px;
    border-radius: 18px;
  }

  .service-modal h2 {
    margin-right: 38px;
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.12;
  }

  .service-modal__content p {
    font-size: 15px;
    line-height: 1.58;
  }

  .service-modal__content ul {
    padding-left: 20px;
  }

  .service-modal__content li {
    margin-bottom: 8px;
    line-height: 1.45;
  }

  /* Statystyki */
  .stats {
    padding: 38px 0;
  }

  .stat-item {
    min-height: 150px;
  }

  /* O nas */
  .about-media img {
    border-radius: 10px;
  }

  /* Stopka */
  .footer-brand img {
    width: 180px;
  }

  .footer-account strong,
  .footer-registry-item {
    font-size: 13px;
  }

  .footer-account-number {
    font-size: clamp(10.5px, 3.55vw, 12px);
    letter-spacing: -.025em;
  }

  .footer-bottom {
    padding-right: 64px;
  }

  /* Elementy interaktywne */
  .to-top {
    right: 16px;
    bottom: 16px;
  }

  .to-top,
  .to-top img {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 440px) {

  /* Ustawienia globalne */
  .container {
    width: min(100% - 28px, var(--container));
  }

  /* Navbar */
  .brand img {
    width: 172px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  /* Start / Hero */
  .hero-content {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 15px;
  }

  /* Sekcje wspólne */
  .section-heading h2,
  .about h2 {
    font-size: 28px;
  }
}

/* Dostępność / reduced motion */
@media (prefers-reduced-motion: reduce) {

  /* Ustawienia globalne */
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  /* Start / Hero */
  .hero-icon,
  .hero-visual::before {
    animation: none !important;
  }
}
